NamedCommitNode

Type Alias NamedCommitNode 

Source
pub type NamedCommitNode<J> = Node<Named<Commit<J>>>;

Aliased Type§

pub struct NamedCommitNode<J> { /* private fields */ }

Implementations§

Source§

impl<J: Jet> NamedCommitNode<J>

Source

pub fn from_node(root: &CommitNode<J>) -> Arc<Self>

Source

pub fn name(&self) -> &Arc<str>

Accessor for the node’s name

Source

pub fn ihr(&self) -> Option<Ihr>

Accessor for the node’s name

Source

pub fn arrow(&self) -> &FinalArrow

Accessor for the node’s type arrow

Source

pub fn to_commit_node(&self) -> Arc<CommitNode<J>>

Forget the names, yielding an ordinary CommitNode.

Source

pub fn to_construct_node<'brand>( &self, inference_context: &Context<'brand>, witness: &HashMap<Arc<str>, Value>, disconnect: &HashMap<Arc<str>, Arc<NamedCommitNode<J>>>, ) -> Arc<ConstructNode<'brand, J>>

Source

pub fn encode<W: Write>(&self, w: &mut BitWriter<W>) -> Result<usize>

👎Deprecated since 0.5.0: use Self::encode_without_witness instead

Encode a Simplicity expression to bits without any witness data

Source

pub fn encode_to_vec(&self) -> Vec<u8>

👎Deprecated since 0.5.0: use Self::to_vec_without_witness instead

Encode a Simplicity program to a vector of bytes, without any witness data.