-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
6 changed files
with
254 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.