#[repr(C)]pub struct ProofToken {
pub mutation_hash: [u8; 32],
pub tier: ProofTier,
pub payload: ProofPayload,
pub valid_until_ns: u64,
pub nonce: u64,
}Expand description
A proof token authorizing a specific mutation.
Generated by the Proof Engine and consumed by a mutating syscall. Proof tokens are single-use (nonce prevents replay).
Fields§
§mutation_hash: [u8; 32]Hash of the mutation being authorized.
tier: ProofTierProof tier (Reflex, Standard, Deep).
payload: ProofPayloadThe proof payload (varies by tier).
valid_until_ns: u64Expiry timestamp (nanoseconds since epoch). Proofs are time-bounded to prevent replay.
nonce: u64Nonce to prevent proof reuse.
Implementations§
Source§impl ProofToken
impl ProofToken
Trait Implementations§
Source§impl Clone for ProofToken
impl Clone for ProofToken
Source§fn clone(&self) -> ProofToken
fn clone(&self) -> ProofToken
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 ProofToken
impl Debug for ProofToken
Source§impl Default for ProofToken
impl Default for ProofToken
Source§impl PartialEq for ProofToken
impl PartialEq for ProofToken
impl Copy for ProofToken
impl Eq for ProofToken
impl StructuralPartialEq for ProofToken
Auto Trait Implementations§
impl Freeze for ProofToken
impl RefUnwindSafe for ProofToken
impl Send for ProofToken
impl Sync for ProofToken
impl Unpin for ProofToken
impl UnsafeUnpin for ProofToken
impl UnwindSafe for ProofToken
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