pub struct ClientPrivateKey { /* private fields */ }Expand description
The private PRF key held by the client as they request credential issuance.
Implementations§
Source§impl ClientPrivateKey
impl ClientPrivateKey
Sourcepub fn random(rng: impl CryptoRngCore) -> Self
pub fn random(rng: impl CryptoRngCore) -> Self
Generate a new client private key.
Sourcepub fn request<H: Hasher>(
&self,
params: &Params<H>,
rng: impl CryptoRngCore,
) -> CredentialRequest
pub fn request<H: Hasher>( &self, params: &Params<H>, rng: impl CryptoRngCore, ) -> CredentialRequest
Create a request for a new credential issuance associated to the given private key.
Source§impl ClientPrivateKey
impl ClientPrivateKey
Sourcepub fn create_credential(
&self,
request: &CredentialRequest,
response: &CredentialResponse,
issuer_public_key: &IssuerPublicKey,
) -> Option<Credential>
pub fn create_credential( &self, request: &CredentialRequest, response: &CredentialResponse, issuer_public_key: &IssuerPublicKey, ) -> Option<Credential>
Creates a new credential using the original request, response from the server, and the client’s private PRF key.
Trait Implementations§
Source§impl Clone for ClientPrivateKey
impl Clone for ClientPrivateKey
Source§fn clone(&self) -> ClientPrivateKey
fn clone(&self) -> ClientPrivateKey
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 ClientPrivateKey
impl RefUnwindSafe for ClientPrivateKey
impl Send for ClientPrivateKey
impl Sync for ClientPrivateKey
impl Unpin for ClientPrivateKey
impl UnwindSafe for ClientPrivateKey
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