@@ -928,6 +928,15 @@ func (agg *P2Aggregate) Aggregate(elmts []*P2Affine,
928
928
return agg .coreAggregate (getter , groupcheck , len (elmts ))
929
929
}
930
930
931
+ func (agg * P2Aggregate ) AggregateWithRandomness (pointsIf interface {},
932
+ scalarsIf interface {}, nbits int , groupcheck bool ) bool {
933
+ if groupcheck && ! P2AffinesValidate (pointsIf ) {
934
+ return false
935
+ }
936
+ agg .v = P2AffinesMult (pointsIf , scalarsIf , nbits )
937
+ return true
938
+ }
939
+
931
940
// Aggregate compressed elements
932
941
func (agg * P2Aggregate ) AggregateCompressed (elmts [][]byte ,
933
942
groupcheck bool ) bool {
@@ -1519,6 +1528,15 @@ func (agg *P1Aggregate) Aggregate(elmts []*P1Affine,
1519
1528
return agg .coreAggregate (getter , groupcheck , len (elmts ))
1520
1529
}
1521
1530
1531
+ func (agg * P1Aggregate ) AggregateWithRandomness (pointsIf interface {},
1532
+ scalarsIf interface {}, nbits int , groupcheck bool ) bool {
1533
+ if groupcheck && ! P1AffinesValidate (pointsIf ) {
1534
+ return false
1535
+ }
1536
+ agg .v = P1AffinesMult (pointsIf , scalarsIf , nbits )
1537
+ return true
1538
+ }
1539
+
1522
1540
// Aggregate compressed elements
1523
1541
func (agg * P1Aggregate ) AggregateCompressed (elmts [][]byte ,
1524
1542
groupcheck bool ) bool {
0 commit comments