Trait bitcoin_scripts::IntoNodeHash
source · pub trait IntoNodeHash {
// Required method
fn into_node_hash(self) -> TapNodeHash;
}
Expand description
Marker trait for all forms of hashes which may participate in the construction of taproot script tree.
Required Methods§
sourcefn into_node_hash(self) -> TapNodeHash
fn into_node_hash(self) -> TapNodeHash
Converts leaf or branch hash into a generic SHA256 hash value, which can be used to construct hidden nodes in the tap tree.
Implementations on Foreign Types§
source§impl IntoNodeHash for TapLeafHash
impl IntoNodeHash for TapLeafHash
source§fn into_node_hash(self) -> TapNodeHash
fn into_node_hash(self) -> TapNodeHash
Converts this leaf hash into a generic SHA256 hash value, which can be used to construct hidden nodes in the tap tree.
source§impl IntoNodeHash for TapBranchHash
impl IntoNodeHash for TapBranchHash
source§fn into_node_hash(self) -> TapNodeHash
fn into_node_hash(self) -> TapNodeHash
Converts this branch hash into a generic SHA256 hash value, which can be used to construct hidden nodes in the tap tree.