Skip to content

Instantly share code, notes, and snippets.

@ghoti143
Created April 5, 2018 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghoti143/69a4b0f634f099d1e9da0434d5b3970c to your computer and use it in GitHub Desktop.
Save ghoti143/69a4b0f634f099d1e9da0434d5b3970c to your computer and use it in GitHub Desktop.
> let {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')
> let privateWif
> PrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())
> pubkey = PrivateKey.fromWif(privateWif).toPublic().toString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment