btck_witness_stack_copy

Copy a witness stack.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_WitnessStack*
btck_witness_stack_copy(btck_WitnessStack const* witness_stack);

Return Value

The copied witness stack.

NOTE

The return value should not be discarded.

Parameters

NameDescription
witness_stack [in]Non-null.