Table of Contents

Delegate EcdhHashFunction

Namespace
Secp256k1Net
Assembly
Secp256k1.Net.dll

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

public delegate int EcdhHashFunction(Span<byte> output, ReadOnlySpan<byte> x32, ReadOnlySpan<byte> y32, nint data)

Parameters

output Span<byte>

pointer to an array to be filled by the function

x32 ReadOnlySpan<byte>

pointer to a 32-byte x coordinate

y32 ReadOnlySpan<byte>

pointer to a 32-byte y coordinate

data nint

arbitrary data pointer that is passed through

Returns

int

1 on success, 0 on failure.