Skip to content

Commit

Permalink
Repeated setup_new
Browse files Browse the repository at this point in the history
  • Loading branch information
iquerejeta authored and jpraynaud committed Sep 30, 2022
1 parent 08573fa commit c29b01e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions mithril-core/src/stm.rs
Expand Up @@ -261,24 +261,6 @@ impl StmParameters {
}

impl StmInitializer {
/// Builds an `StmInitializer` that is ready to register with the key registration service.
/// This function generates the signing and verification key with a PoP, signs the verification
/// key with a provided KES signing key, and initialises the structure.
pub fn setup_new<R: RngCore + CryptoRng>(
params: StmParameters,
stake: Stake,
rng: &mut R,
) -> Self {
let sk = SigningKey::gen(rng);
let pk = StmVerificationKeyPoP::from(&sk);

Self {
stake,
params,
sk,
pk,
}
}
/// Builds an `StmInitializer` that is ready to register with the key registration service.
/// This function generates the signing and verification key with a PoP, and initialises the structure.
pub fn setup<R: RngCore + CryptoRng>(params: StmParameters, stake: Stake, rng: &mut R) -> Self {
Expand Down

0 comments on commit c29b01e

Please sign in to comment.