pub struct MessageA {
pub c: BigInt,
pub range_proofs: Vec<AliceProof>,
}Fields§
§c: BigInt§range_proofs: Vec<AliceProof>Implementations§
Source§impl MessageA
impl MessageA
Sourcepub fn a(
a: &Scalar<Secp256k1>,
alice_ek: &EncryptionKey,
dlog_statements: &[DLogStatement],
) -> (Self, BigInt)
pub fn a( a: &Scalar<Secp256k1>, alice_ek: &EncryptionKey, dlog_statements: &[DLogStatement], ) -> (Self, BigInt)
Creates a new messageA using Alice’s Paillier encryption key and dlog_statements
- other parties’
h1,h2,N_tildes for range proofs. If range proofs are not needed (one example is identification of aborts where we only want to reconstruct a ciphertext),dlog_statementscan be an empty slice.
pub fn a_with_predefined_randomness( a: &Scalar<Secp256k1>, alice_ek: &EncryptionKey, randomness: &BigInt, dlog_statements: &[DLogStatement], ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MessageA
impl<'de> Deserialize<'de> for MessageA
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
Auto Trait Implementations§
impl Freeze for MessageA
impl RefUnwindSafe for MessageA
impl Send for MessageA
impl Sync for MessageA
impl Unpin for MessageA
impl UnwindSafe for MessageA
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