Struct bitcoin::taproot::TaprootMerkleBranch
source · pub struct TaprootMerkleBranch(/* private fields */);
Expand description
The merkle proof for inclusion of a tree in a taptree hash.
Implementations§
source§impl TaprootMerkleBranch
impl TaprootMerkleBranch
sourcepub fn as_inner(&self) -> &[TapNodeHash]
pub fn as_inner(&self) -> &[TapNodeHash]
Returns a reference to the inner vector of hashes.
sourcepub fn decode(sl: &[u8]) -> Result<Self, TaprootError>
pub fn decode(sl: &[u8]) -> Result<Self, TaprootError>
Decodes bytes from control block.
This reads the branch as encoded in the control block: the concatenated 32B byte chunks - one for each hash.
Errors
The function returns an error if the the number of bytes is not an integer multiple of 32 or if the number of hashes exceeds 128.
sourcepub fn into_inner(self) -> Vec<TapNodeHash>
pub fn into_inner(self) -> Vec<TapNodeHash>
Returns the inner list of hashes.
Trait Implementations§
source§impl Clone for TaprootMerkleBranch
impl Clone for TaprootMerkleBranch
source§fn clone(&self) -> TaprootMerkleBranch
fn clone(&self) -> TaprootMerkleBranch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaprootMerkleBranch
impl Debug for TaprootMerkleBranch
source§impl Default for TaprootMerkleBranch
impl Default for TaprootMerkleBranch
source§fn default() -> TaprootMerkleBranch
fn default() -> TaprootMerkleBranch
source§impl<'de> Deserialize<'de> for TaprootMerkleBranch
impl<'de> Deserialize<'de> for TaprootMerkleBranch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl From<[TapNodeHash; 0]> for TaprootMerkleBranch
impl From<[TapNodeHash; 0]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 0]) -> Self
fn from(a: [TapNodeHash; 0]) -> Self
source§impl From<[TapNodeHash; 1]> for TaprootMerkleBranch
impl From<[TapNodeHash; 1]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 1]) -> Self
fn from(a: [TapNodeHash; 1]) -> Self
source§impl From<[TapNodeHash; 10]> for TaprootMerkleBranch
impl From<[TapNodeHash; 10]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 10]) -> Self
fn from(a: [TapNodeHash; 10]) -> Self
source§impl From<[TapNodeHash; 100]> for TaprootMerkleBranch
impl From<[TapNodeHash; 100]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 100]) -> Self
fn from(a: [TapNodeHash; 100]) -> Self
source§impl From<[TapNodeHash; 101]> for TaprootMerkleBranch
impl From<[TapNodeHash; 101]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 101]) -> Self
fn from(a: [TapNodeHash; 101]) -> Self
source§impl From<[TapNodeHash; 102]> for TaprootMerkleBranch
impl From<[TapNodeHash; 102]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 102]) -> Self
fn from(a: [TapNodeHash; 102]) -> Self
source§impl From<[TapNodeHash; 103]> for TaprootMerkleBranch
impl From<[TapNodeHash; 103]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 103]) -> Self
fn from(a: [TapNodeHash; 103]) -> Self
source§impl From<[TapNodeHash; 104]> for TaprootMerkleBranch
impl From<[TapNodeHash; 104]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 104]) -> Self
fn from(a: [TapNodeHash; 104]) -> Self
source§impl From<[TapNodeHash; 105]> for TaprootMerkleBranch
impl From<[TapNodeHash; 105]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 105]) -> Self
fn from(a: [TapNodeHash; 105]) -> Self
source§impl From<[TapNodeHash; 106]> for TaprootMerkleBranch
impl From<[TapNodeHash; 106]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 106]) -> Self
fn from(a: [TapNodeHash; 106]) -> Self
source§impl From<[TapNodeHash; 107]> for TaprootMerkleBranch
impl From<[TapNodeHash; 107]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 107]) -> Self
fn from(a: [TapNodeHash; 107]) -> Self
source§impl From<[TapNodeHash; 108]> for TaprootMerkleBranch
impl From<[TapNodeHash; 108]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 108]) -> Self
fn from(a: [TapNodeHash; 108]) -> Self
source§impl From<[TapNodeHash; 109]> for TaprootMerkleBranch
impl From<[TapNodeHash; 109]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 109]) -> Self
fn from(a: [TapNodeHash; 109]) -> Self
source§impl From<[TapNodeHash; 11]> for TaprootMerkleBranch
impl From<[TapNodeHash; 11]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 11]) -> Self
fn from(a: [TapNodeHash; 11]) -> Self
source§impl From<[TapNodeHash; 110]> for TaprootMerkleBranch
impl From<[TapNodeHash; 110]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 110]) -> Self
fn from(a: [TapNodeHash; 110]) -> Self
source§impl From<[TapNodeHash; 111]> for TaprootMerkleBranch
impl From<[TapNodeHash; 111]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 111]) -> Self
fn from(a: [TapNodeHash; 111]) -> Self
source§impl From<[TapNodeHash; 112]> for TaprootMerkleBranch
impl From<[TapNodeHash; 112]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 112]) -> Self
fn from(a: [TapNodeHash; 112]) -> Self
source§impl From<[TapNodeHash; 113]> for TaprootMerkleBranch
impl From<[TapNodeHash; 113]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 113]) -> Self
fn from(a: [TapNodeHash; 113]) -> Self
source§impl From<[TapNodeHash; 114]> for TaprootMerkleBranch
impl From<[TapNodeHash; 114]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 114]) -> Self
fn from(a: [TapNodeHash; 114]) -> Self
source§impl From<[TapNodeHash; 115]> for TaprootMerkleBranch
impl From<[TapNodeHash; 115]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 115]) -> Self
fn from(a: [TapNodeHash; 115]) -> Self
source§impl From<[TapNodeHash; 116]> for TaprootMerkleBranch
impl From<[TapNodeHash; 116]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 116]) -> Self
fn from(a: [TapNodeHash; 116]) -> Self
source§impl From<[TapNodeHash; 117]> for TaprootMerkleBranch
impl From<[TapNodeHash; 117]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 117]) -> Self
fn from(a: [TapNodeHash; 117]) -> Self
source§impl From<[TapNodeHash; 118]> for TaprootMerkleBranch
impl From<[TapNodeHash; 118]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 118]) -> Self
fn from(a: [TapNodeHash; 118]) -> Self
source§impl From<[TapNodeHash; 119]> for TaprootMerkleBranch
impl From<[TapNodeHash; 119]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 119]) -> Self
fn from(a: [TapNodeHash; 119]) -> Self
source§impl From<[TapNodeHash; 12]> for TaprootMerkleBranch
impl From<[TapNodeHash; 12]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 12]) -> Self
fn from(a: [TapNodeHash; 12]) -> Self
source§impl From<[TapNodeHash; 120]> for TaprootMerkleBranch
impl From<[TapNodeHash; 120]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 120]) -> Self
fn from(a: [TapNodeHash; 120]) -> Self
source§impl From<[TapNodeHash; 121]> for TaprootMerkleBranch
impl From<[TapNodeHash; 121]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 121]) -> Self
fn from(a: [TapNodeHash; 121]) -> Self
source§impl From<[TapNodeHash; 122]> for TaprootMerkleBranch
impl From<[TapNodeHash; 122]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 122]) -> Self
fn from(a: [TapNodeHash; 122]) -> Self
source§impl From<[TapNodeHash; 123]> for TaprootMerkleBranch
impl From<[TapNodeHash; 123]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 123]) -> Self
fn from(a: [TapNodeHash; 123]) -> Self
source§impl From<[TapNodeHash; 124]> for TaprootMerkleBranch
impl From<[TapNodeHash; 124]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 124]) -> Self
fn from(a: [TapNodeHash; 124]) -> Self
source§impl From<[TapNodeHash; 125]> for TaprootMerkleBranch
impl From<[TapNodeHash; 125]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 125]) -> Self
fn from(a: [TapNodeHash; 125]) -> Self
source§impl From<[TapNodeHash; 126]> for TaprootMerkleBranch
impl From<[TapNodeHash; 126]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 126]) -> Self
fn from(a: [TapNodeHash; 126]) -> Self
source§impl From<[TapNodeHash; 127]> for TaprootMerkleBranch
impl From<[TapNodeHash; 127]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 127]) -> Self
fn from(a: [TapNodeHash; 127]) -> Self
source§impl From<[TapNodeHash; 128]> for TaprootMerkleBranch
impl From<[TapNodeHash; 128]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 128]) -> Self
fn from(a: [TapNodeHash; 128]) -> Self
source§impl From<[TapNodeHash; 13]> for TaprootMerkleBranch
impl From<[TapNodeHash; 13]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 13]) -> Self
fn from(a: [TapNodeHash; 13]) -> Self
source§impl From<[TapNodeHash; 14]> for TaprootMerkleBranch
impl From<[TapNodeHash; 14]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 14]) -> Self
fn from(a: [TapNodeHash; 14]) -> Self
source§impl From<[TapNodeHash; 15]> for TaprootMerkleBranch
impl From<[TapNodeHash; 15]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 15]) -> Self
fn from(a: [TapNodeHash; 15]) -> Self
source§impl From<[TapNodeHash; 16]> for TaprootMerkleBranch
impl From<[TapNodeHash; 16]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 16]) -> Self
fn from(a: [TapNodeHash; 16]) -> Self
source§impl From<[TapNodeHash; 17]> for TaprootMerkleBranch
impl From<[TapNodeHash; 17]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 17]) -> Self
fn from(a: [TapNodeHash; 17]) -> Self
source§impl From<[TapNodeHash; 18]> for TaprootMerkleBranch
impl From<[TapNodeHash; 18]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 18]) -> Self
fn from(a: [TapNodeHash; 18]) -> Self
source§impl From<[TapNodeHash; 19]> for TaprootMerkleBranch
impl From<[TapNodeHash; 19]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 19]) -> Self
fn from(a: [TapNodeHash; 19]) -> Self
source§impl From<[TapNodeHash; 2]> for TaprootMerkleBranch
impl From<[TapNodeHash; 2]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 2]) -> Self
fn from(a: [TapNodeHash; 2]) -> Self
source§impl From<[TapNodeHash; 20]> for TaprootMerkleBranch
impl From<[TapNodeHash; 20]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 20]) -> Self
fn from(a: [TapNodeHash; 20]) -> Self
source§impl From<[TapNodeHash; 21]> for TaprootMerkleBranch
impl From<[TapNodeHash; 21]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 21]) -> Self
fn from(a: [TapNodeHash; 21]) -> Self
source§impl From<[TapNodeHash; 22]> for TaprootMerkleBranch
impl From<[TapNodeHash; 22]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 22]) -> Self
fn from(a: [TapNodeHash; 22]) -> Self
source§impl From<[TapNodeHash; 23]> for TaprootMerkleBranch
impl From<[TapNodeHash; 23]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 23]) -> Self
fn from(a: [TapNodeHash; 23]) -> Self
source§impl From<[TapNodeHash; 24]> for TaprootMerkleBranch
impl From<[TapNodeHash; 24]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 24]) -> Self
fn from(a: [TapNodeHash; 24]) -> Self
source§impl From<[TapNodeHash; 25]> for TaprootMerkleBranch
impl From<[TapNodeHash; 25]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 25]) -> Self
fn from(a: [TapNodeHash; 25]) -> Self
source§impl From<[TapNodeHash; 26]> for TaprootMerkleBranch
impl From<[TapNodeHash; 26]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 26]) -> Self
fn from(a: [TapNodeHash; 26]) -> Self
source§impl From<[TapNodeHash; 27]> for TaprootMerkleBranch
impl From<[TapNodeHash; 27]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 27]) -> Self
fn from(a: [TapNodeHash; 27]) -> Self
source§impl From<[TapNodeHash; 28]> for TaprootMerkleBranch
impl From<[TapNodeHash; 28]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 28]) -> Self
fn from(a: [TapNodeHash; 28]) -> Self
source§impl From<[TapNodeHash; 29]> for TaprootMerkleBranch
impl From<[TapNodeHash; 29]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 29]) -> Self
fn from(a: [TapNodeHash; 29]) -> Self
source§impl From<[TapNodeHash; 3]> for TaprootMerkleBranch
impl From<[TapNodeHash; 3]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 3]) -> Self
fn from(a: [TapNodeHash; 3]) -> Self
source§impl From<[TapNodeHash; 30]> for TaprootMerkleBranch
impl From<[TapNodeHash; 30]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 30]) -> Self
fn from(a: [TapNodeHash; 30]) -> Self
source§impl From<[TapNodeHash; 31]> for TaprootMerkleBranch
impl From<[TapNodeHash; 31]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 31]) -> Self
fn from(a: [TapNodeHash; 31]) -> Self
source§impl From<[TapNodeHash; 32]> for TaprootMerkleBranch
impl From<[TapNodeHash; 32]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 32]) -> Self
fn from(a: [TapNodeHash; 32]) -> Self
source§impl From<[TapNodeHash; 33]> for TaprootMerkleBranch
impl From<[TapNodeHash; 33]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 33]) -> Self
fn from(a: [TapNodeHash; 33]) -> Self
source§impl From<[TapNodeHash; 34]> for TaprootMerkleBranch
impl From<[TapNodeHash; 34]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 34]) -> Self
fn from(a: [TapNodeHash; 34]) -> Self
source§impl From<[TapNodeHash; 35]> for TaprootMerkleBranch
impl From<[TapNodeHash; 35]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 35]) -> Self
fn from(a: [TapNodeHash; 35]) -> Self
source§impl From<[TapNodeHash; 36]> for TaprootMerkleBranch
impl From<[TapNodeHash; 36]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 36]) -> Self
fn from(a: [TapNodeHash; 36]) -> Self
source§impl From<[TapNodeHash; 37]> for TaprootMerkleBranch
impl From<[TapNodeHash; 37]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 37]) -> Self
fn from(a: [TapNodeHash; 37]) -> Self
source§impl From<[TapNodeHash; 38]> for TaprootMerkleBranch
impl From<[TapNodeHash; 38]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 38]) -> Self
fn from(a: [TapNodeHash; 38]) -> Self
source§impl From<[TapNodeHash; 39]> for TaprootMerkleBranch
impl From<[TapNodeHash; 39]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 39]) -> Self
fn from(a: [TapNodeHash; 39]) -> Self
source§impl From<[TapNodeHash; 4]> for TaprootMerkleBranch
impl From<[TapNodeHash; 4]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 4]) -> Self
fn from(a: [TapNodeHash; 4]) -> Self
source§impl From<[TapNodeHash; 40]> for TaprootMerkleBranch
impl From<[TapNodeHash; 40]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 40]) -> Self
fn from(a: [TapNodeHash; 40]) -> Self
source§impl From<[TapNodeHash; 41]> for TaprootMerkleBranch
impl From<[TapNodeHash; 41]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 41]) -> Self
fn from(a: [TapNodeHash; 41]) -> Self
source§impl From<[TapNodeHash; 42]> for TaprootMerkleBranch
impl From<[TapNodeHash; 42]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 42]) -> Self
fn from(a: [TapNodeHash; 42]) -> Self
source§impl From<[TapNodeHash; 43]> for TaprootMerkleBranch
impl From<[TapNodeHash; 43]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 43]) -> Self
fn from(a: [TapNodeHash; 43]) -> Self
source§impl From<[TapNodeHash; 44]> for TaprootMerkleBranch
impl From<[TapNodeHash; 44]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 44]) -> Self
fn from(a: [TapNodeHash; 44]) -> Self
source§impl From<[TapNodeHash; 45]> for TaprootMerkleBranch
impl From<[TapNodeHash; 45]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 45]) -> Self
fn from(a: [TapNodeHash; 45]) -> Self
source§impl From<[TapNodeHash; 46]> for TaprootMerkleBranch
impl From<[TapNodeHash; 46]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 46]) -> Self
fn from(a: [TapNodeHash; 46]) -> Self
source§impl From<[TapNodeHash; 47]> for TaprootMerkleBranch
impl From<[TapNodeHash; 47]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 47]) -> Self
fn from(a: [TapNodeHash; 47]) -> Self
source§impl From<[TapNodeHash; 48]> for TaprootMerkleBranch
impl From<[TapNodeHash; 48]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 48]) -> Self
fn from(a: [TapNodeHash; 48]) -> Self
source§impl From<[TapNodeHash; 49]> for TaprootMerkleBranch
impl From<[TapNodeHash; 49]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 49]) -> Self
fn from(a: [TapNodeHash; 49]) -> Self
source§impl From<[TapNodeHash; 5]> for TaprootMerkleBranch
impl From<[TapNodeHash; 5]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 5]) -> Self
fn from(a: [TapNodeHash; 5]) -> Self
source§impl From<[TapNodeHash; 50]> for TaprootMerkleBranch
impl From<[TapNodeHash; 50]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 50]) -> Self
fn from(a: [TapNodeHash; 50]) -> Self
source§impl From<[TapNodeHash; 51]> for TaprootMerkleBranch
impl From<[TapNodeHash; 51]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 51]) -> Self
fn from(a: [TapNodeHash; 51]) -> Self
source§impl From<[TapNodeHash; 52]> for TaprootMerkleBranch
impl From<[TapNodeHash; 52]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 52]) -> Self
fn from(a: [TapNodeHash; 52]) -> Self
source§impl From<[TapNodeHash; 53]> for TaprootMerkleBranch
impl From<[TapNodeHash; 53]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 53]) -> Self
fn from(a: [TapNodeHash; 53]) -> Self
source§impl From<[TapNodeHash; 54]> for TaprootMerkleBranch
impl From<[TapNodeHash; 54]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 54]) -> Self
fn from(a: [TapNodeHash; 54]) -> Self
source§impl From<[TapNodeHash; 55]> for TaprootMerkleBranch
impl From<[TapNodeHash; 55]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 55]) -> Self
fn from(a: [TapNodeHash; 55]) -> Self
source§impl From<[TapNodeHash; 56]> for TaprootMerkleBranch
impl From<[TapNodeHash; 56]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 56]) -> Self
fn from(a: [TapNodeHash; 56]) -> Self
source§impl From<[TapNodeHash; 57]> for TaprootMerkleBranch
impl From<[TapNodeHash; 57]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 57]) -> Self
fn from(a: [TapNodeHash; 57]) -> Self
source§impl From<[TapNodeHash; 58]> for TaprootMerkleBranch
impl From<[TapNodeHash; 58]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 58]) -> Self
fn from(a: [TapNodeHash; 58]) -> Self
source§impl From<[TapNodeHash; 59]> for TaprootMerkleBranch
impl From<[TapNodeHash; 59]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 59]) -> Self
fn from(a: [TapNodeHash; 59]) -> Self
source§impl From<[TapNodeHash; 6]> for TaprootMerkleBranch
impl From<[TapNodeHash; 6]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 6]) -> Self
fn from(a: [TapNodeHash; 6]) -> Self
source§impl From<[TapNodeHash; 60]> for TaprootMerkleBranch
impl From<[TapNodeHash; 60]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 60]) -> Self
fn from(a: [TapNodeHash; 60]) -> Self
source§impl From<[TapNodeHash; 61]> for TaprootMerkleBranch
impl From<[TapNodeHash; 61]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 61]) -> Self
fn from(a: [TapNodeHash; 61]) -> Self
source§impl From<[TapNodeHash; 62]> for TaprootMerkleBranch
impl From<[TapNodeHash; 62]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 62]) -> Self
fn from(a: [TapNodeHash; 62]) -> Self
source§impl From<[TapNodeHash; 63]> for TaprootMerkleBranch
impl From<[TapNodeHash; 63]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 63]) -> Self
fn from(a: [TapNodeHash; 63]) -> Self
source§impl From<[TapNodeHash; 64]> for TaprootMerkleBranch
impl From<[TapNodeHash; 64]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 64]) -> Self
fn from(a: [TapNodeHash; 64]) -> Self
source§impl From<[TapNodeHash; 65]> for TaprootMerkleBranch
impl From<[TapNodeHash; 65]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 65]) -> Self
fn from(a: [TapNodeHash; 65]) -> Self
source§impl From<[TapNodeHash; 66]> for TaprootMerkleBranch
impl From<[TapNodeHash; 66]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 66]) -> Self
fn from(a: [TapNodeHash; 66]) -> Self
source§impl From<[TapNodeHash; 67]> for TaprootMerkleBranch
impl From<[TapNodeHash; 67]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 67]) -> Self
fn from(a: [TapNodeHash; 67]) -> Self
source§impl From<[TapNodeHash; 68]> for TaprootMerkleBranch
impl From<[TapNodeHash; 68]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 68]) -> Self
fn from(a: [TapNodeHash; 68]) -> Self
source§impl From<[TapNodeHash; 69]> for TaprootMerkleBranch
impl From<[TapNodeHash; 69]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 69]) -> Self
fn from(a: [TapNodeHash; 69]) -> Self
source§impl From<[TapNodeHash; 7]> for TaprootMerkleBranch
impl From<[TapNodeHash; 7]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 7]) -> Self
fn from(a: [TapNodeHash; 7]) -> Self
source§impl From<[TapNodeHash; 70]> for TaprootMerkleBranch
impl From<[TapNodeHash; 70]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 70]) -> Self
fn from(a: [TapNodeHash; 70]) -> Self
source§impl From<[TapNodeHash; 71]> for TaprootMerkleBranch
impl From<[TapNodeHash; 71]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 71]) -> Self
fn from(a: [TapNodeHash; 71]) -> Self
source§impl From<[TapNodeHash; 72]> for TaprootMerkleBranch
impl From<[TapNodeHash; 72]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 72]) -> Self
fn from(a: [TapNodeHash; 72]) -> Self
source§impl From<[TapNodeHash; 73]> for TaprootMerkleBranch
impl From<[TapNodeHash; 73]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 73]) -> Self
fn from(a: [TapNodeHash; 73]) -> Self
source§impl From<[TapNodeHash; 74]> for TaprootMerkleBranch
impl From<[TapNodeHash; 74]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 74]) -> Self
fn from(a: [TapNodeHash; 74]) -> Self
source§impl From<[TapNodeHash; 75]> for TaprootMerkleBranch
impl From<[TapNodeHash; 75]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 75]) -> Self
fn from(a: [TapNodeHash; 75]) -> Self
source§impl From<[TapNodeHash; 76]> for TaprootMerkleBranch
impl From<[TapNodeHash; 76]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 76]) -> Self
fn from(a: [TapNodeHash; 76]) -> Self
source§impl From<[TapNodeHash; 77]> for TaprootMerkleBranch
impl From<[TapNodeHash; 77]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 77]) -> Self
fn from(a: [TapNodeHash; 77]) -> Self
source§impl From<[TapNodeHash; 78]> for TaprootMerkleBranch
impl From<[TapNodeHash; 78]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 78]) -> Self
fn from(a: [TapNodeHash; 78]) -> Self
source§impl From<[TapNodeHash; 79]> for TaprootMerkleBranch
impl From<[TapNodeHash; 79]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 79]) -> Self
fn from(a: [TapNodeHash; 79]) -> Self
source§impl From<[TapNodeHash; 8]> for TaprootMerkleBranch
impl From<[TapNodeHash; 8]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 8]) -> Self
fn from(a: [TapNodeHash; 8]) -> Self
source§impl From<[TapNodeHash; 80]> for TaprootMerkleBranch
impl From<[TapNodeHash; 80]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 80]) -> Self
fn from(a: [TapNodeHash; 80]) -> Self
source§impl From<[TapNodeHash; 81]> for TaprootMerkleBranch
impl From<[TapNodeHash; 81]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 81]) -> Self
fn from(a: [TapNodeHash; 81]) -> Self
source§impl From<[TapNodeHash; 82]> for TaprootMerkleBranch
impl From<[TapNodeHash; 82]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 82]) -> Self
fn from(a: [TapNodeHash; 82]) -> Self
source§impl From<[TapNodeHash; 83]> for TaprootMerkleBranch
impl From<[TapNodeHash; 83]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 83]) -> Self
fn from(a: [TapNodeHash; 83]) -> Self
source§impl From<[TapNodeHash; 84]> for TaprootMerkleBranch
impl From<[TapNodeHash; 84]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 84]) -> Self
fn from(a: [TapNodeHash; 84]) -> Self
source§impl From<[TapNodeHash; 85]> for TaprootMerkleBranch
impl From<[TapNodeHash; 85]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 85]) -> Self
fn from(a: [TapNodeHash; 85]) -> Self
source§impl From<[TapNodeHash; 86]> for TaprootMerkleBranch
impl From<[TapNodeHash; 86]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 86]) -> Self
fn from(a: [TapNodeHash; 86]) -> Self
source§impl From<[TapNodeHash; 87]> for TaprootMerkleBranch
impl From<[TapNodeHash; 87]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 87]) -> Self
fn from(a: [TapNodeHash; 87]) -> Self
source§impl From<[TapNodeHash; 88]> for TaprootMerkleBranch
impl From<[TapNodeHash; 88]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 88]) -> Self
fn from(a: [TapNodeHash; 88]) -> Self
source§impl From<[TapNodeHash; 89]> for TaprootMerkleBranch
impl From<[TapNodeHash; 89]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 89]) -> Self
fn from(a: [TapNodeHash; 89]) -> Self
source§impl From<[TapNodeHash; 9]> for TaprootMerkleBranch
impl From<[TapNodeHash; 9]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 9]) -> Self
fn from(a: [TapNodeHash; 9]) -> Self
source§impl From<[TapNodeHash; 90]> for TaprootMerkleBranch
impl From<[TapNodeHash; 90]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 90]) -> Self
fn from(a: [TapNodeHash; 90]) -> Self
source§impl From<[TapNodeHash; 91]> for TaprootMerkleBranch
impl From<[TapNodeHash; 91]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 91]) -> Self
fn from(a: [TapNodeHash; 91]) -> Self
source§impl From<[TapNodeHash; 92]> for TaprootMerkleBranch
impl From<[TapNodeHash; 92]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 92]) -> Self
fn from(a: [TapNodeHash; 92]) -> Self
source§impl From<[TapNodeHash; 93]> for TaprootMerkleBranch
impl From<[TapNodeHash; 93]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 93]) -> Self
fn from(a: [TapNodeHash; 93]) -> Self
source§impl From<[TapNodeHash; 94]> for TaprootMerkleBranch
impl From<[TapNodeHash; 94]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 94]) -> Self
fn from(a: [TapNodeHash; 94]) -> Self
source§impl From<[TapNodeHash; 95]> for TaprootMerkleBranch
impl From<[TapNodeHash; 95]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 95]) -> Self
fn from(a: [TapNodeHash; 95]) -> Self
source§impl From<[TapNodeHash; 96]> for TaprootMerkleBranch
impl From<[TapNodeHash; 96]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 96]) -> Self
fn from(a: [TapNodeHash; 96]) -> Self
source§impl From<[TapNodeHash; 97]> for TaprootMerkleBranch
impl From<[TapNodeHash; 97]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 97]) -> Self
fn from(a: [TapNodeHash; 97]) -> Self
source§impl From<[TapNodeHash; 98]> for TaprootMerkleBranch
impl From<[TapNodeHash; 98]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 98]) -> Self
fn from(a: [TapNodeHash; 98]) -> Self
source§impl From<[TapNodeHash; 99]> for TaprootMerkleBranch
impl From<[TapNodeHash; 99]> for TaprootMerkleBranch
source§fn from(a: [TapNodeHash; 99]) -> Self
fn from(a: [TapNodeHash; 99]) -> Self
source§impl From<TaprootMerkleBranch> for Vec<TapNodeHash>
impl From<TaprootMerkleBranch> for Vec<TapNodeHash>
source§fn from(branch: TaprootMerkleBranch) -> Self
fn from(branch: TaprootMerkleBranch) -> Self
source§impl Hash for TaprootMerkleBranch
impl Hash for TaprootMerkleBranch
source§impl Ord for TaprootMerkleBranch
impl Ord for TaprootMerkleBranch
source§fn cmp(&self, other: &TaprootMerkleBranch) -> Ordering
fn cmp(&self, other: &TaprootMerkleBranch) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<TaprootMerkleBranch> for TaprootMerkleBranch
impl PartialEq<TaprootMerkleBranch> for TaprootMerkleBranch
source§fn eq(&self, other: &TaprootMerkleBranch) -> bool
fn eq(&self, other: &TaprootMerkleBranch) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TaprootMerkleBranch> for TaprootMerkleBranch
impl PartialOrd<TaprootMerkleBranch> for TaprootMerkleBranch
source§fn partial_cmp(&self, other: &TaprootMerkleBranch) -> Option<Ordering>
fn partial_cmp(&self, other: &TaprootMerkleBranch) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TaprootMerkleBranch
impl Serialize for TaprootMerkleBranch
source§impl TryFrom<&[TapNodeHash]> for TaprootMerkleBranch
impl TryFrom<&[TapNodeHash]> for TaprootMerkleBranch
source§fn try_from(v: &[TapNodeHash]) -> Result<Self, Self::Error>
fn try_from(v: &[TapNodeHash]) -> Result<Self, Self::Error>
Creates a merkle proof from list of hashes.
Errors
If inner proof length is more than TAPROOT_CONTROL_MAX_NODE_COUNT
(128).
§type Error = TaprootError
type Error = TaprootError
source§impl TryFrom<Box<[TapNodeHash], Global>> for TaprootMerkleBranch
impl TryFrom<Box<[TapNodeHash], Global>> for TaprootMerkleBranch
source§fn try_from(v: Box<[TapNodeHash]>) -> Result<Self, Self::Error>
fn try_from(v: Box<[TapNodeHash]>) -> Result<Self, Self::Error>
Creates a merkle proof from list of hashes.
Errors
If inner proof length is more than TAPROOT_CONTROL_MAX_NODE_COUNT
(128).
§type Error = TaprootError
type Error = TaprootError
source§impl TryFrom<Vec<TapNodeHash, Global>> for TaprootMerkleBranch
impl TryFrom<Vec<TapNodeHash, Global>> for TaprootMerkleBranch
source§fn try_from(v: Vec<TapNodeHash>) -> Result<Self, Self::Error>
fn try_from(v: Vec<TapNodeHash>) -> Result<Self, Self::Error>
Creates a merkle proof from list of hashes.
Errors
If inner proof length is more than TAPROOT_CONTROL_MAX_NODE_COUNT
(128).