Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrotheer committed Jul 20, 2024
1 parent 64283e5 commit 822d67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/bip39.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ impl Bip39Secret {
.collect::<Vec<_>>()
.join(" ")
}
/// Generate the seed phrase (mnemonic) from the secret.
pub fn to_seed_phrase(&self, dictionary: &Bip39Dictionary) -> String {
self.to_mnemonic(dictionary)
}
}

#[cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ fn double_check_shares(
println!("\nDouble-checking secret can be reconstructed from any {t} shares...\n");

// Write the original seed phrase to the file
let original_seed_phrase = secret.to_seed_phrase(dictionary);
let original_seed_phrase = secret.to_mnemonic(dictionary);
writeln!(
file,
"Original seed phrase:\n\"{}\"\n",
Expand Down Expand Up @@ -226,7 +226,7 @@ fn double_check_shares(
);

// Write the reconstructed seed phrase to the file
let reconstructed_seed_phrase = reconstructed.to_seed_phrase(dictionary);
let reconstructed_seed_phrase = reconstructed.to_mnemonic(dictionary);
writeln!(
file,
"Reconstructed seed phrase from combination {}:",
Expand Down

0 comments on commit 822d67f

Please sign in to comment.