pub struct Anchor {
pub anchor_ref: AnchorRef,
pub commitment: Hash,
pub inclusion_proof: Vec<u8>,
pub finality_proof: Vec<u8>,
}Expand description
Anchor proof: links a commitment to an on-chain reference
An anchor provides cryptographic proof that a commitment was published to a blockchain at a specific location.
Fields§
§anchor_ref: AnchorRefAnchor reference (on-chain location of the commitment)
commitment: HashCommitment hash that was anchored
inclusion_proof: Vec<u8>Inclusion proof bytes (chain-specific)
finality_proof: Vec<u8>Finality proof bytes (chain-specific)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Anchor
impl<'de> Deserialize<'de> for Anchor
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
impl Eq for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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