[OpenSheaf] [specification] [use cases] [FAQ] [tools] [formal model] [first archive]OpenSheaf

OpenSheaf timestamps

Extension to the OpenSheaf specification 0.2. Version 0.2 (draft), 21 November 2026. How an owner dates its signatures with RFC 3161 tokens or OpenTimestamps proofs, and declares in its key log that it does so, so that readers can tell which versions existed by a date, for instance before a key was exposed. The extension is named by the URI https://opensheaf.org/opensheaf-timestamps-0.2. The text is licensed under CC BY-SA 4.0; its JSON Schema is dedicated to the public domain under CC0 1.0.
Warning. Draft. This extension rests on the owners, key logs and signatures of the specification (sections 6 and 7), with their pre-rotation of key logs, exposed keys and fork records (issue #55, issue #58).

1. Introduction (non-normative)

In the OpenSheaf specification, every version of a line is signed by its owner, under a version of the owner's key log, and a good signature stays good (sections 6 and 7 of the specification). Signatures say who made a version, not when. So when a key may have been exposed, the core cannot tell the signatures made with it before from those its new holder makes after: the owner exposes the keys in its key log, or ends (section 6.3 of the specification); its signatures stay good, and readers trust its history only as far as other evidence goes (section 6.4 of the specification).

A timestamp is such evidence: it shows that a signature existed by a date. A single researcher needs none. A journal, an institution, or anyone who wants its history to be trusted after a key is lost to others adopts this extension in its key log, from its first version, so that every signature it makes is dated.

2. Conventions

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY and OPTIONAL in this document are to be interpreted as described in BCP 14 (RFC 2119 and RFC 8174) when, and only when, they appear in all capitals. Terms are those of the specification: owner, key log, key-log version, signature file, witness, line, branch, ended owner, fork record, current key, rotation key, exposed key.

This extension follows the extension mechanism of section 2 of the specification: it never changes the meaning of what the specification defines, nor relaxes its requirements, never changes by itself the status of a signature or a version, never ends an owner or decides a fork, and never lets a version into an archive by itself: its dates are evidence that readers and archives MAY weigh where the specification allows it, which admits trusted dates as evidence against contested and for adding a version of a frozen owner's lines (sections 7.3 and 7.5 of the specification). A reader that does not know it ignores the files and data it defines.

3. Timestamps

A timestamp of a signature file shows that the file, and so the signature and the signed message it holds, existed by a date. It proves existence, nothing more. Two kinds are defined, which an owner MAY combine:

A timestamp file of the signature file <version>/signature-<k>.json (section 7.2 of the specification), in the object's extension folder extensions/opensheaf-witnesses/, is <version>/signature-<k>.json.<e>.tsr or <version>/signature-<k>.json.<e>.ots, beside it, where <e> is the first 16 characters of the lowercase base32 (RFC 4648, without padding) SHA-256 digest of the timestamp file's own bytes, so that copies that add timestamps independently merge by keeping every file. Timestamp files are witnesses, never re-serialised, replaced or removed once made. An OpenTimestamps proof is pending when made, and complete once a Bitcoin block attests it; the completed proof is a new file beside the pending one. Anyone holding a copy MAY timestamp any signature file at any time: a later timestamp never harms, since the earliest one dates the file. Since their names cannot be computed, a reader over HTTP finds timestamp files only where folders can be listed, or in the content of a branch (section 6); elsewhere it reports that it has not looked (section 14.1 of the specification).

4. The owner's declaration

An owner adopts this extension in its key log: its genesis record, for the first version of the key log, or the keys.json of a later version holds, under extensions (sections 5.1 and 6.1 of the specification), an entry keyed by https://opensheaf.org/opensheaf-timestamps-0.2, an object with:

The entry, even empty, declares that the owner timestamps every signature it makes, of its key log and of its lines.

The declaration validates against the schema of appendix A, and is part of the genesis record, fixed by the owner name, or of the key-log version, signed with it.

5. Checking a timestamp

A timestamp is valid for a signature file when:

The date of a valid timestamp is the genTime of an RFC 3161 token, or the time of the Bitcoin block an OpenTimestamps proof reaches; the earliest valid timestamp of a signature file is its date. A date counts only if it is not earlier than the date of the key-log version that the signature file's keyLog names, and a signature naming another undated key-log version has none. Signatures naming the first version of a key log, which is computed from the genesis record, never signed and so never dated, have dates all the same, but no lower bound. An authority is trusted only from the key-log version that lists it, which is itself dated by authorities listed before it, so no one, a thief with rotation keys included, can list an authority of its own to date signatures before the listing. A version is dated by the n-th earliest of the dates of its good signature files naming one key-log version, n being the number of signatures it needs (threshold or, for a version of a key log, nextThreshold of the version before; sections 6.1 and 7.3 of the specification); the first version of a key log, never signed, is not dated; a version vouched for (section 7.3 of the specification) existed by the date of the version that vouches for it. Dates within two hours of a Bitcoin block time are uncertain by that much.

6. Use

Dates are evidence for readers; this extension draws no conclusion from them in the format. For an owner that has ended, and for exposed keys (sections 6.3 and 6.4 of the specification), a reader MAY trust the versions dated before the time it believes a key was exposed, and SHOULD say on what evidence. A version that needs an exposed key, or whose signatures name a version of a key log from a fork point on, is not contested for a reader, an archive included, that trusts dates showing those signatures made before the exposure, or before the fork (section 7.3 of the specification); an archive that adds such a version on dates SHOULD say so. Dates are likewise evidence on which an archive MAY add a version of the lines of an owner whose key log forks, when they show its signatures made before the fork (section 7.5 of the specification). The time of the version that ends the owner or exposes keys bounds when the owner knew, and the times of the versions a fork record carries, when the fork was made. A branch keeps the timestamp files of its parent's signatures beside them in parent/signatures/ (section 9.2 of the specification), without the <version>/ folder (parent/signatures/signature-<k>.json.<e>.tsr); a pending proof kept there can never be completed, and counts for nothing (section 5); the timestamp files of key logs are in their owner objects.

Tools that create an owner SHOULD offer to adopt this extension in its genesis record, and so from the first version of its key log, and SHOULD timestamp each signature when they make it, before a version leaves its owner's hands: with an RFC 3161 token where an owner cannot wait for an OpenTimestamps proof to complete, and with an OpenTimestamps proof beside it where an owner wants evidence that rests on no authority.

7. Verification

A verifier that knows this extension, in addition to the checks of section 14 of the specification, validates each declaration against the schema of appendix A, merges the timestamp files of every copy it sees, checks every timestamp file against the signature file it stamps (section 5) and its name against the digest of its bytes (section 3), reporting each as valid, invalid, pending, or from an authority not listed, and reports the date of each version.

8. Security considerations

Appendix A. JSON Schema (normative)

The data of the declaration, the value of extensions["https://opensheaf.org/opensheaf-timestamps-0.2"] in the genesis record of an owner or in keys.json, validates against opensheaf-timestamps-0.2.schema.json (JSON Schema 2020-12, CC0 1.0), which allows no other properties, like the schemas of the genesis records and keys.json that hold it.

Appendix B. Example (non-normative)

The genesis record of an owner adopting the extension from the start, with one RFC 3161 authority (a placeholder fingerprint) and OpenTimestamps; two current keys, on the owner's laptop and desktop, and the digests of three rotation keys, two of which sign the next version; the first version of its key log is computed from it, and not signed (section 6.1 of the specification; placeholder nonce):

{
  "format": "opensheaf-genesis/0.2",
  "kind": "owner",
  "created": "2026-01-10T09:00:00Z",
  "nonce": "3f9c2a7d41e85b06c9d2f1a4e7b03c58",
  "keys": [ "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
            "did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH" ],
  "threshold": 1,
  "next": [ "bla7pvxpfmk4o2z2btgp26zqmkpxfqutl5imae3eovmqg6labdba",
            "zaolbrk7wl6fjx7atv3bphi3fkg2oukrvwj75cxp6j5dnknfme3q",
            "twrtx2ec6pzozvgex4m6ndtokezgccn63kqpbl7z4bnedmxbdx2a" ],
  "nextThreshold": 2,
  "extensions": {
    "https://opensheaf.org/opensheaf-timestamps-0.2": {
      "timestampAuthorities": [ "5b4e3f0c9d2a7e18c6f4b0a39d7e2c51f8a6b3d09e4c7a12f5b8d6e3a0c9f147" ]
    }
  }
}

The files of one signature of the second version of its key log, by the rotation key whose digest is the first of next above, so that its name begins with the first 16 characters of that digest (section 7.2 of the specification), in the owner object's extension folder: an RFC 3161 token, a pending OpenTimestamps proof, and the completed proof written beside it later (placeholder digests):

extensions/opensheaf-witnesses/v2/signature-bla7pvxpfmk4o2z2.json
extensions/opensheaf-witnesses/v2/signature-bla7pvxpfmk4o2z2.json.q7swxsz56bfiyotn.tsr
extensions/opensheaf-witnesses/v2/signature-bla7pvxpfmk4o2z2.json.hm5uhlee72brbz64.ots
extensions/opensheaf-witnesses/v2/signature-bla7pvxpfmk4o2z2.json.yq77barzw3gj7dbj.ots

Appendix C. References

Changelog