Non‐owning view over a btck_WitnessStack.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class WitnessStackView
    : public View<btck_WitnessStack>
    , public WitnessStackApi<WitnessStackView>

Base Classes

Name

Description

View<btck_WitnessStack>

Non‐owning view over a const C handle of type CType.

WitnessStackApi<WitnessStackView>

CRTP mixin adding witness‐stack accessors shared by the view and owning types.

Member Functions

Name

Description

WitnessStackView [constructor]

Constructs a view over ptr.

CountItems

Returns the number of items on the witness stack.

GetItem

Returns a single witness item by index.

Items

get

Returns the borrowed C handle.

Protected Data Members

Name

Description

m_ptr

The borrowed C handle.

Created with MrDocs