Generate Account
Overview
The generate_private_key
function is designed to generate a private key using a provided random number generator (RNG) in Rust.
Function Definition
Parameters:
rng: A mutable reference to a random number generator (
TestRng
).
Returns:
A Result
containing either:
A generated private key of type
PrivateKey<Testnet3>
, orAn error message (
String
) indicating the failure.
Last updated