aboutsummaryrefslogtreecommitdiff
path: root/nizk/stage1/stage1.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2024-04-09 19:21:24 +0200
committerÖzgür Kesim <oec@codeblau.de>2024-04-09 19:21:24 +0200
commitf28109fc32c9068cf57619ccd7ee05a8da8e5d24 (patch)
tree80e75d0be59f8fbdee8d1487c4cfb61bc1b0eae7 /nizk/stage1/stage1.go
parent03d3f676c36ccd36bb201d317bd2350ada6ba451 (diff)
nizk: use Bytes interface for abstraction
Diffstat (limited to 'nizk/stage1/stage1.go')
-rw-r--r--nizk/stage1/stage1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/nizk/stage1/stage1.go b/nizk/stage1/stage1.go
index bb493a7..0bd3e29 100644
--- a/nizk/stage1/stage1.go
+++ b/nizk/stage1/stage1.go
@@ -98,7 +98,7 @@ func (s *Statement) Proof() *Proof {
ε[1][3] = s.B.Exp(ρ2).Mul(s.C.Div(G).Exp(ω))
}
- p := []*Point{G, s.A, s.B, s.C, s.R, s.X, s.Y, s.Z}
+ p := []Bytes{G, s.A, s.B, s.C, s.R, s.X, s.Y, s.Z}
for _, e := range ε[0] {
p = append(p, e)
}
@@ -140,7 +140,7 @@ func (c *Commitment) Verify(p *Proof) bool {
ε[1][2] = c.R.Exp(p.Rho[1][0]).Mul(c.Z.Exp(p.Ch[1]))
ε[1][3] = c.B.Exp(p.Rho[1][1]).Mul(c.C.Div(G).Exp(p.Ch[1]))
- points := []*Point{G, c.A, c.B, c.C, c.R, c.X, c.Y, c.Z}
+ points := []Bytes{G, c.A, c.B, c.C, c.R, c.X, c.Y, c.Z}
for _, e := range ε[0] {
points = append(points, e)
}