{"_id":"eosjs-ecc","_rev":"38-c222a510dda8bc64a89980816d86ff6d","name":"eosjs-ecc","description":"Elliptic curve cryptography functions","dist-tags":{"latest":"4.0.7","dawn3":"4.0.0","edge":"4.0.4-168dae3.0"},"versions":{"1.0.1":{"name":"eosjs-ecc","version":"1.0.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eos_ecc index.js && sha256sum dist/eosjc-ecc.js"},"repository":{"type":"git","url":"git://github.com/eosjs/ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"browserify":"^14.4.0"},"gitHead":"0aa660331a01d8d10ca591b85ed65e5709c1d0c7","bugs":{"url":"https://github.com/eosjs/ecc/issues"},"homepage":"https://github.com/eosjs/ecc#readme","_id":"eosjs-ecc@1.0.1","_shasum":"38369d6f980507c6bd96393d5b3928859c89215c","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jamesc","email":"james@jcalfee.info"},"dist":{"shasum":"38369d6f980507c6bd96393d5b3928859c89215c","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.0.1.tgz","integrity":"sha512-KEZMDzpWJkgMIl2Ntud5SuzvJUoS/Fhd8BLtu6e+qoO45Zx0bJxFI0+AdRXvFbu0fNs/G1NaE3gw7K8oUgi/6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkevffJB63+kkoZw2h2BOPOGjhSec7x0+TnHNpoHPv8QIgc21B+mYI67wafemnb9DGZMf5Vx7F/W4YBf+v7ZKUPv4="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.0.1.tgz_1499097985195_0.6096561602316797"},"directories":{}},"1.0.2":{"name":"eosjs-ecc","version":"1.0.2","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eos_ecc index.js && sha256sum dist/eosjc-ecc.js"},"repository":{"type":"git","url":"git://github.com/eosjs/ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"browserify":"^14.4.0"},"gitHead":"4080569d1d079f238603fb5fbf582b6a6faa8a3a","bugs":{"url":"https://github.com/eosjs/ecc/issues"},"homepage":"https://github.com/eosjs/ecc#readme","_id":"eosjs-ecc@1.0.2","_shasum":"c512d33ab6dc7d7ff4a49ca635f8b14df7a545dc","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jamesc","email":"james@jcalfee.info"},"dist":{"shasum":"c512d33ab6dc7d7ff4a49ca635f8b14df7a545dc","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.0.2.tgz","integrity":"sha512-UjHxNSp8fWdtEQT3jepYI64ET9c6VnsV9qK4J6ZeUagNvcetysET3bKSlE/yxsh5QFhPYdaNyi59y9X7s3FKwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhqyOp/BvALS7qCg6cbmv1lO2EImhx2R3ytomPtXxdwgIgVwt6cvLtegYW2BrpZMRzy38aUCckkTgpJVOvfYoupgs="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.0.2.tgz_1499098189458_0.8878843663260341"},"directories":{}},"1.0.3":{"name":"eosjs-ecc","version":"1.0.3","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/eosjs/ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"browserify":"^14.4.0"},"gitHead":"012666d6322b78f55e59df90b27ee04a75f01749","bugs":{"url":"https://github.com/eosjs/ecc/issues"},"homepage":"https://github.com/eosjs/ecc#readme","_id":"eosjs-ecc@1.0.3","_shasum":"e5306068d8de2a49f4b773510b09ebaa5caf7a56","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jamesc","email":"james@jcalfee.info"},"dist":{"shasum":"e5306068d8de2a49f4b773510b09ebaa5caf7a56","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.0.3.tgz","integrity":"sha512-wgqJRLRenbhjV+VKQSHMNRUB2z7SspU7o8fKPEyHXogoTmbdhXQCI0epivAZa1Y0q5jE+TobhfXE6RxbilJWAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT1gSaspI14iMhXvn1Qr0S4jSYXrUsqgQlvM5LNu1huQIgVcBRM+quVCNTQYaFmAyPWHFZlyZCD6Pr6Y82MNB6nAY="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.0.3.tgz_1499099089284_0.9147477217484266"},"directories":{}},"1.0.4":{"name":"eosjs-ecc","version":"1.0.4","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"browserify":"^14.4.0"},"gitHead":"b92bf6a081a688db4cfec4c5b2f43a880c3edf8a","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-iYQI2BWEO903mfZ0wY1q2zCB1QLjOSXSP8Gs+uJUgbAHyeDo84/jaASVP6pHIxzkg7940J5PvCDLAK2Pxo6nzQ==","shasum":"55c415d63d85f20f975b492c84cb4faf8e83cac4","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyO57lUm4o0tElmtufliaZkEZdHXu5X7oUJZsZHbADewIhAKHbTbgtnC+4BOMsjZ1iLd3f5i+Q9zWnQSFOfxrTBWwi"}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.0.4.tgz_1504134551216_0.6481123371049762"},"directories":{}},"1.0.5":{"name":"eosjs-ecc","version":"1.0.5","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc index.js && sha256sum dist/eosjs-ecc.js","prepublish":"node_modules/babel-cli/bin/babel.js src --out-dir lib"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0"},"babel":{"presets":["es2015"]},"gitHead":"1d2e7041895cc420b716a145f75d50772c73208f","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.0.5","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-1H9+jgqkytDNR0kqVYD6SMNr2q+9tXgJRrE3lNRIdsL08feBOJJTnZDok+BFIDgjY4xj3mItE49/BIUBJrj5Tg==","shasum":"2beb289e433ae00744323e79cc434fbb140f89c2","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJArMSo2sJDUB4kNq4aJXGRcPqkqEx6faAVJMEFQ6D3wIgF4gsgLU9mgOKDhtqTpyWyzs0QKyDY6goVHZU2dDbAVc="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.0.5.tgz_1504296233398_0.8684489303268492"},"directories":{}},"1.1.0":{"name":"eosjs-ecc","version":"1.1.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc index.js && sha256sum dist/eosjs-ecc.js","prepublish":"node_modules/babel-cli/bin/babel.js src --out-dir lib"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0"},"babel":{"presets":["es2015"]},"gitHead":"bfeca7e3c272b0fab327a8ec0b64ee1a0ed55926","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-1jyTsL2DCKVn7bULCvXgZYcOyun5ezrZVA14dMP8/5P4E8pf9Yzx5HPvEefWwKlZt/dlq5oJvb+dLT4TeNKUaQ==","shasum":"33cd4a459f62ac792bcfc12507ac370ce625e0dc","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFYihzD/kerNu3hCTiYAyyOtjQaQZKmcAd4HxFVCi4eAIgCb0JmrYEBAM8cR4CpJWv1nSo13e/58Jjry865tSUDeM="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.1.0.tgz_1504644187267_0.1259769678581506"},"directories":{}},"1.2.0":{"name":"eosjs-ecc","version":"1.2.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc index.js && sha256sum dist/eosjs-ecc.js","prepublish":"node_modules/babel-cli/bin/babel.js src --out-dir lib"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"ISC","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0"},"babel":{"presets":["es2015"]},"gitHead":"55ab56e1b41cece48ff8b34f189a5d1ee13418da","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-eJ+md0n9Nv9eDuXrmvzu1mj7R99J2fu1zgSzDqBHXIzRsclJw7DAIOeuqSHTHyjIMVnWwELhwkSjo0zjhkvBQQ==","shasum":"5368714ebd8675e617efdb0bc83c463dfc34a049","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGWMDkODVRzqEvfJHilTnyNxSPcEJWR7MUKaGE7aQbaQIgU6EqH1ibZg2L1x4YGC/ALHBy/OH1QC/9sZjFrb90BhA="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.2.0.tgz_1505401161552_0.9553063912317157"},"directories":{}},"1.3.0":{"name":"eosjs-ecc","version":"1.3.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec index.test.js **/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run docs_common","docs_common":"npm run doc -- readme src/api_common.js --section \"Common API\" --shallow","doc":"node_modules/documentation/bin/documentation.js","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"000500fed841955887b8ac8b6c50172a7725ebb4","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.3.0","_shasum":"1b946ca858ad440e3d2fcbfd9afbbb4a82d3531e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"shasum":"1b946ca858ad440e3d2fcbfd9afbbb4a82d3531e","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.3.0.tgz","integrity":"sha512-7p/a3tNVJ0bWemhO+0XKUvcTODHRT4prDvHS8C2XEZKilkaToV6VX1anihFrjpL+BG6CaaHCL3uq0DZLszY2pw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj/s4v+Ln7KDnIJHS/5RvuhyCGdpCXlB3zzyZP4oLeQwIhAJnFUh2AmcC1VXuKcQvM4UdRnfOuDkiPaGGMNsLTjtu0"}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.3.0.tgz_1505775135659_0.8282914168667048"},"directories":{}},"1.3.1":{"name":"eosjs-ecc","version":"1.3.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec index.test.js **/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run docs_common","docs_common":"npm run doc -- readme src/api_common.js --section \"Common API\" --shallow","doc":"node_modules/documentation/bin/documentation.js","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"342255dd7912285ac942f323926178d24d8f28c6","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.3.1","_shasum":"ff01f15fb3edbc761091a3b41ca77e224aa18813","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"shasum":"ff01f15fb3edbc761091a3b41ca77e224aa18813","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.3.1.tgz","integrity":"sha512-ey3wl+mkGiidHb5gOtdhrhdOGhL+K1E4W1u8/8GoyoLWopicjUg7N+lRrjxakfvWTTogeJ461q7wRBNC8xFH9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRFLQJOafTqjdDsrmQdjy6TqGBt9llbrZ/qIBINfEUlAiEA3cWywMgyCjaujUTA28JIlPO19UwwsED6W5hUJG1emkw="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.3.1.tgz_1505775204525_0.9363574262242764"},"directories":{}},"1.3.2":{"name":"eosjs-ecc","version":"1.3.2","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec index.test.js **/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run docs_common","docs_common":"npm run doc -- readme src/api_common.js --section \"Common API\" --shallow","doc":"node_modules/documentation/bin/documentation.js","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","secure-random":"^1.1.1"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"df422092f2b98aff61ce08580fa9a54ac3f5073b","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.3.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-dQnlkw99WhHOpd+axNnt8N+uJ3MjxB+Z3XCofWfCoztGfPI0N/bCwXSe/L7lAdYXPxUNY95C83NjC3L5qSz8SQ==","shasum":"40c8f21caa3654d37b5526b1be959563964345e0","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.3.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBunBHArBHElWMjl/mnprNXNdsAcJ2hv2gnhkM3rS4w0AiEA+HumR5eKj5cpiaqF/0Ept+zL5pZbmrXhn/wIKSWN7qo="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.3.2.tgz_1505837809396_0.47703777463175356"},"directories":{}},"1.4.0":{"name":"eosjs-ecc","version":"1.4.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"001c4bcf688c0c39f1bf5b43151cf31375a0513b","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.4.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-C5zdvnD2vT/Io1fJSMcrElfMzM1bwtX0SMhZo9oNbJYB6/0R/1WXw1jxHfngIbmSNPP3q3eZNnsi+KC6uTZ/IA==","shasum":"921f3a5d378a3469758c2e2886cdf1e9baaf84ae","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGN5hLdMkHT0M0DcGo2I4F6pBkBPpbhWefdVhcY0qCAdAiEA3jtDE3UOe1JhWKYHomg2auhtPIsvoyHmO9bqoSa9cB4="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.4.0.tgz_1509061430437_0.27567677828483284"},"directories":{}},"1.5.0":{"name":"eosjs-ecc","version":"1.5.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"2746a77ab60cfc11b4bf9de3fc1d60f2fcaf0498","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.5.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-bbrazmTR8wlvPgUU7sEwE2iAkOL4XXVdIpTJoUnjfEFRUuqkOQ7ugMM4k7UMEmt1GFpBunTW1vquXO6mMjU3pA==","shasum":"ee02bfefc9d0098a8f7b42d4c99a402af835d649","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.5.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLcBbJ0ajvZcRG+M5P9+8KVMopGxCc07BjernBGBqDdAiBJpBbqmt8wzPcVEkSjNiX3pf40Y8Hu0WbO2OsnIr5r9Q=="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.5.0.tgz_1510592862798_0.9352612842340022"},"directories":{}},"1.5.1":{"name":"eosjs-ecc","version":"1.5.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"bcde538e730ebbb4e6d1b7918d8665f44d29fcc9","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.5.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-4toHsIEuNdFWJsRCQwHPzS2PpwMlOIRi4LcCsbKIy71kynVxxR/75+ZWr8nEdQt/Sa03gbTG/y5LI30my8G8SA==","shasum":"b92b9cc093f5f2f1c2a8738cf6e06de5a16d1f66","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.5.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBxhYWW6ICEADEaw/FVmgtK6Vv/tXpvo79B5JqDv2dPAIgCuRGgZ61Uh1NYCyGMpd9KsYEVVeZeaFD/SNvcc4NJxQ="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.5.1.tgz_1510594783761_0.1569131661672145"},"directories":{}},"1.6.1":{"name":"eosjs-ecc","version":"1.6.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","bn.js":"^4.11.6","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","more-entropy":"^0.0.7","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"07d3eab1eaf6567d14146a192074b99bb0a5657d","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.6.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-+DHpv23wOpyRemVb9ZJkW2iB8HY0vaetIhfRcSPCGL0HtltMBjjCDAykL9TgBSVIsO8GIyyCz/Y53g2wy6LrcQ==","shasum":"0d8d3d632d080a71efd9766aa89460c93b515a5a","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.6.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtjteFgOhu/Owwf+FX4PRxYYBIFP5LHI5QnL13swQx+QIgEVh4mYU9URoF0dWEiNx5xeTyHeVAPw9JkfxIWoak0BY="}]},"maintainers":[{"name":"jamesc","email":"james@jcalfee.info"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.6.1.tgz_1510844161798_0.14884623908437788"},"directories":{}},"1.6.2":{"name":"eosjs-ecc","version":"1.6.2","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"05b82c8a387133b16038be23453c98f5d0e0c741","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.6.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-edyg9X5bLGcFKLhNqwPnutEC7cIwnIFbj5oKVI3stMrfjQH430IxtvRXFKAPB+/zGHK6NmCw8OAP3lAEPCODVg==","shasum":"5a6fbbd92de362a2bf608dbf7eaebcebf6cce92a","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.6.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjDiJ5PLqUl0C9d8DcRcPLyLt1Do1dTg42yJUr38J4pgIhAPfHhxajar7yDg++SMF6QCIjHdVJWsVFaMkkGHIocBEO"}]},"maintainers":[{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"jslim180@gmail.com","name":"jamesc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.6.2.tgz_1512584332643_0.7368501825258136"},"directories":{}},"1.6.3":{"name":"eosjs-ecc","version":"1.6.3","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"13c4a6d00b8c5a0091d75e3c96d51e0ebf919966","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@1.6.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-PlprSglACtrUW0+ftPGJfURB8NB5kFi7J/cBDnBMgj+grOQ2VpVaRngPIdAsZ/g/4P72ycfs934NrT/MBcxzow==","shasum":"ee336777562d9462517f55fd0982018737f3143c","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-1.6.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/mstm+iDskPSYT2nDchQsI8qP7oL+eJGfq6/X9gCR3QIgf6sXSv6JdaZBQVPDf3a+RlzwZQWl0p4IylLD1S5ihKQ="}]},"maintainers":[{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"jslim180@gmail.com","name":"jamesc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-1.6.3.tgz_1513182588217_0.3310952023603022"},"directories":{}},"2.0.0":{"name":"eosjs-ecc","version":"2.0.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"mkdir -p dist && browserify -o dist/eosjs-ecc-test.js src/*.test.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"71c9ab6cbea4bd77c105f2b85cc154034a7ee672","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-283e0So7+wtYSC2WOPw3imo9n6Lawxytw22AQb38MLrDmTuVILt8i0vQj6XzLNVKIcz798FMlp3hTooxL2Ja6g==","shasum":"a8c025626e1d056facb39204c2a30bb5986af94e","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbqhqfqUjarZsAP2MVvXmC7AcFPWyzIhpLiJzG6d/K8AiB5x0PRGF4biwP4d6BdeYgX6jzd4lM21OE1gUFeEvqbhA=="}]},"maintainers":[{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"jslim180@gmail.com","name":"jamesc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-2.0.0.tgz_1513275002527_0.6240769745782018"},"directories":{}},"2.0.1":{"name":"eosjs-ecc","version":"2.0.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"mkdir -p dist && browserify -o dist/eosjs-ecc-test.js src/*.test.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"gitHead":"eb0624f167108bd168103067a9af450751d8eb27","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@2.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-rf70MKEEi9b0BNqUf7LPBjoU4cn1yIkiavIE77hUUFmbEVjZDB7TW3I5iycUgFFGmLIxryMm9OnGm/6Z4d9AqQ==","shasum":"b651efae2bfe5860cb08e362c5bb45de4f2e2eda","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4SZyJ67B3xRNcfF4JapbiiA0KsKmt19k0J8o+rvv0hgIgZ9kM3cQAsJ1hM9MOed3nYwP48w13etpPij67P88jMe4="}]},"maintainers":[{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"jslim180@gmail.com","name":"jamesc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc-2.0.1.tgz_1513277881195_0.02832854352891445"},"directories":{}},"3.0.0":{"name":"eosjs-ecc","version":"3.0.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"mkdir -p dist && browserify -o dist/eosjs-ecc-test.js src/*.test.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n**Parameters**\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n**Examples**\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log(privateKey.toString())\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n**Parameters**\n\n-   `seed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n**Examples**\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n**Parameters**\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n\n**Examples**\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before signing (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** hex signature\n\n### verify\n\nVerify signed data.\n\n**Parameters**\n\n-   `signature` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n**Parameters**\n\n-   `signature` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** (hex, etc..)\n-   `data` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before recover (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### sha256\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `encoding` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n**Examples**\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\nReturns **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromWif(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nnpm install\nnpm run build\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n\n# Configure\n\n```js\nconst {config} = require('eosjs-ecc')\n\n// Change the public key address prefix\n// config.address_prefix = 'XXX'\n```\n\nSee [Config](./src/config.js)\n","readmeFilename":"README.md","gitHead":"c36e6d55943eb0c8cb1211991834087d49d5ebde","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-939GTY0zqpGe7/BrpvQEXhU89+HZK/DQ3wpmMzW2OekYBR2heZHgCmz3G5XSjG1m27fLauTQicZmmtekKcxSKQ==","shasum":"cc0a11fa8f50b720d9111ab383a3f3c554f17536","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-3.0.0.tgz","fileCount":43,"unpackedSize":1978280,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0v6cwjK/Jq4LCYZGNij/4sQoYmfBvU6MxQSx9OddeQgIhAJD5R5S6wz2aVGbCL/HFpUiM4fUkhjemxpdVPKh5bcd5"}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_3.0.0_1520549819042_0.7897451414492223"},"_hasShrinkwrap":false},"3.0.1":{"name":"eosjs-ecc","version":"3.0.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"mkdir -p dist && browserify -o dist/eosjs-ecc-test.js src/*.test.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n**Parameters**\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n**Examples**\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log(privateKey.toString())\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n**Parameters**\n\n-   `seed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n**Examples**\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n**Parameters**\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n\n**Examples**\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before signing (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** hex signature\n\n### verify\n\nVerify signed data.\n\n**Parameters**\n\n-   `signature` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n**Parameters**\n\n-   `signature` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** (hex, etc..)\n-   `data` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before recover (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### sha256\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `encoding` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n**Examples**\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\nReturns **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromWif(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nnpm install\nnpm run build\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n\n# Configure\n\n```js\nconst {config} = require('eosjs-ecc')\n\n// Change the public key address prefix\n// config.address_prefix = 'XXX'\n```\n\nSee [Config](./src/config.js)\n","readmeFilename":"README.md","gitHead":"31b43e2f06c800e17192f352f32ab23c47ef4ab1","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@3.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-DfyJEB0byztCfKChf3jKWAkbuqrg06y3OTjD5U6B0IfBCb3ydJV/m/Kf3erh4Fsie4TIvWNJmlaHMyIzgGwlXg==","shasum":"399191d0b56a4c14f52fa26d520795c6f8ef8c0a","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-3.0.1.tgz","fileCount":43,"unpackedSize":1978274,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCygFLfcAnL6W7lo+ISKXEfRxL48YwOjVE8xysbjbIhTAIhAIsfRGz1owMOCoOjsNe2gx9LBaZDdQW7B9bpuifmcQaQ"}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_3.0.1_1520619230676_0.7169725781508152"},"_hasShrinkwrap":false},"3.0.2":{"name":"eosjs-ecc","version":"3.0.2","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","coverage":"istanbul cover _mocha -- -R spec src/*.test.js","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","prepublish":"npm run build_lib && npm run docs","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","documentation":"node_modules/documentation/bin/documentation.js","build":"npm run docs && npm run build_lib && npm run build_browser","build_lib":"node_modules/babel-cli/bin/babel.js src --out-dir lib","build_browser":"mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc src/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"mkdir -p dist && browserify -o dist/eosjs-ecc-test.js src/*.test.js"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n**Parameters**\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n**Examples**\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log(privateKey.toString())\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n**Parameters**\n\n-   `seed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n**Examples**\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n**Parameters**\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n\n**Examples**\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before signing (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** hex signature\n\n### verify\n\nVerify signed data.\n\n**Parameters**\n\n-   `signature` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n**Parameters**\n\n-   `signature` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** (hex, etc..)\n-   `data` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before recover (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### sha256\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `encoding` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n**Examples**\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\nReturns **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromWif(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nnpm install\nnpm run build\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n\n# Configure\n\n```js\nconst {config} = require('eosjs-ecc')\n\n// Change the public key address prefix\n// config.address_prefix = 'XXX'\n```\n\nSee [Config](./src/config.js)\n","readmeFilename":"README.md","gitHead":"d38396c4ea70f07aa32155390e152f33418352eb","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@3.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-NHrqVs0r8BFBsBQRPHuW2OL6Jij34jOGSzGodHGrmQmaATYE962baJWSSttJ6/zu7H8WR3wGK8c896FZxj81og==","shasum":"8f38ec8464fd6e189838285311aa80634645bc85","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-3.0.2.tgz","fileCount":43,"unpackedSize":1978198,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVLWGuYnwJ2HX6AmjKjac38RvpsHem69PP9P15aHggkgIhAMOYvXbvJd7cyPDgW3qvDY9z8kbY2BucJrGBt4kgSiwt"}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_3.0.2_1521813037082_0.9568817665644163"},"_hasShrinkwrap":false},"3.0.3":{"name":"eosjs-ecc","version":"3.0.3","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"babel src --out-dir lib","build_browser":"npm run build && mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc lib/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"npm run build && mkdir -p dist && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","prepublishOnly":"npm run build_browser && npm run test_lib && npm run docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n**Parameters**\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n**Examples**\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log(privateKey.toString())\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n**Parameters**\n\n-   `seed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n**Examples**\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n**Parameters**\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n\n**Examples**\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before signing (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n**Parameters**\n\n-   `signature` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n**Parameters**\n\n-   `signature` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** (hex, etc..)\n-   `data` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before recover (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### sha256\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `encoding` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n**Examples**\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\nReturns **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromWif(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nnpm install\nnpm run build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n\n# Configure\n\n```js\nconst {config} = require('eosjs-ecc')\n\n// Change the public key address prefix\n// config.address_prefix = 'XXX'\n```\n\nSee [Config](./src/config.js)\n","readmeFilename":"README.md","gitHead":"0126e0c7586b43316bb5e2485626c0788e6cf226","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@3.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-1ElqGb2nd6nBCok1RDrHQYBnqgP0iXay2NdyYQLViYogMWKUiG80dXfAixCZZGlb68BEoWvX4FdKA3X58gcHtg==","shasum":"7cb30f56d265de4bf7eeb9ac8663e7ff7b456753","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-3.0.3.tgz","fileCount":65,"unpackedSize":1809831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa5yfUCRA9TVsSAnZWagAA4hAP/iKq6w4RiD5yVBmXQe8U\nA6WPSPbwskkk4AMFlFq0M9eCBNUqhBIhxE286rJWyzjYYXLhLqlsb2fKHK2I\n6A2isbTcs9OUbaksuSus7TZ4cxIm5Y07L7zOysoYPJ5199c2l9ZRzvueerFU\nJwam998mmMjpIWflZ7hHrlINThH++rsXkTU6Dov6MqazlutKjYNhaB2IKqIF\nWqyyYBsBNU+ZfTftAeFO4rpcYINYf7+MgdRTEKCDBhJtzXaS5Z7uhGhNBy2f\nrCu06o2W9RKzf1s7PXK+mvyZhfox1n5o4eIrMEB0vOcyuNOQmQozKJwrJXEC\nOuNhyblnRvsog4cwNYx8w+UFyJOWgfOTtk00KfT/v5F2paZZ9UkUnaCeOrPz\nW46Pj8AvXOwc2625Hm3EfnLKhdg7wwzsemLbi3JIsI7BsOhZL5qRKrbkjHCj\nyUpxVj6IeNlPN/bflKgiDX71VmuyWL3p23MLPQiLseGQdgbGtwcZj9kicYrm\n127AFwpFaHp8rIGd9Aya3x1TeTzb7TPOlbiF5SBc1w0ahdaJdOo6P478Z69M\nxAMXtPKnLhTP54srdOtUZw19kQX0yeLc8AT0ZeRrX+MxUMXuZs9vBUfqjzGX\nRMNBAJ4hI7F8ilVcsEQTh6fL6PRP/XPyod3RTxzEM0QjQTZeKXgioLyipeSo\nH1Cv\r\n=SJsU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsiLeOU+us9vKS29LwHmpnj4780ZmmuxmwTQLElyuHTAiEAoHTMi0X8BrH4aXr+k7fOM3xtlR8rvYOkf7fEQL9CoG4="}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_3.0.3_1525098452380_0.28574060473313634"},"_hasShrinkwrap":false},"3.1.0":{"name":"eosjs-ecc","version":"3.1.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"babel src --out-dir lib","build_browser":"npm run build && mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc lib/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"npm run build && mkdir -p dist && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","prepublishOnly":"npm run build_browser && npm run test_lib && npm run docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3"},"babel":{"presets":["es2015"]},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n**Parameters**\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n**Examples**\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log('Private Key:\\t', privateKey) // wif\nconsole.log('Public Key:\\t', ecc.privateToPublic(privateKey)) // EOSkey...\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n**Parameters**\n\n-   `seed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n**Examples**\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n**Parameters**\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n\n**Examples**\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if string) (optional, default `'utf8'`)\n\n**Examples**\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### signHash\n\n**Parameters**\n\n-   `dataSha256` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or string\n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if string) (optional, default `'hex'`)\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n**Parameters**\n\n-   `signature` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `encoding`   (optional, default `'utf8'`)\n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n**Parameters**\n\n-   `signature` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `data` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** full data\n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if data is a string) (optional, default `'utf8'`)\n\n**Examples**\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### recoverHash\n\n**Parameters**\n\n-   `signature` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `dataSha256` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or hex string\n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if dataSha256 is a string) (optional, default `'hex'`)\n\nReturns **PublicKey** \n\n### sha256\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `encoding` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n**Examples**\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\nReturns **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromWif(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nnpm install\nnpm run build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n\n# Configure\n\n```js\nconst {config} = require('eosjs-ecc')\n\n// Change the public key address prefix\n// config.address_prefix = 'XXX'\n```\n\nSee [Config](./src/config.js)\n","readmeFilename":"README.md","gitHead":"863bb91d9dee1c282165f1bf408c69b2ef749e24","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@3.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-/9Ooc3NHIr74gZ1Oq8wsNec+4SiTlbreD34OzdJKp5vidWuBTKWcmrw5boedF+xQ6OUnSD/uDmxx2U0CRjfKOA==","shasum":"3d6b9008d622ebf5a0866b69aafca926b0f4f761","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-3.1.0.tgz","fileCount":55,"unpackedSize":1674498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa55JtCRA9TVsSAnZWagAAn1wP/2h3LhST8au+xtlVrkop\n00EwZAiCBw/nZln01uEqSy1WANsmkd90Z/xJqcQUc6pg56UNTSn/0aNDVRFO\nf4OaC4O0TWJZVai8CuzavYv4EhfzRrJpGqPh6cpjuQnq/hv7soaK233Cabwl\n7M0WhzhVhEpv/wVyINlbKWWjKVZgJKSmqbuLmkS3Algk8b2jmvBANdUsu6Zq\nIzgf1XjdYpyVZtHYfq2VmLZDSKpbXrFQ0en0XLq8OaHaz7mliPlmuppfXPHl\n4x6S8x8xBiUOX+2Cq6IzVdmQZeNlMug2xMEIDXvA9ZZM04rfa2gtR2enmyls\nEUrWBtB5xbhjbjS1uVykTOIyKHjtlWK7KwbJLmG7Xj7NHJcADDAHNVOOl6yi\nvGkMob2wq91ZEYkHzOmmxHkUKJsZZZ4mtpER9iD5DprT3uGqzWIOqea4QCE/\nCBKMRYsibmvcUYEX/vlGSCdYwSv0LUAa9Yu6WPP64B/BdPpVK/jM5ALQaUFb\n15XM4QIRzSU2cCVq5lrzw6svBxMvfmrI4C6XP5ILSAuPMOEwetTR2O92hq+g\nHCfqXG4CvoBG4AWx0895diu4rXw82RxaMQDa/1mJUMK1fCPARFo58aGm5Bu1\nnydDJbjCZUzswKDxF8oOPwfd5yhCeO8DnPaW968k5eHIMCQbGv2BJ3FHgNyo\nYAMY\r\n=C6AB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGezyDvmv4YZz24p1u6xha1VfgoMvD0mkojQa2MQiMoYAiEA8ZAqUSTJJ63gsm6/J3cyk/tCdtYiA0HYDndu0MVnyXQ="}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_3.1.0_1525125740819_0.7901126579594673"},"_hasShrinkwrap":false},"4.0.0":{"name":"eosjs-ecc","version":"4.0.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"babel src --out-dir lib","build_browser":"npm run build && mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc lib/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"npm run build && mkdir -p dist && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","prepublishOnly":"npm run build_browser && npm run test_lib && npm run docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"^3.0.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3","nyc":"^11.7.1"},"babel":{"presets":["es2015"]},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n**Parameters**\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n**Examples**\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log('Private Key:\\t', privateKey) // wif\nconsole.log('Public Key:\\t', ecc.privateToPublic(privateKey)) // EOSkey...\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n**Parameters**\n\n-   `seed` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n**Examples**\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n**Parameters**\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n\n**Examples**\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n**Parameters**\n\n-   `wif` **[wif](#wif)** \n\n**Examples**\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if string) (optional, default `'utf8'`)\n\n**Examples**\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### signHash\n\n**Parameters**\n\n-   `dataSha256` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or string\n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if string) (optional, default `'hex'`)\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n**Parameters**\n\n-   `signature` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `encoding`   (optional, default `'utf8'`)\n-   `hashData` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n**Examples**\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n**Parameters**\n\n-   `signature` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `data` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** full data\n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if data is a string) (optional, default `'utf8'`)\n\n**Examples**\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### recoverHash\n\n**Parameters**\n\n-   `signature` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `dataSha256` **([String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or hex string\n-   `encoding` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if dataSha256 is a string) (optional, default `'hex'`)\n\nReturns **PublicKey** \n\n### sha256\n\n**Parameters**\n\n-   `data` **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `encoding` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n**Examples**\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\nReturns **([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromWif(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nnpm install\nnpm run build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n\n# Configure\n\n```js\nconst {config} = require('eosjs-ecc')\n\n// Change the public key address prefix\n// config.address_prefix = 'XXX'\n```\n\nSee [Config](./src/config.js)\n","readmeFilename":"README.md","gitHead":"5a5ba5caab7e0a57e3ebd33da78d4834ee1b4c62","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-lA91P8qvuEaP4pBnTpm5Lw8iX6uRViRHLJ41wzabiVcz5Oj482gEg4HlNqy5ebl9KWAHhSHyoPgAR2C0iQtTIg==","shasum":"4d874c62906a8920614cce016ac6837b23998463","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.0.tgz","fileCount":55,"unpackedSize":1673942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7Kp4CRA9TVsSAnZWagAACugP/1btO5jwkIeEO50JgL6k\n1m/iUp9jlEdFpMPOwyamMjbsDzxH+vEq+/z5tEDq5QyLc4MwPtukDUpeJoLq\nlbvEJ3xwAEGv3JmR2DNctf5B4LiwMXOaOb0cJundXQAPTK1+Q0SArfAp8Sf6\nLHWCO7YoldHPLqDgtwCEvMRiT8jVo1KfiyDmtmnZP+qkXKidwAGhhHxVprkg\nHX8lbldHyi3okHGOBYZq1LkUgR1J6JE21mqox79ykSraVcVHy7W2gIpke/CE\nkgsZdMgpyDFGyL/DAd4YBpMjhplwQNNTCDbRoOOgEAmHQTL++Ypiduc73qDX\nIi1i/F+0cUFYtmNhb23OF0bXZnyyW7EqzPBlNnpLZr/j7b5NkykZDGvCCZPF\n3xcvfTRUH6jsyM4V3lCGHvqOUOnV5WJ8g/KCn+V/L+kvVbgcpdY4mZf4sE0d\nPMLODUXcMqU9AZN4He/jI1NN2tgnLal2rcbse9dCrWH2ZC65FaDEioTPu6Ct\nB21XoQcHSHqZV1MWkmRiS86XucRamMhQjLrkvGsyXZotWqWvH4Fx0c0kZ1K2\n+ZJtAKqbeG+kbDURVxlIFRniWU7z6TFq5dx1V1l8KoW4wnIFF+zszqYlvqHr\n7tBJ/lhx0NWkyZ7oVfNXzu5C7jhTuyflxNjMVARQ+s3SDrsv9eZELDQq6udW\n2WNk\r\n=wmbX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE+nALn8h9NEZShUDitvA5r4/8k0AUyCt/lCSgxRLBBQIgM3ptupBOLCMr1xR9kFijOBjta3DAJXTM9AeYwDHaFjo="}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.0_1525459575857_0.5202394286011225"},"_hasShrinkwrap":false},"4.0.1":{"name":"eosjs-ecc","version":"4.0.1","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"babel src --out-dir lib","build_browser":"npm run build && mkdir -p dist && browserify -o dist/eosjs-ecc.js -s eosjs_ecc lib/index.js && sha256sum dist/eosjs-ecc.js","build_browser_test":"npm run build && mkdir -p dist && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","prepublishOnly":"npm run build_browser && npm run test_lib && npm run docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"^3.0.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3","nyc":"^11.7.1"},"babel":{"presets":["es2015"]},"gitHead":"dfa56afa6e28b93f9bce1b3b27ab8758589043c0","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-j6241infAq5pCBl9vzZ6mKQ/yRdNz60Zwv4FWh4H/34q2HR9sTFLlyT+UHfe6eD2HLEqDvJ6rntFeHArG+wDKA==","shasum":"0a118000d3a78b9eab1432dd758f705810461adf","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.1.tgz","fileCount":55,"unpackedSize":1691992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBtbnCRA9TVsSAnZWagAAFlgP/0plIISsiGJp6OsrYgu+\nKTplJEVf7fb1Avdl8CLFOpKH2l0uCdU9uE0IBNAGkoqjXc2vvyq3u4d+EHFx\n8jurrx6Hcfa7XGVjF1ko5yd/rmmvtoVvkv6HSd93Ys4mwjWgTkSKwRcst1qf\nIEgnARHDeiSC39y2WfOo3gZ1Bg8q4IjutXn7f+qgWLV7+wG5QWP10cIVg1Kj\nI3ub3xIrfHA1mtl5BM4t2gSaEKKc7BeW+8kvRc4MbeXOd4DlL6PCFHuWJn5+\n7nCICNvhhuNMKYoP/Ev1HCgAyksyu0CxovUkbpIw8Iju3WUVJ8JDZ1MSM+V7\n59O2SujxSnIXe4AkPlPZlOi+vIrSrGO2DJwjNoSre4p9MWZLVM+NrKDj3RmG\no2sqmjxiza03KfdhBqrgRmjEhXXKdVrCClZskVnxtSsZY2H6xLqGjqydmrNC\nTBnNfP/93b287PjVfJpCLVMs7hu50TSFGyxL0eHr+mcU2wbc6yGje+sYmC1P\nIAR/NHRo9Aef+PQ76RZlfBAqs0ngX8OVTWWz7hDblz7AwNrKnFEem6K5GAaQ\noyZ83jaVA7nFQqn8B+hoMxdRGXlIRC8qXR9joh/xFGsZM+vHjqSL5kpC2mgI\nk8Km5HNzGSiIRxfuvIxT9YJVSTmd4C7ZRlEZDsEW19PkJvqQaakRyMc0ONwO\ngw9j\r\n=2ieL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGu+vn9B7aEdSR2Q2fIROEXjPOKH6tVWeB3+mFDPoRtCAiBlZHfRg6dPtSgkZEPXzT80Jf92y3tDt2yffYiVGO7OYA=="}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.1_1527174885850_0.36819923850063696"},"_hasShrinkwrap":false},"4.0.2":{"name":"eosjs-ecc","version":"4.0.2","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","files":["README.md","docs","lib"],"scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"rm -f lib/* && babel src --out-dir lib","build_browser":"npm run build && mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js && sha256sum lib/eosjs-ecc.js","build_browser_test":"npm run build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"uglifyjs lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"npm run build_browser && npm run test_lib && npm run minimize && npm run docs && npm run srisum"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","browserify":"^14.4.0","coveralls":"^3.0.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^3.5.3","nyc":"^11.7.1","uglify-js":"^3.4.2"},"babel":{"presets":["es2015"]},"gitHead":"b59d750cd3ecb7699f2309b044a172dc445bf44f","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.2","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"jamesc","email":"jslim180@gmail.com"},"dist":{"integrity":"sha512-ATfS036BEEyJYS98/of1/KnC0TLzFUEWDWthtIxD+5SuYD7FrPpJTS9qdfAWvzlxV3zzVxTh3eQryqS637qjAw==","shasum":"89b2fc019b2632ef294b94d4f34dbd540da9763c","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.2.tgz","fileCount":20,"unpackedSize":1228713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbMsv2CRA9TVsSAnZWagAAFOEP/RvOHBehIXOT++/2YK2t\nOJ4KTG9sg5W4wg0ETopdBBOHWgxDteYH2bRwrg8y6Kn+4wPKmS1PB/YAw2An\nnJKaHl/2nemt95tP/iYGQPti6Ti5b0HSYa6S6uHSNwiXBY7L84Q65zz3Kzg1\nvn7Sd5PyU5bgY08zoyWIXJPgD+GmXizn8/nYvX2nqp4f8DM+P4QAPIeIHIqn\n3XtrHYzehkuSzfxuaovCWVEUFGryS0cegzgNP+wqLMTZkARamNALTDUsKf7F\nDJvjoVKY37fj8eEjMftJ1migJoaJh4z+k+7eujidHdHEUJdS8OuV7zQl0pV6\nw6hl9ukvqiJV7cIUCE2XOMbp6nt8aCTLjCknz9AuQsOC5Y0VyXijpTISRtqe\nyKlhkvXQqr6Lrbv11UFBlOQ9DzPKKPFNVMNEd+OJSNlCv/kogDH6/cSGzlT/\nsEKKVcjGPlhpQQLn8HWS3TmRNZf3jbUV3YO5q0m5yJHyQ2elAJqWLswb1dmk\nGVye58zGp01+16k9MYirPOubMPamklg2KL8PoXW2LkD5U60SDs+Av5OqNafX\nSF94lPMOmpz6pSnD8V6uI7ZbN/gwfCGfO3CGAOPoyajzBg/c1bYbY8nKOxjq\nJm/sZLjshnNvwy0qI4txPuOI5UOuMcjpFCFdHEt6unF7FUpula0IL1R9sJa5\nO/sc\r\n=FAPo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAK4n7xXjjSVpiX2klh5uPVDMGMtOWi0R06eQYXzLDMHAiAp2t4nixkgQyHKA33cHt0LToUQRnXVKDnMcM2qIth2/g=="}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.2_1530055670591_0.06523835459428806"},"_hasShrinkwrap":false},"4.0.3":{"name":"eosjs-ecc","version":"4.0.3","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","files":["README.md","docs","lib"],"scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"npm run build_lib && npm run build_browser","build_lib":"rm -f lib/* && babel src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js","build_browser_test":"npm run build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"uglifyjs lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"npm run build && npm run test_lib && npm run minimize && npm run docs && npm run srisum"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"6.26.0","babel-core":"6.26.0","babel-preset-es2015":"6.24.1","browserify":"14.4.0","uglify-js":"3.4.2","coveralls":"^3.0.0","documentation":"^5.3.2","istanbul":"^0.4.5","mocha":"^5.2.0","nyc":"^11.7.1"},"babel":{"presets":["es2015"]},"gitHead":"8aac2e54fc45eb39b457407ae563d4f038131e28","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.3","_npmVersion":"6.2.0","_nodeVersion":"10.6.0","_npmUser":{"name":"jamesc","email":"slim2k@protonmail.com"},"dist":{"integrity":"sha512-WC9G+SJ5jwKibuH/ihWWyqbqbn3LcFqUiqh4hRaQPRbRNIHRqJX4ROK5BluLSL9kSGsk4FPnT0CmcapyiPsF3g==","shasum":"034608e1b9f802b624c16d4a93bacc51dc17e8b3","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.3.tgz","fileCount":20,"unpackedSize":1232000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcjDtCRA9TVsSAnZWagAA8vgP/0y/FMKg/VLXqwiWtfAh\nqV/OUYQkBsUZpAxzC7CFpnPHAp1osGCyohuDGwwQ+kbMsA3I+jlU3Ub3KliH\nyw5QJ0IrVba7jBVE4tpfCmt0TGpbfb9IjiruIC0oiuKNZUHGF1p8gSPDjLfv\n/ZtdC0UIXotPW1W2m2OS8T2mGnXQJlntNgl6AGLflpGcJEKwKEG7Khuvykvl\nByKI4YFOHmHRa9gF2AQB2I2waaiy5bJyCWHT3iuzAquIrycNQ7hmdplgQhGY\n77KqqRdoJ07LMsNyJpnpbZ++gQVqnd59EvdpsaU377EtHsNyKleH80pcrlz6\njOnzrVeyWoL6BwW83QSyXvMGUQE46G4ZgsXrVtIgKXHimtWnOoL247zlL7+a\ne7JpuEK9+H580rTvo6Oq2bqDejPUOJujwMBHaT23U1wid9IyesyhD/WVWFAl\nA5Qlb1kgFuiG1aOczx3mJtQyk9jQzWwExVC1hoWF+VUGpigPyO03H18vqDtW\nz8/RfxDaHn/zyGxC4CTzuaBQlocGzRIU56csnZiVrkoa72CXQgXenByhwvG5\nVPoFe5bUkprsYoqpid79BUGfVLJmJ8S/aIOUaxMx1U2r9I8NiAesqnpX/NhV\n4yL8Y9MrcNwifwS6uglNhOIxhpmtqZKoK6Mq9NxXh98Ok5W+VbD2chx2WwtP\nKc3X\r\n=YXfx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+EiZF3ero7Kuu/r4wd/bS38TF9WS/JcdYFkRRGkwbqQIhAM/fC2db1z9q1AAwcWhxVuvBtu/EMwLcoP4hKso5ydU7"}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.3_1534210284663_0.8162685925602542"},"_hasShrinkwrap":false},"4.0.4":{"name":"eosjs-ecc","version":"4.0.4","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","files":["README.md","docs","lib"],"scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=html npm test","coveralls":"npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"npm run build_lib && npm run build_browser","build_lib":"rm -f lib/* && babel src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js","build_browser_test":"npm run build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"uglifyjs lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"npm run documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"npm run build && npm run test_lib && npm run minimize && npm run docs && npm run srisum"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"bigi":"^1.4.2","browserify-aes":"^1.0.6","bs58":"^4.0.1","bytebuffer":"^5.0.1","create-hash":"^1.1.3","create-hmac":"^1.1.6","ecurve":"^1.0.5","randombytes":"^2.0.5"},"license":"MIT","devDependencies":{"babel-cli":"6.26.0","babel-core":"^6.26.3","babel-preset-es2015":"6.24.1","browserify":"14.4.0","coveralls":"^3.0.0","documentation":"^8.1.1","istanbul":"^0.4.5","mocha":"^5.2.0","nyc":"^13.0.1","uglify-js":"3.4.2"},"babel":{"presets":["es2015"]},"gitHead":"2cd505ccc717913b813488bcd652981203bb7586","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.4","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"jamesc","email":"slim2k@protonmail.com"},"dist":{"integrity":"sha512-9wAYefts4TidHOu+eN9nAisZdWpUzlUimZrB63oP7+/s4xRNJEn2Vvep2ICRODpxpidbshM1L7WaSYW9oiV5gA==","shasum":"431450f30a6f73088ff5d7ba1ebdfe967a5ca4ab","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.4.tgz","fileCount":20,"unpackedSize":1235698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfVq0CRA9TVsSAnZWagAARlgP/RqZQMlHQ1sO9AWsJ6aG\nfFOqywFNJI1rDg1TozkPBbea+ZhWn7yQMPmuvx97W44C3BZFvrJ0/uw4Pdem\nsTHDPDl0Y1TTwi0ucr9S/4sjEQmcwUKWk1yisiIEMd9w2xhjrK9wLZZkuui6\nzMFIW6XEasuh+fJ9S0UCpe1idA+619v7yzHPpwLL+g1OB9wOa0/WXOUM7HY7\nHbaXdjsOD15B42lW0q9MTccQK80ZLtqt7xTlN/I/zqidEIqTbgvDePl1aeUS\nTYdX+13x0coBhv8yYbj56BIikMVBnhsHEM7OzPcmjGk+fUfgvMuDETprobVa\nB4lkani9/pD1ppMkCcMDVpgfpY5LV4ZbG6DOpSQ7ZiZdXAPjNzmB7/7DTdGO\nrmZ6PK101hEhI310nYUKMRG0P/Cf5qvHbIukYOULYEWlL4pMrkQNzliu09CQ\nexo0az9OYBS8pzZ8tYu3ZyQ7UkDk4ZK3UWw+JOT0An/xfPYuffxCyHdBwsEz\nkPhws1jVe7WeWLnYHSnWrqgWJUjQRrTbZg5klr6IPKKVZE15Y8aMPqUnhWzE\nYIK0t16Nq5giUIs95TuJLm2Wdk83486RQHLOiea+4c5e/HYUEBDSB0ziNTZt\nFhXw/IkupIN4RwkAS7LmxjcORpHUlmySGOJxdpJDXStgEgFmbsKIIBl7Akge\nbt3v\r\n=QyeM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3ep95iLK4LLJ/4SvXpg35RpPz6zOdyHPXdRjhu12+UQIgAocoSjG9ZG4+2h3+nS5pAcNyFaHlIoO8xcUGZltacDE="}]},"maintainers":[{"email":"jslim180@gmail.com","name":"jamesc"},{"email":"serg.metelin@gmail.com","name":"smetelin"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.4_1534941875434_0.8645661845337183"},"_hasShrinkwrap":false},"4.0.7-ea61ee8.0":{"name":"eosjs-ecc","version":"4.0.7-ea61ee8.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=lcov --reporter=text npm test","coveralls":"yarn coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"yarn build_lib && yarn build_browser","build_lib":"rm -f lib/* && babel src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js","build_browser_test":"yarn build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"terser lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"yarn documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"yarn build && yarn minimize && yarn test_lib && yarn docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"@babel/runtime":"7.4.4","bigi":"1.4.2","browserify-aes":"1.0.6","bs58":"4.0.1","bytebuffer":"5.0.1","create-hash":"1.1.3","create-hmac":"1.1.6","ecurve":"1.0.5","randombytes":"2.0.5"},"license":"MIT","devDependencies":{"@babel/cli":"7.4.4","@babel/core":"7.4.4","@babel/plugin-transform-runtime":"7.4.4","@babel/preset-env":"7.4.4","browserify":"16.2.3","coveralls":"3.0.3","documentation":"8.1.1","istanbul":"0.4.5","mocha":"5.2.0","nyc":"14.1.0","terser":"3.17.0"},"nyc":{"temp-directory":"./coverage/.nyc_output"},"babel":{"presets":["@babel/preset-env"],"plugins":["@babel/plugin-transform-runtime"]},"gitHead":"a9a285a89e53065c2cfa67f3bc29a6fe401204b5","readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Include\n\n-   Install with: `yarn add eosjs-ecc`\n-   Html script tag, see [releases](https://github.com/EOSIO/eosjs-ecc/releases) for the correct **version** and its matching script **integrity** hash.\n\n```html\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <!--\n  sha512-cL+IQQaQ586s9DrXfGtDheRpj5iDKh2M+xlpfwbhNjRIp4BGQ1fkM/vB4Ta8mc+f51YBW9sJiPcyMDIreJe6gQ== lib/eosjs-ecc.js\n  sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ== lib/eosjs-ecc.min.js\n  sha512-eq1SCoSe38uR1UVuQMwR73VgY8qKTBDc87n2nIiC5WLhn1o2y1U6c5wY8lrigVX7INM8fM0PxDlMX5WvpghKig== lib/eosjs-ecc.min.js.map\n  -->\n  <script src=\"https://cdn.jsdelivr.net/npm/eosjs-ecc@4.0.4/lib/eosjs-ecc.min.js\"\n    integrity=\"sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ==\"\n    crossorigin=\"anonymous\"></script>\n\n</head>\n<body>\n  See console object: eosjs_ecc\n</body>\n</html>\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n\n-   [wif](#wif)\n-   [ecc](#ecc)\n    -   [initialize](#initialize)\n    -   [unsafeRandomKey](#unsaferandomkey)\n    -   [randomKey](#randomkey)\n        -   [Parameters](#parameters)\n        -   [Examples](#examples)\n    -   [seedPrivate](#seedprivate)\n        -   [Parameters](#parameters-1)\n        -   [Examples](#examples-1)\n    -   [privateToPublic](#privatetopublic)\n        -   [Parameters](#parameters-2)\n        -   [Examples](#examples-2)\n    -   [isValidPublic](#isvalidpublic)\n        -   [Parameters](#parameters-3)\n        -   [Examples](#examples-3)\n    -   [isValidPrivate](#isvalidprivate)\n        -   [Parameters](#parameters-4)\n        -   [Examples](#examples-4)\n    -   [sign](#sign)\n        -   [Parameters](#parameters-5)\n        -   [Examples](#examples-5)\n    -   [signHash](#signhash)\n        -   [Parameters](#parameters-6)\n    -   [verify](#verify)\n        -   [Parameters](#parameters-7)\n        -   [Examples](#examples-6)\n    -   [recover](#recover)\n        -   [Parameters](#parameters-8)\n        -   [Examples](#examples-7)\n    -   [recoverHash](#recoverhash)\n        -   [Parameters](#parameters-9)\n    -   [sha256](#sha256)\n        -   [Parameters](#parameters-10)\n        -   [Examples](#examples-8)\n-   [pubkey](#pubkey)\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n#### Parameters\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n#### Examples\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log('Private Key:\\t', privateKey) // wif\nconsole.log('Public Key:\\t', ecc.privateToPublic(privateKey)) // EOSkey...\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n#### Parameters\n\n-   `seed` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n#### Examples\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** public key prefix (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n#### Parameters\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**  (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n\n#### Examples\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### signHash\n\n#### Parameters\n\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or string\n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if string) (optional, default `'hex'`)\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n#### Parameters\n\n-   `signature` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `encoding`   (optional, default `'utf8'`)\n-   `hashData` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n#### Examples\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `data` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** full data\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if data is a string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### recoverHash\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or hex string\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if dataSha256 is a string) (optional, default `'hex'`)\n\nReturns **PublicKey** \n\n### sha256\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** always binary, you may need Buffer.from(data, 'hex')\n-   `resultEncoding`   (optional, default `'hex'`)\n-   `encoding` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** result encoding 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n#### Examples\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\n```javascript\necc.sha256(Buffer.from('02208b', 'hex')) === '29a23..'\n```\n\nReturns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromString(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nyarn\nyarn build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.7-ea61ee8.0","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"b1serviceaccount","email":"service.npm@block.one"},"dist":{"integrity":"sha512-XRo9mdj4LPAt4fhH9dEyj3CsgKzYzmEseakPFIyNlkexfCOCXUgN+rJs1E5QVHhAIu8tqtZo2AGFg8/Hexnstg==","shasum":"fbd04e30f025e9d95bbd496c061e36ad53ceef9b","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.7-ea61ee8.0.tgz","fileCount":20,"unpackedSize":1246119,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQcXlCRA9TVsSAnZWagAAXU4P/iO2qHSOQDP8AwNuj93S\ndfd6WyB10TmU8i+5bu7Yu1/92Vg0heZT9Uw5nuo4PdXxmOjc5JCwBVOXyNCo\n5B95Dmu65MsZy5ZP6BmuITRjE2Q00Ddwy41dBf526E+HcF/SMaHoOg6gSurg\nezzigT4UO1kBIlV9SbVDRJFcr3mcYJkbVTKOYgtMhciwykyIKKdzjRLsCddw\nGWqXaozEwoC9SE6A3c9fEwwjY0pIsOh2Advmu1mwTtxlVDjndOuOAFNntkeS\nsxRBZqkxUGP2NgV7ctkGX8I75IuD32CErUpMbHGo3FPvZ9IJnjxFo0vCe/8W\nf+RNm3YFrW7qmbtjl13zCWNWNGfIY/t5symyr6OmfE3UigaCwUFkvvrk2eUE\ns/rFGkGiLGGk+9E/rQ7xfYjmztteTpLkPnU2CyiF7seLB24w5z9+zwJj/C+L\n0WM3KomxOyAxWATCqTSN8/K4szFxZifDFXHN8Oo8vO5LhZ6XmVkErBhGaPkR\nTn9I9kBmNLsb0IDLEVrNojNpVa+vTRn97LF168eFAvFpUosKcmYCPBy0CIa2\nYHqCbLlG7nTY2A7ebFrEN6slfThou+ZQDdIbB/1qDIP2udPm9BuCdTmtSOVe\nLaiyYMPX6XJotumz4s+thiepH1CHKoNNLfVEReJnmLg0fhSuIxk7MXAenOVO\nIYO6\r\n=zx1q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBJ9EzUCV2oqgckOBPG/Nws6WS6rvqLn1AteV2HGsZAAiEAtL1F2w6FfKBxLI8xw0uueVlj32sCpcMz6epDm0RpixM="}]},"maintainers":[{"email":"service.npm@block.one","name":"b1serviceaccount"},{"email":"ben.rush@block.one","name":"benbenben1010"},{"email":"chris.allnutt@block.one","name":"chris-allnutt"},{"email":"justin.brown2@gmail.com","name":"j8u8s8t8i8n8"},{"email":"jeffreyssmith2nd@gmail.com","name":"jeffreyssmith2nd"},{"email":"julien.heller@block.one","name":"julienheller"},{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"nelson.ramirez@block.one","name":"takn"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.7-ea61ee8.0_1564591588321_0.15124618704836124"},"_hasShrinkwrap":false},"4.0.4-4baf37f.0":{"name":"eosjs-ecc","version":"4.0.4-4baf37f.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=lcov --reporter=text npm test","coveralls":"yarn coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"yarn build_lib && yarn build_browser","build_lib":"rm -f lib/* && babel src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js","build_browser_test":"yarn build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"terser lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"yarn documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"yarn build && yarn minimize && yarn test_lib && yarn docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"@babel/runtime":"7.4.4","bigi":"1.4.2","browserify-aes":"1.0.6","bs58":"4.0.1","bytebuffer":"5.0.1","create-hash":"1.1.3","create-hmac":"1.1.6","ecurve":"1.0.5","randombytes":"2.0.5"},"license":"MIT","devDependencies":{"@babel/cli":"7.4.4","@babel/core":"7.4.4","@babel/plugin-transform-runtime":"7.4.4","@babel/preset-env":"7.4.4","browserify":"16.2.3","coveralls":"3.0.3","documentation":"8.1.1","istanbul":"0.4.5","mocha":"5.2.0","nyc":"14.1.0","terser":"3.17.0"},"nyc":{"temp-directory":"./coverage/.nyc_output"},"babel":{"presets":["@babel/preset-env"],"plugins":["@babel/plugin-transform-runtime"]},"gitHead":"4f60edc3d7ada518f1a0b1776547f164bb465780","readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Include\n\n-   Install with: `yarn add eosjs-ecc`\n-   Html script tag, see [releases](https://github.com/EOSIO/eosjs-ecc/releases) for the correct **version** and its matching script **integrity** hash.\n\n```html\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <!--\n  sha512-cL+IQQaQ586s9DrXfGtDheRpj5iDKh2M+xlpfwbhNjRIp4BGQ1fkM/vB4Ta8mc+f51YBW9sJiPcyMDIreJe6gQ== lib/eosjs-ecc.js\n  sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ== lib/eosjs-ecc.min.js\n  sha512-eq1SCoSe38uR1UVuQMwR73VgY8qKTBDc87n2nIiC5WLhn1o2y1U6c5wY8lrigVX7INM8fM0PxDlMX5WvpghKig== lib/eosjs-ecc.min.js.map\n  -->\n  <script src=\"https://cdn.jsdelivr.net/npm/eosjs-ecc@4.0.4/lib/eosjs-ecc.min.js\"\n    integrity=\"sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ==\"\n    crossorigin=\"anonymous\"></script>\n\n</head>\n<body>\n  See console object: eosjs_ecc\n</body>\n</html>\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n\n-   [wif](#wif)\n-   [ecc](#ecc)\n    -   [initialize](#initialize)\n    -   [unsafeRandomKey](#unsaferandomkey)\n    -   [randomKey](#randomkey)\n        -   [Parameters](#parameters)\n        -   [Examples](#examples)\n    -   [seedPrivate](#seedprivate)\n        -   [Parameters](#parameters-1)\n        -   [Examples](#examples-1)\n    -   [privateToPublic](#privatetopublic)\n        -   [Parameters](#parameters-2)\n        -   [Examples](#examples-2)\n    -   [isValidPublic](#isvalidpublic)\n        -   [Parameters](#parameters-3)\n        -   [Examples](#examples-3)\n    -   [isValidPrivate](#isvalidprivate)\n        -   [Parameters](#parameters-4)\n        -   [Examples](#examples-4)\n    -   [sign](#sign)\n        -   [Parameters](#parameters-5)\n        -   [Examples](#examples-5)\n    -   [signHash](#signhash)\n        -   [Parameters](#parameters-6)\n    -   [verify](#verify)\n        -   [Parameters](#parameters-7)\n        -   [Examples](#examples-6)\n    -   [recover](#recover)\n        -   [Parameters](#parameters-8)\n        -   [Examples](#examples-7)\n    -   [recoverHash](#recoverhash)\n        -   [Parameters](#parameters-9)\n    -   [sha256](#sha256)\n        -   [Parameters](#parameters-10)\n        -   [Examples](#examples-8)\n-   [pubkey](#pubkey)\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n#### Parameters\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n#### Examples\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log('Private Key:\\t', privateKey) // wif\nconsole.log('Public Key:\\t', ecc.privateToPublic(privateKey)) // EOSkey...\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n#### Parameters\n\n-   `seed` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n#### Examples\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** public key prefix (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n#### Parameters\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**  (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n\n#### Examples\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### signHash\n\n#### Parameters\n\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or string\n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if string) (optional, default `'hex'`)\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n#### Parameters\n\n-   `signature` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `encoding`   (optional, default `'utf8'`)\n-   `hashData` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n#### Examples\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `data` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** full data\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if data is a string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### recoverHash\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or hex string\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if dataSha256 is a string) (optional, default `'hex'`)\n\nReturns **PublicKey** \n\n### sha256\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** always binary, you may need Buffer.from(data, 'hex')\n-   `resultEncoding`   (optional, default `'hex'`)\n-   `encoding` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** result encoding 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n#### Examples\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\n```javascript\necc.sha256(Buffer.from('02208b', 'hex')) === '29a23..'\n```\n\nReturns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromString(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nyarn\nyarn build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.4-4baf37f.0","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"b1serviceaccount","email":"service.npm@block.one"},"dist":{"integrity":"sha512-Hqp3Zvdco52ehO0cB0yF+UzSyolikwUIYXVbYht6jM9o17hlUiyb20dafGELvHQfwZAYglnnvH2XTikThJBWCg==","shasum":"bd2a83e80a5f40a5131d69ff35ed3ee4134517d9","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.4-4baf37f.0.tgz","fileCount":20,"unpackedSize":1247937,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiQ47CRA9TVsSAnZWagAA4O0P/12NwouL8NREcVu8Zhtg\nEPlI+3XXNYlGjItoHK+JutmWss/WrbS5FTyIF2RLDazufssGkqlBdrlVth9i\nRtrIr06IeeoJikDPRWAW8UhIOFZScIDPaHissX95NXvaoXWYDXkfX+lb5u3f\nv/T4vfLB3uFG4mn7P9fAu2spNO/AakP6d5E6GJOryR/h5Q4BTXL31DNygbOq\nL2KGfvURUtH4xLsNJjA4XxXpI+WoWjMkT16RiarkLA2MDrv4Ef/BzMzlk9gF\neFapcIlIEqc+uoa3qbCNkkCu1S/V6DQi/szmLHfqjF/yUkvUmBeA/b+3qyQB\nj2CdBd8iC+w4hA4JcSqjYD/dZYzjCTSIQvx+DynT3PQ3nSNgI7RD3ouPC9pe\nsOD8+AXhjHSVPqO9kyJIQ/kUsMyH4XrwSfpgAxjdUyfW6ZEN7bD/KIqE+wJE\nWgNvbxG7YS9N2EJFUqBfs+WYYdmM+ihZuyIY8WfhlCALohPIGhCophv1Jxz3\nKcJiMSeuSQ1EpWHScPLwcMNVpdbOXG40H7tdziIyujIXAfI7uF15w1F6H/1n\nlJHbJu3VtDjIjWVOM0IMVGV3VwdYAvEg/hwOxSJmpwTgxnuqwW+SONl9f+ll\nH8V5Q2+AO+vC35H3AXPTdxTA3k7MkfFXZZoqjHtxSP+Dvcmsn2G3gqdrYVL5\nFu/j\r\n=GaIM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQxzLDrXWaEy6eJcBoqJqw/w+KWiP9+PN1fk691heSRgIhAPo6VQ8bVKP/6f3JgmAsugutrbGONznMLqy+xsIURy7S"}]},"maintainers":[{"email":"service.npm@block.one","name":"b1serviceaccount"},{"email":"ben.rush@block.one","name":"benbenben1010"},{"email":"chris.allnutt@block.one","name":"chris-allnutt"},{"email":"justin.brown2@gmail.com","name":"j8u8s8t8i8n8"},{"email":"jeffreyssmith2nd@gmail.com","name":"jeffreyssmith2nd"},{"email":"julien.heller@block.one","name":"julienheller"},{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"nelson.ramirez@block.one","name":"takn"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.4-4baf37f.0_1569263163076_0.6244930832839595"},"_hasShrinkwrap":false},"4.0.4-168dae3.0":{"name":"eosjs-ecc","version":"4.0.4-168dae3.0","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=lcov --reporter=text npm test","coveralls":"yarn coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"yarn build_lib && yarn build_browser","build_lib":"rm -f lib/* && babel src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js","build_browser_test":"yarn build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"terser lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"yarn documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"yarn build && yarn minimize && yarn test_lib && yarn docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"@babel/runtime":"7.6.0","bigi":"1.4.2","browserify-aes":"1.0.6","bs58":"4.0.1","bytebuffer":"5.0.1","create-hash":"1.1.3","create-hmac":"1.1.6","ecurve":"1.0.5","randombytes":"2.0.5"},"license":"MIT","devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/plugin-transform-runtime":"^7.6.0","@babel/preset-env":"^7.6.0","browserify":"^16.2.3","coveralls":"^3.0.3","documentation":"^8.1.1","istanbul":"^0.4.5","mocha":"^5.2.0","nyc":"^14.1.0","terser":"^3.17.0"},"nyc":{"temp-directory":"./coverage/.nyc_output"},"babel":{"presets":["@babel/preset-env"],"plugins":["@babel/plugin-transform-runtime"]},"gitHead":"844cb4895ccd894b856d36d312768f1d4e414a5d","readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Include\n\n-   Install with: `yarn add eosjs-ecc`\n-   Html script tag, see [releases](https://github.com/EOSIO/eosjs-ecc/releases) for the correct **version** and its matching script **integrity** hash.\n\n```html\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <!--\n  sha512-cL+IQQaQ586s9DrXfGtDheRpj5iDKh2M+xlpfwbhNjRIp4BGQ1fkM/vB4Ta8mc+f51YBW9sJiPcyMDIreJe6gQ== lib/eosjs-ecc.js\n  sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ== lib/eosjs-ecc.min.js\n  sha512-eq1SCoSe38uR1UVuQMwR73VgY8qKTBDc87n2nIiC5WLhn1o2y1U6c5wY8lrigVX7INM8fM0PxDlMX5WvpghKig== lib/eosjs-ecc.min.js.map\n  -->\n  <script src=\"https://cdn.jsdelivr.net/npm/eosjs-ecc@4.0.4/lib/eosjs-ecc.min.js\"\n    integrity=\"sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ==\"\n    crossorigin=\"anonymous\"></script>\n\n</head>\n<body>\n  See console object: eosjs_ecc\n</body>\n</html>\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n\n-   [wif](#wif)\n-   [ecc](#ecc)\n    -   [initialize](#initialize)\n    -   [unsafeRandomKey](#unsaferandomkey)\n    -   [randomKey](#randomkey)\n        -   [Parameters](#parameters)\n        -   [Examples](#examples)\n    -   [seedPrivate](#seedprivate)\n        -   [Parameters](#parameters-1)\n        -   [Examples](#examples-1)\n    -   [privateToPublic](#privatetopublic)\n        -   [Parameters](#parameters-2)\n        -   [Examples](#examples-2)\n    -   [isValidPublic](#isvalidpublic)\n        -   [Parameters](#parameters-3)\n        -   [Examples](#examples-3)\n    -   [isValidPrivate](#isvalidprivate)\n        -   [Parameters](#parameters-4)\n        -   [Examples](#examples-4)\n    -   [sign](#sign)\n        -   [Parameters](#parameters-5)\n        -   [Examples](#examples-5)\n    -   [signHash](#signhash)\n        -   [Parameters](#parameters-6)\n    -   [verify](#verify)\n        -   [Parameters](#parameters-7)\n        -   [Examples](#examples-6)\n    -   [recover](#recover)\n        -   [Parameters](#parameters-8)\n        -   [Examples](#examples-7)\n    -   [recoverHash](#recoverhash)\n        -   [Parameters](#parameters-9)\n    -   [sha256](#sha256)\n        -   [Parameters](#parameters-10)\n        -   [Examples](#examples-8)\n-   [pubkey](#pubkey)\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n#### Parameters\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n#### Examples\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log('Private Key:\\t', privateKey) // wif\nconsole.log('Public Key:\\t', ecc.privateToPublic(privateKey)) // EOSkey...\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n#### Parameters\n\n-   `seed` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n#### Examples\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** public key prefix (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n#### Parameters\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**  (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n\n#### Examples\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### signHash\n\n#### Parameters\n\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or string\n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if string) (optional, default `'hex'`)\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n#### Parameters\n\n-   `signature` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `encoding`   (optional, default `'utf8'`)\n-   `hashData` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n#### Examples\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `data` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** full data\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if data is a string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### recoverHash\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or hex string\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if dataSha256 is a string) (optional, default `'hex'`)\n\nReturns **PublicKey** \n\n### sha256\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** always binary, you may need Buffer.from(data, 'hex')\n-   `resultEncoding`   (optional, default `'hex'`)\n-   `encoding` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** result encoding 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n#### Examples\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\n```javascript\necc.sha256(Buffer.from('02208b', 'hex')) === '29a23..'\n```\n\nReturns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromString(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nyarn\nyarn build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.4-168dae3.0","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"b1serviceaccount","email":"service.npm@block.one"},"dist":{"integrity":"sha512-0IWRb0V1lNinZVcGqXygjmjfdj5R3jpSigKF3vs9eoecqomX1eoLotM5wD9CoTlJ6CNWa7RyZCBgHqWT73MdKg==","shasum":"908e6cdcdca4b4a3602c3131ab4ec75c72371935","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.4-168dae3.0.tgz","fileCount":20,"unpackedSize":1248244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiQ8oCRA9TVsSAnZWagAALiQQAJE33Jv6bZtg55TjmFCM\nzByj9RFCkfVbz6xbDKlP/NgCAs9uI3b9EDlChByPmtRTtoZ/GEZGjv7BeZN7\n5fyx2kX88r99zKuhN7BI65TgwenMNW0GzYbDxlJSIxjfeNhjGOPywvVosZQ4\nIxBcmQ42zXbPeDW3Ak/zmSMqd4TbA78AJFuO8ERPoTJtqBVLYqQd+kHGb+p2\n5YoaVzi6f44I1LYOAlbCqGGiWeUmbQ7Jg8jB7exdYkvwB/kKBdcYRMnZ6RG0\nQp794LCSfbGZ7PxGbgd2VP1S4HQmixH/xa96wiy1wVb3x3CpaQkmsRHuO6GO\ncb44zFqVFA5j/uKwOCOUt3u/ty9Y2TrXaSXqZ/nv6ErA1iYdmu+3T8CRdn+9\nOQjxX8X3kLqz8r+MG5WF1glqHhUMj3Fz8SjvsSH85WLKHCNBr5+KziPLRjPp\ngz/PnXHgqfIw97m4ibH2qNS/7Kmbd+bBpduGGidtWPsoddwSk8Z++D495WLE\nJsngEXG1AvG9ixQvl71qN25hkd1vwK+HRiwRvNfjZKzv2jRg0JDi8xoE0zSw\nGXaLmCEU3wWrG4kb9syowXtDmVUTE2yTcVcMRuca989v0ojpTFqESmMsszZn\ngLJ0etyPUtOZ/juC76SXcXpdkXZJXVCGMvUq2zAS9PtsdDHRLHvuDXtG1/DD\nwMuh\r\n=fnB3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoXP3XLBDVvDJw8z+kp+aB6dDMv6mfifG6m1MpiSnwOgIgfiqPI7mNByrptq2ZTTvdcMmzC1NSHPtYBkqBfwgINtk="}]},"maintainers":[{"email":"service.npm@block.one","name":"b1serviceaccount"},{"email":"ben.rush@block.one","name":"benbenben1010"},{"email":"chris.allnutt@block.one","name":"chris-allnutt"},{"email":"justin.brown2@gmail.com","name":"j8u8s8t8i8n8"},{"email":"jeffreyssmith2nd@gmail.com","name":"jeffreyssmith2nd"},{"email":"julien.heller@block.one","name":"julienheller"},{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"nelson.ramirez@block.one","name":"takn"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.4-168dae3.0_1569263399717_0.951140349717734"},"_hasShrinkwrap":false},"4.0.7":{"name":"eosjs-ecc","version":"4.0.7","description":"Elliptic curve cryptography functions","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"main":"lib/index.js","scripts":{"test":"mocha --use_strict src/*.test.js","test_lib":"mocha --use_strict lib/*.test.js","coverage":"nyc --reporter=lcov --reporter=text npm test","coveralls":"yarn coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build":"yarn build_lib && yarn build_browser","build_lib":"rm -f lib/* && babel src --out-dir lib","build_browser":"mkdir -p lib && browserify -o lib/eosjs-ecc.js -s eosjs_ecc lib/index.js","build_browser_test":"yarn build && browserify -o dist/test.js lib/*.test.js","documentation":"node_modules/documentation/bin/documentation.js","minimize":"terser lib/eosjs-ecc.js -o lib/eosjs-ecc.min.js --source-map --compress --mangle","docs":"yarn documentation -- readme src/api_common.js --section \"Common API\" --shallow","srisum":"npx srisum lib/eosjs-ecc.*","prepublishOnly":"yarn build && yarn minimize && yarn test_lib && yarn docs"},"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"dependencies":{"@babel/runtime":"7.6.0","bigi":"1.4.2","browserify-aes":"1.0.6","bs58":"4.0.1","bytebuffer":"5.0.1","create-hash":"1.1.3","create-hmac":"1.1.6","ecurve":"1.0.5","randombytes":"2.0.5"},"license":"MIT","devDependencies":{"@babel/cli":"^7.6.0","@babel/core":"^7.6.0","@babel/plugin-transform-runtime":"^7.6.0","@babel/preset-env":"^7.6.0","browserify":"^16.2.3","coveralls":"^3.0.3","documentation":"^8.1.1","istanbul":"^0.4.5","mocha":"^5.2.0","nyc":"^14.1.0","terser":"^3.17.0"},"nyc":{"temp-directory":"./coverage/.nyc_output"},"babel":{"presets":["@babel/preset-env"],"plugins":["@babel/plugin-transform-runtime"]},"gitHead":"97c87d9a3ea338636ceb351116b5cc858710bd39","bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","_id":"eosjs-ecc@4.0.7","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"b1serviceaccount","email":"service.npm@block.one"},"dist":{"integrity":"sha512-uuqhqnrDy9XTpKfkhiZqRDUTCCI9oWBalVK5IosL7kpYwA9I3lm68INYFLyWsHpF2xwHqPql8MrMYJ3zfOn5Qg==","shasum":"f5246da3b84839fcc237204768ef6e5ea56cc814","tarball":"https://registry.npmjs.org/eosjs-ecc/-/eosjs-ecc-4.0.7.tgz","fileCount":20,"unpackedSize":1248672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiSMJCRA9TVsSAnZWagAAcjsP+QFc9lxdXvYSJOVPAXkp\n4sdpxoigu9c3aBGFdHxKoaGRNdhb5OWMKv2dd8L45gB1+0OfM8F8yMAhcGkd\nH66RRcPWr4c54RKD5ecv9mQ7qUk7MCvuNVmps2J4d5u4Z71dXfAmK6cj1f3D\nE0ILO//KR0crbLHn2ddinXhPK9QS6Q8agdLhphCPi8t140ZTKTE4XH7t8SYU\nKZc6MNzhbeV95rWK/WWvG6q6nICsWEMFLHdzuVLnl/d1Izx/fL8H+HMoU7nz\nUK3ILM3InW4b3zXVF8WKACz3fQ/f3nVwv5bIlyABSUosJeNILqSFWcsbkGub\n3bRnl3Q+L+co9Q1Ma4LQy2eJ8q0LuAWJFyPwIUyujp+XTr4Ug44nuzljnb3c\nNrMDFmYKp9Lmb4DeQifzWqarRIMf7lIaYYRh1MdypT4Z5JcVsldAXKLHYvU9\nG9KB7zMZ9Uh0rcu/qs9sHYqhJaNpyDQXxinnreSZBKjn6R4YWk1yku7Ko0V/\n1Xv5htkzg2vUtZdHND7HHyTuhjvV9bNvyH/3UEWG9RSkDzJu460KtNDNThO+\nNZdP+WlKGELQDXRMBoIZe7waWwr/MbyqD7Q6IT66C31Xfyy97hno9qZ8DKpG\nh2PpJzRdLMJm8n3TZgeL9ZL2AXvmlV2y8vPy5Lyl8IkiIn/nuOYf3aZ0jk45\nF6cS\r\n=roF0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqJyfoMCcPDsnCZS90Phd+Epp7m23H4Os6AvjP9CNPjQIhAOvyyHEbBoDqE8HHJb1jZsjwv4C7m+TIgMgbWsA5vgx7"}]},"maintainers":[{"email":"service.npm@block.one","name":"b1serviceaccount"},{"email":"ben.rush@block.one","name":"benbenben1010"},{"email":"chris.allnutt@block.one","name":"chris-allnutt"},{"email":"justin.brown2@gmail.com","name":"j8u8s8t8i8n8"},{"email":"jeffreyssmith2nd@gmail.com","name":"jeffreyssmith2nd"},{"email":"julien.heller@block.one","name":"julienheller"},{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"nelson.ramirez@block.one","name":"takn"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eosjs-ecc_4.0.7_1569268488549_0.5416112676887337"},"_hasShrinkwrap":false}},"readme":"[![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)\n[![Build Status](https://travis-ci.org/EOSIO/eosjs-ecc.svg?branch=master)](https://travis-ci.org/EOSIO/eosjs-ecc)\n\n# Elliptic curve cryptography functions (ECC)\n\nPrivate Key, Public Key, Signature, AES, Encryption / Decryption\n\n# Import\n\n```js\nimport ecc from 'eosjs-ecc'\n// or\nconst ecc = require('eosjs-ecc')\n```\n\n# Include\n\n-   Install with: `yarn add eosjs-ecc`\n-   Html script tag, see [releases](https://github.com/EOSIO/eosjs-ecc/releases) for the correct **version** and its matching script **integrity** hash.\n\n```html\n<html>\n<head>\n  <meta charset=\"utf-8\">\n  <!--\n  sha512-cL+IQQaQ586s9DrXfGtDheRpj5iDKh2M+xlpfwbhNjRIp4BGQ1fkM/vB4Ta8mc+f51YBW9sJiPcyMDIreJe6gQ== lib/eosjs-ecc.js\n  sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ== lib/eosjs-ecc.min.js\n  sha512-eq1SCoSe38uR1UVuQMwR73VgY8qKTBDc87n2nIiC5WLhn1o2y1U6c5wY8lrigVX7INM8fM0PxDlMX5WvpghKig== lib/eosjs-ecc.min.js.map\n  -->\n  <script src=\"https://cdn.jsdelivr.net/npm/eosjs-ecc@4.0.4/lib/eosjs-ecc.min.js\"\n    integrity=\"sha512-dYFDmK/d9r3/NCp6toLtfkwOjSMRBaEzaGAx1tfRItC0nsI0hVLERk05iNBQR7uDNI7ludYhcBI4vUiFHdjsTQ==\"\n    crossorigin=\"anonymous\"></script>\n\n</head>\n<body>\n  See console object: eosjs_ecc\n</body>\n</html>\n```\n\n# Common API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### Table of Contents\n\n-   [wif](#wif)\n-   [ecc](#ecc)\n    -   [initialize](#initialize)\n    -   [unsafeRandomKey](#unsaferandomkey)\n    -   [randomKey](#randomkey)\n        -   [Parameters](#parameters)\n        -   [Examples](#examples)\n    -   [seedPrivate](#seedprivate)\n        -   [Parameters](#parameters-1)\n        -   [Examples](#examples-1)\n    -   [privateToPublic](#privatetopublic)\n        -   [Parameters](#parameters-2)\n        -   [Examples](#examples-2)\n    -   [isValidPublic](#isvalidpublic)\n        -   [Parameters](#parameters-3)\n        -   [Examples](#examples-3)\n    -   [isValidPrivate](#isvalidprivate)\n        -   [Parameters](#parameters-4)\n        -   [Examples](#examples-4)\n    -   [sign](#sign)\n        -   [Parameters](#parameters-5)\n        -   [Examples](#examples-5)\n    -   [signHash](#signhash)\n        -   [Parameters](#parameters-6)\n    -   [verify](#verify)\n        -   [Parameters](#parameters-7)\n        -   [Examples](#examples-6)\n    -   [recover](#recover)\n        -   [Parameters](#parameters-8)\n        -   [Examples](#examples-7)\n    -   [recoverHash](#recoverhash)\n        -   [Parameters](#parameters-9)\n    -   [sha256](#sha256)\n        -   [Parameters](#parameters-10)\n        -   [Examples](#examples-8)\n-   [pubkey](#pubkey)\n\n## wif\n\n[Wallet Import Format](https://en.bitcoin.it/wiki/Wallet_import_format)\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n## ecc\n\n### initialize\n\nInitialize by running some self-checking code.  This should take a\nsecond to gather additional CPU entropy used during private key\ngeneration.\n\nInitialization happens once even if called multiple times.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** \n\n### unsafeRandomKey\n\nDoes not pause to gather CPU entropy.\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;PrivateKey>** test key\n\n### randomKey\n\n#### Parameters\n\n-   `cpuEntropyBits` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** gather additional entropy\n    from a CPU mining algorithm.  This will already happen once by\n    default. (optional, default `0`)\n\n#### Examples\n\n```javascript\necc.randomKey().then(privateKey => {\nconsole.log('Private Key:\\t', privateKey) // wif\nconsole.log('Public Key:\\t', ecc.privateToPublic(privateKey)) // EOSkey...\n})\n```\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[wif](#wif)>** \n\n### seedPrivate\n\n#### Parameters\n\n-   `seed` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** any length string.  This is private.  The same\n    seed produces the same private key every time.  At least 128 random\n    bits should be used to produce a good private key.\n\n#### Examples\n\n```javascript\necc.seedPrivate('secret') === wif\n```\n\nReturns **[wif](#wif)** \n\n### privateToPublic\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** public key prefix (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.privateToPublic(wif) === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### isValidPublic\n\n#### Parameters\n\n-   `pubkey` **[pubkey](#pubkey)** like EOSKey..\n-   `pubkey_prefix` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**  (optional, default `'EOS'`)\n\n#### Examples\n\n```javascript\necc.isValidPublic(pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### isValidPrivate\n\n#### Parameters\n\n-   `wif` **[wif](#wif)** \n\n#### Examples\n\n```javascript\necc.isValidPrivate(wif) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** valid\n\n### sign\n\nCreate a signature using data or a hash.\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.sign('I am alive', wif)\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### signHash\n\n#### Parameters\n\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or string\n-   `privateKey` **([wif](#wif) | PrivateKey)** \n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if string) (optional, default `'hex'`)\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string signature\n\n### verify\n\nVerify signed data.\n\n#### Parameters\n\n-   `signature` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** buffer or hex string\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** \n-   `pubkey` **([pubkey](#pubkey) | PublicKey)** \n-   `encoding`   (optional, default `'utf8'`)\n-   `hashData` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** sha256 hash data before verify (optional, default `true`)\n\n#### Examples\n\n```javascript\necc.verify(signature, 'I am alive', pubkey) === true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** \n\n### recover\n\nRecover the public key used to create the signature.\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `data` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** full data\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** data encoding (if data is a string) (optional, default `'utf8'`)\n\n#### Examples\n\n```javascript\necc.recover(signature, 'I am alive') === pubkey\n```\n\nReturns **[pubkey](#pubkey)** \n\n### recoverHash\n\n#### Parameters\n\n-   `signature` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** (EOSbase58sig.., Hex, Buffer)\n-   `dataSha256` **([String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** sha256 hash 32 byte buffer or hex string\n-   `encoding` **[String](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** dataSha256 encoding (if dataSha256 is a string) (optional, default `'hex'`)\n\nReturns **PublicKey** \n\n### sha256\n\n#### Parameters\n\n-   `data` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** always binary, you may need Buffer.from(data, 'hex')\n-   `resultEncoding`   (optional, default `'hex'`)\n-   `encoding` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** result encoding 'hex', 'binary' or 'base64' (optional, default `'hex'`)\n\n#### Examples\n\n```javascript\necc.sha256('hashme') === '02208b..'\n```\n\n```javascript\necc.sha256(Buffer.from('02208b', 'hex')) === '29a23..'\n```\n\nReturns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \\| [Buffer](https://nodejs.org/api/buffer.html))** Buffer when encoding is null, or string\n\n## pubkey\n\nEOSKey..\n\nType: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\n\n# Usage (Object API)\n\n```js\nlet {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')\n\n// Create a new random private key\nlet privateWif\nPrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())\n\n// Convert to a public key\npubkey = PrivateKey.fromString(privateWif).toPublic().toString()\n```\n\n-   [PrivateKey](./src/key_private.js)\n-   [PublicKey](./src/key_public.js)\n-   [Signature](./src/signature.js)\n-   [Aes](./src/aes.js)\n-   [key_utils](./src/key_utils.js)\n-   [config](./src/config.js)\n\n# Browser\n\n```bash\ngit clone https://github.com/EOSIO/eosjs-ecc.git\ncd eosjs-ecc\nyarn\nyarn build_browser\n# builds: ./dist/eosjs-ecc.js\n# Verify release hash\n```\n\n```html\n<script src=eosjs-ecc.js></script>\n```\n\n```js\nvar ecc = eosjs_ecc\n\necc.randomKey().then(privateWif =>  {\n  var pubkey = ecc.privateToPublic(privateWif)\n  console.log(pubkey)\n})\n```\n","maintainers":[{"email":"service.npm@block.one","name":"b1serviceaccount"},{"email":"ben.rush@block.one","name":"benbenben1010"},{"email":"chris.allnutt@block.one","name":"chris-allnutt"},{"email":"justin.brown2@gmail.com","name":"j8u8s8t8i8n8"},{"email":"jeffreyssmith2nd@gmail.com","name":"jeffreyssmith2nd"},{"email":"julien.heller@block.one","name":"julienheller"},{"email":"serg.metelin@gmail.com","name":"smetelin"},{"email":"nelson.ramirez@block.one","name":"takn"}],"time":{"modified":"2022-06-17T06:57:40.952Z","created":"2017-07-03T16:06:26.167Z","1.0.1":"2017-07-03T16:06:26.167Z","1.0.2":"2017-07-03T16:09:50.544Z","1.0.3":"2017-07-03T16:24:50.271Z","1.0.4":"2017-08-30T23:09:12.221Z","1.0.5":"2017-09-01T20:03:54.881Z","1.1.0":"2017-09-05T20:43:08.915Z","1.2.0":"2017-09-14T14:59:22.909Z","1.3.0":"2017-09-18T22:52:16.999Z","1.3.1":"2017-09-18T22:53:25.968Z","1.3.2":"2017-09-19T16:16:50.844Z","1.4.0":"2017-10-26T23:43:51.832Z","1.5.0":"2017-11-13T17:07:44.284Z","1.5.1":"2017-11-13T17:39:43.889Z","1.6.1":"2017-11-16T14:56:03.236Z","1.6.2":"2017-12-06T18:18:54.120Z","1.6.3":"2017-12-13T16:29:49.551Z","2.0.0":"2017-12-14T18:10:04.126Z","2.0.1":"2017-12-14T18:58:03.613Z","3.0.0":"2018-03-08T22:56:59.175Z","3.0.1":"2018-03-09T18:13:50.772Z","3.0.2":"2018-03-23T13:50:37.197Z","3.0.3":"2018-04-30T14:27:32.537Z","3.1.0":"2018-04-30T22:02:20.993Z","4.0.0":"2018-05-04T18:46:15.976Z","4.0.1":"2018-05-24T15:14:45.997Z","4.0.2":"2018-06-26T23:27:50.655Z","4.0.3":"2018-08-14T01:31:24.789Z","4.0.4":"2018-08-22T12:44:35.593Z","4.0.7-ea61ee8.0":"2019-07-31T16:46:28.505Z","4.0.4-4baf37f.0":"2019-09-23T18:26:03.304Z","4.0.4-168dae3.0":"2019-09-23T18:29:59.905Z","4.0.7":"2019-09-23T19:54:48.922Z"},"homepage":"https://github.com/EOSIO/eosjs-ecc#readme","keywords":["ECC","Private Key","Public Key","Signature","AES","Encryption","Decryption"],"repository":{"type":"git","url":"git://github.com/EOSIO/eosjs-ecc.git"},"bugs":{"url":"https://github.com/EOSIO/eosjs-ecc/issues"},"license":"MIT","readmeFilename":"README.md"}