Struct curdleproofs::commitments::GroupCommitment
source · [−]pub struct GroupCommitment {
pub T_1: G1Projective,
pub T_2: G1Projective,
}
Expand description
A GroupCommitment object
$GroupCommitment((G , H); T ; r ) = cm_T = (cm_{T,1} , cm_{T,2} ) = (r G , T + r H)$
Fields
T_1: G1Projective
Given $GroupCommitment((G , H); T ; r )$ this is $rG$
T_2: G1Projective
Given $GroupCommitment((G , H); T ; r )$ this is $T + rH$
Implementations
sourceimpl GroupCommitment
impl GroupCommitment
sourcepub fn new(
crs_G: &G1Projective,
crs_H: &G1Projective,
T: G1Projective,
r: Fr
) -> GroupCommitment
pub fn new(
crs_G: &G1Projective,
crs_H: &G1Projective,
T: G1Projective,
r: Fr
) -> GroupCommitment
Commit to T
using provided CRS and randomness r
Trait Implementations
sourceimpl Add<GroupCommitment> for GroupCommitment
impl Add<GroupCommitment> for GroupCommitment
type Output = GroupCommitment
type Output = GroupCommitment
The resulting type after applying the +
operator.
sourceimpl Clone for GroupCommitment
impl Clone for GroupCommitment
sourcefn clone(&self) -> GroupCommitment
fn clone(&self) -> GroupCommitment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GroupCommitment
impl Debug for GroupCommitment
sourceimpl Mul<Fp256<FrParameters>> for GroupCommitment
impl Mul<Fp256<FrParameters>> for GroupCommitment
sourceimpl PartialEq<GroupCommitment> for GroupCommitment
impl PartialEq<GroupCommitment> for GroupCommitment
sourcefn eq(&self, other: &GroupCommitment) -> bool
fn eq(&self, other: &GroupCommitment) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for GroupCommitment
impl Eq for GroupCommitment
impl StructuralEq for GroupCommitment
impl StructuralPartialEq for GroupCommitment
Auto Trait Implementations
impl RefUnwindSafe for GroupCommitment
impl Send for GroupCommitment
impl Sync for GroupCommitment
impl Unpin for GroupCommitment
impl UnwindSafe for GroupCommitment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more