pub struct Es256SigningKeyStore(pub Arc<RwLock<Es256KeySlots>>, _, _);Tuple Fields§
§0: Arc<RwLock<Es256KeySlots>>Implementations§
Source§impl Es256SigningKeyStore
impl Es256SigningKeyStore
pub fn new(slots: Es256KeySlots) -> Self
Sourcepub fn bind_secrets_dir(&self, secrets_dir: PathBuf)
pub fn bind_secrets_dir(&self, secrets_dir: PathBuf)
Bind this process-local cache to the durable slot directory. Each
process refreshes before it signs or resolves, so --ipc workers see a
promotion made by the OAuth process rather than retaining a stale key.
pub fn refresh_from_disk(&self)
Sourcepub fn active_key(&self) -> Option<Arc<Es256SigningKey>>
pub fn active_key(&self) -> Option<Arc<Es256SigningKey>>
The current active ES256 signing key — the single #atproto key the
DID document publishes and the repo head is signed with (#918
re-sign-on-rotation). Synchronous (parking_lot lock) so the publisher
can resolve the LIVE key at sign time without an async runtime.
Sourcepub fn slots_snapshot(&self) -> Es256KeySlots
pub fn slots_snapshot(&self) -> Es256KeySlots
Take active, drain and lead from one read guard so a DID document never mixes two rotation generations.
Sourcepub fn active_slot(&self) -> Option<Es256KeySlot>
pub fn active_slot(&self) -> Option<Es256KeySlot>
The active slot (key + nbf/exp bounds), if present.
Sourcepub fn drain_slot(&self) -> Option<Es256KeySlot>
pub fn drain_slot(&self) -> Option<Es256KeySlot>
Snapshot the bounded verification-only drain slot, if any.
Sourcepub fn lead_slot(&self) -> Option<Es256KeySlot>
pub fn lead_slot(&self) -> Option<Es256KeySlot>
Snapshot the bounded verification-only lead slot, if any. New commits
are always signed by Es256SigningKeyStore::active_key.
pub fn all_slots_snapshot(&self) -> Vec<Es256KeySlot>
Trait Implementations§
Source§impl Clone for Es256SigningKeyStore
impl Clone for Es256SigningKeyStore
Source§fn clone(&self) -> Es256SigningKeyStore
fn clone(&self) -> Es256SigningKeyStore
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for Es256SigningKeyStore
impl !RefUnwindSafe for Es256SigningKeyStore
impl Send for Es256SigningKeyStore
impl Sync for Es256SigningKeyStore
impl Unpin for Es256SigningKeyStore
impl UnsafeUnpin for Es256SigningKeyStore
impl !UnwindSafe for Es256SigningKeyStore
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request