pub struct WithdrawalRequest { /* private fields */ }Expand description
Represents a withdrawal request generate by the client who wants to obtain a zk-nym credential.
This struct encapsulates the necessary components for a withdrawal request, including the joined commitment hash, the joined commitment, individual Pedersen commitments for private attributes, and a zero-knowledge proof for the withdrawal request.
§Fields
joined_commitment_hash- The joined commitment hash represented as a G1Projective element.joined_commitment- The joined commitment represented as a G1Projective element.private_attributes_commitments- A vector of individual Pedersen commitments for private attributes represented as G1Projective elements.zk_proof- The zero-knowledge proof for the withdrawal request.
§Derives
The struct derives Debug and PartialEq to provide debug output and basic comparison functionality.
Implementations§
Source§impl WithdrawalRequest
impl WithdrawalRequest
pub fn get_private_attributes_commitments(&self) -> &[G1Projective]
Source§impl WithdrawalRequest
impl WithdrawalRequest
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(bytes: &[u8]) -> Result<WithdrawalRequest, CompactEcashError>
Trait Implementations§
Source§impl Base58 for WithdrawalRequest
impl Base58 for WithdrawalRequest
Source§impl Bytable for WithdrawalRequest
impl Bytable for WithdrawalRequest
fn to_byte_vec(&self) -> Vec<u8> ⓘ
fn try_from_byte_slice( slice: &[u8], ) -> Result<WithdrawalRequest, CompactEcashError>
Source§impl Clone for WithdrawalRequest
impl Clone for WithdrawalRequest
Source§fn clone(&self) -> WithdrawalRequest
fn clone(&self) -> WithdrawalRequest
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 WithdrawalRequest
impl Debug for WithdrawalRequest
Source§impl<'de> Deserialize<'de> for WithdrawalRequest
impl<'de> Deserialize<'de> for WithdrawalRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WithdrawalRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WithdrawalRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WithdrawalRequest
impl PartialEq for WithdrawalRequest
Source§impl Serialize for WithdrawalRequest
impl Serialize for WithdrawalRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&[u8]> for WithdrawalRequest
impl TryFrom<&[u8]> for WithdrawalRequest
Source§type Error = CompactEcashError
type Error = CompactEcashError
The type returned in the event of a conversion error.
Source§fn try_from(bytes: &[u8]) -> Result<WithdrawalRequest, CompactEcashError>
fn try_from(bytes: &[u8]) -> Result<WithdrawalRequest, CompactEcashError>
Performs the conversion.
impl StructuralPartialEq for WithdrawalRequest
Auto Trait Implementations§
impl Freeze for WithdrawalRequest
impl RefUnwindSafe for WithdrawalRequest
impl Send for WithdrawalRequest
impl Sync for WithdrawalRequest
impl Unpin for WithdrawalRequest
impl UnsafeUnpin for WithdrawalRequest
impl UnwindSafe for WithdrawalRequest
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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