mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-06 07:03:07 +00:00
* helper functions for coset_interpolation_gate * coset interpolation gate working * hard coded the coset gate (for now) * refactored gate serialization
29 lines
511 B
Go
29 lines
511 B
Go
package plonky2_verifier
|
|
|
|
import (
|
|
. "gnark-plonky2-verifier/field"
|
|
"regexp"
|
|
)
|
|
|
|
var noopGateRegex = regexp.MustCompile("NoopGate")
|
|
|
|
func deserializeNoopGate(parameters map[string]string) gate {
|
|
// Has the format "NoopGate"
|
|
return NewNoopGate()
|
|
}
|
|
|
|
type NoopGate struct {
|
|
}
|
|
|
|
func NewNoopGate() *NoopGate {
|
|
return &NoopGate{}
|
|
}
|
|
|
|
func (g *NoopGate) Id() string {
|
|
return "NoopGate"
|
|
}
|
|
|
|
func (g *NoopGate) EvalUnfiltered(p *PlonkChip, vars EvaluationVars) []QuadraticExtension {
|
|
return []QuadraticExtension{}
|
|
}
|