Title: Funny address pair Post by: amaclin on July 20, 2014, 04:31:45 PM Look at these addresses
https://blockchain.info/address/1LKR8M54CKzZ2pnkmgLmQVzgMTP4md2gMw https://blockchain.info/address/3M1S3tZVkEJw7zVBtn1Mq8McVyfnNMAuoX These two addresses have the same hash d3e604621abfc263162af107834b5a04011b9751 And both addresses are spendable The first one is spendable by private key owner (not me), the second - by everyone (thanks to Eligius) The public key of 1LKR8M54CKzZ2pnkmgLmQVzgMTP4md2gMw is 03641eee1b2919d6a7a0dd5ea30dbfee0e687948e57e70b347eb8c32feae01d96d and it is valid bitcoin script acceptable by bip-16 Code: 03 641eee // push "641eee" Title: Re: Funny address pair Post by: micaman on July 20, 2014, 05:29:15 PM The 2nd one is a multisig address. You probably need more than 1 private key to spend those funds.
Title: Re: Funny address pair Post by: amaclin on July 20, 2014, 05:54:16 PM The 2nd one is a multisig address. You probably need more than 1 private key to spend those funds. No. It is p2sh address but not a msig address. I took these funds without knowledge of private key. Title: Re: Funny address pair Post by: TimS on July 20, 2014, 06:02:47 PM Cool! A great deal of these address pairs exist. You could search for them like you search for vanity addresses quite easily - the given example only really requires 2 bytes in the public key fixed (1b and 6d), since you can compress any public key to an 03 pub key.
It's confusing to the likes of blockchain.info (it says 3M1... has a negative balance), but they're both perfectly valid and separate addresses (although, being anyone-spend, you don't want to use the second for real stuff). Title: Re: Funny address pair Post by: amaclin on July 20, 2014, 06:17:03 PM Quote Cool! A great deal of these address pairs exist. The second address is useless, because everyone can transfer funds to himself.Quote You could search for them like you search for vanity addresses quite easily - the given example only really requires 2 bytes in the public key fixed (1b and 6d), since you can compress any public key to an 03 pub key. Public keys can start with 02, 03 and 04. And there are a lot of different valid bip-16 scripts - we can use a big set of opcodes - OP_DUP, OP_DROP, OP_NOPx... Several forms of OP_PUSH... Quote It's confusing to the likes of blockchain.info (it says 3M1... has a negative balance), It is a bug of bc.iQuote but they're both perfectly valid and separate addresses (although, being anyone-spend, you don't want to use the second for real stuff). It is not my address (I do not know private key), but I like this idea... And thanks for some btc amount which i transfered to my account :)Title: Re: Funny address pair Post by: Remember remember the 5th of November on July 20, 2014, 07:29:36 PM I am sorry, I am not quite getting this. RIPEMD160 hash is 160 bits. What's the probability of two addresses having the same RIPEMD160 hash?
Title: Re: Funny address pair Post by: TimS on July 20, 2014, 07:51:46 PM I am sorry, I am not quite getting this. RIPEMD160 hash is 160 bits. What's the probability of two addresses having the same RIPEMD160 hash? Randomly? 1 in 2^160. But you can choose...An address contains three parts (https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses): a version number (https://en.bitcoin.it/wiki/List_of_address_prefixes), the 160 bit hash, and a checksum. Version 00 is used for Bitcoin pubkey hash addresses, and makes the address start with a 1. Version 05 is used for Bitcoin script hashes (typically multi-sig), and makes a prefix of 3. You can use the same 160 bits to make more than one address by changing the version number. As done here where one is a normal pubkey hash, the other is a P2SH address where the "script" is the pubkey (interpreted as a Bitcoin Script (https://en.bitcoin.it/wiki/Script)). If this pubkey-as-script allows you to spend the output, then both addresses can be spent from by people with the right information. Title: Re: Funny address pair Post by: gmaxwell on July 20, 2014, 10:48:35 PM These two addresses have the same hash d3e604621abfc263162af107834b5a04011b9751 They have entirely different scriptPubKeys, however. The sameness is only even remotely interesting because of bugs in bc.i (and perhaps some other wallets that just ignore the version bytes).You might want to attribute where you saw this discussion… Title: Re: Funny address pair Post by: amaclin on July 21, 2014, 04:21:33 AM Quote You might want to attribute where you saw this discussion… Sorry, I am not sure that I understand you. What discussion should I attribute?Title: Re: Funny address pair Post by: rapport on July 21, 2014, 04:36:53 AM Quote You might want to attribute where you saw this discussion… Sorry, I am not sure that I understand you. What discussion should I attribute?Maybe, how did you find this occurrence of same hash? Title: Re: Funny address pair Post by: amaclin on July 21, 2014, 04:55:10 AM Quote Maybe, how did you find this occurrence of same hash? My script monitors for non-standard transactions and notifies me about "something new&interesting".There were such pairs in blockchain in the past, but I have never seen both addresses of pair spendable For example: https://blockchain.info/address/3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy - spendable p2sh address https://blockchain.info/address/1HT7xU2Ngenf7D4yocz2SAcnNLW7rK8d4E - the private key is known to nobody[?] Title: Re: Funny address pair Post by: gmaxwell on July 21, 2014, 06:07:51 AM Quote Maybe, how did you find this occurrence of same hash? My script monitors for non-standard transactions and notifies me about "something new&interesting".I made an erroneous assumption that you'd been watching the logs and made the post as a result. :) Title: Re: Funny address pair Post by: amaclin on July 21, 2014, 06:54:33 AM Quote I made an erroneous assumption that you'd been watching the logs and made the post as a result. :) I assume that you are watching the blockchain Code: petertodd: lol, 3PhyP1FWB8KgwrNgUPbjP7iv6YfoH3GhK7 is kinda hilarious.... and discussing my transactions ;D ;D ;D Code: 02:32:37 gmaxwell: kanzure: looks like someone has implemented p2sh by sending as pay-to-pubkeyhash. e.g. just ignoring the version byte. posted by me on july, 02: https://bitcointalk.org/index.php?topic=673737.msg7633818#msg7633818 Title: Re: Funny address pair Post by: rapport on July 22, 2014, 08:11:34 AM Quote Maybe, how did you find this occurrence of same hash? My script monitors for non-standard transactions and notifies me about "something new&interesting".Thought you would have a script. Is it open source? Title: Re: Funny address pair Post by: rapport on July 22, 2014, 08:14:35 AM Quote Maybe, how did you find this occurrence of same hash? My script monitors for non-standard transactions and notifies me about "something new&interesting".I made an erroneous assumption that you'd been watching the logs and made the post as a result. :) If you only discussed today, and OP made the post a few days ago, how could he have seen the logs back then? :) Or was there a related earlier discussion too? Thanks for the reference on today's discussion. Title: Re: Funny address pair Post by: amaclin on July 22, 2014, 09:02:45 AM Quote If you only discussed today, and OP made the post a few days ago, how could he have seen the logs back then? :) Or was there a related earlier discussion too? Thanks for the reference on today's discussion. Of course I located these things after the transactions were sent and confirmed into the blockchain. So, I was several hours behind of wizards and their discussion ;D Quote Thought you would have a script. Is it open source? It is not a script but a set of different methods from dumping all addresses to sniffing bitcoin traffic. No, it is not opensource, but I would like to share my knowledge with everyone. Just excuse me, my English is bad. Title: Re: Funny address pair Post by: rapport on July 22, 2014, 09:20:17 AM Quote No, it is not opensource, but I would like to share my knowledge with everyone. Just excuse me, my English is bad. Thanks for sharing. I understand now what is happening. I think instead of "These two addresses have the same hash d3e604621abfc263162af107834b5a04011b9751" this would be clearer: "These two addresses originate from the same hash d3e604621abfc263162af107834b5a04011b9751" The first makes it sound like hash(addr1) == hash(addr2) == d3e604621abfc263162af107834b5a04011b9751 Whereas this discussion is about https://en.bitcoin.it/wiki/File:PubKeyToAddr.png The hash you are talking about is the 20 bytes, and since different prefix byte can be used, this means the same hash can create different addresses. edit: formatting Title: Re: Funny address pair Post by: amaclin on July 22, 2014, 09:26:34 AM Sorry for misunderstanding. English is not my native language. I prefer Java and C++ :)
Title: Re: Funny address pair Post by: rapport on July 22, 2014, 09:53:54 AM No problem. Everyone else seemed to understand what you meant :)
|