pub struct SpvVerifier { /* private fields */ }Expand description
SPV verifier
Implementations§
Source§impl SpvVerifier
impl SpvVerifier
pub fn new() -> Self
pub fn add_header(&mut self, entry: BlockHeaderEntry)
pub fn verify_merkle_proof( &self, txid: &Txid, merkle_root: &[u8; 32], branch: &[[u8; 32]], _index: u32, ) -> bool
pub fn is_block_in_chain(&self, block_hash: &[u8; 32]) -> bool
pub fn get_confirmations(&self, block_hash: &[u8; 32]) -> Option<u64>
pub fn chain_tip_height(&self) -> u64
pub fn invalidate_block(&mut self, block_hash: &[u8; 32]) -> Vec<[u8; 32]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpvVerifier
impl RefUnwindSafe for SpvVerifier
impl Send for SpvVerifier
impl Sync for SpvVerifier
impl Unpin for SpvVerifier
impl UnsafeUnpin for SpvVerifier
impl UnwindSafe for SpvVerifier
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