[][src]Struct ctclient::SignedTreeHead

pub struct SignedTreeHead {
    pub tree_size: u64,
    pub timestamp: u64,
    pub root_hash: [u8; 32],
    pub signature: Vec<u8>,
}

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: u64timestamp: u64root_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]

impl Debug for SignedTreeHead[src]

impl Eq for SignedTreeHead[src]

impl PartialEq<SignedTreeHead> for SignedTreeHead[src]

impl StructuralEq for SignedTreeHead[src]

impl StructuralPartialEq for SignedTreeHead[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.