Creates a signature.
Used in the streaming
Signer, the methods binding components
to certificates (e.g.
signing functions (e.g.
and likely many more places.
This is a low-level mechanism to produce an arbitrary OpenPGP signature. Using this trait allows Sequoia to perform all operations involving signing to use a variety of secret key storage mechanisms (e.g. smart cards).
A signer consists of the public key and a way of creating a
signature. This crate implements
is a tuple containing the public and unencrypted secret key in
memory. Other crates my provide their own implementations of
Signer to utilize keys stored in various places. Currently, the
following implementations exist:
fn public(&self) -> &Key<PublicParts, UnspecifiedRole>
Returns a reference to the public key.
Creates a signature over the
digest produced by