include.secp256k1_ecdh

Undocumented in source.

Members

Aliases

secp256k1_ecdh_hash_function
alias secp256k1_ecdh_hash_function = int function(ubyte* output, const(ubyte)* x32, const(ubyte)* y32, void* data)

A pointer to a function that hashes an EC point to obtain an ECDH secret

Functions

secp256k1_ecdh
int secp256k1_ecdh(const(secp256k1_context)* ctx, ubyte* output, const(secp256k1_pubkey)* pubkey, const(ubyte)* seckey, secp256k1_ecdh_hash_function hashfp, void* data)

Compute an EC Diffie-Hellman secret in constant time

Static variables

secp256k1_ecdh_hash_function_default
secp256k1_ecdh_hash_function secp256k1_ecdh_hash_function_default;

A default ECDH hash function (currently equal to secp256k1_ecdh_hash_function_sha256). * Populates the output parameter with 32 bytes.

secp256k1_ecdh_hash_function_sha256
secp256k1_ecdh_hash_function secp256k1_ecdh_hash_function_sha256;

An implementation of SHA256 hash function that applies to compressed public key. * Populates the output parameter with 32 bytes.

Meta