2023-10-11 18:02:46 -07:00
|
|
|
package variables
|
|
|
|
|
|
|
|
|
|
import (
|
2025-05-27 10:51:28 +02:00
|
|
|
gl "github.com/codex-storage/gnark-plonky2-verifier/goldilocks"
|
|
|
|
|
"github.com/codex-storage/gnark-plonky2-verifier/poseidon"
|
2023-10-11 18:02:46 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Proof struct {
|
|
|
|
|
WiresCap FriMerkleCap // length = 2^CircuitConfig.FriConfig.CapHeight
|
|
|
|
|
PlonkZsPartialProductsCap FriMerkleCap // length = 2^CircuitConfig.FriConfig.CapHeight
|
|
|
|
|
QuotientPolysCap FriMerkleCap // length = 2^CircuitConfig.FriConfig.CapHeight
|
|
|
|
|
Openings OpeningSet
|
|
|
|
|
OpeningProof FriProof
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ProofWithPublicInputs struct {
|
|
|
|
|
Proof Proof
|
|
|
|
|
PublicInputs []gl.Variable // Length = CommonCircuitData.NumPublicInputs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type VerifierOnlyCircuitData struct {
|
|
|
|
|
ConstantSigmasCap FriMerkleCap
|
|
|
|
|
CircuitDigest poseidon.BN254HashOut
|
|
|
|
|
}
|