Struct floresta_watch_only::merkle::MerkleProof
source · pub struct MerkleProof { /* private fields */ }
Implementations§
source§impl MerkleProof
impl MerkleProof
sourcepub fn from_block_hashes(tx_list: Vec<Hash>, target: u64) -> Self
pub fn from_block_hashes(tx_list: Vec<Hash>, target: u64) -> Self
Creates a new proof from a list of hashes and a target. Target is a 64 bits unsigned integer indicating the index of a transaction we with to prove. Note that this only proves one tx at the time.
sourcepub fn from_block(block: &Block, target: u64) -> Self
pub fn from_block(block: &Block, target: u64) -> Self
Same as MerkleProof::from_block_hashes but you give a block instead of a list of hashes.
Trait Implementations§
source§impl Clone for MerkleProof
impl Clone for MerkleProof
source§fn clone(&self) -> MerkleProof
fn clone(&self) -> MerkleProof
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MerkleProof
impl Debug for MerkleProof
source§impl Decodable for MerkleProof
impl Decodable for MerkleProof
source§impl Default for MerkleProof
impl Default for MerkleProof
source§impl<'de> Deserialize<'de> for MerkleProof
impl<'de> Deserialize<'de> for MerkleProof
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encodable for MerkleProof
impl Encodable for MerkleProof
source§impl Hash for MerkleProof
impl Hash for MerkleProof
source§impl PartialEq<MerkleProof> for MerkleProof
impl PartialEq<MerkleProof> for MerkleProof
source§fn eq(&self, other: &MerkleProof) -> bool
fn eq(&self, other: &MerkleProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MerkleProof
impl Serialize for MerkleProof
impl Eq for MerkleProof
impl StructuralEq for MerkleProof
impl StructuralPartialEq for MerkleProof
Auto Trait Implementations§
impl RefUnwindSafe for MerkleProof
impl Send for MerkleProof
impl Sync for MerkleProof
impl Unpin for MerkleProof
impl UnwindSafe for MerkleProof
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more