Bitcoin Forum

Bitcoin => Project Development => Topic started by: flix on February 25, 2014, 10:40:24 AM



Title: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: flix on February 25, 2014, 10:40:24 AM
These guys claim to be close to launching a working beta for a fully P2P Bitcoin exchange. They have opened their code and are welcoming any programmers that can help them speed up their work and launch within a couple of weeks.

http://www.coinffeine.com/img/coffee-cup.png
http://www.coinffeine.com/


More here:
http://www.reddit.com/r/Bitcoin/comments/1ytlvx/coinffeine_p2p_bitcoin_exchange_code_now_available/


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: flix on February 25, 2014, 10:57:00 AM
I sincerely cannot think of anything that Bitcoin needs more urgently than a P2P exchange.  I encourage anybody with the necessary skills to contribute.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: sprinkle on February 26, 2014, 07:17:40 AM
Totally agree -- this platform looks very cool -- the deposit approach is pretty elegant.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: hashme on February 26, 2014, 07:39:46 AM
Just in time! Let's look into the code.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: Mythul on February 26, 2014, 09:00:29 AM
Nice stuff. I'll take a look at the code. You made me curious. +1


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: eafdeafd on March 02, 2014, 12:20:55 AM
Definitely gonna keep an eye on this.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: eafdeafd on March 02, 2014, 08:08:24 PM
Coinffeine's in the news. http://www.cryptocoinsnews.com/2014/03/02/coinffeine-p2p-alternative-centralised-bitcoin-exchanges/


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: Buffer Overflow on March 02, 2014, 08:34:07 PM
Interesting.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: super3 on March 04, 2014, 01:06:24 AM
Very nice, java makes it a little hard to contribute though.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: Phil Dann Ward on March 12, 2014, 10:38:42 PM
Totally agree -- this platform looks very cool -- the deposit approach is pretty elegant.

The deposit approach *is* elegant but there is a bootstrapping issue with it. If the fiat currency holder has only fiat currency and *no* bitcoins then he can't put up the bitcoin deposit to start the Coinffeine-based exchange which he wants to carry out in order to get bitcoins. :-(


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: maxmint on March 14, 2014, 12:30:55 AM
Very interesting concept. Is it correct that deposits will end up as a mining fee in case they are forfeited?


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: flix on April 03, 2014, 03:19:21 PM

The deposit approach *is* elegant but there is a bootstrapping issue with it. If the fiat currency holder has only fiat currency and *no* bitcoins then he can't put up the bitcoin deposit to start the Coinffeine-based exchange which he wants to carry out in order to get bitcoins. :-(

Actually, it looks like they have a solution for the bootstrapping issue... see their wiki:  http://www.coinffeine.com/


These guys are advancing.. however it is going slower than I'd like. I'm convinced a p2p exchange is key to Bitcoin's stability, future growth and persistent penetration in countries with unfavourable regulations...


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: psionin on April 08, 2014, 07:41:46 PM
These guys claim to be close to launching a working beta for a fully P2P Bitcoin exchange. They have opened their code and are welcoming any programmers that can help them speed up their work and launch within a couple of weeks.

http://www.coinffeine.com/img/coffee-cup.png
http://www.coinffeine.com/


More here:
http://www.reddit.com/r/Bitcoin/comments/1ytlvx/coinffeine_p2p_bitcoin_exchange_code_now_available/

Where do the bitcoin/fiat safety deposits get stored during the transaction?


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: Phil Dann Ward on April 09, 2014, 05:32:40 PM

The deposit approach *is* elegant but there is a bootstrapping issue with it. If the fiat currency holder has only fiat currency and *no* bitcoins then he can't put up the bitcoin deposit to start the Coinffeine-based exchange which he wants to carry out in order to get bitcoins. :-(

Actually, it looks like they have a solution for the bootstrapping issue... see their wiki:  http://www.coinffeine.com/


These guys are advancing.. however it is going slower than I'd like. I'm convinced a p2p exchange is key to Bitcoin's stability, future growth and persistent penetration in countries with unfavourable regulations...

@flix I re-read their wiki but couldn't see anywhere that the 'one side has no bitcoin deposit' bootstrapping issue was dealt with...can you give me a more precise pointer?


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: Phil Dann Ward on April 10, 2014, 12:14:53 PM
And, if I've understood it correctly, I think their exchange algorithm is inherently susceptible to (accidental and/or malicious) failure due to bitcoin transaction malleability.

