diff --git a/parsers/parsers.go b/parsers/parsers.go index f5ec269..ab33ce0 100644 --- a/parsers/parsers.go +++ b/parsers/parsers.go @@ -34,7 +34,6 @@ type PkString struct { DomainSize int `json:"domainSize"` PolsA []map[string]string `json:"polsA"` PolsB []map[string]string `json:"polsB"` - PolsC []map[string]string `json:"polsC"` } // WitnessString contains the Witness in string representation @@ -149,10 +148,6 @@ func pkStringToPk(ps PkString) (*types.Pk, error) { if err != nil { return nil, err } - p.PolsC, err = polsStringToBigInt(ps.PolsC) - if err != nil { - return nil, err - } return &p, nil } diff --git a/prover/prover.go b/prover/prover.go index 67a401e..d208903 100644 --- a/prover/prover.go +++ b/prover/prover.go @@ -13,36 +13,6 @@ import ( //"fmt" ) -// Proof is the data structure of the Groth16 zkSNARK proof -type Proof struct { - A *bn256.G1 - B *bn256.G2 - C *bn256.G1 -} - -// Pk holds the data structure of the ProvingKey -type Pk struct { - A []*bn256.G1 - B2 []*bn256.G2 - B1 []*bn256.G1 - C []*bn256.G1 - NVars int - NPublic int - VkAlpha1 *bn256.G1 - VkDelta1 *bn256.G1 - VkBeta1 *bn256.G1 - VkBeta2 *bn256.G2 - VkDelta2 *bn256.G2 - HExps []*bn256.G1 - DomainSize int - PolsA []map[int]*big.Int - PolsB []map[int]*big.Int - PolsC []map[int]*big.Int -} - -// Witness contains the witness -type Witness []*big.Int - // Group Size const ( GSIZE = 6 diff --git a/types/types.go b/types/types.go index 2718a22..c28c81f 100644 --- a/types/types.go +++ b/types/types.go @@ -83,7 +83,6 @@ type Pk struct { DomainSize int PolsA []map[int]*big.Int PolsB []map[int]*big.Int - PolsC []map[int]*big.Int } // Witness contains the witness