mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 04:08:01 -05:00
* wizard runtime perf monitor * ring-sis before revert * sanity check successful * rm test config file
19 lines
520 B
Cheetah
19 lines
520 B
Cheetah
package ringsis_{{.ModulusDegree}}_{{.LogTwoBound}}
|
|
|
|
import (
|
|
"github.com/consensys/linea-monorepo/prover/maths/field"
|
|
)
|
|
|
|
{{- $bitPerField := 256}}
|
|
{{- $limbPerField := div $bitPerField .LogTwoBound}}
|
|
{{- $fieldPerPoly := div .ModulusDegree $limbPerField}}
|
|
{{- $numMask := pow 2 $fieldPerPoly}}
|
|
|
|
var partialFFT = []func(a, twiddles []field.Element){
|
|
{{- range $i := iterate 0 $numMask}}
|
|
partialFFT_{{$i}},
|
|
{{- end}}
|
|
}
|
|
{{range $mask := iterate 0 $numMask}}
|
|
{{partialFFT $.ModulusDegree $fieldPerPoly $mask}}
|
|
{{- end}} |