rust-bitcoin / rust-bech32

Bech32 format encoding and decoding
MIT License
94 stars 49 forks source link

Extend `Field` and `Checksum` for error correction #203

Closed apoelstra closed 1 month ago

apoelstra commented 1 month ago

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: