cashubtc / nuts

Cashu protocol specifications https://cashubtc.github.io/nuts/
MIT License
152 stars 52 forks source link

NUT-06: Mint should say what the current time is #138

Closed callebtc closed 2 months ago

callebtc commented 5 months ago

In order for users to be sure that their local clock agrees with the mint's clock, the mint should publish its current time in the info response.

prusnak commented 2 months ago

we should either use Unix timestamp or format returned by new Date().toISOString() which is2012-04-23T18:25:43.511Z (where the time used is UTC), rationale: https://stackoverflow.com/questions/10286204/what-is-the-right-json-date-format

thesimplekid commented 2 months ago

I would prefer the unix timestamp. Its what we use in other places.

prusnak commented 2 months ago