pub struct OfflineBundle {
pub entry: Entry,
pub inclusion_proof: InclusionProof,
pub signed_checkpoint: SignedCheckpoint,
pub delegation_chain: Vec<DelegationChainLink>,
}Expand description
An offline verification bundle containing an entry, its inclusion proof, and a signed checkpoint.
Allows clients to verify that an entry was logged without contacting the transparency log server.
Args:
entry— The log entry being proven.inclusion_proof— Merkle proof that the entry is included in the log.signed_checkpoint— Signed checkpoint attesting to the log state.delegation_chain— Optional chain of delegation links.
Usage:
ⓘ
let bundle = OfflineBundle {
entry,
inclusion_proof: proof,
signed_checkpoint: checkpoint,
delegation_chain: vec![],
};Fields§
§entry: Entry§inclusion_proof: InclusionProof§signed_checkpoint: SignedCheckpoint§delegation_chain: Vec<DelegationChainLink>Trait Implementations§
Source§impl Clone for OfflineBundle
impl Clone for OfflineBundle
Source§fn clone(&self) -> OfflineBundle
fn clone(&self) -> OfflineBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OfflineBundle
impl Debug for OfflineBundle
Source§impl<'de> Deserialize<'de> for OfflineBundle
impl<'de> Deserialize<'de> for OfflineBundle
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 OfflineBundle
impl PartialEq for OfflineBundle
Source§fn eq(&self, other: &OfflineBundle) -> bool
fn eq(&self, other: &OfflineBundle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OfflineBundle
impl Serialize for OfflineBundle
impl StructuralPartialEq for OfflineBundle
Auto Trait Implementations§
impl Freeze for OfflineBundle
impl RefUnwindSafe for OfflineBundle
impl Send for OfflineBundle
impl Sync for OfflineBundle
impl Unpin for OfflineBundle
impl UnsafeUnpin for OfflineBundle
impl UnwindSafe for OfflineBundle
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