{"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":{"integrity":"sha512-5VVLHUH62Cs2fGeqqC//q0L76Q6QxwYxLI6RhoDshDC2R7/HlapgieAIyl1qekgS8PQg/5t9U0wLFBO8PRW0Nw==","shasum":"d35503590773172452440bfce361d58144754c12","tarball":"http://registry-npm.ywwl.com/noise-curve-ed/download/noise-curve-ed-1.0.1.tgz","fileCount":4,"unpackedSize":3388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8XznCRA9TVsSAnZWagAA1qQP/RY49pOrE1Bu4e4nnBYv\nRV/6dZTdFxn6JssAtj+mZL9SrG+WLfNN49XSXqjEF7y0a2B6giHTozG5aYKQ\nFpKOcZFGuODElDT/loXgMqltD/QC4nCkRP/ZN/5ZLuyfC/hSAJIfji/HM0e/\nFPdhNB5t9Yl2nIuYfKxrdcCBYn7laA6QRPnMidhBy6ju/URudduGddyr0Ki7\nHv/4I9bnE1j43yqJITjQJhXzb9FFH7q7IyZP6aytZIUtokr4M2uiyLfGk6tL\n2FmPDpoywyt2QWYHr4cKwbaYjjpiBFC0CjucMBMPoO4RjlDw/w+EK2IHeSGT\nT+iHgrTceOciR+0GQubG/isvXvYM/Ul8LwwKkxGX4+K+x3XsW40yeCWGGwNM\n0Ay+Ib09ufLDDnV3Qzbki6e/O0o/2nYAh9WtfwAxr/GE+yR6I6YYKOGY4thZ\nP5q1/zZnJz119S2YFeyX8cGLLt+zpuC1PfVk+IjBdGx0AH1c17Gig4PFFDhh\nG2AiSe1agz8aNoCkXzoWHR84mvmfVkUId6Oxw0LdcUawmeoWmyGr8yS6BfNh\nX5Y6cf2duQ7Y/+MU8H0bGbA6sf5ssAQob6sFUfMFZdPViYYfCzpuvb9VU5UI\nFnjZR4ECoR265gKGdMnBhwqVFBJULSwyAEulwbi+KrBnqsetIHsIrzQAJ1AR\nNpQp\r\n=Dfhj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHb+9Hfbh22qQ7MFaCBk6TOSdepVCke8eLHBvdF5E4YSAiEAxNtA3dWDVHyJivQbNPlJ+ijWGrJx3yFedEE97gCxtb4="}],"size":1453,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.1.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.1_1626438887679_0.3207662688560875"},"_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":1626438887814,"_cnpm_publish_time":1626438887814,"dist-tags":{"latest":"2.1.0"}}