18
14
Can somebody help me with step-by-step list of how to create a multi signature 2-of-3 transaction?
18
14
Can somebody help me with step-by-step list of how to create a multi signature 2-of-3 transaction?
11
It seems some partial implementation exists. Quoting Gavin:
validateaddress RPC command 3 times.Then create a 2-of-3 multisig address using addmultisigaddress; e.g.
bitcoind addmultisigaddress 2 '["044322868cb17d64dcc22185ae2d4493111d73244c3668f8ac79ecc79c0ba8d30a6756d0fa20157 709af3281cc721c7f53321a8cabda29b77900b7e4fe0174b114","..second pubkey..","..third pubkey.."]'
addmultisigaddress returns the multisignature address. Be a little careful, the public keys are raw hexadecimal and don't contain checksums like bitcoin addresses do. You can then send funds into that 2-of-3 transaction using the normal sendtoaddress/sendmany RPC commands, or the GUI (or anything that's been updated to recognize multisig addresses).
This isn't implemented yet (RPC calls mechanism). You could gather up all addresses into one wallet, and then you would be able to spend the funds.
Update March 2014
Multisig is still hard. I believe the SX library is an easy tool (by people like Vitalik Buterin and Amir Taaki) for working with multisig, but I haven't tested that myself.
1Multisig is no longer hard. See my new answer below – Alex Millar – 2015-06-01T20:07:25.550
10
Actually, both receiving funds at and spending funds from a multi-sig address is already supported.
You can find the code to do so, plus comments, by Gavin:
2
The easiest way to create a multi signature 2-of-3 transaction is with Coinb.in.
If necessary, create 3 key pairs using the "New Address" drop down command.
Use the "New Multisig Address" together with the 3 public keys to create a 2-of-3 address.
Fund the address with bitcoin.
Create a new transaction by pasting in the "redeem script" from step 3, defining the receiving addresses and amounts. (All unspent inputs not assigned to a receiving address will be used as transaction fees. If change is desired include that in a new output address by clicking the "+".)
Sign the transaction by one of the private keys, then sign that transaction with another of the private keys.
Broadcast the transaction to the network.
1 I made a video documenting these steps here: https://www.youtube.com/watch?v=oUSVmLegj8k
2
A m-of-n multisig address is created as follows:
n public keys.3-of-303730a151f545f5dcdb1c6d99fb1251f5c70f216f39ba2681bcf10db16bd582e67, 03a9bb9d28dfcd2e58ca7b3fa39f4051a6496fc7928f993f1758aeff7c0fee0f03, 03a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bdOP_m <bytes-in-Pubkey1> <pubKey1> ... OP_n OP_CHECKMULTISIG532103730a151f545f5dcdb1c6d99fb1251f5c70f216f39ba2681bcf10db16bd582e672103a9bb9d28dfcd2e58ca7b3fa39f4051a6496fc7928f993f1758aeff7c0fee0f032103a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd53aeHASH160(<script>)8b58c2f47cd3000e42c82138f7678dc978bc109a0x05 for P2SH address on mainnet: 05<scriptHash>058b58c2f47cd3000e42c82138f7678dc978bc109aBASE58CHECK(05<scriptHash>)3EPpBU7fXq1PfG6JkLnJNUUmEGcSr9rdmhYou can send bitcoin to this address, but to spend from it, you must provide the scriptSig: 0 <sig1> ... <script> where <sigM> is signed from each of the m private keys.
See Bitcoin Wiki - Script for opcodes, Bitcoin Wiki - Address Prefixes, and Bitcoin Wiki - Transaction for multisig P2SH script format.
It's been a year since this was asked. What gives? See also https://bitcointalk.org/index.php?topic=195168.0
– ripper234 – 2013-05-04T19:26:20.067See also - https://bitcoin.stackexchange.com/questions/23889/how-do-i-create-a-2-of-3-multisig-address-using-bitcoind
– ripper234 – 2014-03-23T10:43:06.877To build a multisig transaction, the easiest API I know of: http://dev.blockcypher.com/#multisig
– Matthieu – 2014-07-01T19:54:15.5731
It's worth mentioning that this other question http://bitcoin.stackexchange.com/questions/3557/how-does-one-make-multisignature-transactions-with-the-bitcoin-client doesn't appear to be a duplicate because it relates to the Bitcoin client app
– Highly Irregular – 2012-05-17T22:14:41.760Do you mean create the raw transaction, or do you just mean that you'd like to send such a transaction? If the former, then look into OP_CHECKMULTISIG and BIP-11; if the latter, then you may want to use an online wallet such as blockchain.info, which I believe handles this. – Daniel H – 2012-08-28T05:42:28.363