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
Merge rust-bitcoin#203: Extend Field and Checksum for error correction
f47ec0b field: add Powers iterator (Andrew Poelstra)
c389d72 checksum: add new error-correction fields to the Checksum trait (Andrew Poelstra)
14e4f7b field: add Default bound to Field (Andrew Poelstra)
011674d field: add format_as_rust_code utility method (Andrew Poelstra)
3c97cd1 field: split trait into "normal" field trait and sealed trait (Andrew Poelstra)
8eaec9d field: use UFCS in macro (Andrew Poelstra)
Pull request description:
The first couple commits of this PR split the `Field` trait into two -- a general `Field` trait which has the algebraic functionality of a field, and a sealed `Bech32Field` trait which has the functionality that is specific to this crate.
The rest add new functionality to the traits which describe extra properties of our checksums needed for error correction.
The next PRs will:
* Introduce a `FieldVec` type to back `Polynomial` to make it work in a no-alloc setting (at least for small checksums, for a configurable notion of "small")
* Implement error correction :)
ACKs for top commit:
clarkmoody:
ACK f47ec0b
Tree-SHA512: 880e0e4cb2f21effd657ef57ddff45a807f55283f7a0fad6aeec67518f0bbec0daa719bbedd5c9490dd1ed22538ea3a9b071db3cb6eac142cbd91d1e65919103
0 commit comments