File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 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 `
You can’t perform that action at this time.
0 commit comments