they really are! they're going to try to trustlessly swap some corn
Discussion
hell yeah. is this a two party coinjoin? or a L2 thing like mercury wallet?
CoinSwap! Alice and Bob trade coins with no onchain connection. As opposed to a coinjoin where they both have an input and an output
Where is the swap occurring? Between Chanels? How?
no channels, although it looks a lot like a lightning channel onchain. Each person puts funds in a 2/2 with HTLC spend paths. one of them reveals the preimage. Then they trade keys and spend their new coins. original post here: https://bitcointalk.org/index.php?topic=321228.0
Do you need nostr to do this?
There's a lot of back-and-forth coordination that has to happen. lot of trading of hashes, pubkeys, transactions, privkeys. You can use whatever comms channel you want. I want to do nostr
how many onchain txs occur in a standard 2-party coinswap?
4. two to "lock up" funds, and then 2 when people spend their money.
Wow, expensive! Very cool though… I remember hearing belcher was working on them a while back. Is the spec considering safe/secure now?
Its 4 total, but its just two for each person. So imagine you’re following someones transactions onchain. You see them spend an to a single output. And then a while later they spend that to another output. Looks like maybe they bought something or more likely, they were just shuffling money between wallets. Unbeknownst to you, they no longer control those funds. Their funds are in a completely unrelated utxo.
Cool thing is it’s indistinguishable from a normal tx. Doesnt stand out the way a coinjoin does. It just literally looks like a normal tx.
So that means any normal tx could be a coinswap. You have no way to know.
👀
Thanks! That much (about it not being fingerprint-able) I did know… I just wasn’t sure if the spec for coordination and key-gen was considered usable or still reckless.
Unrelated: I see someone has already started working on CoinJoin coordination over nostr: https://github.com/1440000bytes/joinstr
Fun times… I hope to be able to contribute somewhere, I’m just a humble Python data cruncher.
100% reckless.
Feel free to create issues, pull requests etc. I will create a public channel to discuss everything related to joinstr soon.
Working on GUI for joinstr using python flask. Will add the code in repo in first week of Jan.
https://twitter.com/1440000bytes/status/1604183942672056320/