Move bip32 module to crate root
We are attempting to flatten the `util` module; move the `bip32` module to the crate root out of `util`. Currently `src/util/` is ignored by the formatter, this patch does not do formatting, will be done later.
This commit is contained in:
parent
aeacbe763d
commit
34113c9558
|
@ -1118,6 +1118,7 @@ mod tests {
|
||||||
pub fn encode_fingerprint_chaincode() {
|
pub fn encode_fingerprint_chaincode() {
|
||||||
use serde_json;
|
use serde_json;
|
||||||
let fp = Fingerprint::from(&[1u8,2,3,42][..]);
|
let fp = Fingerprint::from(&[1u8,2,3,42][..]);
|
||||||
|
#[rustfmt::skip]
|
||||||
let cc = ChainCode::from(
|
let cc = ChainCode::from(
|
||||||
&[1u8,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2][..]
|
&[1u8,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2][..]
|
||||||
);
|
);
|
|
@ -81,6 +81,7 @@ mod serde_utils;
|
||||||
pub mod network;
|
pub mod network;
|
||||||
pub mod address;
|
pub mod address;
|
||||||
pub mod bip158;
|
pub mod bip158;
|
||||||
|
pub mod bip32;
|
||||||
pub mod blockdata;
|
pub mod blockdata;
|
||||||
pub mod consensus;
|
pub mod consensus;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
|
|
@ -11,7 +11,6 @@ pub mod ecdsa;
|
||||||
pub mod schnorr;
|
pub mod schnorr;
|
||||||
pub mod amount;
|
pub mod amount;
|
||||||
pub mod base58;
|
pub mod base58;
|
||||||
pub mod bip32;
|
|
||||||
pub mod bip152;
|
pub mod bip152;
|
||||||
pub mod hash;
|
pub mod hash;
|
||||||
pub mod merkleblock;
|
pub mod merkleblock;
|
||||||
|
@ -117,5 +116,8 @@ pub mod address {
|
||||||
pub use crate::address::*;
|
pub use crate::address::*;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[deprecated(since = "0.30.0", note = "Please use crate::bip32")]
|
||||||
|
pub use crate::bip32;
|
||||||
|
|
||||||
#[deprecated(since = "0.30.0", note = "Please use crate::bip158")]
|
#[deprecated(since = "0.30.0", note = "Please use crate::bip158")]
|
||||||
pub use crate::bip158;
|
pub use crate::bip158;
|
||||||
|
|
Loading…
Reference in New Issue