casper_rust_wasm_sdk::helpersFunction public_key_from_secret_key
source pub fn public_key_from_secret_key(
secret_key: &str,
) -> Result<String, Box<SdkError>>
Expand description
Converts a secret key in PEM format to its corresponding public key as a string.
§Arguments
secret_key
- The secret key in PEM format.
§Returns
A Result
containing the public key as a string or an error if the conversion fails.