The current specs could be much better even if sticking to "human language". E.g., nowhere does NIP-01 say that created_at must be an integer, yet to #[2] that is apparently obvious. All NIP-01 says is that it's a unix timestamp in seconds. Go to the Wikipedia page for Unix time, and you'll see several non-integer examples.

Test vectors that cover all kinds of corner cases would definitely help.

Reply to this note

Please Login to reply.

Discussion

Please send a PR!