pub struct PedersenRangeProof {
pub bits: u32,
pub bit_commitments: Vec<AffinePoint>,
pub announcements: Vec<AffinePoint>,
pub challenges: Vec<Scalar>,
pub responses: Vec<Scalar>,
}Expand description
A non-interactive range proof for a Pedersen commitment.
Fields§
§bits: u32Bit width of the proven range.
bit_commitments: Vec<AffinePoint>Per-bit commitments C_i (bit 0 first).
announcements: Vec<AffinePoint>Per-bit OR-proof announcements [A_0, A_1] (flattened).
challenges: Vec<Scalar>Per-bit challenge halves e_0 (the other is derived).
responses: Vec<Scalar>Per-bit responses [z_0, z_1] (flattened).
Trait Implementations§
Source§impl Clone for PedersenRangeProof
impl Clone for PedersenRangeProof
Source§fn clone(&self) -> PedersenRangeProof
fn clone(&self) -> PedersenRangeProof
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 PedersenRangeProof
impl RefUnwindSafe for PedersenRangeProof
impl Send for PedersenRangeProof
impl Sync for PedersenRangeProof
impl Unpin for PedersenRangeProof
impl UnsafeUnpin for PedersenRangeProof
impl UnwindSafe for PedersenRangeProof
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