pub struct PedersenCommitment<E: Curve>(/* private fields */);Expand description
compute c = mG + rH where m is the commited value, G is the group generator, H is a random point and r is a blinding value.
Trait Implementations§
Source§impl<E: Curve> Commitment<Point<E>> for PedersenCommitment<E>
impl<E: Curve> Commitment<Point<E>> for PedersenCommitment<E>
Auto Trait Implementations§
impl<E> Freeze for PedersenCommitment<E>
impl<E> RefUnwindSafe for PedersenCommitment<E>where
E: RefUnwindSafe,
impl<E> Send for PedersenCommitment<E>
impl<E> Sync for PedersenCommitment<E>
impl<E> Unpin for PedersenCommitment<E>where
E: Unpin,
impl<E> UnwindSafe for PedersenCommitment<E>where
E: UnwindSafe,
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