pub struct BlindSignature {
pub amount: Amount,
pub keyset_id: Id,
pub c: PublicKey,
pub dleq: Option<BlindSignatureDleq>,
}
Expand description
Blind Signature (also called promise
)
Fields§
§amount: Amount
Amount
The value of the blinded token.
keyset_id: Id
Keyset ID
ID of the mint keys that signed the token.
c: PublicKey
Blinded signature (C_)
The blinded signature on the secret message B_
of BlindedMessage.
dleq: Option<BlindSignatureDleq>
Implementations§
Source§impl BlindSignature
impl BlindSignature
Sourcepub fn new(
amount: Amount,
blinded_signature: PublicKey,
keyset_id: Id,
blinded_message: &PublicKey,
mint_secretkey: SecretKey,
) -> Result<BlindSignature, Error>
pub fn new( amount: Amount, blinded_signature: PublicKey, keyset_id: Id, blinded_message: &PublicKey, mint_secretkey: SecretKey, ) -> Result<BlindSignature, Error>
New DLEQ
Trait Implementations§
Source§impl Clone for BlindSignature
impl Clone for BlindSignature
Source§fn clone(&self) -> BlindSignature
fn clone(&self) -> BlindSignature
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 BlindSignature
impl Debug for BlindSignature
Source§impl<'de> Deserialize<'de> for BlindSignature
impl<'de> Deserialize<'de> for BlindSignature
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlindSignature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BlindSignature, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for BlindSignature
impl Ord for BlindSignature
Source§fn cmp(&self, other: &BlindSignature) -> Ordering
fn cmp(&self, other: &BlindSignature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlindSignature
impl PartialEq for BlindSignature
Source§impl PartialOrd for BlindSignature
impl PartialOrd for BlindSignature
Source§impl Serialize for BlindSignature
impl Serialize for BlindSignature
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
impl Eq for BlindSignature
impl StructuralPartialEq for BlindSignature
Auto Trait Implementations§
impl Freeze for BlindSignature
impl RefUnwindSafe for BlindSignature
impl Send for BlindSignature
impl Sync for BlindSignature
impl Unpin for BlindSignature
impl UnwindSafe for BlindSignature
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