pub struct SPVProof {
pub version: RawBytes,
pub vin: RawBytes,
pub vout: RawBytes,
pub locktime: RawBytes,
pub tx_id: Hash256Digest,
pub index: u32,
pub confirming_header: BitcoinHeader,
pub intermediate_nodes: RawBytes,
}Expand description
SPVProof is an SPV inclusion proof for a confirmed transaction.
Fields§
§version: RawBytesThe 4-byte LE-encoded version number. Currently always 1 or 2.
vin: RawBytesThe transaction input vector, length-prefixed.
vout: RawBytesThe transaction output vector, length-prefixed.
locktime: RawBytesThe 4-byte LE-encoded locktime number.
tx_id: Hash256DigestThe tx id
index: u32The transaction index
confirming_header: BitcoinHeaderThe confirming Bitcoin header
intermediate_nodes: RawBytesThe intermediate nodes (digests between leaf and root)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SPVProof
impl<'de> Deserialize<'de> for SPVProof
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
impl Eq for SPVProof
impl StructuralPartialEq for SPVProof
Auto Trait Implementations§
impl Freeze for SPVProof
impl RefUnwindSafe for SPVProof
impl Send for SPVProof
impl Sync for SPVProof
impl Unpin for SPVProof
impl UnwindSafe for SPVProof
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