Skip to main content

ecdh_shared_secret

Standalone Functions

derive_ecdh_shared_secret

derive_ecdh_shared_secret(secret, public_key);

See also: https://en.wikipedia.org/wiki/Elliptic-curve_Diffie%E2%80%93Hellman

Parameters

NameType
secretScalar
public_keyPoint

derive_ecdh_shared_secret_using_aztec_address

derive_ecdh_shared_secret_using_aztec_address(ephemeral_secret, recipient_address, );

/ given the address of their intended recipient.

Parameters

NameType
ephemeral_secretScalar
recipient_addressAztecAddress

test_consistency_with_typescript

test_consistency_with_typescript();

Takes no parameters.

test_shared_secret_computation_in_both_directions

test_shared_secret_computation_in_both_directions();

Takes no parameters.

test_shared_secret_computation_from_address_in_both_directions

test_shared_secret_computation_from_address_in_both_directions();

Takes no parameters.