Skip to main content

keypair_from_base64

Function keypair_from_base64 

Source
pub fn keypair_from_base64(
    private_key_base64: &str,
) -> Result<NodeKeypair, CryptoError>
Expand description

Build a keypair from a base64-encoded private key.

ยงErrors

Returns CryptoError when the input is invalid base64 or has the wrong key length.