Minimal Anti Collusion Infrastructure (MACI) v2.0.0-alpha / 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
Defined in
crypto/ts/keys.ts:76