{"_id":"noise-curve-ed","_rev":"239111","name":"noise-curve-ed","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"chm-diederichs","email":""}],"time":{"modified":"2023-03-24T16:52:19.000Z","created":"2021-07-16T11:49:00.721Z","2.0.1":"2023-01-10T10:30:11.707Z","2.0.0":"2022-09-21T14:59:19.992Z","1.0.4":"2021-11-02T14:23:20.452Z","1.0.3":"2021-10-19T14:37:43.601Z","1.0.2":"2021-08-19T08:47:15.089Z","1.0.1":"2021-07-16T12:34:47.814Z","1.0.0":"2021-07-16T11:49:00.721Z"},"users":{},"author":"","repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"versions":{"2.0.1":{"name":"noise-curve-ed","version":"2.0.1","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"b4a":"^1.1.0","nanoassert":"^2.0.0","sodium-universal":"^4.0.0"},"devDependencies":{"hypercore-crypto-tweak":"github:holepunchto/hypercore-crypto-tweak","noise-handshake":"^3.0.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"685370b87a9b0a3e08151e3cd0c55aca51add6ff","_id":"noise-curve-ed@2.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"c07adb2dde8dfaffb90aa95be9a522f5ed661e6d","size":1637,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-2.0.1.tgz"},"_npmUser":{"name":"chm-diederichs","email":"chm-diederichs@protonmail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_2.0.1_1673346611426_0.028455562511207733"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-10T10:30:11.707Z","publish_time":1673346611707,"_cnpm_publish_time":1673346611707},"2.0.0":{"name":"noise-curve-ed","version":"2.0.0","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"b4a":"^1.1.0","nanoassert":"^2.0.0","sodium-universal":"^3.0.4"},"devDependencies":{"hypercore-crypto-tweak":"github:holepunchto/hypercore-crypto-tweak","noise-handshake":"^3.0.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"0df71aaf9f6a6ab917c6fa5680475fb470b4b115","_id":"noise-curve-ed@2.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"shasum":"d5fb33b80ab87c78e0297010ea3e068035163415","size":1638,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-2.0.0.tgz"},"_npmUser":{"name":"chm-diederichs","email":"chm-diederichs@protonmail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_2.0.0_1663772359793_0.4342986701562124"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-21T15:53:48.108Z","publish_time":1663772359992,"_cnpm_publish_time":1663772359992},"1.0.4":{"name":"noise-curve-ed","version":"1.0.4","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test.js"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"b4a":"^1.1.0","nanoassert":"^2.0.0","sodium-universal":"^3.0.4"},"devDependencies":{"noise-handshake":"^1.1.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"5b2d524e836054ca371b2fdbd0041d79ff9567f0","_id":"noise-curve-ed@1.0.4","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"shasum":"8ae83f5d2d2e31d0c9c069271ca6e462d31cd884","size":1462,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.4.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-1.0.4.tgz"},"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_1.0.4_1635863000316_0.379414703301618"},"_hasShrinkwrap":false,"publish_time":1635863000452,"_cnpm_publish_time":1635863000452,"_cnpmcore_publish_time":"2021-12-16T22:49:58.928Z"},"1.0.3":{"name":"noise-curve-ed","version":"1.0.3","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"nanoassert":"^2.0.0","sodium-native":"^3.2.1"},"devDependencies":{"noise-handshake":"^1.1.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"881193e1fa8e6fc8a93441278f75a8707db0c221","_id":"noise-curve-ed@1.0.3","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"shasum":"39468e4cfa1d5e6f403ca30d2a361c8d6e1e9097","size":1450,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-1.0.3.tgz"},"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_1.0.3_1634654263269_0.02482179398219242"},"_hasShrinkwrap":false,"publish_time":1634654263601,"_cnpm_publish_time":1634654263601,"_cnpmcore_publish_time":"2021-12-16T22:49:59.115Z"},"1.0.2":{"name":"noise-curve-ed","version":"1.0.2","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"nanoassert":"^2.0.0","sodium-native":"^3.2.1"},"devDependencies":{"noise-handshake":"^1.1.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"7e33131fc69467bb1b00a0f753a765c206b210f1","_id":"noise-curve-ed@1.0.2","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"shasum":"ad18d5335100ad35cd18f6b85b51f4e954548d68","size":1458,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-1.0.2.tgz"},"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_1.0.2_1629362834909_0.7416256844286742"},"_hasShrinkwrap":false,"publish_time":1629362835089,"_cnpm_publish_time":1629362835089,"_cnpmcore_publish_time":"2021-12-16T22:49:59.349Z"},"1.0.1":{"name":"noise-curve-ed","version":"1.0.1","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"nanoassert":"^2.0.0","sodium-native":"^3.2.1"},"devDependencies":{"noise-handshake":"^1.1.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"bdb10be00acf32c107cca53d3f55cbdce94f8bf9","_id":"noise-curve-ed@1.0.1","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"shasum":"d35503590773172452440bfce361d58144754c12","size":1453,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-1.0.1.tgz"},"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_1.0.1_1626438887679_0.3207662688560875"},"_hasShrinkwrap":false,"publish_time":1626438887814,"_cnpm_publish_time":1626438887814,"_cnpmcore_publish_time":"2021-12-16T22:49:59.575Z"},"1.0.0":{"name":"noise-curve-ed","version":"1.0.0","description":"Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)","main":"index.js","scripts":{"test":"npx standard && tape test"},"repository":{"type":"git","url":"git+https://github.com/chm-diederichs/noise-curve-ed.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","dependencies":{"nanoassert":"^2.0.0","sodium-native":"^3.2.1"},"devDependencies":{"noise-handshake":"^1.1.0","standard":"^16.0.3","tape":"^5.2.2"},"gitHead":"13f8811b28e5b944c45380500a1b23a3c2ea52fb","_id":"noise-curve-ed@1.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"shasum":"7303d9d492c99734d7892a54e770d8df4d6a510b","size":1438,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/noise-curve-ed/download/noise-curve-ed-1.0.0.tgz"},"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_1.0.0_1626436140579_0.6161674885217763"},"_hasShrinkwrap":false,"publish_time":1626436140721,"_cnpm_publish_time":1626436140721,"_cnpmcore_publish_time":"2021-12-16T22:49:59.755Z"}},"readme":"# noise-curve-ed\n\nEd25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)\n\n## Usage\n```js\nconst curve = require('noise-curve-ed')\nconst Noise = require('noise-handshake')\n\nconst handshake = new Noise(pattern, initiator, staticKeyPair, { curve })\n```\n\n## API\n\n#### constants\n\n`DHLEN` = 32\n`PKLEN` = 32\n`SCALARLEN` = 32\n`SKLEN` = 64\n`ALG` = 'Ed25519'\n\n#### `generateKeyPair([privKey])`\n\nGenerate a new keypair, optionally pass in a preexisting `privKey`. Return value is of the form:\n\n```\n{\n  publicKey,\n  secretKey,\n}\n```\n\n#### `dh(publicKey, { secretKey, scalar })`\n\nPerform DH between `publicKey` and `secretKey`/`scalar` and return the result.\n","_attachments":{},"homepage":"https://github.com/chm-diederichs/noise-curve-ed#readme","bugs":{"url":"https://github.com/chm-diederichs/noise-curve-ed/issues"},"license":"ISC"}