Move bip158 module to crate root
We are attempting to flatten the `util` module; move the `bip158` module to the crate root out of `util`. Currently `src/util/` is ignored by the formatter so this move causes the `bip32` module to be formatted.
This commit is contained in:
parent
5e67419b14
commit
95393aadbc
|
@ -567,7 +567,7 @@ mod test {
|
||||||
fn test_blockfilters() {
|
fn test_blockfilters() {
|
||||||
|
|
||||||
// test vectors from: https://github.com/jimpo/bitcoin/blob/c7efb652f3543b001b4dd22186a354605b14f47e/src/test/data/blockfilters.json
|
// test vectors from: https://github.com/jimpo/bitcoin/blob/c7efb652f3543b001b4dd22186a354605b14f47e/src/test/data/blockfilters.json
|
||||||
let data = include_str!("../../test_data/blockfilters.json");
|
let data = include_str!("../test_data/blockfilters.json");
|
||||||
|
|
||||||
let testdata = serde_json::from_str::<Value>(data).unwrap().as_array().unwrap().clone();
|
let testdata = serde_json::from_str::<Value>(data).unwrap().as_array().unwrap().clone();
|
||||||
for t in testdata.iter().skip(1) {
|
for t in testdata.iter().skip(1) {
|
|
@ -80,6 +80,7 @@ mod serde_utils;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub mod network;
|
pub mod network;
|
||||||
pub mod address;
|
pub mod address;
|
||||||
|
pub mod bip158;
|
||||||
pub mod blockdata;
|
pub mod blockdata;
|
||||||
pub mod consensus;
|
pub mod consensus;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
|
|
@ -20,7 +20,6 @@ pub mod misc;
|
||||||
pub mod psbt;
|
pub mod psbt;
|
||||||
pub mod taproot;
|
pub mod taproot;
|
||||||
pub mod uint;
|
pub mod uint;
|
||||||
pub mod bip158;
|
|
||||||
pub mod sighash;
|
pub mod sighash;
|
||||||
|
|
||||||
pub(crate) mod endian;
|
pub(crate) mod endian;
|
||||||
|
@ -117,3 +116,6 @@ pub(crate) fn read_to_end<D: io::Read>(mut d: D) -> Result<Vec<u8>, io::Error> {
|
||||||
pub mod address {
|
pub mod address {
|
||||||
pub use crate::address::*;
|
pub use crate::address::*;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[deprecated(since = "0.30.0", note = "Please use crate::bip158")]
|
||||||
|
pub use crate::bip158;
|
||||||
|
|
Loading…
Reference in New Issue