Post
Topic
Board Project Development
Re: List of all Bitcoin addresses with a balance
by
bitxchange
on 29/12/2021, 05:14:17 UTC
You deserve praise for making the list available and keeping updates running.

I am playing with the brainflyer tool and as it requires the hash160 addresses for the bloom filter, I am asking here, in case someone knows and can point me in the right direction, how to convert the ~430K bech32 addresses with a positive balance currently, to hash160?

Decoding base58 to hash160 is pretty straight forward (python) and is done in 1 line  'adr160 = base58.b58decode_check(adr58).hex()[2:]'

# python3 b58decode.py 34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo
23e522dfc6656a8fda3d47b4fa53f7585ac758cd

But I can't figure it out nor I could find some good example for decoding bech32 to hash160.

bech32 address (start with 'bc') : bc1qxv55wuzz4qsfgss3uq2zwg5y88d7qv5hg67d2d


Any thoughts?