From 170671bde849586a50109f35f33c76d90e023126 Mon Sep 17 00:00:00 2001 From: Gautam Botrel Date: Fri, 25 Mar 2022 16:26:11 -0500 Subject: [PATCH] style: code cleaning --- internal/backend/bls12-377/plonk/verify.go | 6 ------ internal/backend/bls12-381/plonk/verify.go | 6 ------ internal/backend/bls24-315/plonk/verify.go | 6 ------ internal/backend/bn254/plonk/verify.go | 6 ------ internal/backend/bw6-633/plonk/verify.go | 6 ------ internal/backend/bw6-761/plonk/verify.go | 6 ------ .../backend/template/zkpschemes/plonk/plonk.verify.go.tmpl | 6 ------ 7 files changed, 42 deletions(-) diff --git a/internal/backend/bls12-377/plonk/verify.go b/internal/backend/bls12-377/plonk/verify.go index b870275384..0c676ee4d9 100644 --- a/internal/backend/bls12-377/plonk/verify.go +++ b/internal/backend/bls12-377/plonk/verify.go @@ -62,12 +62,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness bls12_377witness.Witne var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil { diff --git a/internal/backend/bls12-381/plonk/verify.go b/internal/backend/bls12-381/plonk/verify.go index 75eac3139b..3f83e026ee 100644 --- a/internal/backend/bls12-381/plonk/verify.go +++ b/internal/backend/bls12-381/plonk/verify.go @@ -62,12 +62,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness bls12_381witness.Witne var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil { diff --git a/internal/backend/bls24-315/plonk/verify.go b/internal/backend/bls24-315/plonk/verify.go index 74000b5210..93a3885904 100644 --- a/internal/backend/bls24-315/plonk/verify.go +++ b/internal/backend/bls24-315/plonk/verify.go @@ -62,12 +62,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness bls24_315witness.Witne var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil { diff --git a/internal/backend/bn254/plonk/verify.go b/internal/backend/bn254/plonk/verify.go index c3ebb39fb5..b8ebac4494 100644 --- a/internal/backend/bn254/plonk/verify.go +++ b/internal/backend/bn254/plonk/verify.go @@ -62,12 +62,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness bn254witness.Witness) var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil { diff --git a/internal/backend/bw6-633/plonk/verify.go b/internal/backend/bw6-633/plonk/verify.go index 2287cf75cd..4d8de053fa 100644 --- a/internal/backend/bw6-633/plonk/verify.go +++ b/internal/backend/bw6-633/plonk/verify.go @@ -62,12 +62,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness bw6_633witness.Witness var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil { diff --git a/internal/backend/bw6-761/plonk/verify.go b/internal/backend/bw6-761/plonk/verify.go index 403f031607..2c7a2d84bf 100644 --- a/internal/backend/bw6-761/plonk/verify.go +++ b/internal/backend/bw6-761/plonk/verify.go @@ -62,12 +62,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness bw6_761witness.Witness var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil { diff --git a/internal/generator/backend/template/zkpschemes/plonk/plonk.verify.go.tmpl b/internal/generator/backend/template/zkpschemes/plonk/plonk.verify.go.tmpl index 7d896107bb..4e302f8b8a 100644 --- a/internal/generator/backend/template/zkpschemes/plonk/plonk.verify.go.tmpl +++ b/internal/generator/backend/template/zkpschemes/plonk/plonk.verify.go.tmpl @@ -41,12 +41,6 @@ func Verify(proof *Proof, vk *VerifyingKey, publicWitness {{ toLower .CurveID }} var gamma fr.Element gamma.SetBytes(bgamma) - // derive gamma from Comm(l), Comm(r), Comm(o) - // gamma, err := deriveRandomness(&fs, "gamma", &proof.LRO[0], &proof.LRO[1], &proof.LRO[2]) - // if err != nil { - // return err - // } - // derive beta from Comm(l), Comm(r), Comm(o) beta, err := deriveRandomness(&fs, "beta") if err != nil {