#[repr(C)]pub struct ProofCacheEntry {
pub proof_id: u32,
pub inserted_at: u64,
pub nonce: u64,
pub mutation_hash: [u8; 32],
pub consumed: bool,
}Expand description
A single entry in the proof cache.
Each entry is scoped to a (mutation_hash, nonce) pair and includes TTL information for expiry tracking.
Fields§
§proof_id: u32Unique proof identifier returned on successful verification.
inserted_at: u64Timestamp when the entry was inserted (nanoseconds).
nonce: u64Single-use nonce for this proof.
mutation_hash: [u8; 32]Hash of the mutation this proof authorizes.
consumed: boolWhether this entry has been consumed (single-use).
Implementations§
Trait Implementations§
Source§impl Clone for ProofCacheEntry
impl Clone for ProofCacheEntry
Source§fn clone(&self) -> ProofCacheEntry
fn clone(&self) -> ProofCacheEntry
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 ProofCacheEntry
impl Debug for ProofCacheEntry
impl Copy for ProofCacheEntry
Auto Trait Implementations§
impl Freeze for ProofCacheEntry
impl RefUnwindSafe for ProofCacheEntry
impl Send for ProofCacheEntry
impl Sync for ProofCacheEntry
impl Unpin for ProofCacheEntry
impl UnsafeUnpin for ProofCacheEntry
impl UnwindSafe for ProofCacheEntry
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