Open klazutin opened 1 year ago
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).
test_address.py
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
).