Replying to Avatar Breno Brito

I'm proud to now reveal what nostr:npub1d2x9c0e5gwwg6ask88c87y4v425fh4wz3hwhskvcwzpzdn7dzg5sl4eu8n and I have been working on:

🥣 𝗚𝗿𝗮𝗻𝗼𝗹𝗮: a Cashu based exchange.

With Granola you'll be able to buy and sell Bitcorn with the same privacy assurances of Cashu.

Let me tell you how it works 👇

https://nostrcheck.me/media/6294024db0b07ae94e1299c58cd23377da2ed33276bc9392319ad6707f61dd06/9c2275ae9ed9b2f8d55b80e2c35e26c64f92446fb7065a22e75e5277107b5649.webp

Just like regular granola is a mixture of nuts, cereals and other stuff, 𝗚𝗿𝗮𝗻𝗼𝗹𝗮 takes Bitcorn, Cashu, and other things so you can mix them up with Atomic Cross-Mint Swaps.

🌰 🥜 🌽 🌾

⬇️

🥣

https://nostrcheck.me/media/6294024db0b07ae94e1299c58cd23377da2ed33276bc9392319ad6707f61dd06/b7423ef48bc6e65b934858c043fece2bb5073d9d30f3f6e32de8b572fd08ee36.webp

For the curious nerds out there that want to go deeper, this is how the Atomic Cross Mint Swaps work.

https://nostrcheck.me/media/6294024db0b07ae94e1299c58cd23377da2ed33276bc9392319ad6707f61dd06/1cafe86e9964886d4dd603138f3e2ab35c814b1363b9ae54a9d9fb5453cce3b3.webp

We are already integrating with the guys from DePix, so you can send fiat and we still won't have any idea of who you are and what you are doing.

We are creating this project for nostr:npub1ze93u0u37u3x0gnfffgxl33k60v7t3afs64jgzf4xznapr4ra5us0u3pxq hackathon so if you like it, please boost it until it reaches the hackathon judges!

https://nostrcheck.me/media/6294024db0b07ae94e1299c58cd23377da2ed33276bc9392319ad6707f61dd06/9c2275ae9ed9b2f8d55b80e2c35e26c64f92446fb7065a22e75e5277107b5649.webp

If I understand this right, Alice and Carol start by swapping their respective currencies fpr ecash. So we have eBtc and eDollars for example.

Exchanges are just mints now? Maybe they make money exclusively on the swap ins and swap outs.

HTLC_c (c for Carol) is a {hash or time} locked so if Carol provides a hash, she can claim it, or if time expires Alice can reclaim it. It is ecash for one side of the trade (e.g. eBtc)

HTLC_a (a for Alice) is the opposite for Alice to claim after a successful trade. It is the other ecash (eDollar)

Details unknown but I'll wait 'till you win the hackathon:

- Uncertain how both Alice and Carol could know the same H: Is it public? Is it on HTLC_c?

- Assuming that verifying a HTLC means checking the signature against the mint's pubkeys.

- Uncertain what subscribing to an HTLC is, but we trust/require the mint to follow a protocol of publishing state changes and preimages. But in the case of a bug or downtime, wouldn't this break atomicity?

If it is atomic and trustless, then hot damn, there are no disputes!!! Only disputes land squarely with the mint to honour swaps.

Reply to this note

Please Login to reply.

Discussion

- H is inside the HTLC transaction, it's known between sender, receiver and mint.

- Verifying = check if the token is not already spent

- Subscribe to the status of the token (SPENT, UNSPENT, ...) gets also preimage as soon it's spent.

- Yes, mint must be compatible with HTLCs

- If there's a downtime, she can wait until get back up and complete the transaction, assuming it's not several days down.