#[0] - I am experimenting now with Cashu Mint (loved the interview on Value Stack). QUESTION: how does double-spend protection work - eg user backs up wallet, spends tokens then restores wallet?
Discussion
The mint keeps a list of spent secrets (that's the only thing a mint needs to keep track of).
Basically there is a growing list of ecash notes that have been burned. If someone tries to reuse a note, it is rejected.
Is there any risk of race condition where tokens get sent/spent and for some reason there is a delay in updating the mint before backup restore? I guess in that situation then the first to present a possibly duplicated token would be the one to get it? Is there a description of this mechanisms around this in the docs - where best to read?