Skip to main content

read_attestation_key_pins

Function read_attestation_key_pins 

Source
pub fn read_attestation_key_pins(
    root: &Path,
) -> Result<Option<Vec<u8>>, KeyPinError>
Expand description

The pin file’s bytes exactly as they are on disk, for the backup artifact to carry, or None when this library has pinned nothing.

The bytes are checked first — this build’s schema, and every key decodes — so an artifact never carries a pin a restore would refuse.