pub struct ChainProof {
pub target_entry_id: String,
pub target_index: usize,
pub chain_length: usize,
pub chain_head_hash: String,
pub target_entry: LogEntry,
pub target_entry_hash: String,
pub chain_root_hash: String,
pub target_membership_proof: Vec<ChainProofPathStep>,
pub head_membership_proof: Vec<ChainProofPathStep>,
pub merkle_proof: Option<MerkleProof>,
}Expand description
Chain proof for cryptographic verification.
Fields§
§target_entry_id: String§target_index: usize§chain_length: usize§chain_head_hash: String§target_entry: LogEntry§target_entry_hash: String§chain_root_hash: String§target_membership_proof: Vec<ChainProofPathStep>§head_membership_proof: Vec<ChainProofPathStep>§merkle_proof: Option<MerkleProof>Implementations§
Source§impl ChainProof
impl ChainProof
pub fn attach_merkle_proof(&mut self, proof: Option<MerkleProof>)
Trait Implementations§
Source§impl Clone for ChainProof
impl Clone for ChainProof
Source§fn clone(&self) -> ChainProof
fn clone(&self) -> ChainProof
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 ChainProof
impl Debug for ChainProof
Source§impl<'de> Deserialize<'de> for ChainProof
impl<'de> Deserialize<'de> for ChainProof
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
Auto Trait Implementations§
impl Freeze for ChainProof
impl RefUnwindSafe for ChainProof
impl Send for ChainProof
impl Sync for ChainProof
impl Unpin for ChainProof
impl UnsafeUnpin for ChainProof
impl UnwindSafe for ChainProof
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