Module key

Source
Expand description

Cryptographic key module.

StructsΒ§

Fingerprint
A key fingerprint
SignedPublicKey
A Public OpenPGP key (β€œTransferable Public Key”), complete with self-signatures (and optionally third party signatures). This format can be used to transfer a public key to other OpenPGP users.
SignedSecretKey
Represents a secret signed PGP key.

TraitsΒ§

DcKey πŸ”’
Convenience trait for working with keys.
DcSecretKey πŸ”’
Deltachat extension trait for secret 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.