File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- use std:: { env, process } ;
1+ use std:: env;
22
33use bitcoin:: address:: { Address , KnownHrp } ;
44use bitcoin:: bip32:: { ChildNumber , DerivationPath , Xpriv , Xpub } ;
@@ -14,12 +14,12 @@ fn main() {
1414 // cargo run --example bip32 7934c09359b234e076b9fa5a1abfd38e3dc2a9939745b7cc3c22a48d831d14bd
1515
1616 let args: Vec < String > = env:: args ( ) . collect ( ) ;
17- if args. len ( ) < 2 {
18- eprintln ! ( "not enough arguments. usage: {} <hex-encoded 32-byte seed>" , & args[ 0 ] ) ;
19- process:: exit ( 1 ) ;
20- }
17+ let seed_hex = if args. len ( ) < 2 {
18+ "7934c09359b234e076b9fa5a1abfd38e3dc2a9939745b7cc3c22a48d831d14bd"
19+ } else {
20+ & args[ 1 ]
21+ } ;
2122
22- let seed_hex = & args[ 1 ] ;
2323 println ! ( "Seed: {seed_hex}" ) ;
2424 println ! ( "Using mainnet network" ) ;
2525
You can’t perform that action at this time.
0 commit comments