Skip to content

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.

2 participants