pub struct Block {
pub index: u64,
pub timestamp: u64,
pub prev_hash: String,
pub beacon: String,
pub transactions: Vec<Transaction>,
pub proposer_id: String,
pub proposer_pubkey: String,
pub hash: String,
pub signature: String,
}Expand description
One block in the chain.
Fields§
§index: u64§timestamp: u64§prev_hash: String§beacon: StringCosmic entropy beacon value that seeded this round.
transactions: Vec<Transaction>§proposer_id: StringProposing Probe’s fingerprint, e.g. PROBE-1A2B3C4D.
proposer_pubkey: StringProposing Probe’s hex ML-DSA verifying key (used to verify signature).
hash: Stringblake3 digest (hex) over the canonical preimage.
signature: StringProposer’s post-quantum ML-DSA signature (hex) over the raw digest bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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 Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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