Type Definition secp256k1::ffi::EcdhHashFn[][src]

type EcdhHashFn = unsafe extern "C" fn(output: *mut c_uchar, x: *const c_uchar, y: *const c_uchar, data: *mut c_void) -> c_int;

A pointer to a function that applies a hash function to a point

Returns: 1 if a point was successfully hashed. 0 will cause ecdh to fail

Out: output: pointer to an array to be filled by the function In: x: pointer to a 32-byte x coordinate y: pointer to a 32-byte y coordinate data: Arbitrary data pointer that is passed through