sui_keys::keypair_file

Function read_keypair_from_file

Source
pub fn read_keypair_from_file<P: AsRef<Path>>(path: P) -> Result<SuiKeyPair>
Expand description

Read from file as Base64 encoded flag || privkey and return a SuiKeypair.