pub enum HistoricalKeyPolicy {
Reject,
AcceptWithReceipt,
}Expand description
How to treat a producer key that is present in the DID document’s
verificationMethod but no longer in assertionMethod — i.e. a
key the producer rotated out but retained per the RFC-ACDP-0010
key-retention rule.
Variants§
Reject
Strict 0.1.0 behavior: only assertionMethod keys verify.
Every context signed by a rotated-out key fails.
AcceptWithReceipt
Accept a retained key only when a verified registry receipt
attests (via key_fingerprint) that this exact key was the
authorized one at publish time. Without a verified receipt the
historical path never activates — fail closed. Default.
Trait Implementations§
Source§impl Clone for HistoricalKeyPolicy
impl Clone for HistoricalKeyPolicy
Source§fn clone(&self) -> HistoricalKeyPolicy
fn clone(&self) -> HistoricalKeyPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HistoricalKeyPolicy
Source§impl Debug for HistoricalKeyPolicy
impl Debug for HistoricalKeyPolicy
Source§impl Default for HistoricalKeyPolicy
impl Default for HistoricalKeyPolicy
Source§fn default() -> HistoricalKeyPolicy
fn default() -> HistoricalKeyPolicy
Returns the “default value” for a type. Read more
impl Eq for HistoricalKeyPolicy
Source§impl PartialEq for HistoricalKeyPolicy
impl PartialEq for HistoricalKeyPolicy
Source§fn eq(&self, other: &HistoricalKeyPolicy) -> bool
fn eq(&self, other: &HistoricalKeyPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HistoricalKeyPolicy
Auto Trait Implementations§
impl Freeze for HistoricalKeyPolicy
impl RefUnwindSafe for HistoricalKeyPolicy
impl Send for HistoricalKeyPolicy
impl Sync for HistoricalKeyPolicy
impl Unpin for HistoricalKeyPolicy
impl UnsafeUnpin for HistoricalKeyPolicy
impl UnwindSafe for HistoricalKeyPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.