Function generate_and_save_key

Source
pub async fn generate_and_save_key() -> Result<(String, SecretKey)>
Expand description

Generates a new secret key and saves it to the system keyring.

The key is stored in the system keyring under the ID52 identifier, and the ID52 is written to .fastn.id52 file.

ยงErrors

Returns an error if keyring access or file write fails.