Why Nostr? What is Njump?
2024-05-01 11:39:32
in reply to

calle 👁️⚡👁️ on Nostr: Yes, I think it can be done via an atomic swap using HTLCs: - You share your pubkey ...

Yes, I think it can be done via an atomic swap using HTLCs:

- You share your pubkey with me and your order ("I want to trade 100 sat against $0.10”)
- I generate an HTLC preimage and lock 100 sat to it and to your pubkey and share the ecash with you, together with my pubkey
- If you like what you see, you lock $0.10 to the same HTLC hash as me and to my pubkey and send the ecash to me
- If I like what I see, I spend your $0.10 ecash by unlocking the HTLC, you obtain the preimage from the mint (using /check) and unlock my 100 sat with it.

We've traded 100 sat against $0.10.
Author Public Key
npub12rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sf485vg