Their github wiki shows a worked example of the bitcoin transactions http://github.com/Coinffeine/coinffeine/wiki/Exchange-algorithm#transaction-definitions (http://github.com/Coinffeine/coinffeine/wiki/Exchange-algorithm#transaction-definitions).

It shows that their algorithm is based on creating and signing transactions to spend outputs from other transactions that haven't even been broadcast yet.

So if, for example, Sam's Tx0.1 is subject to a malleability modification it's hash will not be the same as Tx0.3 assumes thus Tx0.3 is useless as a means for Sam to get his (potentially large chunk of) bitcoins back.

If Bob refuses or is no longer around to help Sam create and sign a new version of Tx0.3 referencing Tx0.1's actual, confirmed hash then Sam's bitcoins are permanently locked in Tx0.1.  :(


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: flix on May 05, 2014, 05:12:57 PM
The Coinffeine team all just left their regular jobs to work full time on bringing you a distributed Bitcoin-Fiat exchange within the next few months.

They have also raised a first round of seed capital... I encourage you to take a look at their work so far: http://www.coinffeine.com/


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: SunSeeder on May 08, 2014, 04:22:49 AM
How are you going to take electronic dollars? Don't banks have to allow you to run an exchange? That would mean it's regulated.. which doesn't really sound like the bittorrent of exchanges.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: piece of bit on May 08, 2014, 06:04:26 AM
Totally agree -- this platform looks very cool -- the deposit approach is pretty elegant.

The deposit approach *is* elegant but there is a bootstrapping issue with it. If the fiat currency holder has only fiat currency and *no* bitcoins then he can't put up the bitcoin deposit to start the Coinffeine-based exchange which he wants to carry out in order to get bitcoins. :-(
I agree. If you are going to an exchange to purchase bitcoins and have no bitcoins yourself. How do you put up the deposit?


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: sortega on May 08, 2014, 07:46:41 PM
Totally agree -- this platform looks very cool -- the deposit approach is pretty elegant.

The deposit approach *is* elegant but there is a bootstrapping issue with it. If the fiat currency holder has only fiat currency and *no* bitcoins then he can't put up the bitcoin deposit to start the Coinffeine-based exchange which he wants to carry out in order to get bitcoins. :-(
I agree. If you are going to an exchange to purchase bitcoins and have no bitcoins yourself. How do you put up the deposit?

The amount you can buy is proportional to the amount of bitcoin you have. In principle, with very small initial amounts you can initiate a series of exponentially bigger exchanges. You can find those initial amounts from sources like faucets and, the authors of Coinffeine are considering different ways of providing this small amounts.

BTW, I'm one of the developers


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: miffman on May 09, 2014, 02:48:10 PM
After the bad scam history of exchanges, it would be refreshing to have a nice P2P exchange up


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: pozmu on May 09, 2014, 03:37:45 PM
Interesting concept, but it will work only if transaction fees for sending multiple batches of fiat & bitcoin are low enough/ security deposits are large enough to cover big % of actual transactions so each buys/ sell is done in only few steps.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: sortega on May 10, 2014, 07:41:43 AM
Fees for bitcoin are already low-to-non-existent and you can find payment processors with fairly small fees that have an absolute maximum.
For our first version we are using a model with several steps of the same amount (limited by the initial deposit) but we have an idea of how to use non-uniform steps to minimize fiat fees and number of fiat payments (and therefore fees).


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: E-C.Guru on May 10, 2014, 10:20:14 AM
Truly amazing if this could work.


Yet, I Wonder one thing..

Bitcoin can ofcourse be traded to another person using p2p but really, hoes does it work With the fiat? Can't you break that Down a bit more, not sufficient info on that yet.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: xibeijan on May 30, 2014, 01:19:29 PM
Looks slow and expensive.  min transaction fee x N?  10 min block time x N?  no way...

NXT seems way better.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: k99 on May 31, 2014, 10:49:56 AM
Nice approach, but I see a few fundamental flaws with that concept:

- The trade time is very slow: if you have 100 rounds it is 100 times the payment processors tx time (with might be a few minutes for OKPay and hours or days for normal bank tx). What is the actual tx time for OKPay?
- To keep that trade time acceptable you are restricted to those payment processors with open API (Okpay,...). There are not many of those available, so it is very limited to a few companies. If the government wants to stop that kind of exchange, they just have to make pressure to a handful companies. How many payment processors like OKPay exist? Can you name them? I assume not more then 10.
- It is very easy to track those tx as coinffeine tx due the clear tx pattern (repeated micro payments).
- It is questionable if the payment processors will support/accept that, as they normally dont take a fee assuming a client average behaviour of a few tx per month. If you make 100s or 1000s of tx a month it produces more costs to the bank as they will earn with that client, so a economic orientated bank will kick out that client. If they take a fee the exchange becomes too expensive.
- In case of higher price volatility (very common in btc) there is an incentive to change the strategy and take the loss of the collateral in account to start a new trade taking the advantage of the new better price. That is more risky the lower the collateral is/the more rounds you use. For 100 rounds it means 1% of price change which can lead to a strategy change. At localBitcoin that kind of "future trading" is a common problem.
- If you reduce the rounds to a lower number and increase the risk value per round than you get a serious blackmail risk. E.g. if you trade 2 btc for 1000 EUR and make 10 rounds you have a risk of 100EUR/0.2 BTC. As there is an asymmetric risk stake (one lose more then the other), a scammer could use that weak point to blackmail the other party with a signed tx where he the change the output to his favor. That way the other peer can decide to accept the blackmail and lose 0.05 btc or not accept it and lose 0.1 btc. A economic rational trader will accept, so game theoretical that will lead to a failure of the exchange. You can only mitigate that problem with lowering the risk stake which means more rounds which comes with the usability problem of longer time and depending on the payment processor with too high overall fees.
- There is no protection against an system attacker (competitor, nation state, banks...) who takes in account financial losses to ruin the trust/usability into the exchange system.
- I assume (not sure about that, have not read all the details) that there is a double spend risk, as the first deposit tx has a timeout the BTC seller could have spent with another tx the inputs makeing the following tx invalid. If the other peer has already done the bank tx he would lose those payments.
- I assume (also not sure about that) that there is a malleability risk as well with the dependency of the payout tx to the pay-in tx. You cannot use reliable a tx id as long that tx is not in the blockchain.
- The case that the other peer cannot continue due unintended problems (accident, disc crash, death,....) cannot be covered by a 2of2 Multisig locked tx.

And my last concern:

- Who is behind that project? You got some funding from investors but there are no details open to the public. What is the business model behind it? An investor wants to earn money some day. If you dont take fees how they should earn money?
The only speculative idea which comes to my mind is that some parties might be interested to get an pseudo decentralized exchange. In such an exchange the information flows over a few payment processors, so it would be very easy to gather the information about all the trades of such an "decentralized" fiat-btc exchange. So it could be used as honeypot attracting people who avoid centralized exchanges due the regulation and control they have about their clients. The promise that the privacy is only leaked to the other trader is not true if there is not a huge variety of banks you can use and if the bank tx is easily trackable. And as stated above normal banks will lead to unusable slow trading times, so it will be limited to those few payment processors.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: johnyj on May 31, 2014, 02:14:08 PM
Multiple micro payment is too slow for casual payment, some kind of escrow/credit rating and dispute resolve system is much more convenient than each one managing their risk by themselves (much smaller transaction each time)

Establish many of these escrow points so that escrows can be distributed around the globe, using M of N signature to release the bitcoins. But anyway, when there is a dispute, some kind of manual work is still required. The buyer can simply claim he had already made the fiat transaction but the seller never receive it, the buyer can even provide faked transaction record. How to discourage the buyer to make fraud is the key

NASHX used a model of both party tying up same amount of risk capital as a guarantee before the trade, if something went wrong, the risk capital of both party is destroyed. I found this concept to be very interesting, but it seems their site did not get a large attention:

http://nashx.com/HowItWorks



Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: k99 on May 31, 2014, 04:17:33 PM
NASHX used a model of both party tying up same amount of risk capital as a guarantee before the trade, if something went wrong, the risk capital of both party is destroyed. I found this concept to be very interesting, but it seems their site did not get a large attention:

http://nashx.com/HowItWorks

It was an interesting project, but not decentralized and the idea of mutual destroyed collateral suffers from a blackmail risk.


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: Hunyadi on April 30, 2015, 07:00:18 AM
http://www.coinffeine.com/download.html

The Technical Preview version is here!

Nice to see this project advancing! Good job!


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: flix on April 30, 2015, 07:56:23 AM
This is moving forward...

http://static.ow.ly/photos/normal/aAQqQ.jpg


Title: Re: Coinffeine - (P2P bitcoin exchange) code now available!
Post by: btc_enigma on May 01, 2015, 05:45:09 AM
Great project ..! Looking promising. Reading through the exchange algorithm