fix: multi-repo local dev (file:../ deps, package exports, missing deps)

This commit is contained in:
Raven Scott
2026-05-21 20:14:54 -04:00
parent 76e3272ced
commit b63275c6cc
802 changed files with 94636 additions and 4 deletions
+36
View File
@@ -0,0 +1,36 @@
# noise-curve-ed
Ed25519 elliptic curve operations for [`noise-handshake`](https://github.com/chm-diederichs/noise-handshake)
## Usage
```js
const curve = require('noise-curve-ed')
const Noise = require('noise-handshake')
const handshake = new Noise(pattern, initiator, staticKeyPair, { curve })
```
## API
#### constants
`DHLEN` = 32
`PKLEN` = 32
`SCALARLEN` = 32
`SKLEN` = 64
`ALG` = 'Ed25519'
#### `generateKeyPair([privKey])`
Generate a new keypair, optionally pass in a preexisting `privKey`. Return value is of the form:
```
{
publicKey,
secretKey,
}
```
#### `dh(publicKey, { secretKey, scalar })`
Perform DH between `publicKey` and `secretKey`/`scalar` and return the result.