Skip to main content

load_private_key

Function load_private_key 

Source
pub fn load_private_key(
    priv_key_path: &PathBuf,
) -> Result<(Option<UnencryptedKeyPair>, Option<EncryptedKeyPair>)>
Expand description

Load a moshpit key pair from the provided private key path.

ยงErrors

If the private key cannot be read or is invalid, an error is returned.