-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Currently in NUT-06 we optionally return the mint time (https://github.com/cashubtc/nuts/blob/main/06.md). We added this to the spec because a mint using an incorrect time could lead to the spending condition path being allowed when it shouldn't or the reverse. However, we do not define that this time must be correct or within some tolerance.
When I added this to the cdk wallet I put in a check that the returned time was within 30 seconds without much thought, but it seems this is causing issues with some mints that are returning delayed times (cashubtc/cdk#1194) reported up to 20 minutes off.
Since there isn't a tolerance in the spec, I guess cdk shouldn't be doing this check however I think it's an important check for spending conditions. Should we add a tolerance to the spec? I guess then it becomes a question of who has the correct time.