Struct zkgroup::crypto::profile_key_struct::ProfileKeyStruct
source · pub struct ProfileKeyStruct { /* private fields */ }
Implementations§
source§impl ProfileKeyStruct
impl ProfileKeyStruct
pub fn new(profile_key_bytes: ProfileKeyBytes, uid_bytes: UidBytes) -> Self
pub fn calc_M3( profile_key_bytes: ProfileKeyBytes, uid_bytes: UidBytes, ) -> RistrettoPoint
pub fn to_bytes(&self) -> ProfileKeyBytes
Trait Implementations§
source§impl Attribute for ProfileKeyStruct
impl Attribute for ProfileKeyStruct
source§impl Clone for ProfileKeyStruct
impl Clone for ProfileKeyStruct
source§fn clone(&self) -> ProfileKeyStruct
fn clone(&self) -> ProfileKeyStruct
Returns a copy 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 moresource§impl ConditionallySelectable for ProfileKeyStruct
impl ConditionallySelectable for ProfileKeyStruct
source§fn conditional_select(
a: &ProfileKeyStruct,
b: &ProfileKeyStruct,
choice: Choice,
) -> ProfileKeyStruct
fn conditional_select( a: &ProfileKeyStruct, b: &ProfileKeyStruct, choice: Choice, ) -> ProfileKeyStruct
source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
source§impl<'de> Deserialize<'de> for ProfileKeyStruct
impl<'de> Deserialize<'de> for ProfileKeyStruct
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 PartialDefault for ProfileKeyStruct
impl PartialDefault for ProfileKeyStruct
source§fn partial_default() -> Self
fn partial_default() -> Self
Returns a value that can be safely dropped or assigned over.
source§impl PartialEq for ProfileKeyStruct
impl PartialEq for ProfileKeyStruct
source§fn eq(&self, other: &ProfileKeyStruct) -> bool
fn eq(&self, other: &ProfileKeyStruct) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ProfileKeyStruct
impl Serialize for ProfileKeyStruct
impl Copy for ProfileKeyStruct
impl Eq for ProfileKeyStruct
impl StructuralPartialEq for ProfileKeyStruct
Auto Trait Implementations§
impl Freeze for ProfileKeyStruct
impl RefUnwindSafe for ProfileKeyStruct
impl Send for ProfileKeyStruct
impl Sync for ProfileKeyStruct
impl Unpin for ProfileKeyStruct
impl UnwindSafe for ProfileKeyStruct
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