mirror of
https://github.com/arnaucube/gnark-plonky2-verifier.git
synced 2026-01-12 09:01:32 +01:00
added plonky2_verifier_benchmark
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
)
|
||||
|
||||
type ChallengerChip struct {
|
||||
api frontend.API
|
||||
field frontend.API
|
||||
api frontend.API `gnark:"-"`
|
||||
field frontend.API `gnark:"-"`
|
||||
poseidonChip *poseidon.PoseidonChip
|
||||
spongeState [poseidon.SPONGE_WIDTH]F
|
||||
inputBuffer []F
|
||||
@@ -21,6 +21,11 @@ func NewChallengerChip(api frontend.API, field frontend.API, poseidonChip *posei
|
||||
var spongeState [poseidon.SPONGE_WIDTH]F
|
||||
var inputBuffer []F
|
||||
var outputBuffer []F
|
||||
|
||||
for i := 0; i < poseidon.SPONGE_WIDTH; i++ {
|
||||
spongeState[i] = ZERO_F
|
||||
}
|
||||
|
||||
return &ChallengerChip{
|
||||
api: api,
|
||||
field: field,
|
||||
|
||||
@@ -14,15 +14,15 @@ import (
|
||||
)
|
||||
|
||||
type FriChip struct {
|
||||
api frontend.API
|
||||
fieldAPI frontend.API
|
||||
qeAPI *QuadraticExtensionAPI
|
||||
hashAPI *HashAPI
|
||||
api frontend.API `gnark:"-"`
|
||||
fieldAPI frontend.API `gnark:"-"`
|
||||
qeAPI *QuadraticExtensionAPI `gnark:"-"`
|
||||
hashAPI *HashAPI `gnark:"-"`
|
||||
|
||||
poseidonChip *poseidon.PoseidonChip
|
||||
|
||||
friParams *FriParams
|
||||
verifierOnlyCircuitData *VerifierOnlyCircuitData
|
||||
friParams *FriParams `gnark:"-"`
|
||||
verifierOnlyCircuitData *VerifierOnlyCircuitData `gnark:"-"`
|
||||
}
|
||||
|
||||
func NewFriChip(
|
||||
|
||||
@@ -32,14 +32,14 @@ var QUOTIENT = PlonkOracle{
|
||||
}
|
||||
|
||||
type PlonkChip struct {
|
||||
api frontend.API
|
||||
qeAPI *QuadraticExtensionAPI
|
||||
api frontend.API `gnark:"-"`
|
||||
qeAPI *QuadraticExtensionAPI `gnark:"-"`
|
||||
|
||||
commonData CommonCircuitData
|
||||
commonData CommonCircuitData `gnark:"-"`
|
||||
|
||||
DEGREE F
|
||||
DEGREE_BITS_F F
|
||||
DEGREE_QE QuadraticExtension
|
||||
DEGREE F `gnark:"-"`
|
||||
DEGREE_BITS_F F `gnark:"-"`
|
||||
DEGREE_QE QuadraticExtension `gnark:"-"`
|
||||
}
|
||||
|
||||
func NewPlonkChip(api frontend.API, qeAPI *QuadraticExtensionAPI, commonData CommonCircuitData) *PlonkChip {
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
)
|
||||
|
||||
type VerifierChip struct {
|
||||
api frontend.API
|
||||
fieldAPI frontend.API
|
||||
qeAPI *QuadraticExtensionAPI
|
||||
api frontend.API `gnark:"-"`
|
||||
fieldAPI frontend.API `gnark:"-"`
|
||||
qeAPI *QuadraticExtensionAPI `gnark:"-"`
|
||||
poseidonChip *poseidon.PoseidonChip
|
||||
plonkChip *PlonkChip
|
||||
friChip *FriChip
|
||||
|
||||
Reference in New Issue
Block a user