MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / random

Method random

fendermint/crypto/src/lib.rs:49–51  ·  view source on GitHub ↗
(rng: &mut R)

Source from the content-addressed store, hash-verified

47 }
48
49 pub fn random<R: Rng>(rng: &mut R) -> Self {
50 Self(libsecp256k1::SecretKey::random(rng))
51 }
52
53 pub fn public_key(&self) -> PublicKey {
54 PublicKey::from_secret_key(&self.0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected