Function deltachat::e2ee::ensure_secret_key_exists
source ยท pub async fn ensure_secret_key_exists(context: &Context) -> Result<()>
Expand description
Ensures a private key exists for the configured user.
Normally the private key is generated when the first message is sent but in a few locations there are no such guarantees, e.g. when exporting keys, and calling this function ensures a private key will be present.