pub struct OtsProof {
pub hash: [u8; 32],
pub bitcoin_height: u32,
pub merkle_branch: Vec<[u8; 32]>,
pub merkle_root: [u8; 32],
pub calendar_server: Option<String>,
}Expand description
An OpenTimestamps proof (compact form).
In real OTS format, this is a sequence of attestation operations. Here we model it semantically; serialization to .ots file format is a separate concern.
Fields§
§hash: [u8; 32]Original hash that was stamped.
bitcoin_height: u32Bitcoin block height where the attestation anchor was mined.
merkle_branch: Vec<[u8; 32]>Merkle branch from the hash to the block’s Merkle root (if direct anchor).
merkle_root: [u8; 32]The Bitcoin block’s Merkle root.
calendar_server: Option<String>Calendar server that facilitated the stamping (if applicable).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OtsProof
impl<'de> Deserialize<'de> for OtsProof
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 OtsProof
impl RefUnwindSafe for OtsProof
impl Send for OtsProof
impl Sync for OtsProof
impl Unpin for OtsProof
impl UnsafeUnpin for OtsProof
impl UnwindSafe for OtsProof
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