Skip to content

Handling incorrect mint time #297

@thesimplekid

Description

@thesimplekid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions