pub fn pin_attestation_keys(
root: &Path,
origin: &str,
published: &[HybridVerifyingKey],
) -> Result<PinnedKeys, KeyPinError>Expand description
Check the history origin just published against the pin, pin or extend it, and return
the pinned history every receipt from that server is verified under.
Nothing pinned for origin pins published (KeyPinOutcome::FirstContact); a history
holding exactly the pinned keys writes nothing (KeyPinOutcome::Unchanged); one holding
every pinned key and more appends the new keys in published order
(KeyPinOutcome::Extended). Keys are compared by value, not position. A history missing a
pinned key is KeyPinError::HistoryRewritten, and an empty one
KeyPinError::EmptyHistory; a refusal writes nothing.