You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current trait requires self to be used for committing/opening and verification at the same time.
/// Polynomial commitment scheme.pubtraitCommitmentScheme<F:PrimeField,P>{typeG:AdditiveCommitment<F>;fncommit(&self,poly:&P) -> Self::G;fncommit_const(&self,c:&F) -> Self::G;/// Verifies that `p(x) = y` given the commitment to `p` and a proof.fnverify(&self,commitment:&Self::G,x:&F,y:F,proof:&Self::G) -> bool;// TODO: generalize proof type}
These types has to be separated as they may be very different pieces of data. For KZG verifier key is 1G1 + 2G2 elements, while committer key can be huge.
The text was updated successfully, but these errors were encountered:
Current trait requires
self
to be used for committing/opening and verification at the same time.These types has to be separated as they may be very different pieces of data. For KZG verifier key is 1G1 + 2G2 elements, while committer key can be huge.
The text was updated successfully, but these errors were encountered: