pub struct Credential { /* private fields */ }Expand description
A credential which the client holds privately.
Implementations§
Source§impl Credential
impl Credential
Source§impl Credential
impl Credential
Sourcepub fn pseudonym_for<H: Hasher>(
&self,
params: &Params<H>,
relying_party_id: Scalar,
nonce: &[u8],
rng: impl CryptoRngCore,
) -> CtOption<Pseudonym>
pub fn pseudonym_for<H: Hasher>( &self, params: &Params<H>, relying_party_id: Scalar, nonce: &[u8], rng: impl CryptoRngCore, ) -> CtOption<Pseudonym>
Compute a pseudonym for the given context.
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
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