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

Fixed P2WSH and P2WPKH calculations and tests #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klazutin
Copy link

@klazutin klazutin commented Aug 6, 2023

This should hopefully fix the calculations of bech32 P2WSH and P2WPKH (#13)

The fix for P2WSH comes from @s256s9 - to the best of my ability to confirm, it produces a valid result.

The fix for P2WPKH comes from my efforts to understand the generation process. The correctness can be verified, for instance, on https://privatekeys.pw/address/bitcoin/1NaChZV4JJysct8QYcMKFHnQ2SNFpnBund (uses the public key from test_address.py).

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.

None yet

2 participants