Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do some checksum module improvements #609

Merged
merged 4 commits into from
Oct 9, 2023

Conversation

tcharding
Copy link
Member

The first 4 patches from #608, no changes.

Clean up and add some test vector unit tests.

@tcharding
Copy link
Member Author

Looks like network errors in CI, will kick it later.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5018673

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 5018673

@apoelstra apoelstra merged commit e73a251 into rust-bitcoin:master Oct 9, 2023
16 checks passed
@tcharding tcharding deleted the 10-06-checksum-cleanup branch October 9, 2023 18:02
apoelstra added a commit that referenced this pull request Oct 12, 2023
fe1a6be Implement write_descriptor macro (Tobin C. Harding)
e9eb9b1 Use bech32 instead of custom poly_mod function (Tobin C. Harding)

Pull request description:

  This is just the last patch, the rest are in #609 now.

  The `checksum::poly_mod` function implements BCH codes to calculate a checksum (appended to descriptors). We recently released a version of BCH codes in `bech32`. We can implement the `bech32::Checksum` trait for BIP-380 and use the `primitives::checksum` module, removing the custom `poly_mod` function.

ACKs for top commit:
  apoelstra:
    ACK fe1a6be

Tree-SHA512: 7be33951669982ce7b7d2e32197e5eb9c40323d31785a6ed0e4d47c6200c7cb0d4aadbce54cf112511dd680cc09a33f0e580aa193e71164ceaeacfecd98a1b19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants