With ecash, you can request tokens from a mint that are only redeemable by someone else's public key, like their npub or a Bitcoin address. You can then go offline and give the owner of that pubkey the ecash tokens while they are also offline, and they can verify that only they can spend it 🤯

https://fountain.fm/clip/nGaQ4c2XYpzBg0zM5s7v

#bitcoin #ecash #cashu

nostr:npub1qny3tkh0acurzla8x3zy4nhrjz5zd8l9sy9jys09umwng00manysew95gx nostr:npub12rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sf485vg nostr:npub10atn74wcwh8gahzj3m0cy22fl54tn7wxtkg55spz2e3mpf5hhcrs4602w3

Reply to this note

Please Login to reply.

Discussion

But they can’t verify it hasn’t been spent already :p

It can only be spent by signing a message with their private key. If I request a token from the mint with locked to your npub, the mint will only accept it as a subsequent payment if it is signed with your nsec. I literally cannot spend it because in the eyes of the mint, I've already given it to you.

Yes, but it can only be used as long as it hasn’t been spent already. A user can validate it offline to prove that it has been signed, but that signature isn’t invalidated when it’s spent. The mint stores whether a reference has been spent or not.

That's the case with normal ecash that you hold for later spending.

You can request ecash from the mint that you cannot spend because you can ask them to lock it to a certain public key whose private key you don't know. You have to give that locked ecash to someone with that private key so that they can spend it. The mint will only accept it from them.