rust-elements
rust-elements copied to clipboard
Use bitcoin-units 1.0
Draft until 1.0 is out; for now we are using rc0.
This introduces several changes that move this crate toward its final 1.0 form:
- Remove some deprecated methods
- Return the bitcoin-units
Weighttype fromweightmethods onTransactionandBlock. - Replace ad-hoc serde impls on locktimes and PSETs with standard ones that use the consensus encoding.
- Replace the
HeightandTimetypes in the locktime module with ones from bitcoin-units.
This will improve our compatibility with rust-bitcoin and also improve compatibility with different versions of rust-elements.
4-1 red lines to green, got to be happy with that.
Heh, well, much of it is replacing the serde stuff which I think I will PR separately because I want to get those changes in ASAP.