pub struct Sth {
pub v: u8,
pub log_id: String,
pub tree_size: u64,
pub root_hash: Vec<u8>,
pub timestamp: i64,
pub sig_alg: String,
pub sig: Vec<u8>,
}Expand description
Signed Tree Head (STH) metadata signed by the log.
Fields§
§v: u8Version of the STH structure.
log_id: StringLog identifier (KID hex derived from SPKI SHA-256 prefix).
tree_size: u64Total number of leaves included in this tree snapshot.
root_hash: Vec<u8>Root hash of the Merkle tree for tree_size leaves.
timestamp: i64Unix timestamp when this STH was produced.
sig_alg: StringSignature algorithm identifier (e.g., “mldsa-87”).
sig: Vec<u8>Detached signature bytes over canonical STH transcript.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sth
impl<'de> Deserialize<'de> for Sth
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 Sth
impl RefUnwindSafe for Sth
impl Send for Sth
impl Sync for Sth
impl Unpin for Sth
impl UnwindSafe for Sth
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