Struct zkgroup::api::server_params::ServerSecretParams
source · pub struct ServerSecretParams { /* private fields */ }
Implementations§
source§impl ServerSecretParams
impl ServerSecretParams
pub fn generate(randomness: RandomnessBytes) -> Self
pub fn get_public_params(&self) -> ServerPublicParams
pub fn sign( &self, randomness: RandomnessBytes, message: &[u8], ) -> NotarySignatureBytes
pub fn issue_auth_credential_with_pni_as_service_id( &self, randomness: RandomnessBytes, aci: Aci, pni: Pni, redemption_time: Timestamp, ) -> AuthCredentialWithPniResponse
pub fn verify_auth_credential_presentation( &self, group_public_params: GroupPublicParams, presentation: &AnyAuthCredentialPresentation, current_time: Timestamp, ) -> Result<(), ZkGroupVerificationFailure>
pub fn verify_auth_credential_with_pni_presentation( &self, group_public_params: GroupPublicParams, presentation: &AuthCredentialWithPniPresentation, current_time: Timestamp, ) -> Result<(), ZkGroupVerificationFailure>
pub fn verify_profile_key_credential_presentation( &self, group_public_params: GroupPublicParams, presentation: &AnyProfileKeyCredentialPresentation, current_time: Timestamp, ) -> Result<(), ZkGroupVerificationFailure>
pub fn verify_expiring_profile_key_credential_presentation( &self, group_public_params: GroupPublicParams, presentation: &ExpiringProfileKeyCredentialPresentation, current_time: Timestamp, ) -> Result<(), ZkGroupVerificationFailure>
pub fn issue_expiring_profile_key_credential( &self, randomness: RandomnessBytes, request: &ProfileKeyCredentialRequest, aci: Aci, commitment: ProfileKeyCommitment, credential_expiration_time: Timestamp, ) -> Result<ExpiringProfileKeyCredentialResponse, ZkGroupVerificationFailure>
pub fn issue_receipt_credential( &self, randomness: RandomnessBytes, request: &ReceiptCredentialRequest, receipt_expiration_time: Timestamp, receipt_level: ReceiptLevel, ) -> ReceiptCredentialResponse
pub fn verify_receipt_credential_presentation( &self, presentation: &ReceiptCredentialPresentation, ) -> Result<(), ZkGroupVerificationFailure>
Trait Implementations§
source§impl Clone for ServerSecretParams
impl Clone for ServerSecretParams
source§fn clone(&self) -> ServerSecretParams
fn clone(&self) -> ServerSecretParams
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<'de> Deserialize<'de> for ServerSecretParams
impl<'de> Deserialize<'de> for ServerSecretParams
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 ServerSecretParams
impl PartialDefault for ServerSecretParams
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 ServerSecretParams
impl RefUnwindSafe for ServerSecretParams
impl Send for ServerSecretParams
impl Sync for ServerSecretParams
impl Unpin for ServerSecretParams
impl UnwindSafe for ServerSecretParams
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: 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