{"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":{"integrity":"sha512-oUaibvHZ2RVsbv4k2VHCH6vL9dQBaGt7bHHlf/aSFSwzi2/GMcOWknvb739bdbTq3YD1wOyvzH1LpJZribnrKA==","shasum":"ad18d5335100ad35cd18f6b85b51f4e954548d68","tarball":"http://registry-npm.ywwl.com/noise-curve-ed/download/noise-curve-ed-1.0.2.tgz","fileCount":4,"unpackedSize":3401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHhqTCRA9TVsSAnZWagAAta0P+wd+Ark+LCnLM3uk3GHS\n022yEQUKo53058l6dTlY5utoGP3y59oJw7UqyQ+kKpHE1ebqZz5Dip+a4p2+\ndPOHVI/e0xxP18SNAL6XztGLAwzWIT+d5A3vyLdfAkByq720FpyRsJpwrpLu\nR8/6vFbXwhpXRoj393uOEdljFFOnb1DN2TgoudRpen1JD9e2N18y+WY2uOU+\nCvXkvjnYCtDxRUfw0k5owMOY/nDfwJtE9j6vRrvXCv9vRMEE8631wluY+SYy\nY3+s7hKILEqdlwwfXUnqfvwrv2vZuoe62Jomq3UeGL1KpsjwjUZyo7Tc0b7T\nWgnDxotC6avwGUIliSJee1UUpAc63+QbfXXCOupTeFhJPkILQXV1SSrxNsSN\nGDh6dZHACJ62mOOjJuBVnKHmm67kzJ0Xq1x2f0IcAMbWPLPh4Tmmn7rtUCk4\nB8cOA60hWABenfwKbdiavLVDqxCSWSa+9i3D52yX5AcAoO9oV2inS+ajy44d\nDpwTDJnnWOQen7mRYScLnf+eYwcWPxHTavp9K4HRmdEDBWRPJWAo2wFM5Nx7\nl1tMSuQ4lkSeFLZbntWh3WIWFqXzZG6gH1GoTMPhsMExrVhdSVAl+IwhVSCa\nXE1xnJE4G1WALMBWo1jbDNEefYPImj4FblJRoB27HTlbaGNNkVjdgzz9kLl4\neu4h\r\n=43xL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjthIpmoLrd4FRjvS6xHuKRQiBzSH6nKkdIDyXIhReUgIgS4t07uEfpwVzUpsNjrg+IKPe5nkPjH40rJxFoBAjEiA="}],"size":1458,"noattachment":false,"key":"/noise-curve-ed/-/noise-curve-ed-1.0.2.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.2_1629362834909_0.7416256844286742"},"_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":1629362835089,"_cnpm_publish_time":1629362835089,"dist-tags":{"latest":"2.1.0"}}