pub struct AuditChain;Expand description
Stateless verification of an ordered journal.
Implementations§
Source§impl AuditChain
impl AuditChain
Sourcepub fn verify(records: &[AuditRecord]) -> AuditChainVerdict
pub fn verify(records: &[AuditRecord]) -> AuditChainVerdict
Verify records given in the order the journal returned them.
An empty journal is intact: nothing was written, so nothing was tampered with. Verification stops at the first defect — past it, no statement about the remaining records would be sound.
Sourcepub fn next_sequence(records: &[AuditRecord]) -> AuditSequence
pub fn next_sequence(records: &[AuditRecord]) -> AuditSequence
The position the next record must occupy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditChain
impl RefUnwindSafe for AuditChain
impl Send for AuditChain
impl Sync for AuditChain
impl Unpin for AuditChain
impl UnsafeUnpin for AuditChain
impl UnwindSafe for AuditChain
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