Title: What is the "4" prefix? Post by: rico666 on July 19, 2016, 10:15:31 AM I know 1 (P2PKH) and 3 (P2SH). But what is the "4" prefix?
4PXAyBiWgTo2EaNvxbpLz8d4edj2taEWux 4GY6DnSvHiGou5G9akzHrXvXqwyz5zmTSR ... etc. Blockchain.info says only "Unrecognized Address Version 8", but the blockchain parser finds (at least) like 650 of these addresses with funds on them. Rico Title: Re: What is the "4" prefix? Post by: achow101 on July 19, 2016, 11:59:39 AM There is no "4" prefix.
which blockchain parser? Title: Re: What is the "4" prefix? Post by: johnjacksonbtc on July 19, 2016, 12:00:37 PM I know 1 (P2PKH) and 3 (P2SH). But what is the "4" prefix? 4PXAyBiWgTo2EaNvxbpLz8d4edj2taEWux 4GY6DnSvHiGou5G9akzHrXvXqwyz5zmTSR ... etc. Blockchain.info says only "Unrecognized Address Version 8", but the blockchain parser finds (at least) like 650 of these addresses with funds on them. Rico How about txids that use these addresses? searchrawtransactions 4PXAyBiWgTo2EaNvxbpLz8d4edj2taEWux says Invalid Bitcoin address (code -5). Title: Re: What is the "4" prefix? Post by: rico666 on July 19, 2016, 01:07:11 PM There is no "4" prefix. which blockchain parser? Hmm... https://github.com/znort987/blockparser So I'll investigate what went wrong. I do not have the txids, but the hash160 values, these are the 1st few occurences, it even claims there is more than 0.5BTC on some of these addresses. The "allBallances2.txt" file is simply the output of the parser. Code: # grep -P ' 4\w{32,33} ' allBalances2.txt Rico Title: Re: What is the "4" prefix? Post by: achow101 on July 19, 2016, 01:27:37 PM I don't know what is wrong, but it is clearly a bug in the blockchain parser software.
Title: Re: What is the "4" prefix? Post by: rico666 on July 19, 2016, 01:41:51 PM I don't know what is wrong, but it is clearly a bug in the blockchain parser software. I think so too. Any recommendation of alternative blockchain parsers? I don't need anything fancy (not even fast), I just need addresses with funds on them. I would prefer something bug-free of course. ;) Rico Title: Re: What is the "4" prefix? Post by: DannyHamilton on July 19, 2016, 02:51:02 PM It's not a bug, it's an intended feature.
From the github page that you linked to: Quote How does blockparser deal with multi-sig transactions ? -------------------------------------------------------- AFAIK, there are two types of multi-sig transactions: 1) Pay-to-script (which is in fact more general than multisig). This one is easy, because it pays to a hash, which can readily be converted to an address that starts with the character '3' instead of '1' 2) Naked multi-sig transactions. These are harder, because the output of the transactions does not neatly map to a specific bitcoin address. I think I have found a neat work-around: I compute: hash160(M, N, sortedListOfAddresses) which can now be properly mapped to a bitcoin address. To mark the fact that this addres is neither a "pay to script" (type '3') nor a "pay to pubkey or pubkeyhash" (type '1'), I prefix them with '4' Note : this may be worthy of an actual BIP. If someone writes one, I'll happily adjust the code. Note : this trick is only a blockparser thing. This means that these new address types starting with a '4' won't be recognized by other bitcoin implementations (such as blockchain.info) Title: Re: What is the "4" prefix? Post by: rico666 on July 19, 2016, 03:59:08 PM It's not a bug, it's an intended feature. Thanks Danny for pointing that out. Very interesting and ... RTFM ... I guess. Rico |