Struct zkgroup::crypto::credentials::KeyPair
source · pub struct KeyPair<S: AttrScalars> { /* private fields */ }
Implementations§
source§impl<S: AttrScalars> KeyPair<S>
impl<S: AttrScalars> KeyPair<S>
source§impl KeyPair<AuthCredentialWithPni>
impl KeyPair<AuthCredentialWithPni>
pub fn create_auth_credential_with_pni( &self, aci: UidStruct, pni: UidStruct, redemption_time: Timestamp, sho: &mut Sho, ) -> AuthCredentialWithPni
source§impl KeyPair<ExpiringProfileKeyCredential>
impl KeyPair<ExpiringProfileKeyCredential>
pub fn create_blinded_expiring_profile_key_credential( &self, uid: UidStruct, public_key: PublicKey, ciphertext: Ciphertext, credential_expiration_time: Timestamp, sho: &mut Sho, ) -> BlindedExpiringProfileKeyCredentialWithSecretNonce
source§impl KeyPair<ReceiptCredential>
impl KeyPair<ReceiptCredential>
pub fn create_blinded_receipt_credential( &self, public_key: PublicKey, ciphertext: Ciphertext, receipt_expiration_time: Timestamp, receipt_level: ReceiptLevel, sho: &mut Sho, ) -> BlindedReceiptCredentialWithSecretNonce
Trait Implementations§
source§impl<S: AttrScalars> Clone for KeyPair<S>
impl<S: AttrScalars> Clone for KeyPair<S>
source§impl<'de, S: AttrScalars> Deserialize<'de> for KeyPair<S>
impl<'de, S: AttrScalars> Deserialize<'de> for KeyPair<S>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S: AttrScalars> PartialDefault for KeyPair<S>
impl<S: AttrScalars> PartialDefault for KeyPair<S>
source§fn partial_default() -> Self
fn partial_default() -> Self
Returns a value that can be safely dropped or assigned over.
source§impl<S: AttrScalars> PartialEq for KeyPair<S>
impl<S: AttrScalars> PartialEq for KeyPair<S>
source§impl<S: AttrScalars> Serialize for KeyPair<S>
impl<S: AttrScalars> Serialize for KeyPair<S>
impl<S: AttrScalars> Copy for KeyPair<S>
impl<S: AttrScalars> Eq for KeyPair<S>
Auto Trait Implementations§
impl<S> Freeze for KeyPair<S>
impl<S> RefUnwindSafe for KeyPair<S>
impl<S> Send for KeyPair<S>
impl<S> Sync for KeyPair<S>
impl<S> Unpin for KeyPair<S>
impl<S> UnwindSafe for KeyPair<S>
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> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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