pub struct ProofBundle {Show 13 fields
pub proof_id: String,
pub timeline_id: String,
pub from_tick: u64,
pub to_tick: u64,
pub event_count: u64,
pub root_event_id: String,
pub final_event_id: String,
pub root_digest: String,
pub final_digest: String,
pub state_hash_start: String,
pub state_hash_end: String,
pub merkle_root: String,
pub created_at_tick: u64,
}Expand description
Cryptographic proof of a timeline segment.
Binds a contiguous sequence of canon events to a Merkle root, allowing offline verification of segment integrity without replaying the full chain.
Fields§
§proof_id: String§timeline_id: String§from_tick: u64§to_tick: u64§event_count: u64§root_event_id: String§final_event_id: String§root_digest: String§final_digest: String§state_hash_start: String§state_hash_end: String§merkle_root: String§created_at_tick: u64Implementations§
Source§impl ProofBundle
impl ProofBundle
Sourcepub fn compute_merkle_root(events: &[CanonEventSnapshot]) -> String
pub fn compute_merkle_root(events: &[CanonEventSnapshot]) -> String
Compute the BLAKE3 Merkle root over event digests.
Sourcepub fn verify_chain(
events: &[CanonEventSnapshot],
) -> Result<(), ChronoshiftError>
pub fn verify_chain( events: &[CanonEventSnapshot], ) -> Result<(), ChronoshiftError>
Verify the digest chain of the given events.
Delegates to the same chain-validation logic used by ReplayEngine.
Trait Implementations§
Source§impl Clone for ProofBundle
impl Clone for ProofBundle
Source§fn clone(&self) -> ProofBundle
fn clone(&self) -> ProofBundle
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 ProofBundle
impl Debug for ProofBundle
Source§impl<'de> Deserialize<'de> for ProofBundle
impl<'de> Deserialize<'de> for ProofBundle
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
Source§impl PartialEq for ProofBundle
impl PartialEq for ProofBundle
Source§impl Serialize for ProofBundle
impl Serialize for ProofBundle
impl StructuralPartialEq for ProofBundle
Auto Trait Implementations§
impl Freeze for ProofBundle
impl RefUnwindSafe for ProofBundle
impl Send for ProofBundle
impl Sync for ProofBundle
impl Unpin for ProofBundle
impl UnsafeUnpin for ProofBundle
impl UnwindSafe for ProofBundle
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