A circuit to generate a shared secret from a private key and a public key on the Baby Jubjub curve.
[!WARNING]
This library has not been audited.
Install the @zk-kit/ecdh.circom
package with npm:
npm i @zk-kit/ecdh.circom --save
or yarn:
yarn add @zk-kit/ecdh.circom
Try out the circuit with Circom locally:
include "ecdh.circom";
component main = Ecdh();
circom -l ./node_modules/@zk-kit/echd.circom/src -l ./node_modules/circomlib/circuits your-circuit.circom