Randomize the set commitment and the corresponding opening
(
mut self,
mut opening: SetCommitmentOpening<E>,
randomness: E::ScalarField,
)
| 356 | |
| 357 | /// Randomize the set commitment and the corresponding opening |
| 358 | pub fn randomize( |
| 359 | mut self, |
| 360 | mut opening: SetCommitmentOpening<E>, |
| 361 | randomness: E::ScalarField, |
| 362 | ) -> (Self, SetCommitmentOpening<E>) { |
| 363 | self.0 = self.0.mul_bigint(randomness.into_bigint()).into_affine(); |
| 364 | opening.randomize(randomness); |
| 365 | (self, opening) |
| 366 | } |
| 367 | |
| 368 | /// Create a KZG polynomial commitment to the set in group G1 |
| 369 | fn commit_in_P1( |