Giter Site home page Giter Site logo

helpeth's Issues

Segmentation fault (core dumped)

Input: $ helpeth addressDetails 0x0000000000000000000000000000000055000000
or generic $ helpeth addressDetails [ADDRESS]
Output:

Address: 0x0000000000000000000000000000000055000000
Address (checksum): 0x0000000000000000000000000000000055000000
ICAP: XE11 0000 0000 0000 000N L1HJ 4
Segmentation fault (core dumped)

OS: Debian 11 in Linux Container on Chrome OS (Chromebook)
Installed via: npm

The expected output appears, but also the message "Segmentation fault (core dumped)". I installed it in the "default container" on my Chromebook.

add encryption options

it would be fun to add an option to encrypt and decrypt some text given a public key (possible derived from a tx) and a private key

Can't verify created sig

I try to use verifySig with such sytax:

helpeth verifySig 0x440ead7b9ade79ab9423b43c219be92d3f5a29d42c62466bb234f91f16378115 0xb980941815b6c4249b55893ac47542bb7e91ba099fd84e62c72ebecc2814697f6c847ef8df63b05e0e2af0296afebde15224b705a4
7f5cca19d8b8e204d2267000

I get them using:

$ helpeth --p '0x5448fbf2c396a769c11268d2da8c9bfea8c86eaf16f98849d35484084c34137a' signMessage '{ "name":"John", "age":30, "car":null }'                                                           
Input message: 0x7b20226e616d65223a224a6f686e222c2022616765223a33302c2022636172223a6e756c6c207d
Message hash (Keccak): 0x440ead7b9ade79ab9423b43c219be92d3f5a29d42c62466bb234f91f16378115
The signature: 0xb980941815b6c4249b55893ac47542bb7e91ba099fd84e62c72ebecc2814697f6c847ef8df63b05e0e2af0296afebde15224b705a47f5cca19d8b8e204d2267000

Am i wrong?
Privatekey is for test puposes only

globally installed helpeth interprets hex as number

╭─kumavis@xyzs-MBP  ~/dev/udapp ‹node-v4.2.3›  (master*) 
╰─$ helpeth parseTx 0xf86c018504a817c80082520894e0defb92145fef3c3a945637705fafd3aa74a241880de0b6b3a7640000001ba01893f2731799dc436da31e092f75bece7bfbdb4942b60b106d61ec06f143aed2a075548818010ccd7fd3e3dd6172f072d4dec19c8956c735bdd34b4aea809ff6be
/Users/kumavis/.nvm/versions/node/v4.2.3/lib/node_modules/helpeth/node_modules/ethereumjs-util/index.js:698
      throw new Error('invalid data')
      ^

Error: invalid data
    at Object.exports.defineProperties (/Users/kumavis/.nvm/versions/node/v4.2.3/lib/node_modules/helpeth/node_modules/ethereumjs-util/index.js:698:13)
    at FakeTransaction.module.exports (/Users/kumavis/.nvm/versions/node/v4.2.3/lib/node_modules/helpeth/node_modules/ethereumjs-tx/index.js:92:11)
    at new FakeTransaction (/Users/kumavis/.nvm/versions/node/v4.2.3/lib/node_modules/helpeth/node_modules/ethereumjs-tx/fake.js:40:26)
    at Object.<anonymous> (/Users/kumavis/.nvm/versions/node/v4.2.3/lib/node_modules/helpeth/helpeth:333:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:136:18)

Does not install on osx out of the box

I seem to be running into a python issue when attempting to install this globally

$ npm install -g helpeth
        
> [email protected] preinstall /usr/local/lib/node_modules/helpeth/node_modules/scrypt
> node node-scrypt-preinstall.js                                                     
                                                 
/usr/local/bin/helpeth -> /usr/local/lib/node_modules/helpeth/helpeth
                                                                       
> [email protected] install /usr/local/lib/node_modules/helpeth/node_modules/keccak
> npm run rebuild || echo "Keccak bindings compilation fail. Pure JS implementation w
ill be used." 
                                                                              
                                                          
> [email protected] rebuild /usr/local/lib/node_modules/helpeth/node_modules/keccak
> node-gyp rebuild                                                              
                                                                                     
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/local/opt/python/libexec/bin/python -c imp
ort sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                                ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at maybeClose (internal/child_process.js:978:16)
gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:395:11)
gyp ERR! stack     at Socket.emit (events.js:189:13)
gyp ERR! stack     at Pipe._handle.close (net.js:613:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/11.4.0/bin/node" "/usr/local/lib/node_module
s/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/helpeth/node_modules/keccak
gyp ERR! node -v v11.4.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] rebuild: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging
output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/harrymoreno/.npm/_logs/2018-12-18T22_47_46_030Z-debug.log
Keccak bindings compilation fail. Pure JS implementation will be used.

> [email protected] install /usr/local/lib/node_modules/helpeth/node_modules/scrypt

perhaps an issue with the Keccak dependency?

python -V returns 3.7.1

key subcommands

It might be nice to break up the key commands so you could something like this

helpeth key --help
helpeth key generate
helpeth key convert 
helpeth key details 

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.