pub struct MessageB {
pub c: BigInt,
pub b_proof: DLogProof<Secp256k1, Sha256>,
pub beta_tag_proof: DLogProof<Secp256k1, Sha256>,
}Fields§
§c: BigInt§b_proof: DLogProof<Secp256k1, Sha256>§beta_tag_proof: DLogProof<Secp256k1, Sha256>Implementations§
Source§impl MessageB
impl MessageB
pub fn b( b: &Scalar<Secp256k1>, alice_ek: &EncryptionKey, m_a: MessageA, dlog_statements: &[DLogStatement], ) -> Result<(Self, Scalar<Secp256k1>, BigInt, BigInt), Error>
pub fn b_with_predefined_randomness( b: &Scalar<Secp256k1>, alice_ek: &EncryptionKey, m_a: MessageA, randomness: &BigInt, beta_tag: &BigInt, dlog_statements: &[DLogStatement], ) -> Result<(Self, Scalar<Secp256k1>), Error>
pub fn verify_proofs_get_alpha( &self, dk: &DecryptionKey, a: &Scalar<Secp256k1>, ) -> Result<(Scalar<Secp256k1>, BigInt), Error>
pub fn verify_proofs_get_alpha_gg18( &self, private: &PartyPrivate, a: &Scalar<Secp256k1>, ) -> Result<Scalar<Secp256k1>, Error>
pub fn verify_b_against_public( public_gb: &Point<Secp256k1>, mta_gb: &Point<Secp256k1>, ) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MessageB
impl<'de> Deserialize<'de> for MessageB
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 MessageB
impl RefUnwindSafe for MessageB
impl Send for MessageB
impl Sync for MessageB
impl Unpin for MessageB
impl UnwindSafe for MessageB
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