Create a signet chain parameters struct with a user‐provided challenge.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard]]
btck_ChainParameters*
btck_chain_parameters_create_signet(
    void const* challenge,
    size_t challenge_len);

Return Value

An allocated chain parameters opaque struct.

Note

The return value should not be discarded.

Parameters

Name

Description

challenge [in]

The signet challenge value. Blocks must satisfy it in order to be valid.

challenge_len [in]

The length of the signet challenge.

Created with MrDocs