7
I want to start a BTC market. I understand all the ways to go about creating a site, it's just the payment implementation which confuses me. I want multi-sig transactions capable between my users on site. If I understand correctly, multi-sig addresses are just special wallets anyways which require a certain fulfillment (2 out of three keys, for example) to go through.
How can I implement a system like this for my users on my server? So I can allow users to trade without the middle man if possible, yet also have the opportunity for an escrow moderation in case something happens? In the end a small percentage of market fees can be charged?
I'm new to Bitcoin programming but I'm assuming you simply have your web application interact with server daemons which dynamically create multi-sig addresses on demand for your users and somehow give them each a key, and leave a key for escrow moderation? And that would probably be all you'd have to do?
If it's going to be a BTC market you control then you should just deem yourself as the escrow and let users transact through you just as silk road did. It's admirable that you want to remove trust from the equation but trying to create a system in which users send funds to each other with your permission is an unnecessary incumbent. If you went rogue and tried to spend the btc to yourself, my customer tries to send the cash to himself and I try to take the money back then the coins would just end up in limbo. A shady escrow admin is unlikely to reimburse users simply because the btc is wasted, – derrend – 2016-05-23T00:55:14.880
That's a good point. Are there any frameworks you'd recommend for taking and handling payments as such? – tacoma – 2016-05-23T03:21:02.470
1Depends on your choice of language, I use Django because python is easy. If you like python then checkout the pycoin library. blockchain.info have a good python library for accessing their api but if you'd prefer to access bitcoind locally then python-bitcoinlib is useful for that :) – derrend – 2016-05-23T04:37:25.530