pub struct DAGNode {
pub node_id: Hash,
pub bytecode: Vec<u8>,
pub signatures: Vec<Vec<u8>>,
pub witnesses: Vec<Vec<u8>>,
pub parents: Vec<Hash>,
}Expand description
A single node in the state transition DAG
Fields§
§node_id: HashUnique identifier for this node
bytecode: Vec<u8>Deterministic VM bytecode (e.g., AluVM)
signatures: Vec<Vec<u8>>Authorizing signatures
witnesses: Vec<Vec<u8>>Witness data for verification
parents: Vec<Hash>Hash of parent node(s) - empty for root
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DAGNode
impl<'de> Deserialize<'de> for DAGNode
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 DAGNode
impl StructuralPartialEq for DAGNode
Auto Trait Implementations§
impl Freeze for DAGNode
impl RefUnwindSafe for DAGNode
impl Send for DAGNode
impl Sync for DAGNode
impl Unpin for DAGNode
impl UnsafeUnpin for DAGNode
impl UnwindSafe for DAGNode
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