GithubHelp home page GithubHelp logo

danfinlay / js-eth-personal-sign-examples Goto Github PK

View Code? Open in Web Editor NEW
311.0 11.0 189.0 583 KB

A simple web UI for demonstrating the provider API for signing & recovering messages.

HTML 0.41% JavaScript 99.58% CSS 0.01%

js-eth-personal-sign-examples's Introduction

JS Ethereum Signature Example

This repository should be considered deprecated! It has been forked and is being maintained to a much higher quality as the MetaMask e2e test dapp.

Simplest possible signature examples, for use with MetaMask.

Live Demo Here

js-eth-personal-sign-examples's People

Contributors

cjeria avatar danfinlay avatar estebanmino avatar etdu avatar metamaskbot avatar rstormsf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-eth-personal-sign-examples's Issues

bundle.js:1 Uncaught SyntaxError: Identifier 'Buffer' has already been declared

Hi

I tried to rebuild the example using these commands
npm install
npm run-script build

It failed with the error "Cannot find module 'babel-runtime/regenerator" which I fixed by npm install --save-dev babel-runtime

Afterwhich, I run the example through a python http server python3 -m http.server and gotten the this error on the browser console.
Uncaught SyntaxError: Identifier 'Buffer' has already been declared
at s (bundle.js:1)
at bundle.js:1
at Object. (bundle.js:4)
at Object.1.buffer (bundle.js:355)
at s (bundle.js:1)
at e (bundle.js:1)
at bundle.js:1

BTW, if I use the existing bundle.js (and not rebuild it) - it works.

Cannot read property 'accounts' of undefined

Hi all . After clicking on button to get signature I am getting an error look like this

 Cannot read property 'accounts' of undefined at HTMLButtonElement.<anonymous> (bundle.js:25873)

All of those buttons not working. The same error message!

npm run build fails

I would like to experiment with this by making some changes. Not having luck trying to build it.
node 8.9.4 and npm 5.6.0 on macOS Mojave.

ethsign git:(master) ✗ npm run build

> [email protected] build /Users/vamsee/Development/blockchain/pulse/samples/js-eth-personal-sign-examples
> browserify -t brfs index.js -o bundle.js

Error: Cannot find module 'babel-runtime/regenerator' from '/Users/vamsee/Development/blockchain/pulse/samples/js-eth-personal-sign-examples/node_modules/ethjs-query/lib'
    at /usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
    at process (/usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
    at ondir (/usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
    at load (/usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
    at onex (/usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
    at /usr/local/lib/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
    at FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `browserify -t brfs index.js -o bundle.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.