Function diem_crypto::key_file::save_pri_key
source · pub fn save_pri_key<P: AsRef<Path>, K: Serialize>(
path: P,
passwd: impl AsRef<[u8]>,
pri_key: &K
) -> Result<()>
Expand description
Encrypt pri_key
with passwd
, and save it to path
.