Skip to content

Commit 0740189

Browse files
authored
Delete g2_lincomb in poly-commits-sampling spec (#3913)
1 parent 5111cbf commit 0740189

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

specs/_features/eip7594/polynomial-commitments-sampling.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
- [BLS12-381 helpers](#bls12-381-helpers)
1616
- [`cell_to_coset_evals`](#cell_to_coset_evals)
1717
- [`coset_evals_to_cell`](#coset_evals_to_cell)
18-
- [Linear combinations](#linear-combinations)
19-
- [`g2_lincomb`](#g2_lincomb)
2018
- [FFTs](#ffts)
2119
- [`_fft_field`](#_fft_field)
2220
- [`fft_field`](#fft_field)
@@ -125,28 +123,6 @@ def coset_evals_to_cell(coset_evals: CosetEvals) -> Cell:
125123
return Cell(cell)
126124
```
127125

128-
### Linear combinations
129-
130-
#### `g2_lincomb`
131-
132-
```python
133-
def g2_lincomb(points: Sequence[G2Point], scalars: Sequence[BLSFieldElement]) -> Bytes96:
134-
"""
135-
BLS multiscalar multiplication in G2. This can be naively implemented using double-and-add.
136-
"""
137-
assert len(points) == len(scalars)
138-
139-
if len(points) == 0:
140-
return bls.G2_to_bytes96(bls.Z2())
141-
142-
points_g2 = []
143-
for point in points:
144-
points_g2.append(bls.bytes96_to_G2(point))
145-
146-
result = bls.multi_exp(points_g2, scalars)
147-
return Bytes96(bls.G2_to_bytes96(result))
148-
```
149-
150126
### FFTs
151127

152128
#### `_fft_field`

0 commit comments

Comments
 (0)