pub fn save_identity(dir: &Path, identity: &Identity) -> Void
Writes the identity’s seed to dir/key with owner-only (0600) permissions.
dir/key
Returns an error if the directory or file cannot be created or written.