pub struct WriteEvidence {
pub write: WriteId,
pub prefix: Vec<u8>,
pub header: Vec<u8>,
pub roots: Vec<[u8; 32]>,
pub signature: [u8; 64],
pub proof: Multiproof,
}Expand description
A write’s evidence for its part in one audience (D7 section 7): the cleartext prefix, the sealed header chunk, every part root, the header signature and a multiproof of that part’s needed leaves.
Fields§
§write: WriteIdThe write.
prefix: Vec<u8>The exact cleartext kind | version | prefix bytes.
header: Vec<u8>The sealed header chunk exactly as stored, with its length field.
roots: Vec<[u8; 32]>Every part’s root, in header order.
signature: [u8; 64]The header signature over these bytes (D9).
proof: MultiproofThe openings in the snapshot audience’s part.
Trait Implementations§
Source§impl Clone for WriteEvidence
impl Clone for WriteEvidence
Source§fn clone(&self) -> WriteEvidence
fn clone(&self) -> WriteEvidence
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 WriteEvidence
impl Debug for WriteEvidence
Source§impl PartialEq for WriteEvidence
impl PartialEq for WriteEvidence
impl Eq for WriteEvidence
impl StructuralPartialEq for WriteEvidence
Auto Trait Implementations§
impl Freeze for WriteEvidence
impl RefUnwindSafe for WriteEvidence
impl Send for WriteEvidence
impl Sync for WriteEvidence
impl Unpin for WriteEvidence
impl UnsafeUnpin for WriteEvidence
impl UnwindSafe for WriteEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more