casper_rust_wasm_sdk::helpersFunction secret_key_from_pem
source pub fn secret_key_from_pem(secret_key: &str) -> Result<SecretKey, Box<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.