Minimal Anti Collusion Infrastructure (MACI) / genEcdhSharedKey
Function: genEcdhSharedKey()
genEcdhSharedKey(
privKey
,pubKey
):EcdhSharedKey
Defined in: packages/crypto/ts/keys.ts:76
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
A public key generated using genPubKey()
Returns
The ECDH shared key.