pub struct ProofRequest {
pub revealed_messages: BTreeSet<usize>,
pub verification_key: PublicKey,
}Expand description
Contains the data from a verifier to a prover
Fields§
§revealed_messages: BTreeSet<usize>Allow the prover to retrieve which messages should be revealed. Might be prompted in a GUI or CLI
verification_key: PublicKeyAllow the prover to know which public key for which the signature must be valid.
Trait Implementations§
Source§impl Clone for ProofRequest
impl Clone for ProofRequest
Source§fn clone(&self) -> ProofRequest
fn clone(&self) -> ProofRequest
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 moreSource§impl Debug for ProofRequest
impl Debug for ProofRequest
Source§impl Default for ProofRequest
impl Default for ProofRequest
Source§impl<'a> Deserialize<'a> for ProofRequest
impl<'a> Deserialize<'a> for ProofRequest
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ProofRequest
impl Serialize for ProofRequest
Source§impl ToVariableLengthBytes for ProofRequest
impl ToVariableLengthBytes for ProofRequest
Source§impl TryFrom<&[u8]> for ProofRequest
impl TryFrom<&[u8]> for ProofRequest
Auto Trait Implementations§
impl Freeze for ProofRequest
impl RefUnwindSafe for ProofRequest
impl Send for ProofRequest
impl Sync for ProofRequest
impl Unpin for ProofRequest
impl UnwindSafe for ProofRequest
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§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