Closed bilthon closed 6 years ago
Hello, thanks for reporting this! Which version of btcpy
are you using? In the current version pubKey.to_segwit_address()
without parameters would not work, as it is declared as
def to_segwit_address(self, version, mainnet=None):
If I do:
This gives me:
Which is not the address I'm looking for. If I however explicitly specify the segwit program version:
I finally get:
It would be easy to submit a PR with this change, but I'm new to this library and don't know if this would break things or go somewhat against the desired behavior. I'm just saying that, as a user, at this point I expect the version to be zero by default.