-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now we have all the new `primitives` pieces in place we can re-write the public API to take advantage of them - WIN!
- Loading branch information
Showing
8 changed files
with
324 additions
and
1,240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
//! Re-export the hrp types to make importing ergonomic for the top level APIs. | ||
|
||
/// The human-readable part used by the Bitcoin mainnet network. | ||
#[doc(inline)] | ||
pub use crate::primitives::hrp::BC; | ||
/// The human-readable part used when running a Bitcoin regtest network. | ||
#[doc(inline)] | ||
pub use crate::primitives::hrp::BCRT; | ||
/// The human-readable part used by the Bitcoin testnet networks (testnet, signet). | ||
#[doc(inline)] | ||
pub use crate::primitives::hrp::TB; | ||
/// The human-readable part (human readable prefix before the '1' separator). | ||
pub use crate::primitives::hrp::Hrp; |
Oops, something went wrong.