Struct sct::Log

source · []
pub struct Log<'a> {
    pub description: &'a str,
    pub url: &'a str,
    pub operated_by: &'a str,
    pub key: &'a [u8],
    pub id: [u8; 32],
    pub max_merge_delay: usize,
}
Expand description

Describes a CT log

This structure contains some metadata fields not used by the library. Rationale: it makes sense to keep this metadata with the other values for review purposes.

Fields

description: &'a str

The operator’s name/description of the log. This field is not used by the library.

url: &'a str

The certificate submission url. This field is not used by the library.

operated_by: &'a str

Which entity operates the log. This field is not used by the library.

key: &'a [u8]

Public key usable for verifying certificates. TODO: fixme format of this; should be a SPKI so the id is verifiable, but currently is a raw public key (like, an ECPoint or RSAPublicKey).

id: [u8; 32]

Key hash, which is SHA256 applied to the SPKI encoding.

max_merge_delay: usize

The log’s maximum merge delay. This field is not used by the library.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.