btcposbal2csv icon indicating copy to clipboard operation
btcposbal2csv copied to clipboard

btcposbal2csv.py doesn't extract segwit

Open Jolly-Pirate opened this issue 3 years ago • 3 comments

btcposbal2csv.py doesn't extract segwit addresses, for example:

Public Address bc1 P2WPKH: bc1qetrqrygl7t0fn6hrdmuug3rrp8vjmum8fd8rsk Public Address bc1 P2WSH: bc1q26swzzjmqgwvcjxplktpyj9xpkzpv8kgs7t545ku6s7v6fl0xt3slnx8k9

Jolly-Pirate avatar Mar 01 '21 14:03 Jolly-Pirate

Yes, currently it does not support segwit address extraction. I'm not planning to add support at the moment. I would accept PR with the support.

There is open PR in bitcoin-core for txout dump (https://github.com/bitcoin/bitcoin/pull/18689), if this is merged, it would be ideal solution and made this library obsolete.

graymauser avatar Mar 03 '21 11:03 graymauser

Hi, I've added support for bech32 addresses in a repository located here: https://github.com/who-biz/chipsposbal2csv.

It has been modified to generate addresses with a different network byte, but the changes are easily portable if @Jolly-Pirate is still looking for a solution.

That repo is now compatible with P2WPKH & P2WSH txs

who-biz avatar Aug 01 '22 20:08 who-biz

PR'ed changes for BTC network.

who-biz avatar Aug 02 '22 15:08 who-biz