Function casper_rust_wasm_sdk::helpers::secret_key_from_pem

source ·
pub fn secret_key_from_pem(secret_key: &str) -> Result<SecretKey, SdkError>
Expand description

Parses a secret key in PEM format into a SecretKey object.

§Arguments

  • secret_key - The secret key in PEM format.

§Returns

A Result containing the parsed SecretKey or an error if parsing fails.