{"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":{"integrity":"sha512-RIKLqavlp30ctxfoxectM7UyIqRoJbor1v9DtN8eynOv2iFrxH13Tb9tu/HjWrWXpe+BoePu7MyhD1ig3fU7Vw==","shasum":"7303d9d492c99734d7892a54e770d8df4d6a510b","tarball":"http://registry-npm.ywwl.com/noise-curve-ed/download/noise-curve-ed-1.0.0.tgz","fileCount":4,"unpackedSize":3213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8XIsCRA9TVsSAnZWagAAgTAQAKLct/XzxsF7LeplEuwy\n/75eFZc+2XZ2WF4xlWFNiCEG342EmzymxsTi0GKIgrJlywIehEykIFFPIJc+\n1i36bRFELzyQ4B99rFdn4g/NxJUi3/A3OBjznc98t/Ge1mS+oYybBgsFDjWd\n1fj/qelXepjclzyUa2clnUVHIsorkTXkA8arnlFqklrsg+lrT4jIkGwofKZO\nSYAUCGTeGO9+/2QUeGuul0aLIhXeLoRPBiGR743quvx/2rvPq31Y/ai+UXCg\nj1hcOMZK+MMzoOPwmpAl8Tzpo8pAEBViFG+iHSRy4eElZzjQk3uBVZVK25F4\n/eD6nyl4O3YIVgBwDSlUpryTSJeg8Tfr1/xI//KHfQJdCPa4JKsZTKUyXzu+\nkR+hS4hQ+Sz/nx07dSBqntQ33tPehvPjacP5QAVHRnSUwvHgpWylWJNUwOfr\nRfzY9F1KVajdiBEJ797SoWbp/QhgxL8yhUgvtL7jTqPk4WAx2ibTq0FleNYm\nx/a3pLpGOpoq7muLH9oGv/oHxjttAixdjRnh+QauFqgdcwZlqBt7MG/aAq5J\nlACCE9TVGD4ldzHP6bSNDZT0ro8fQ0ZauFVa3DnAwHIokzDJDNW6Ze+6UKVO\n9ZmySBCHcEfRo589LmcKraTTNn6VWILDJlZ7oSye9d+UpZi0EbyHjIRbMop8\nsxaP\r\n=6TSd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhY3Dz8IqGIJuu/xyPcefjAMOz00nO3+az/0nqC6ptJAiEA/+G2uX2JoUw13yasV/Zx/VPxpvnCBYPZYZZ8aQ5Lil4="}],"size":1438,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.0.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.0_1626436140579_0.6161674885217763"},"_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":1626436140721,"_cnpm_publish_time":1626436140721,"dist-tags":{"latest":"2.1.0"}}