pub struct AIChainBlock {
pub id: [u8; 32],
pub parent_id: [u8; 32],
pub height: u64,
pub timestamp: u64,
pub proposer: Vec<u8>,
pub transactions: Vec<MiningTransaction>,
pub tx_root: [u8; 32],
pub state_root: [u8; 32],
pub signature: Vec<u8>,
}Expand description
AI-Chain block
Fields§
§id: [u8; 32]Block identifier (Blake3 hash)
parent_id: [u8; 32]Parent block hash
height: u64Block height
timestamp: u64Block timestamp (Unix ms)
proposer: Vec<u8>Proposer’s quantum-safe public key
transactions: Vec<MiningTransaction>Mining transactions in this block
tx_root: [u8; 32]Merkle root of transactions
state_root: [u8; 32]Merkle root of state
signature: Vec<u8>Proposer signature (ML-DSA)
Implementations§
Source§impl AIChainBlock
impl AIChainBlock
Trait Implementations§
Source§impl Clone for AIChainBlock
impl Clone for AIChainBlock
Source§fn clone(&self) -> AIChainBlock
fn clone(&self) -> AIChainBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AIChainBlock
impl Debug for AIChainBlock
Source§impl<'de> Deserialize<'de> for AIChainBlock
impl<'de> Deserialize<'de> for AIChainBlock
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 AIChainBlock
impl RefUnwindSafe for AIChainBlock
impl Send for AIChainBlock
impl Sync for AIChainBlock
impl Unpin for AIChainBlock
impl UnsafeUnpin for AIChainBlock
impl UnwindSafe for AIChainBlock
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