This is a binding to the curve25519-donna library for node. Usage:
const curve = require('curve25519-n');
Returns a Buffer
.
Provide it with your secret key as a 32-bytes-long Buffer
and get a Buffer
containing your public key as the result.
Derive your shared secret with someone else by giving this function two 32-bytes-long buffers containing your secret key and the other persons public key. Returns a Buffer
.
npm i -S curve25519-n
or yarn add curve25519-n
.
yarn test