mirror of
https://github.com/arnaucube/gnark-plonky2-verifier.git
synced 2026-01-12 17:11:31 +01:00
Rename back
This commit is contained in:
@@ -16,7 +16,7 @@ type Proof struct {
|
||||
|
||||
type ProofWithPublicInputs struct {
|
||||
Proof Proof
|
||||
PublicInputs []gl.GoldilocksVariable // Length = CommonCircuitData.NumPublicInputs
|
||||
PublicInputs []gl.Variable // Length = CommonCircuitData.NumPublicInputs
|
||||
}
|
||||
|
||||
type VerifierOnlyCircuitData struct {
|
||||
@@ -46,6 +46,6 @@ type CommonCircuitData struct {
|
||||
NumGateConstraints uint64
|
||||
NumConstants uint64
|
||||
NumPublicInputs uint64
|
||||
KIs []gl.GoldilocksVariable
|
||||
KIs []gl.Variable
|
||||
NumPartialProducts uint64
|
||||
}
|
||||
|
||||
10
types/fri.go
10
types/fri.go
@@ -47,11 +47,11 @@ func NewFriMerkleProof(merkleProofLen uint64) FriMerkleProof {
|
||||
}
|
||||
|
||||
type FriEvalProof struct {
|
||||
Elements []gl.GoldilocksVariable // Length = [CommonCircuitData.Constants + CommonCircuitData.NumRoutedWires, CommonCircuitData.NumWires + CommonCircuitData.FriParams.Hiding ? 4 : 0, CommonCircuitData.NumChallenges * (1 + CommonCircuitData.NumPartialProducts) + salt, CommonCircuitData.NumChallenges * CommonCircuitData.QuotientDegreeFactor + salt]
|
||||
Elements []gl.Variable // Length = [CommonCircuitData.Constants + CommonCircuitData.NumRoutedWires, CommonCircuitData.NumWires + CommonCircuitData.FriParams.Hiding ? 4 : 0, CommonCircuitData.NumChallenges * (1 + CommonCircuitData.NumPartialProducts) + salt, CommonCircuitData.NumChallenges * CommonCircuitData.QuotientDegreeFactor + salt]
|
||||
MerkleProof FriMerkleProof
|
||||
}
|
||||
|
||||
func NewFriEvalProof(elements []gl.GoldilocksVariable, merkleProof FriMerkleProof) FriEvalProof {
|
||||
func NewFriEvalProof(elements []gl.Variable, merkleProof FriMerkleProof) FriEvalProof {
|
||||
return FriEvalProof{Elements: elements, MerkleProof: merkleProof}
|
||||
}
|
||||
|
||||
@@ -88,12 +88,12 @@ type FriProof struct {
|
||||
CommitPhaseMerkleCaps []FriMerkleCap // Length = Len(CommonCircuitData.FriParams.ReductionArityBits)
|
||||
QueryRoundProofs []FriQueryRound // Length = CommonCircuitData.FriConfig.FriParams.NumQueryRounds
|
||||
FinalPoly PolynomialCoeffs
|
||||
PowWitness gl.GoldilocksVariable
|
||||
PowWitness gl.Variable
|
||||
}
|
||||
|
||||
type FriChallenges struct {
|
||||
FriAlpha gl.QuadraticExtensionVariable
|
||||
FriBetas []gl.QuadraticExtensionVariable
|
||||
FriPowResponse gl.GoldilocksVariable
|
||||
FriQueryIndices []gl.GoldilocksVariable
|
||||
FriPowResponse gl.Variable
|
||||
FriQueryIndices []gl.Variable
|
||||
}
|
||||
|
||||
@@ -25,9 +25,9 @@ func NewOpeningSet(numConstants uint64, numRoutedWires uint64, numWires uint64,
|
||||
}
|
||||
|
||||
type ProofChallenges struct {
|
||||
PlonkBetas []gl.GoldilocksVariable
|
||||
PlonkGammas []gl.GoldilocksVariable
|
||||
PlonkAlphas []gl.GoldilocksVariable
|
||||
PlonkBetas []gl.Variable
|
||||
PlonkGammas []gl.Variable
|
||||
PlonkAlphas []gl.Variable
|
||||
PlonkZeta gl.QuadraticExtensionVariable
|
||||
FriChallenges FriChallenges
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user