pub struct RangeProof {
pub z: BigUint,
pub u: BigUint,
pub w: BigUint,
pub s: BigUint,
pub s1: BigUint,
pub s2: BigUint,
}Expand description
Initiator’s range proof: knowledge of (m, r) with
c = Γ^m·r^N mod N² and m ∈ [0, q³].
Fields§
§z: BigUintCommitment h₁^m·h₂^ρ mod Ñ.
u: BigUintAnnouncement Γ^α·β^N mod N².
w: BigUintAnnouncement h₁^α·h₂^γ mod Ñ.
s: BigUintResponse r^e·β mod N.
s1: BigUintResponse e·m + α (checked ≤ q³ as an integer).
s2: BigUintResponse e·ρ + γ.
Trait Implementations§
Source§impl Clone for RangeProof
impl Clone for RangeProof
Source§fn clone(&self) -> RangeProof
fn clone(&self) -> RangeProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RangeProof
impl RefUnwindSafe for RangeProof
impl Send for RangeProof
impl Sync for RangeProof
impl Unpin for RangeProof
impl UnsafeUnpin for RangeProof
impl UnwindSafe for RangeProof
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