device-operation: machine operation log and reputation; conformance: 260 rules, 17 verifiers, 791 vectors

This commit is contained in:
Aere Network committed 2026-10-20 22:47:47 +03:00
1 parent c1721b3bf1
commit 6ba33c477f
281 files changed
+115161 -46

No files matched your search

+149
View File
@@ -1851,6 +1851,155 @@
}
],
"marked": "by a marker on every check"
},
"device-operation": {
"artifacts": [
"device-operation-log"
],
"rules": [
{
"id": "operation.form",
"source": "form",
"level": "integrity",
"sites": 1,
"says": "the file is an operation log of 1 to 16 manufacture credentials, a list of records and a list of anchors, with nothing else beside them"
},
{
"id": "operation.identity",
"source": "identity",
"level": "authenticity",
"sites": 1,
"says": "the manufacture credential of each key is accepted by the device verifier (signature, ids, trusted manufacturer, recall list, device key); its validity window is judged at the time of each record"
},
{
"id": "operation.record-form",
"source": "record-form",
"level": "integrity",
"sites": 1,
"says": "every record is exactly { statement, signature } with v, kind, deviceId, seq, prev, at (an RFC 3339 UTC time from 1970), state, counter, measurement, after and next, in their forms"
},
{
"id": "operation.record-key",
"source": "record-key",
"level": "authenticity",
"sites": 1,
"says": "every record is signed by the key in force at its position (the first key, then the key each rotation names)"
},
{
"id": "operation.record-signature",
"source": "record-signature",
"level": "authenticity",
"sites": 1,
"says": "every record verifies with its device key (ML-DSA-65, the domain of operation records), the signature exactly { alg, value } in canonical base64"
},
{
"id": "operation.record-seq",
"source": "record-seq",
"level": "integrity",
"sites": 1,
"says": "every record carries its position"
},
{
"id": "operation.record-prev",
"source": "record-prev",
"level": "integrity",
"sites": 1,
"says": "every record names the hash of the one before it, and the first the hash of the manufacture credential of the first key"
},
{
"id": "operation.record-time",
"source": "record-time",
"level": "integrity",
"sites": 1,
"says": "record times do not go back, and none is ahead of the verifier's clock by more than its tolerance"
},
{
"id": "operation.record-counter",
"source": "record-counter",
"level": "integrity",
"sites": 1,
"says": "the counter does not go down"
},
{
"id": "operation.key-window",
"source": "key-window",
"level": "integrity",
"sites": 1,
"says": "every record is dated inside the validity of its key's manufacture credential (its start with the tolerance of the verifier's clock, its last instant inside)"
},
{
"id": "operation.key-retired",
"source": "key-retired",
"level": "integrity",
"sites": 1,
"says": "no record is dated at or after the manufacturer retired its key (a retirement whose date cannot be read holds from the start)"
},
{
"id": "operation.rotation",
"source": "rotation",
"level": "authenticity",
"sites": 1,
"says": "a rotation names a key that the next manufacture credential of the log certifies, from the same manufacturer, for the same model and serial, another key, with its device id derived from it"
},
{
"id": "operation.anchor-envelope",
"source": "anchor-envelope",
"level": "integrity",
"sites": 1,
"says": "every anchor is an AIP-23 time attestation whose hash reproduces, about a record of this log, with that record's device as its source"
},
{
"id": "operation.witness-time",
"source": "witness-time",
"level": "integrity",
"sites": 1,
"says": "no record is dated after its anchor was already on the chain, in the verifier's earliest reading"
},
{
"id": "operation.beacon-hash",
"source": "beacon-hash",
"level": "integrity",
"sites": 1,
"says": "a block a record names, when the verifier read it, carries the hash the record names"
},
{
"id": "operation.beacon-time",
"source": "beacon-time",
"level": "integrity",
"sites": 1,
"says": "no record is dated before the block it names existed, in the verifier's reading"
},
{
"id": "operation.equivocation",
"source": "equivocation",
"level": "integrity",
"sites": 1,
"says": "no record handed to the verifier beside the log is another record of the same key for a position of the log"
}
],
"marked": "by a marker on every check"
},
"device-reputation": {
"artifacts": [
"device-reputation"
],
"rules": [
{
"id": "reputation.form",
"source": "form",
"level": "integrity",
"sites": 2,
"says": "the input is exactly { facts, params, claimed }, and the facts and the parameters are of the form the formula reads (every time a whole number of milliseconds up to 2^52, windows from 1 s to 366 days, at most 100,000 of them)"
},
{
"id": "reputation.figures",
"source": "figures",
"level": "integrity",
"sites": 1,
"says": "the stated reputation is exactly what the formula gives for these facts and parameters, figures and evidence alike"
}
],
"marked": "by a marker on every check"
}
},
"notEnrolled": []