Struct zkgroup::api::groups::GroupSendDerivedKeyPair
source · pub struct GroupSendDerivedKeyPair { /* private fields */ }
Expand description
A key pair used to sign endorsements for a particular expiration.
These are intended to be cheaply cached – it’s not a problem to regenerate them, but they’re expected to be reused frequently enough that they’re worth caching, given that they’re only rotated every 24 hours.
Implementations§
source§impl GroupSendDerivedKeyPair
impl GroupSendDerivedKeyPair
sourcepub fn for_expiration(
expiration: Timestamp,
params: &ServerSecretParams,
) -> Self
pub fn for_expiration( expiration: Timestamp, params: &ServerSecretParams, ) -> Self
Derives the appropriate key pair for the given expiration.
Trait Implementations§
source§impl<'de> Deserialize<'de> for GroupSendDerivedKeyPair
impl<'de> Deserialize<'de> for GroupSendDerivedKeyPair
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 GroupSendDerivedKeyPair
impl PartialDefault for GroupSendDerivedKeyPair
source§fn partial_default() -> Self
fn partial_default() -> Self
Returns a value that can be safely dropped or assigned over.
Auto Trait Implementations§
impl Freeze for GroupSendDerivedKeyPair
impl RefUnwindSafe for GroupSendDerivedKeyPair
impl Send for GroupSendDerivedKeyPair
impl Sync for GroupSendDerivedKeyPair
impl Unpin for GroupSendDerivedKeyPair
impl UnwindSafe for GroupSendDerivedKeyPair
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> 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