rust-bitcoin-unsafe-fast/bitcoin/src
merge-script 2f40c30f73
Merge rust-bitcoin/rust-bitcoin#3481: Decode an address string based on prefix
9c2ac46902 Split up ParseError (Jamil Lambert, PhD)
3d994f7bdb Decode an address string based on prefix (Jamil Lambert, PhD)

Pull request description:

  When a decoding error occurs for a bech32 address string the error is discarded and the same address string is attempted to be decoded as base58.  This then incorrectly returns a base58 error.

  Check the string prefix and decode as bech32 or base58 and return the relevant error.  If the prefix is unknown return an `UnknownHrpError`.

  Close #3044

ACKs for top commit:
  tcharding:
    ACK 9c2ac46902
  apoelstra:
    ACK 9c2ac46902ae2e6f2513ee125ea5c89953ac89a2; successfully ran local tests

Tree-SHA512: 40c94328828af86723e84d4196e8949430fb9a15efd8865c18cb5048fe59b8a2514d97f4809d828353b78c010544a8a6d4589a8c9c7fbd75d9d0ecceb3151e8f
2024-10-23 16:59:57 +00:00
..
address Merge rust-bitcoin/rust-bitcoin#3481: Decode an address string based on prefix 2024-10-23 16:59:57 +00:00
blockdata Merge rust-bitcoin/rust-bitcoin#3486: Remove the I/O error variant when `consensus::deserialize`'ing 2024-10-23 14:25:55 +00:00
consensus Remove the IO error from DecodeError 2024-10-22 12:39:07 +11:00
crypto Introduce taproot hash type extension traits 2024-10-22 13:50:44 +11:00
merkle_tree Split encode::Error into two parts 2024-10-22 11:58:43 +11:00
network Unify deprecated note field format 2024-10-15 15:16:01 +01:00
p2p Add error constructor parse_failed_error 2024-10-22 11:47:34 +11:00
psbt Return DeserError from encode::deserialize 2024-10-22 12:04:40 +11:00
taproot Move taproot hash types to primitives 2024-10-22 13:50:44 +11:00
bip32.rs Unify deprecated note field format 2024-10-15 15:16:01 +01:00
bip152.rs Split encode::Error into two parts 2024-10-22 11:58:43 +11:00
bip158.rs Replace VarInt type with ReadExt and WriteExt functions 2024-09-25 06:56:09 +10:00
consensus_validation.rs Seal extension traits 2024-10-21 14:51:23 +11:00
hash_types.rs Unify deprecated note field format 2024-10-15 15:16:01 +01:00
internal_macros.rs Seal extension traits 2024-10-21 14:51:23 +11:00
lib.rs Expose units::amount::ParseError 2024-10-20 11:25:46 -07:00
policy.rs Remove usage of blockdata from paths 2024-06-20 12:00:22 +10:00
pow.rs Seal extension traits 2024-10-21 14:51:23 +11:00
serde_utils.rs clippy: remove some newly-detected unnecessary returns 2024-09-30 12:31:17 +00:00
sign_message.rs refactor: compute recid in a single line 2024-10-18 16:39:50 +09:00