know how to avoid this detour and get bytes directly - please comment def decode(addr b58 def base58_to_dec(addr dec 0 for i in range(len(addr dec int(dec * 58 dex(addri) print Decimal representation print(dec) return(dec) def dec_to_byte(dec out ' while dec! What if Hash160 has 0xff? To deal with it, I used mpmath which lets you operate with integers precisely. Just make sure you trim the first and last 4 bytes that carry fat-finger check. Someone could easily get a valid address. Generates a Hash160 from a BitCoin's public key. From mpmath import *.
Re: hash 160 VS SHA256?
Just enter the hash 160 in step.
If you want automation, try writing a script.
There are many bitcoin libraries available that you can use.
Does anyone know of a python script (or some other script) to transform a large file with BTC addresses to Hash 160?
E.g.: bx fetch-tx -config /home/theo/Desktop/g hash inputs input address_hash f3b a049d6be894bf7f516178a0c8e6 previous_output hash index 1 script " sequence lock_time 0 outputs output address_hash script "dup hash160 equalverify checksig" value output address_hash script "dup hash160 equalverify checksig" value version. 16 Sun Jul 15 20:36: Sun May 13 12:13:16 2012. Presa Altcoins (Monede Alternative) Skandinavisk Türkçe (Turkish) Bitcoin Haberleri Pazar Alan Madencilik Ekonomi Servisler Fonlar Proje Gelitirme Alternatif Kripto-Paralar Madencilik (Alternatif Kripto-Paralar) Duyurular (Alternatif Kripto-Paralar) Konu D Yeni Balayanlar Yardm Bulumalar Other languages/locations. There's no such symbol in b58, as 58 in hex is just 0x3a. Wiki says that I can get Hash160 by reversing last step of address production (Hash160 is higlighted this step is encoding a byte string with base58 alphabet b58 this alphabet lacks 0, I, l, O, as these symbols are easy to mix.