Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: piuk on January 28, 2012, 03:35:24 PM



Title: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: piuk on January 28, 2012, 03:35:24 PM
I need someone to create and redeem one M-Of-N (https://en.bitcoin.it/wiki/BIP_0011) transaction and one P2SH (https://en.bitcoin.it/wiki/BIP_0016) transaction on main net.

Offering modest bounty of 2 BTC.




Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: [Tycho] on January 28, 2012, 05:59:16 PM
Nice request !
I like strange TXes too :)


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: Costia on January 28, 2012, 06:06:32 PM
gavin said luke had to test bip17 on the real network because he wrote a stealing bot on testnet
so those transactions should already be somewhere out there in the real blockchain
(and you can steal luke's money if you find them :) )


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: gmaxwell on January 28, 2012, 10:41:08 PM
gavin said luke had to test bip17 on the real network because he wrote a stealing bot on testnet
so those transactions should already be somewhere out there in the real blockchain
(and you can steal luke's money if you find them :) )

No, Luke didn't have to test on the real network.

He tested on the real network before he was aware of the stealing bot, in fact. He tested on the real network because he controls the content of the blocks of 400GH/s.  He tested on the real network because he could.

When the stealing bot was noticed and was causing Luke some trouble with continued testing I mined some 40ish blocks to reorganize testnet to undo the stealing bot so Luke could continue his testing there.  (something that I couldn't do on the real network, which is part of the reason testnet is so much better for testing)


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: Costia on January 28, 2012, 10:46:49 PM
so do you know in which blocks on the real network the bip17 transacions are?


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: piuk on January 28, 2012, 10:57:27 PM
I think this might be one http://blockchain.info/tx-index/14682055?show_adv=true


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: Costia on January 28, 2012, 11:01:36 PM
yep. looks like bip17
there are more here:
http://blockchain.info/strange-transactions


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: piuk on January 29, 2012, 08:31:00 PM
So I've made a bit of progress and have patched bitcoin-js so it can generate multi-sig transactions and also patched my bitcoind with the latest git Script changes.

However for some reason the MultiSig transactions are not passing IsStandard() and are being rejected.

Quote
ERROR: nonstandard txout: 1 04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e 6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e 6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 2 OP_CHECKMULTISIG

Just to confirm should n & m be pushed onto the stack as if they were data?


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: [Tycho] on January 30, 2012, 01:26:01 AM
So I've made a bit of progress and have patched bitcoin-js so it can generate multi-sig transactions and also patched my bitcoind with the latest git Script changes.

However for some reason the MultiSig transactions are not passing IsStandard() and are being rejected.
They aren't standard, you should patch your bitcoind to mine them into blocks.


Title: Re: Mine a MultiSig / P2SH transactions on main net - Bounty
Post by: piuk on January 30, 2012, 10:03:28 AM
They aren't standard, you should patch your bitcoind to mine them into blocks.

They were made standard recently. The problem was m & n are not actually numbers they are op codes e.g. OP_TURE, OP_2

My test transaction finally got mined by Ozcoin:

https://blockchain.info/tx/60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1?show_adv=true