{"_id":"hypercore-crypto","_rev":"1663280","name":"hypercore-crypto","description":"The crypto primitives used in hypercore, extracted into a separate module","dist-tags":{"latest":"3.1.1"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2021-11-23T11:51:04.000Z","created":"2018-06-27T20:54:11.486Z","3.1.1":"2021-11-23T11:36:10.451Z","3.1.0":"2021-11-09T12:51:03.011Z","3.0.0":"2021-11-08T16:08:03.230Z","2.3.2":"2021-11-08T16:07:06.320Z","2.3.1":"2021-11-04T09:50:18.010Z","2.3.0":"2021-03-30T12:55:41.844Z","2.2.0":"2020-12-08T08:58:37.411Z","2.1.1":"2020-06-23T14:24:38.253Z","2.1.0":"2020-05-16T20:48:15.087Z","2.0.2":"2020-05-13T19:00:10.403Z","2.0.1":"2020-05-13T16:21:01.203Z","2.0.0":"2020-05-13T11:14:54.464Z","1.0.0":"2018-06-28T14:11:45.173Z","0.0.0":"2018-06-27T20:54:11.486Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"versions":{"3.1.1":{"name":"hypercore-crypto","version":"3.1.1","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"b4a":"^1.1.0","compact-encoding":"^2.5.1","sodium-universal":"^3.0.0"},"devDependencies":{"brittle":"^1.6.0","standard":"^14.3.3"},"scripts":{"test":"standard && brittle test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"7f23bc7e915d36e3a5eae65c155d0e981b7ca12c","_id":"hypercore-crypto@3.1.1","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"3404463cf0eaa1e9fe8643534774f6ab68afb027","size":3264,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-3.1.1.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_3.1.1_1637667370319_0.5076456766143664"},"_hasShrinkwrap":false,"publish_time":1637667370451,"_cnpm_publish_time":1637667370451},"3.1.0":{"name":"hypercore-crypto","version":"3.1.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"b4a":"^1.1.0","compact-encoding":"^2.5.1","sodium-universal":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"8a0a749352370ef40b15a46605e54f0617cce617","_id":"hypercore-crypto@3.1.0","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"6eedbd2a200e2b16b2e4fa04d0ae9d97c7f51b38","size":3274,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-3.1.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_3.1.0_1636462262834_0.7652412921685221"},"_hasShrinkwrap":false,"publish_time":1636462263011,"_cnpm_publish_time":1636462263011},"3.0.0":{"name":"hypercore-crypto","version":"3.0.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"b4a":"^1.1.0","sodium-universal":"^3.0.0","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"05007c47fd7a3fb84dab4eeff33e132e2cbf246e","_id":"hypercore-crypto@3.0.0","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"bf596c6fb4b3df737bd01c9a8663f74024723f21","size":3686,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-3.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_3.0.0_1636387683082_0.5640899670329804"},"_hasShrinkwrap":false,"publish_time":1636387683230,"_cnpm_publish_time":1636387683230},"2.3.2":{"name":"hypercore-crypto","version":"2.3.2","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-universal":"^3.0.0","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"b6e2d99f9b6634e7d4e3d36b5f6502a88d1eee50","_id":"hypercore-crypto@2.3.2","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"a1b890e724fcafaddea2264d46baa6a059de5b96","size":3661,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.3.2.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.3.2_1636387626185_0.09803298456163523"},"_hasShrinkwrap":false,"publish_time":1636387626320,"_cnpm_publish_time":1636387626320},"2.3.1":{"name":"hypercore-crypto","version":"2.3.1","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"b4a":"^1.1.0","sodium-universal":"^3.0.0","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"7768cd2a9cbda1ceb4191ad16409a12f7fbeec27","_id":"hypercore-crypto@2.3.1","_nodeVersion":"16.8.0","_npmVersion":"6.14.15","dist":{"shasum":"92320550f294e413fbf69e5db42b7758dec0f5f7","size":3689,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.3.1.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.3.1_1636019417845_0.8620006688424571"},"_hasShrinkwrap":false,"publish_time":1636019418010,"_cnpm_publish_time":1636019418010},"2.3.0":{"name":"hypercore-crypto","version":"2.3.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-universal":"^3.0.0","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"20e7118dadf3d4c2266f105f3a6083356817b9c1","_id":"hypercore-crypto@2.3.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"a7ac02aa2554178196b54276d177ff80106528e3","size":3408,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.3.0.tgz"},"_npmUser":{"name":"andrewosh","email":"andrewosh@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.3.0_1617108941720_0.7125301973008689"},"_hasShrinkwrap":false,"publish_time":1617108941844,"_cnpm_publish_time":1617108941844},"2.2.0":{"name":"hypercore-crypto","version":"2.2.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-universal":"^3.0.0","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"608ec5b4d0a661575c3cb37a69c13d8f79d3e4ac","_id":"hypercore-crypto@2.2.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"2789cd83f31469582ee4702d0767462c8a4617ed","size":3301,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.2.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.2.0_1607417917242_0.36019266954437024"},"_hasShrinkwrap":false,"publish_time":1607417917411,"_cnpm_publish_time":1607417917411},"2.1.1":{"name":"hypercore-crypto","version":"2.1.1","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-universal":"^3.0.0","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"7125e9cda556f6033d21243c6fb6cb9196a44ade","_id":"hypercore-crypto@2.1.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"shasum":"39d195e3aa80b0635f5b7d466e577c963ab47170","size":3202,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.1.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.1.1_1592922278089_0.4606645399697964"},"_hasShrinkwrap":false,"publish_time":1592922278253,"_cnpm_publish_time":1592922278253},"2.1.0":{"name":"hypercore-crypto","version":"2.1.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-javascript":"^0.5.6","sodium-native":"^3.1.1","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"browser":{"./sodium":"sodium-javascript"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"3f30a14c496561c567ef7beacdebf45cd693312a","_id":"hypercore-crypto@2.1.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"8270002eb12b6b1ee11a59f6382a677179ba1323","size":3299,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.1.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.1.0_1589662094989_0.10813684934057921"},"_hasShrinkwrap":false,"publish_time":1589662095087,"_cnpm_publish_time":1589662095087},"2.0.2":{"name":"hypercore-crypto","version":"2.0.2","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-javascript":"^0.5.6","sodium-native":"^3.1.1","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"browser":{"./sodium":"sodium-javascript"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"7449a3a62c383f2e753806cca7a86b934c1922e8","_id":"hypercore-crypto@2.0.2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"4af225622075d34fa7611f0c3cf866d7b1c82e84","size":3253,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.0.2.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.0.2_1589396410322_0.14406275976559435"},"_hasShrinkwrap":false,"publish_time":1589396410403,"_cnpm_publish_time":1589396410403},"2.0.1":{"name":"hypercore-crypto","version":"2.0.1","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-javascript":"^0.5.6","sodium-native":"^3.1.1","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"browser":{"./sodium":"sodium-javascript"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"e253cf66a5d3b3268726f6865358cf85dd871737","_id":"hypercore-crypto@2.0.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"5193fea993cb47a42f8f31c8310601cf08fb18a4","size":3254,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.0.1.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.0.1_1589386861014_0.07596212239342393"},"_hasShrinkwrap":false,"publish_time":1589386861203,"_cnpm_publish_time":1589386861203},"2.0.0":{"name":"hypercore-crypto","version":"2.0.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"sodium-javascript":"^0.5.6","sodium-native":"^3.1.1","uint64be":"^3.0.0"},"devDependencies":{"standard":"^14.3.3","tape":"^5.0.0"},"browser":{"./sodium":"sodium-javascript"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"2c43ea9b25f3b620de3541f24e61e26db700874d","_id":"hypercore-crypto@2.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"0b96d3bd1afa3b518e79bfff766f6de9c8fa50f6","size":3252,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-2.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_2.0.0_1589368494008_0.44043212979773116"},"_hasShrinkwrap":false,"publish_time":1589368494464,"_cnpm_publish_time":1589368494464},"1.0.0":{"name":"hypercore-crypto","version":"1.0.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"buffer-alloc-unsafe":"^1.1.0","buffer-from":"^1.1.0","sodium-universal":"^2.0.0","uint64be":"^2.0.2"},"devDependencies":{"standard":"^11.0.1","tape":"^4.9.1"},"scripts":{"test":"standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"09b09cfc80f6e0aa51e1dee1bab6e948ca5c6a60","_id":"hypercore-crypto@1.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"90dfd2c77364483d24af204b9a99136cb6320de6","size":2744,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-1.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_1.0.0_1530195105066_0.4025460478834475"},"_hasShrinkwrap":false,"publish_time":1530195105173,"_cnpm_publish_time":1530195105173},"0.0.0":{"name":"hypercore-crypto","version":"0.0.0","description":"The crypto primitives used in hypercore, extracted into a separate module","main":"index.js","dependencies":{"buffer-alloc-unsafe":"^1.1.0","buffer-from":"^1.1.0","sodium-universal":"^2.0.0","uint64be":"^2.0.2"},"devDependencies":{"standard":"^11.0.1","tape":"^4.9.1"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/hypercore-crypto.git"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"homepage":"https://github.com/mafintosh/hypercore-crypto","gitHead":"ffc8f339bac0060e1eadd273ba8bcbfab33d27c8","_id":"hypercore-crypto@0.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"c997747b41e854b126a16207c52f3de4c28f11c8","size":1993,"noattachment":false,"key":"/hypercore-crypto/-/hypercore-crypto-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hypercore-crypto/download/hypercore-crypto-0.0.0.tgz"},"maintainers":[{"name":"mafintosh","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hypercore-crypto_0.0.0_1530132850914_0.5001094131888266"},"_hasShrinkwrap":false,"publish_time":1530132851486,"_cnpm_publish_time":1530132851486}},"readme":"# hypercore-crypto\n\n> :warning: Hypercore 9 uses v2 of this module while Hypercore 10 uses v3.\n\nThe crypto primitives used in hypercore, extracted into a separate module\n\n```\nnpm install hypercore-crypto\n```\n\n## Usage\n\n``` js\nconst crypto = require('hypercore-crypto')\n\nconst keyPair = crypto.keyPair()\nconsole.log(keyPair) // prints a ed25519 keypair\n```\n\n## API\n\n#### `keyPair = crypto.keyPair()`\n\nReturns an `ED25519` keypair that can used for tree signing.\n\n#### `signature = crypto.sign(message, secretKey)`\n\nSigns a message (buffer).\n\n#### `verified = crypto.verify(message, signature, publicKey)`\n\nVerifies a signature for a message.\n\n#### `hash = crypto.data(data)`\n\nHashes a leaf node in a merkle tree.\n\n#### `hash = crypto.parent(left, right)`\n\nHash a parent node in a merkle tree. `left` and `right` should look like this:\n\n```js\n{\n  index: treeIndex,\n  hash: hashOfThisNode,\n  size: byteSizeOfThisTree\n}\n```\n\n#### `hash = crypto.tree(peaks)`\n\nHashes the merkle root of the tree. `peaks` should be an array of the peaks of the tree and should look like above.\n\n#### `buffer = crypto.randomBytes(size)`\n\nReturns a buffer containing random bytes of size `size`.\n\n#### `hash = crypto.discoveryKey(publicKey)`\n\nReturn a hash derived from a `publicKey` that can used for discovery\nwithout disclosing the public key.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/hypercore-crypto","bugs":{"url":"https://github.com/mafintosh/hypercore-crypto/issues"},"license":"MIT"}