rust-bitcoin-unsafe-fast/bitcoin
Tobin C. Harding 923ce7402d
Remove Network from AddressInner
An `AddressInner` struct is created when parsing address strings however
address strings do not map 1:1 to `Network` because signet and testnet
use the same bech32 prefix "tb".

We can fix this by inlining the `Payload` variants into `AddressInner`
and adding prefix enums for legacy addresses and a `KnownHrp` for bech32
addresses.

Also enables removing the `AddressEncoding` struct as we can display the
`AddressInner` struct directly. (The `Display` impl is on `AddressInner`
and not directly on address to ignore the `NetworkValidation` wrapper,
may be able to be simplified still further.)
2023-12-05 09:27:15 +11:00
..
contrib bitcoin: Add signing examples 2023-10-31 10:11:48 +11:00
embedded Update to edition 2021 2023-11-23 06:20:03 +11:00
examples bitcoin: Add signing examples 2023-10-31 10:11:48 +11:00
src Remove Network from AddressInner 2023-12-05 09:27:15 +11:00
tests Remove Network from AddressInner 2023-12-05 09:27:15 +11:00
CHANGELOG.md Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00
Cargo.toml Inline io module in io crate root 2023-11-28 14:17:14 +11:00
build.rs Bump MSRV to Rust version 1.56.1 2023-11-23 06:20:02 +11:00