Expand description
Complete security state of a single-device offline primary (SPEC-v2
§7.13), TEST ONLY. Mirrors Go v2reference/device_state.go.
DevicePrimaryTestOnly groups every durable security record the
primary holds: the claim store with its release records, stream
sequences, rate counters and receipt log (Store), its anchored
SecurityJournalV2 store, its challenge issuance records, and its replay
epoch. Its complete-state digest is a labelled SHA-384 over a versioned
canonical projection of all of them. Once bound to a device component,
every durable change in any of these stores is anchored in the component
before it takes effect; a change the component refuses is undone.
Every record is projected in the normative record encoding of SPEC-v2
§7.13, so the digest is reproducible across implementations and
upgrades; testvectors/v2/device-state.json pins it byte for byte.
Structs§
- Device
Issuance Test Only - The primary’s challenge issuance store (Go
DeviceIssuanceTestOnly). - Device
Journal Test Only - The primary’s anchored
SecurityJournalV2store (GoDeviceJournalTestOnly). - Device
Primary Test Only - The primary of the single-device offline profile (Go
DevicePrimaryTestOnly). TEST ONLY. - Device
State Projection Test Only - The canonical bytes of every §7.13 projection member, the projection object, and the complete-state digest of a primary. TEST ONLY.