aboutsummaryrefslogtreecommitdiff
path: root/nizk/schnorr/schnorr.go
diff options
context:
space:
mode:
Diffstat (limited to 'nizk/schnorr/schnorr.go')
-rw-r--r--nizk/schnorr/schnorr.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/nizk/schnorr/schnorr.go b/nizk/schnorr/schnorr.go
index 258473c..124155a 100644
--- a/nizk/schnorr/schnorr.go
+++ b/nizk/schnorr/schnorr.go
@@ -10,7 +10,7 @@ type Statement Scalar
type Commitment Point
-// A Schnorr signature to prove knowledge of v for given g^v and i.
+// A Schnorr signature to prove knowledge of v for given g^v.
// Choosing a scalar v randomly, the signature consists of (V, r) with
//
// V := g^v, with randomly chosen v
@@ -31,7 +31,7 @@ type Proof struct {
// r := (v - x*h), with h := H(g, g^v, g^x, i), where i is given by the context.
//
// Verification of the signature is by comparing V =?= g^r * g^(x*h)
-func (s *Statement) Proof(id *Point) (pr *Proof) {
+func (s *Statement) Proof(id Bytes) (pr *Proof) {
x := (*Scalar)(s)
// choose random v
@@ -57,7 +57,7 @@ func (s *Statement) Proof(id *Point) (pr *Proof) {
}
// Verifies that g^v == g^r*g^(x*h)
-func (c *Commitment) Verify(p *Proof, id *Point) bool {
+func (c *Commitment) Verify(p *Proof, id Bytes) bool {
Gx := (*Point)(c)
// Calculate h = H(g, g^v, g^x, id)