Table of Contents

Delegate EllswiftXdhHashFunction

Namespace
Secp256k1Net
Assembly
Secp256k1.Net.dll

A pointer to a function used by secp256k1_ellswift_xdh to hash the shared X coordinate along with the encoded public keys to a uniform shared secret.

public delegate int EllswiftXdhHashFunction(Span<byte> output, ReadOnlySpan<byte> x32, ReadOnlySpan<byte> ell_a64, ReadOnlySpan<byte> ell_b64, nint data)

Parameters

output Span<byte>

pointer to an array to be filled by the function

x32 ReadOnlySpan<byte>

pointer to the 32-byte serialized X coordinate of the resulting shared point (will not be NULL)

ell_a64 ReadOnlySpan<byte>

pointer to the 64-byte encoded public key of party A (will not be NULL)

ell_b64 ReadOnlySpan<byte>

pointer to the 64-byte encoded public key of party B (will not be NULL)

data nint

arbitrary data pointer that is passed through

Returns

int

1 on success, 0 on failure.