pub struct PedersenCommitment {
pub p: u64,
pub q: u64,
pub g: u64,
pub h: u64,
}Expand description
Extended Pedersen commitment with batch verification.
Supports committing to a vector of values and homomorphic operations.
§WARNING
Educational only. Uses toy parameters.
Fields§
§p: u64Prime field modulus
q: u64Group order (prime q | p-1)
g: u64Generator g
h: u64Independent generator h (log_g(h) unknown)
Implementations§
Trait Implementations§
Source§impl Clone for PedersenCommitment
impl Clone for PedersenCommitment
Source§fn clone(&self) -> PedersenCommitment
fn clone(&self) -> PedersenCommitment
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 moreAuto Trait Implementations§
impl Freeze for PedersenCommitment
impl RefUnwindSafe for PedersenCommitment
impl Send for PedersenCommitment
impl Sync for PedersenCommitment
impl Unpin for PedersenCommitment
impl UnsafeUnpin for PedersenCommitment
impl UnwindSafe for PedersenCommitment
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