pub struct PedersenParams {
pub g: RistrettoPoint,
pub h: RistrettoPoint,
}Expand description
Public parameters for the Pedersen commitment scheme.
Fields§
§g: RistrettoPointGenerator G.
h: RistrettoPointGenerator H (independent of G).
Implementations§
Source§impl PedersenParams
impl PedersenParams
Sourcepub fn default_params() -> Self
pub fn default_params() -> Self
Create default parameters using standard basepoint and a derived second generator.
Sourcepub fn new(g: RistrettoPoint, h: RistrettoPoint) -> Self
pub fn new(g: RistrettoPoint, h: RistrettoPoint) -> Self
Create custom parameters with given generators.
Trait Implementations§
Source§impl Clone for PedersenParams
impl Clone for PedersenParams
Source§fn clone(&self) -> PedersenParams
fn clone(&self) -> PedersenParams
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 moreSource§impl Debug for PedersenParams
impl Debug for PedersenParams
Auto Trait Implementations§
impl Freeze for PedersenParams
impl RefUnwindSafe for PedersenParams
impl Send for PedersenParams
impl Sync for PedersenParams
impl Unpin for PedersenParams
impl UnsafeUnpin for PedersenParams
impl UnwindSafe for PedersenParams
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