Skip to content

Commit

Permalink
cleanup legacy bip39 cfg that interferes with docs.rs builds (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect authored Sep 29, 2024
1 parent 180114e commit 3bc2844
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion wallet/bip32/src/mnemonic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod bits;
mod language;
mod phrase;

//#[cfg(feature = "bip39")]
pub(crate) mod seed;

pub use self::{language::Language, phrase::Mnemonic, phrase::WordCount};
2 changes: 0 additions & 2 deletions wallet/bip32/src/mnemonic/phrase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ impl Mnemonic {
}

/// Convert this mnemonic phrase into the BIP39 seed value.
//#[cfg(feature = "bip39")]
//#[cfg_attr(docsrs, doc(cfg(feature = "bip39")))]
pub fn to_seed(&self, password: &str) -> Seed {
let salt = Zeroizing::new(format!("mnemonic{password}"));
let mut seed = [0u8; Seed::SIZE];
Expand Down
1 change: 0 additions & 1 deletion wallet/bip32/src/mnemonic/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use zeroize::Zeroize;

/// BIP39 seeds.
// TODO(tarcieri): support for 32-byte seeds
#[cfg_attr(docsrs, doc(cfg(feature = "bip39")))]
pub struct Seed(pub(crate) [u8; Seed::SIZE]);

impl Seed {
Expand Down

0 comments on commit 3bc2844

Please sign in to comment.