rust-bitcoin-unsafe-fast/bitcoin
connormullett e00dfa9806 impl FromHexStr for structs with single u32 member
Adds new module `string` to be later converted to its own
crate. The module currently contains the FromHexStr trait and an error
type to be used for implementing hex parsing on types. This change
also adds implementations of FromHexStr for types with a single u32
member such as `Sequence(pub u32)`. All structs that match the
following regex have been given this implementation
`\(u32\)` and `\(pub u32\)`. All implementations have associated
unit tests matching all possible cases. NonStandardSighashType has
been ommitted from this change as it is an error and should not be
constructed using the methods added in this change.

Adds parse::hex_u32 for future use to be made generic to allow
different sizes of integers to be parsed from hex strings.

The error type FromHexError implements required traits such as
Display and std::error::Error
2022-12-11 00:01:58 -05:00
..
contrib Fail CI if docs build throws warnings 2022-11-21 10:35:49 +11:00
embedded Import bitcoin_hashes crate into hashes 2022-11-08 08:58:09 +11:00
examples Move the taproot module to crate root 2022-11-30 12:03:39 +11:00
fuzz Merge rust-bitcoin/rust-bitcoin#1284: Import bitcoin hashes 2022-11-18 18:32:41 +00:00
src impl FromHexStr for structs with single u32 member 2022-12-11 00:01:58 -05:00
tests Hotfix: Fix broken serde 2022-12-01 15:57:37 -08:00
CHANGELOG.md Move CHANGELOG to bitcoin crate 2022-11-08 08:40:44 +11:00
Cargo.toml Implement consensus encoding adapter for serde 2022-12-02 10:48:05 +01:00
build.rs Implement consensus encoding adapter for serde 2022-12-02 10:48:05 +01:00