pub type NamedCommitNode<J> = Node<Named<Commit<J>>>;Aliased Type§
struct NamedCommitNode<J> { /* private fields */ }Implementations§
Source§impl<J: Jet> NamedCommitNode<J>
impl<J: Jet> NamedCommitNode<J>
pub fn from_node(root: &CommitNode<J>) -> Arc<Self>
Sourcepub fn arrow(&self) -> &FinalArrow
pub fn arrow(&self) -> &FinalArrow
Accessor for the node’s type arrow
Sourcepub fn to_commit_node(&self) -> Arc<CommitNode<J>>
pub fn to_commit_node(&self) -> Arc<CommitNode<J>>
Forget the names, yielding an ordinary CommitNode.
pub fn to_witness_node( &self, witness: &HashMap<Arc<str>, Value>, disconnect: &HashMap<Arc<str>, Arc<NamedCommitNode<J>>>, ) -> Arc<WitnessNode<J>>
Sourcepub fn encode<W: Write>(&self, w: &mut BitWriter<W>) -> Result<usize>
pub fn encode<W: Write>(&self, w: &mut BitWriter<W>) -> Result<usize>
Encode a Simplicity expression to bits without any witness data
Sourcepub fn encode_to_vec(&self) -> Vec<u8> ⓘ
pub fn encode_to_vec(&self) -> Vec<u8> ⓘ
Encode a Simplicity program to a vector of bytes, without any witness data.