casper_rust_wasm_sdk::helpers

Function secret_key_secp256k1_generate

source
pub fn secret_key_secp256k1_generate() -> Result<SecretKey, Box<SdkError>>
Expand description

Generates a secret key using the secp256k1 algorithm.

§Returns

A Result containing the generated secret key or an error if the generation fails.

§Errors

Returns an SdkError if the secret key generation fails.