@@ -23,22 +23,22 @@ use rand::Rng;
2323use rand_chacha:: ChaCha20Rng ;
2424use rand_chacha:: rand_core:: SeedableRng ;
2525
26- /// Generate canonical Miden genesis accounts (bridge, bridge admin, GER manager)
27- /// and a genesis.toml configuration file.
26+ /// Generate canonical Miden genesis accounts (bridge, bridge admin, GER manager) and a genesis.toml
27+ /// configuration file.
2828#[ derive( Parser ) ]
2929#[ command( name = "miden-genesis" ) ]
3030struct Cli {
3131 /// Output directory for generated files.
3232 #[ arg( long, default_value = "./genesis" ) ]
3333 output_dir : PathBuf ,
3434
35- /// Hex-encoded Falcon512 public key for the bridge admin account.
36- /// If omitted, a new keypair is generated and the secret key is included in the .mac file.
35+ /// Hex-encoded Falcon512 public key for the bridge admin account. If omitted, a new keypair is
36+ /// generated and the secret key is included in the .mac file.
3737 #[ arg( long, value_name = "HEX" , requires = "ger_manager_public_key" ) ]
3838 bridge_admin_public_key : Option < String > ,
3939
40- /// Hex-encoded Falcon512 public key for the GER manager account.
41- /// If omitted, a new keypair is generated and the secret key is included in the .mac file.
40+ /// Hex-encoded Falcon512 public key for the GER manager account. If omitted, a new keypair is
41+ /// generated and the secret key is included in the .mac file.
4242 #[ arg( long, value_name = "HEX" , requires = "bridge_admin_public_key" ) ]
4343 ger_manager_public_key : Option < String > ,
4444}
@@ -97,9 +97,8 @@ fn run(
9797 let bridge_seed = Word :: from ( bridge_seed. map ( Felt :: new) ) ;
9898 let bridge = create_bridge_account ( bridge_seed, bridge_admin_id, ger_manager_id) ;
9999
100- // Bump bridge nonce to 1 (required for genesis accounts).
101- // File-loaded accounts via [[account]] in genesis.toml are included as-is,
102- // so we must set nonce=1 before writing the .mac file.
100+ // Bump bridge nonce to 1 (required for genesis accounts). File-loaded accounts via [[account]]
101+ // in genesis.toml are included as-is, so we must set nonce=1 before writing the .mac file.
103102 let bridge = bump_nonce_to_one ( bridge) . context ( "failed to bump bridge account nonce" ) ?;
104103
105104 // Write .mac files.
@@ -203,8 +202,8 @@ mod tests {
203202
204203 use super :: * ;
205204
206- /// Parses the generated genesis.toml, builds a genesis block, and asserts the bridge account
207- /// is included with nonce=1.
205+ /// Parses the generated genesis.toml, builds a genesis block, and asserts the bridge account is
206+ /// included with nonce=1.
208207 fn assert_valid_genesis_block ( dir : & Path ) {
209208 let bridge_id = AccountFile :: read ( dir. join ( "bridge.mac" ) ) . unwrap ( ) . account . id ( ) ;
210209
0 commit comments