haveno-dex / haveno

Decentralized P2P exchange platform built on Monero and Tor
https://haveno.exchange
GNU Affero General Public License v3.0
975 stars 107 forks source link

Optional 2-of-2 multisig trades #1092

Open Final-Phoenix opened 2 months ago

Final-Phoenix commented 2 months ago

Give us 2-of-2 multisig as an option for trades.

Besides the actual XMR being traded, Alice and Bob each additionally lock up an amount of XMR equal to or greater than the value of the trade in a 2-of-2 multisig. Whichever side the scammer is on will always end up losing more than if they would have cooperated.

Not 100% guaranteed (nothing is), I know, but both sides are strongly incentivized to cooperate if they're economically rational. Vast majority of users, and even would-be scammers, are.

Pros: Doesn't potentially rely on a third party (an arbitrator), that might be in collusion, or require trusting their correct judgement in arbitrating Cons: Have to lock up a larger proportion of XMR for trades

Unless there are good reasons this hasn't been implemented yet as an option that I just haven't thought of

monerobull commented 2 months ago

This has been discussed plenty and i initially was very much for this but: The main issue is placing the security deposit. If Alice sends 2 XMR of deposit to the 2:2 multisig and Bob just ghosts her, that 2 XMR is gone forever.

niyid commented 2 months ago

This has been discussed plenty and i initially was very much for this but: The main issue is placing the security deposit. If Alice sends 2 XMR of deposit to the 2:2 multisig and Bob just ghosts her, that 2 XMR is gone forever.

Does a time lock expiration release the funds back to Alice?

woodser commented 2 months ago

If Alice sends 2 XMR of deposit to the 2:2 multisig and Bob just ghosts her, that 2 XMR is gone forever.

The best solution for this is coinjoin IMO, where Alice and Bob sign the same transaction to move both of their funds to multisig. This is possible but not implemented in monero-project.

woodser commented 2 months ago

Does a time lock expiration release the funds back to Alice?

This isn't supported in Monero afaik.

monerobull commented 2 months ago

Potentially possible with FCMP transaction chaining (in the future).

niyid commented 2 months ago

Does a time lock expiration release the funds back to Alice?

This isn't supported in Monero afaik.

Yeah, we had that discussion 3/4 years ago when the project was still all talk. I remember one of you mentioning that a Feature Request will be made. Apparently nothing came of it.

Final-Phoenix commented 1 month ago

This has been discussed plenty and i initially was very much for this but: The main issue is placing the security deposit. If Alice sends 2 XMR of deposit to the 2:2 multisig and Bob just ghosts her, that 2 XMR is gone forever.

Ok, I did not know this, but seems obvious now

nihilist001 commented 1 month ago

related discussion on that topic : https://github.com/haveno-dex/haveno/issues/999 but keep in mind that implementing this may require alot of effort, need to make sure the feature is minimal enough so that it's simple to implement easily