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:
Tobin C. Harding 2022-08-24 16:15:33 +10:00
parent aeacbe763d
commit 34113c9558
3 changed files with 5 additions and 1 deletions

View File

@ -1118,6 +1118,7 @@ mod tests {
pub fn encode_fingerprint_chaincode() {
use serde_json;
let fp = Fingerprint::from(&[1u8,2,3,42][..]);
#[rustfmt::skip]
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][..]
);

View File

@ -81,6 +81,7 @@ mod serde_utils;
pub mod network;
pub mod address;
pub mod bip158;
pub mod bip32;
pub mod blockdata;
pub mod consensus;
pub mod error;

View File

@ -11,7 +11,6 @@ pub mod ecdsa;
pub mod schnorr;
pub mod amount;
pub mod base58;
pub mod bip32;
pub mod bip152;
pub mod hash;
pub mod merkleblock;
@ -117,5 +116,8 @@ pub mod 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")]
pub use crate::bip158;