Note
created_at Is a Claim, Not a Clock: What a Nostr Timestamp Actually Proves
On Nostr, created_at is a unix timestamp the author writes and signs. The signature proves the key holder claimed that time, not that the event was made then; only an outside anchor or a prior commitment can bound when it existed.
2026-11-25 · nostr, nip-01, nip-03, nip-11, nip-40, timestamps, replaceable-events, opentimestamps, verification
Listen · 9 min · AI voice

Every Nostr event carries a time. Clients show it as "3h ago" or a date under a post, sort feeds by it, and use it to decide which version of your profile is current. It looks like a postmark. It isn't one. Nobody stamps it on the way in. The author writes it, signs it, and relays mostly take it at face value.
That doesn't make Nostr broken. It means a Nostr timestamp answers a narrower question than people assume. The signature proves that the key holder claimed a time. It doesn't prove the event was made at that time, and the protocol never says it does. If you're using Nostr posts as a record, whether that's documenting events, settling a dispute about who said what first, or just trusting that your latest profile is the one people see, it helps to know where that time comes from and what can actually anchor it.
Where created_at comes from
NIP-01 defines the event. created_at is a "unix timestamp in seconds", set by whoever builds the event. To get the event id, the client serialises an array that includes it:
[0, <pubkey>, <created_at>, <kind>, <tags>, <content>]
The id is the SHA-256 of that serialisation, and sig is a signature over the id. Two consequences follow, and they pull in opposite directions.
- Nobody else can change the time. A relay that edits
created_atchanges the id and breaks the signature. Clients that verify will reject it. - The author can pick any time. Nothing in the hash or the signature connects that number to a real clock. A key can sign an event dated last year or next year, and both are valid events.
So a signed timestamp is tamper-evident but not truthful. It's an assertion in the author's own handwriting, protected from forgery by others and not at all from the author.
Why the number still matters so much
If created_at were cosmetic, none of this would matter. But the protocol leans on it in several places.
Queries. NIP-01 filters use since and until, and "an event matches a filter if since <= created_at <= until holds." With limit, relays return the last n events "ordered by the created_at", newest first, ties broken by lowest id. A backdated event lands in the past of anyone's feed; a forward-dated one sits at the top until real time catches up.
Replaceable state. For kinds 0 and 3 and the range 10000–19999, "for each combination of pubkey and kind, only the latest event MUST be stored by relays." Addressable kinds (30000–39999) work the same way per d tag. "Latest" means highest created_at. When two versions share a timestamp, "the event with the lowest id (first in lexical order) should be retained."
That's where the claim becomes state. Profiles (kind 0), follow lists (kind 3) and relay lists (kind 10002) are all replaceable. If a device with a badly wrong clock, or anyone holding a leaked key, publishes a version dated far in the future, that version beats every honest update dated "now" on any relay that accepts it. The rule is simple and deterministic. It just trusts the number. NIP-01 itself notes that "these are just conventions and relay implementations may differ."
Deletion and expiry. A NIP-09 deletion request with an a tag covers versions "up to the created_at" of the request (more in the deletion note). NIP-40 expiration is measured against the same kind of unix time. Every one of these features works only as well as the clocks behind it.
What relays can do about it
Relays can't make created_at true, but they can refuse values that are clearly off. NIP-11 lets a relay advertise created_at_lower_limit and created_at_upper_limit in its information document. The spec's own example allows events up to 31,536,000 seconds (one year) in the past and only 3 seconds in the future; a real relay quoted in the same document uses about three years back and 300 seconds ahead.
This is a sensible fence against far-future events taking over replaceable state. But note what it is:
- Per-relay policy, not protocol truth. Relays with different windows will accept different events. The same signed event can exist on one relay and be rejected by another.
- A plausibility check, not a timestamp. A relay with a 300-second window accepts anything dated within five minutes of its own clock. It says the claim isn't absurd. It doesn't say the claim is right.
- Only at the door. A relay sees when it received an event. Nostr gives it no standard way to publish that receipt time as a signed attestation, so it doesn't add to what readers can check.
Some NIPs depend on a tight window. NIP-42 authentication requires the signed challenge to be close to now (see the AUTH note). Others deliberately break the link to real time: NIP-17 randomises the outer timestamps of private messages "up to two days in the past" so they don't reveal when a message was sent (see the gift-wrap note). Both are honest uses of the same fact: the number is whatever the signer says it is.
Anchoring time from outside
If you need more than a claim, you need something outside the author's control. There are two directions, and they bound different sides of the truth.
"No later than": OpenTimestamps. NIP-03 defines kind:1040, an event whose content is an OpenTimestamps proof for another event. The proof "MUST prove the referenced e event id as its digest" and must contain at least one Bitcoin attestation. OpenTimestamps states the scope plainly: "A timestamp proves that some data existed prior to some point in time." Once the proof verifies against a Bitcoin block, anyone can check, without trusting the author or the relay, that this exact event id (and therefore its content, tags and claimed created_at) existed by that block. If the event claims a created_at later than the anchoring block, the claim is exposed as forward-dated.
Two honest caveats. The proof gives an upper bound only; it says nothing about how long before the block the event existed. And NIP-03 is currently marked draft unrecommended in the repository, with a warning that it is "vulnerable to one specific attack, needs update." Read the current text and the linked discussion before building on it.
"No earlier than": commitments to things you couldn't know. The other bound comes from reasoning, not a NIP. An event that quotes another event's id in an e tag couldn't have been signed before that id existed, because SHA-256 ids aren't guessable in advance. A reply is provably after the post it replies to, whatever its created_at says. The same logic applies to anything unpredictable the event commits to, such as a recent Bitcoin block hash in the content. Combine a "not before" commitment with a "not after" anchor and you have a real time window that doesn't depend on anyone's clock.
Who this matters for
For everyday posting, none of this needs ceremony. Clients and relays mostly have accurate clocks, and the system works.
It matters when a Nostr event is being treated as evidence: a reporter or human-rights documenter showing that a statement or file existed before a disputed date, a researcher proving priority, or anyone in a place where records are contested and a screenshot showing "posted 2 March" convinces nobody. In those cases, the displayed date is the weakest part of the record. The signature, the event id and an external anchor are what someone else can actually check.
It also matters for your own state. Keep device clocks synced. If replaceable lists look stuck, check for a future-dated version before assuming a relay is broken (stale lists note). If a key leaks, a forward-dated profile or follow list is one of the things to look for (nsec note).
What this is not
This isn't a ranking or endorsement of any client, relay, signer or timestamping service, and it doesn't claim any named relay enforces a particular window; read its NIP-11 document yourself. It isn't legal advice on whether a Nostr event or an OpenTimestamps proof would be accepted as evidence anywhere; that depends on the jurisdiction and needs a lawyer. It doesn't describe or reconstruct the attack NIP-03's warning refers to. And it has nothing to do with tokens, prices, custody or trading: Bitcoin appears here only as a public anchor for a hash. Quotes come from the NIPs repository's master branch as of 25 November 2026; several of these NIPs are marked draft, so re-read them before you build on them.
On Nostr, the signature fixes who said it and what they said, including the time they claim. Only something outside the author, such as an anchor after or a commitment before, can tell you when.
Related on CryptoDecentral
- Nostr pillar
- A Deletion Request Is Not Erasure
- AUTH Is Not Identity: What NIP-42 Relay Challenges Actually Prove
- A Gift Wrap Hides the Sender, Not the Envelope
- Stale Lists and Dark Outboxes: When NIP-65 Metadata Lies by Age or Uptime
- Your nsec Is Not a Password: Nostr Key Handling and Signers
Further reading (primary)
Sources
- https://github.com/nostr-protocol/nips/blob/master/01.md
- https://github.com/nostr-protocol/nips/blob/master/11.md
- https://github.com/nostr-protocol/nips/blob/master/40.md
- https://github.com/nostr-protocol/nips/blob/master/03.md
- https://github.com/nostr-protocol/nips/blob/master/17.md
- https://github.com/nostr-protocol/nips/blob/master/42.md
- https://opentimestamps.org/