pub struct RecordPackage {
pub version: u32,
pub chain_genesis: BlockHash,
pub block: ChainPoint,
pub reveal: TransactionProof,
pub commit: Vec<u8>,
}Expand description
Transport data, never trusted merely because it came from another node.
The receiver selects the header independently before verifying this proof.
commit authenticates the exact prevout through its TXID; this package does
NOT assert the commit’s inclusion, ordering, or witness authenticity. Names
must obtain independently anchored commit placement before applying a record.
Fields§
§version: u32§chain_genesis: BlockHash§block: ChainPoint§reveal: TransactionProof§commit: Vec<u8>Trait Implementations§
Source§impl Clone for RecordPackage
impl Clone for RecordPackage
Source§impl Debug for RecordPackage
impl Debug for RecordPackage
Source§impl<'de> Deserialize<'de> for RecordPackage
impl<'de> Deserialize<'de> for RecordPackage
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
Auto Trait Implementations§
impl Freeze for RecordPackage
impl RefUnwindSafe for RecordPackage
impl Send for RecordPackage
impl Sync for RecordPackage
impl Unpin for RecordPackage
impl UnsafeUnpin for RecordPackage
impl UnwindSafe for RecordPackage
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