Skip to main content

LogResolver

Trait LogResolver 

Source
pub trait LogResolver {
    // Required method
    fn resolve(&mut self, r: &LogRef) -> SignatifResult<Vec<u8>>;
}
Expand description

Resolves log references into certificate bytes. Production implementations bind to a transparency log client (the confium log-server /v1/certificates API); tests bind to in-memory fakes.

Required Methods§

Source

fn resolve(&mut self, r: &LogRef) -> SignatifResult<Vec<u8>>

Fetch the certificate bytes for a log reference.

§Errors

Implementations return SignatifError::Encoding for misses.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§