calle 👁️⚡👁️ on Nostr: It took a bit to build but now all the pieces are there in the protocol: - P2PK that ...
It took a bit to build but now all the pieces are there in the protocol:
- P2PK that allows you to mint ecash that only the owner of an npub can spend [1]
- DLEQ proofs that allow *anyone* to check if the ecash that is publicly posted is signed by the mint public keys [2]
With this, we could do the following:
- Alice posts something nice on nostr
- Carol has a nostr client with Cashu support. Carol takes 100 sats of ecash and locks it with P2PK to Alice's npub.
- Carol now has ecash locked to Alice and DLEQ proofs (it's all inside the ecash token).
- Carol zaps Alices nostr post by simply replying with the ecash (using a special nutzap kind)
- Alice sees that she received ecash that only she can spend.
- Dave, another nostr user sees Alice's post and Carol's ecash. Dave checks with the DLEQ proof if the ecash is valid and the P2PK lock is indeed Alice's npub. If so, Dave's client displays "100 sats zapped from Alice to Carol"
[1]:
https://github.com/cashubtc/nuts/blob/main/11.md[2]:
https://github.com/cashubtc/nuts/blob/main/12.mdPublished at
2023-11-24 16:48:50Event JSON
{
"id": "150f6477a202f52db794f6f33d8b1ac039a39f6713a3281f1c86072344b4faec",
"pubkey": "50d94fc2d8580c682b071a542f8b1e31a200b0508bab95a33bef0855df281d63",
"created_at": 1700844530,
"kind": 1,
"tags": [
[
"e",
"5c7bffa28cf3189acee05aadb56dc6d99e4e999e64163d70878967e71d299a0d",
"",
"reply"
],
[
"p",
"285d4ca25cbe209832aa15a4b94353b877a2fe6c3b94dee1a4c8bc36770304db"
]
],
"content": "It took a bit to build but now all the pieces are there in the protocol: \n\n- P2PK that allows you to mint ecash that only the owner of an npub can spend [1]\n- DLEQ proofs that allow *anyone* to check if the ecash that is publicly posted is signed by the mint public keys [2]\n\n\nWith this, we could do the following:\n- Alice posts something nice on nostr\n- Carol has a nostr client with Cashu support. Carol takes 100 sats of ecash and locks it with P2PK to Alice's npub.\n- Carol now has ecash locked to Alice and DLEQ proofs (it's all inside the ecash token).\n- Carol zaps Alices nostr post by simply replying with the ecash (using a special nutzap kind)\n- Alice sees that she received ecash that only she can spend.\n- Dave, another nostr user sees Alice's post and Carol's ecash. Dave checks with the DLEQ proof if the ecash is valid and the P2PK lock is indeed Alice's npub. If so, Dave's client displays \"100 sats zapped from Alice to Carol\"\n\n[1]: https://github.com/cashubtc/nuts/blob/main/11.md\n[2]: https://github.com/cashubtc/nuts/blob/main/12.md",
"sig": "56068e05a142819563d0459adef1bc29e32a83706dfb3c0b454c4a831b4bef85752f4a7d028b82a18498f308478f4bf4144ead08f8e3af63f1a4e9fdbf149e4d"
}