Timestamps and evidence records

Asking a time-stamping authority to date a capsule, and renewing that evidence so it outlives the algorithms it was made with.

Each section is one help page: what its functions are for, and the example of the page as it runs. ?name gives the arguments and the value in full.

Timestamps and evidence records

nqtsreq(), nqtsput(), nqersreq(), nqersput(): The library makes no network request: nqtsreq() writes the RFC 3161 TimeStampReq for a sealed capsule’s signature, which the caller sends to a time-stamping authority, and nqtsput() checks the authority’s reply and stores it as the seal’s timestamp. nqersreq() and nqersput() do the same for the archive timestamps of the capsule’s RFC 4998 evidence record (noqtis.ers), which keeps the seal provable after its algorithm or the authority’s certificate ages: a renewal with the same hash renews the timestamp, another hash the hash tree.

d <- file.path(tempdir(), "ts")
dir.create(d)
writeLines("hello", file.path(d, "a.txt"))
k <- nqkeygen("ML-DSA-44")
nqseal(d, k$sk, k$pk, "ML-DSA-44")
q <- nqtsreq(d, nonce = as.raw(1:8))
length(q)
#> [1] 69
length(nqersreq(d))
#> [1] 59
unlink(d, recursive = TRUE)