Here is a Cashu token that only I can receive. It is locked to a hash whose script only I can provide to the mint. My lock address is "P2SH:38kwc1FjA6roPirZSsX7ivJH5CMfC2F9Ak". You can lock tokens to me using the Nutshell command

`casehu send --lock P2SH:38kwc1FjA6roPirZSsX7ivJH5CMfC2F9Ak`

cashuAeyJ0b2tlbiI6IFt7InByb29mcyI6IFt7ImlkIjogIkkyeU4raVJZZmt6VCIsICJhbW91bnQiOiAxMDI0LCAic2VjcmV0IjogIlAyU0g6Mzhrd2MxRmpBNnJvUGlyWlNzWDdpdkpINUNNZkMyRjlBazp5ektGcDVPWnY1dHlGZzY2bjdmb3ZBIiwgIkMiOiAiMDI2OWVjOTE0NWZkODNmMjlkNmEyNTc3MzNhZmM1OGVkY2U4MWUxMjUzNjNhM2M2MGViNDExNWEwMGRkZmU2ZjhiIn1dLCAibWludCI6ICJodHRwczovLzgzMzMuc3BhY2U6MzMzOCJ9XX0=

Reply to this note

Please Login to reply.

Discussion

Holy shit. This is incredible.

Is there such a thing as "proof of payment" in cashu, like the preimage is for a LN invoice?

As in a way to prove to 3rd parties that a certain (cashu invoice?) was settled?

You can check the pending state of a token if you know its secret: https://github.com/cashubtc/nuts/blob/main/07.md

A normal tx is only considered final if the recipient redeems a token for a new one.

With DLEQ proofs + P2PK/P2SH, the tx is settled upon presentation of the token (because it can be checked that the token is valid + locked to a receiver, i.e. the tx is finalized).

case hu?

My nostr client melted while typing this...

So fucking cool!