Skip to main content

create

Function create 

Source
pub fn create(path: &Path, passphrase: SecretString) -> Result<Identity>
Expand description

Generates a new X25519 identity, encrypts it with passphrase, and writes the result to path. Refuses to overwrite an existing file.

ยงErrors