Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why event's "created_at" is not in milliseconds ? #626

Closed
shanelau opened this issue Jun 28, 2023 · 2 comments
Closed

Why event's "created_at" is not in milliseconds ? #626

shanelau opened this issue Jun 28, 2023 · 2 comments

Comments

@shanelau
Copy link

shanelau commented Jun 28, 2023

When I send multiple messages within 1 second, it is possible for the recipient's message order to be disrupted.

Why not change it to milliseconds?

NIP01

{
  "id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>,
  "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
  "created_at": <unix timestamp in seconds>,
@fiatjaf
Copy link
Member

fiatjaf commented Jun 28, 2023

Because that would be a breaking change.

Also no human can write more than one message per second and if you're doing that you're clearly an automated spammer that no one should be following.

@shanelau
Copy link
Author

It makes sense. However, it is not user-friendly for some automation programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants