Skip to main content

Module account

Module account 

Source
Expand description

The library’s record of a hardware-bound device signing key: the half of the account the library, not capsule-core, keeps on disk.

A device whose signing key’s classical half lives in a secure element (Secure Enclave, StrongBox, TPM) cannot rebuild that key from the account file: the account file holds the software DSK, and the element’s P-256 key is non-exportable by contract. Reopening such a library needs three things the account file does not carry, and this record holds them in {root}/.library/device_signer.cbor:

  • the element’s alias for the key, so reopening asks the element for the same key;
  • the ML-DSA-65 seed of the post-quantum half, sealed under the account master key with a domain prefix, so the same hybrid key is rebuilt;
  • the published hybrid verifying key, so a reopen can prove the element still holds the key this device published rather than one minted under the same alias since.

The record’s presence is the binding. A library without one signs with the account’s software DSK, which is every library created before this record existed, and an element offered on reopen is ignored for it. A library with one refuses to open without its element: falling back to the software DSK would change the key the device directory publishes (SSoT: Cryptography — Keys § Device Keys).

Structs§

HardwareSignerBinding
A request to bind this device’s signing key to a secure element over ECDSA-P256: the element itself plus the alias its key is held under. The signer counterpart of HardwareDekBinding.