pub struct VectorAuthenticator;Expand description
NIP-42 authenticator.
Many Concord/Armada communities live on AUTH-gating relays (Ditto’s default gates kind-1059), where an unauthenticated client silently reads back ZERO events — a join’s control-plane verify then fails closed and every community fetch comes up empty. Registering this is what unlocks those reads; a relay that doesn’t challenge is unaffected.
The signer is resolved per challenge rather than captured at client construction, so a bunker that connects later (or an account swap) authks under the identity that is live now.
Trait Implementations§
Source§impl Authenticator for VectorAuthenticator
impl Authenticator for VectorAuthenticator
Source§fn make_auth_event<'a>(
&'a self,
relay_url: &'a RelayUrl,
challenge: &'a str,
) -> BoxedFuture<'a, Result<Event, Error>>
fn make_auth_event<'a>( &'a self, relay_url: &'a RelayUrl, challenge: &'a str, ) -> BoxedFuture<'a, Result<Event, Error>>
Makes a NIP-42 event for authentication Read more
Auto Trait Implementations§
impl Freeze for VectorAuthenticator
impl RefUnwindSafe for VectorAuthenticator
impl Send for VectorAuthenticator
impl Sync for VectorAuthenticator
impl Unpin for VectorAuthenticator
impl UnsafeUnpin for VectorAuthenticator
impl UnwindSafe for VectorAuthenticator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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 more