Type Alias simplicity::node::WitnessNode

source ·
pub type WitnessNode<J> = Node<Witness<J>>;

Aliased Type§

struct WitnessNode<J> { /* private fields */ }

Implementations§

source§

impl<J: Jet> WitnessNode<J>

source

pub fn pruned(&self) -> Arc<Self>

Creates a copy of the node (and its entire DAG with the prune bit set)

source

pub fn arrow(&self) -> &Arrow

Accessor for the node’s arrow

source

pub fn must_prune(&self) -> bool

Whether the “must prune” bit is set on this node

source

pub fn prune_and_retype(&self) -> Arc<Self>

source

pub fn finalize(&self) -> Result<Arc<RedeemNode<J>>, Error>