nobu.maeda on Nostr: Just uploaded to Github a repro demonstrating the usage of a 2 of 2 multisig to ...
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-deriskPublished at
2023-04-27 14:58:36Event JSON
{
"id": "1a028846b675a90c18b91d744865cf5d77b727711b80dcdd1e4bcc986b5c259c",
"pubkey": "72bceb913a3e9e612c740816d99d24759d23ab2ccef0cb2f1ac6e8dff9840a2c",
"created_at": 1682607516,
"kind": 1,
"tags": [],
"content": "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.\n\nhttps://github.com/nobu-maeda/n3xb-bdk-derisk",
"sig": "26aab480b27949f668fddceedd655012c545b7f878d35ba26e6d907e56a8408263d6d6423b8fb349cc93fb83c360185d5df85e2dac34c5dc8c6c14f197c3d522"
}