You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
9f47b74 use bitcoin_hashes 1.0 throughout the codebase (Andrew Poelstra)
be0c59d genesis: eliminate a bunch of allocations and panic paths (Andrew Poelstra)
400650d add 'hashes 1.0' dependency (Andrew Poelstra)
3c958e2 blind: encapsulate RangeProofMessage and improve error types (Andrew Poelstra)
Pull request description:
As part of our project to modernize this library and its dependencies, upgrade to bitcoin_hashes 1.0. This has a number of API improvements:
* replacing all the `Hash` trait methods with inherent methods so you don't need to import a trait anymore
* replacing the fallible `from_slice` methods with infallible `from_byte_array` methods
* removing the `hash` method and other "compute a hash from arbitrary data" methods on wrapper types like `Txid`; these should only be constructed in specific prescribed ways
Also includes a followup commit to #279 to improve error typing.
ACKs for top commit:
delta1:
ACK 9f47b74; tested locally
Tree-SHA512: 5445b23158aa8379e22c8d43d922e8588ed5dd6a9a97c4bb39aeb6b37febc615407f8cb654d86c8f28959aebfb3e1611fc75b8900b700a9b7c4474e4fffaad7c
0 commit comments