{"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":{"integrity":"sha512-1btubOWpqiI3WPXMmnotTfFsKXGeQBfTu94t4+ViBtPQfz6mciF7Kdlfg1YrXehvVThWY28HfJURCkQyJjHM6w==","shasum":"39468e4cfa1d5e6f403ca30d2a361c8d6e1e9097","tarball":"http://registry-npm.ywwl.com/noise-curve-ed/download/noise-curve-ed-1.0.3.tgz","fileCount":4,"unpackedSize":3397,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLOxuHrmD6vctJX6hDhlWXbym/rAb1OhimYnh9VXenrwIhAKu9nBilPf74iAu+ynWMi2rFsZ+dnKCAUCpQXOyVr282"}],"size":1450,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.3.tgz"},"_npmUser":{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"},"directories":{},"maintainers":[{"name":"chm-diederichs","email":"christophe.diederichs@googlemail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noise-curve-ed_1.0.3_1634654263269_0.02482179398219242"},"_hasShrinkwrap":false,"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","publish_time":1634654263601,"_cnpm_publish_time":1634654263601,"dist-tags":{"latest":"2.1.0"}}