Replying to Avatar BtcPins

nostr:npub12rv5lskctqxxs2c8rf2zlzc7xx3qpvzs3w4etgemauy9thegr43sf485vg is there a way to tell when some ecash was issued, when it is redeemed?

Usecase: A store runs an ecash node for store credit/gift certs. They want to incentivize customers to delay spending it on products. If the mint knows when the ecash was minted, it can apply a higher value to that ecash based on the time between minting and redeeming.

Short answer: no. If you could know exactly, the crash would be traceable.

But: we have something called "keyset epoch". If it's enough to know that ecash was minted during a time period in which a specific keyset was active (can be rotated once a week for example) that would work!

Store can issue ecash from keyset A for one week, rotate to B and issue, rotate to C etc..

All wallets can handle wash from multiple epochs. Nice thing about this is that you can also invalidate very old ecash (dead customers).

Reply to this note

Please Login to reply.

Discussion

crash = ecash, damn autocorrect

wash == ecash as well. Need to train my keyboard harder or stop washing my crashes.

Cool! Thanks.

Only issue I'd see is if you want to transfer to someone else, it's going to reset the epoch to the current one.

Not necessarily, you can keep the epoch intact across transactions.