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