Module key

Module key 

Source
Expand description

Cryptographic key module.

Structs§

Fingerprint
A key fingerprint
SignedPublicKey
An OpenPGP public key (“Transferable Public Key”, also known as an “OpenPGP certificate”).
SignedSecretKey
An OpenPGP secret key (“Transferable Secret Key”), complete with self-signatures.

Traits§

DcKey
Convenience trait for working with keys.

Functions§

generate_keypair 🔒
load_keypair 🔒
load_self_public_key 🔒
Loads own public key.
load_self_public_key_opt 🔒
Attempts to load own public key.
load_self_public_keyring 🔒
Returns our own public keyring.
load_self_secret_key 🔒
load_self_secret_keyring 🔒
preconfigure_keypair
Saves a keypair as the default keys.
self_fingerprint 🔒
Returns own public key fingerprint in (not human-readable) hex representation. This is the fingerprint format that is used in the database.
self_fingerprint_opt 🔒
Returns own public key fingerprint in (not human-readable) hex representation. This is the fingerprint format that is used in the database.
store_self_keypair 🔒
Store the keypair as an owned keypair for addr in the database.