Just uploaded to Github a repro demonstrating the usage of a 2 of 2 multisig to lock-up trade and bond amounts atomically funded by both the buyer and the seller. The locked amount can be payed out (more going to the buyer than the seller) by both parties signing (after buyer paid seller fiat, for example). If both parties cannot reach an agreement to unlock the locked up funds, an arbitrator can sweep the funds only after a timeout on a fixed number of blocks. This trade mechanics is basically what Bisq is doing today, except implemented with less on-chain Txs (2, instead of Bisq still using 4). Also, this exercise also demonstrates that this can relatively easily be implemented using Block/Spiral’s Bitcoin Development Kit.

https://github.com/nobu-maeda/n3xb-bdk-derisk

Reply to this note

Please Login to reply.

Discussion

Instead of going ahead and building yet another trade platform around this trade mechanics, I am going to do more protocol specification work in hope of making n3xB a shared language on a common order book between multiple P2P solutions. With the hope of getting Mostro (#[1]​) to be the first platform that talks ‘n3xB’. And eventually others that wants to build different solutions, clients, or trade mechanics on n3xB without completely fracturing the network effect and the otherwise thin volumed P2P order book.