[−][src]Struct ctclient::SignedTreeHead
A signed tree head (STH), as returned from the server. This encapsulate the state of the tree at some point in time.
This struct stores the signature but does not store the public key or log id.
Fields
tree_size: u64
timestamp: u64
root_hash: [u8; 32]
signature: Vec<u8>
Digitally signed struct
Implementations
impl SignedTreeHead
[src]
pub fn verify(&self, pub_key: &PKey<Public>) -> Result<(), Error>
[src]
Verify the contained signature against the log's public key.
Trait Implementations
impl Clone for SignedTreeHead
[src]
fn clone(&self) -> SignedTreeHead
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SignedTreeHead
[src]
impl Eq for SignedTreeHead
[src]
impl PartialEq<SignedTreeHead> for SignedTreeHead
[src]
fn eq(&self, other: &SignedTreeHead) -> bool
[src]
fn ne(&self, other: &SignedTreeHead) -> bool
[src]
impl StructuralEq for SignedTreeHead
[src]
impl StructuralPartialEq for SignedTreeHead
[src]
Auto Trait Implementations
impl RefUnwindSafe for SignedTreeHead
impl Send for SignedTreeHead
impl Sync for SignedTreeHead
impl Unpin for SignedTreeHead
impl UnwindSafe for SignedTreeHead
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,