#[repr(C)]pub enum ProofPayload {
Hash {
hash: [u8; 32],
},
MerkleWitness {
root: [u8; 32],
leaf_index: u32,
path_len: u8,
path: [[u8; 32]; 32],
},
CoherenceCert {
score_before: u16,
score_after: u16,
partition_id: u32,
signature: [u8; 64],
},
}Expand description
Proof payload containing the actual proof data.
The kernel verifies the proof payload according to the tier.
Variants§
Hash
Hash check payload for Reflex tier. Contains a 32-byte hash of the mutation.
MerkleWitness
Merkle witness for Standard tier. Contains the Merkle path from leaf to root.
Fields
CoherenceCert
Coherence certificate for Deep tier. Contains coherence scores and partition metadata.
Trait Implementations§
Source§impl Clone for ProofPayload
impl Clone for ProofPayload
Source§fn clone(&self) -> ProofPayload
fn clone(&self) -> ProofPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 ProofPayload
impl Debug for ProofPayload
Source§impl Default for ProofPayload
impl Default for ProofPayload
Source§impl PartialEq for ProofPayload
impl PartialEq for ProofPayload
impl Copy for ProofPayload
impl Eq for ProofPayload
impl StructuralPartialEq for ProofPayload
Auto Trait Implementations§
impl Freeze for ProofPayload
impl RefUnwindSafe for ProofPayload
impl Send for ProofPayload
impl Sync for ProofPayload
impl Unpin for ProofPayload
impl UnsafeUnpin for ProofPayload
impl UnwindSafe for ProofPayload
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