Minimal Anti Collusion Infrastructure (MACI) v2.5.0 / genEcdhSharedKey
Function: genEcdhSharedKey()
genEcdhSharedKey(
privKey
,pubKey
):EcdhSharedKey
Generates an Elliptic-Curve Diffie–Hellman (ECDH) shared key given a private key and a public key.
Parameters
• privKey: SnarkBigNumber
A private key generated using genPrivKey()
• pubKey: PubKey
A public key generated using genPubKey()
Returns
The ECDH shared key.
Defined in
packages/crypto/ts/keys.ts:76