pub struct MlsCredentials { /* private fields */ }Expand description
MLS credential + signing keypair for one user, shared across all conversations they belong to.
Implementations§
Source§impl MlsCredentials
impl MlsCredentials
Sourcepub fn from_identity<I: Identity + ?Sized>(
identity: &I,
) -> Result<Self, MlsError>
pub fn from_identity<I: Identity + ?Sized>( identity: &I, ) -> Result<Self, MlsError>
Build credentials from an Identity. Generates a fresh
signing keypair (held only in this struct, not stored in MLS
keystore until consumed by a service / KP build) and bundles it
with a basic credential whose serialized content is
identity.identity_bytes().
Sourcepub fn credential(&self) -> &CredentialWithKey
pub fn credential(&self) -> &CredentialWithKey
MLS credential bundle — public part of the identity, embedded in every signed MLS message we produce.
Sourcepub fn signer(&self) -> &SignatureKeyPair
pub fn signer(&self) -> &SignatureKeyPair
MLS signing keypair — owns the private key used to sign MLS messages and proposals.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MlsCredentials
impl RefUnwindSafe for MlsCredentials
impl Send for MlsCredentials
impl Sync for MlsCredentials
impl Unpin for MlsCredentials
impl UnsafeUnpin for MlsCredentials
impl UnwindSafe for MlsCredentials
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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