pub struct PedersenCommitment {
pub c: AffinePoint,
pub value: Scalar,
pub blind: Scalar,
}Expand description
A Pedersen commitment together with its opening (prover-side).
Fields§
§c: AffinePointThe commitment point C = v·G + r·H.
value: ScalarThe committed value.
blind: ScalarThe blinding factor.
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 (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 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