pub struct Signer { /* private fields */ }Expand description
A log’s signing key under its name (the origin, by the checkpoint spec).
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn new(name: &str, key: SigningKey) -> Result<Self>
pub fn new(name: &str, key: SigningKey) -> Result<Self>
A signer from a key; name is checked as a key name.
Sourcepub fn from_pem_file(name: &str, path: &Path) -> Result<Self>
pub fn from_pem_file(name: &str, path: &Path) -> Result<Self>
A signer from a PKCS#8 PEM file (-----BEGIN PRIVATE KEY-----).
Sourcepub fn sign(&self, checkpoint: &Checkpoint) -> Note
pub fn sign(&self, checkpoint: &Checkpoint) -> Note
The note over checkpoint with this key’s signature line.
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnsafeUnpin for Signer
impl UnwindSafe for Signer
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