Title: Bitcoin wallet - MultiSig Post by: krateczka on June 02, 2015, 10:51:17 AM Hey, I'd like to implement into my online Bitcoin wallet MultiSig technology but do not know where to look for information? I found on Github only general information, and the need for a precise details of how to implement Multisig.
Is there a person who will write me exactly what I have to do? For help in implementation can offer a small amount of BTC. Thanks. Title: Re: Bitcoin wallet - MultiSig Post by: tspacepilot on June 02, 2015, 03:20:34 PM I'm guesssing you read this page:
https://github.com/bitcoin/bips/blob/master/bip-0011.mediawiki From what I can tell, if you've already got a working parser for the bitcoin transactions, implementing multisig just looks like you need to add the new transaction type and be able to validate the signatures. Wish I could be more helpful but it's not clear from your post how far you need to go. Here's a bitcointalk thread discussing it: https://bitcointalk.org/index.php?topic=46538 You can check out the _createmultisig_redeemScript function in bitcoin-core: https://github.com/bitcoin/bitcoin/blob/b6ea3bcede1cbbf89486b9d67329e0110c4624ae/src/rpcmisc.cpp Hope that helps! Title: Re: Bitcoin wallet - MultiSig Post by: virtualx on June 03, 2015, 08:22:30 AM Hey, I'd like to implement into my online Bitcoin wallet MultiSig technology but do not know where to look for information? I found on Github only general information, and the need for a precise details of how to implement Multisig. Is there a person who will write me exactly what I have to do? For help in implementation can offer a small amount of BTC. Thanks. You could use a library to take care of that such as https://pypi.python.org/pypi/bitcoin/1.1.26 (https://pypi.python.org/pypi/bitcoin/1.1.26) If you want to implement yourself, this seems to be the algorithm for generating multisignature addresses: Code: <?php Title: Re: Bitcoin wallet - MultiSig Post by: fbueller on June 05, 2015, 01:08:04 PM I think that second paste is an example from my PHP library, not the python one you linked. Either would do just fine for your server side part of it.
You need a server which is able to create addresses locked to your users (somehow), and will be able to create proposed spends of money which arrives in that address. (an unsigned transaction). You need to build the idea of proposing transactions and signing (ie, ACCEPTING some terms or the next step) into your app. Your users will probably need some software to do all this for them, it's not straightforward. You could use a clientside JS library for this. Your users will do the signing in their browser, and hence, your server needs to be able to validate the transactions received. For the correct amount? Does it go to the same place? Most importantly, does the signature actually verify by the public key you have for that user? (this makes sure the other user didn't get that users pw and try submit something stupid) - So the flow is normally, n users wish to transact. You will need a public key for all of them. Probably you will use BIP32 for this. - You will need to create the multisignature address, and have the person paying for services put the money into the address. - Next, the money needs to move right? To the seller? Does the buyer get a refund? Where does the money go? - The server will probably have a default place to send the funds - the seller. - If there are problems, your server will create a different transaction. - The users of your website will either sign, or raise a dispute of some kind. They submit signed transactions to you if they sign, and once you have enough signatures you can broadcast the funds. |