The token that exists before is destroyed (spent) when you lock to a pubkey, which results in a new token. The old token can not be spent again.

Reply to this note

Please Login to reply.

Discussion

(It's not encrypted to a pubkey, it's *locked*, i.e., it's irreversible)

Okay so basically you burn an old token and ask the mint to create a new one locked to a pukey.

How is that supposed to work for offline transfers then? I saw something like that with cashu.me and offline transfers.

If it's locked to you, you can receive it offline.

I'm gonna catch up with all this stuff in NUTs then, thanks for the answers

it's not really precise to say it's locked, it's encrypted such that only the holder of the nsec corresponding to the npub can spend it

you only have to have the nsec and voila

s/spend/decrypt/

no, it's locked, not encrypted.