Skip to content

Commit 269909a

Browse files
claudemmagician
authored andcommitted
fix: adapt genesis crate to rc.1 deps
Update bin/genesis for the rc.1 dep bump: - miden-agglayer: 0.14.0-beta.4 -> 0.14.0-rc.1 - RpoRandomCoin -> RandomCoin Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 02bf124 commit 269909a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bin/genesis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ anyhow = { workspace = true }
2121
clap = { workspace = true }
2222
fs-err = { workspace = true }
2323
hex = { workspace = true }
24-
miden-agglayer = { version = "=0.14.0-beta.4" }
24+
miden-agglayer = { version = "=0.14.0-rc.1" }
2525
miden-protocol = { features = ["std"], workspace = true }
2626
miden-standards = { workspace = true }
2727
rand = { workspace = true }

bin/genesis/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use miden_protocol::account::{
1414
AccountType,
1515
};
1616
use miden_protocol::crypto::dsa::falcon512_poseidon2::{self, SecretKey as FalconSecretKey};
17-
use miden_protocol::crypto::rand::RpoRandomCoin;
17+
use miden_protocol::crypto::rand::RandomCoin;
1818
use miden_protocol::utils::serde::Deserializable;
1919
use miden_protocol::{Felt, ONE, Word};
2020
use miden_standards::AuthMethod;
@@ -159,7 +159,7 @@ path = "bridge.mac"
159159
fn generate_falcon_keypair() -> (falcon512_poseidon2::PublicKey, FalconSecretKey) {
160160
let mut rng = ChaCha20Rng::from_seed(rand::random());
161161
let auth_seed: [u64; 4] = rng.random();
162-
let mut coin = RpoRandomCoin::new(Word::from(auth_seed.map(Felt::new)));
162+
let mut coin = RandomCoin::new(Word::from(auth_seed.map(Felt::new)));
163163
let secret_key = FalconSecretKey::with_rng(&mut coin);
164164
let public_key = secret_key.public_key();
165165
(public_key, secret_key)

0 commit comments

Comments
 (0)