diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-11-15 16:13:14 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-11-15 16:13:14 +0100 |
commit | 0eab6394734540c31dad54ecfc691b790ea4550c (patch) | |
tree | 36ae0e23508639bf3ec27b5b6a9d968d2a0ff8fd /nizk/stage1.go | |
parent | 77a567048b4d820e22c0a3653d9f82fb96598738 (diff) |
example from paper runs as test
Diffstat (limited to 'nizk/stage1.go')
-rw-r--r-- | nizk/stage1.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nizk/stage1.go b/nizk/stage1.go index 453d683..e7ed44d 100644 --- a/nizk/stage1.go +++ b/nizk/stage1.go @@ -10,6 +10,7 @@ type Stage struct { *StageCommitment *StageReveal + Sent bool } type StageCommitment struct { @@ -94,6 +95,7 @@ func (b *Bit) reveal(prev_true bool, Xs ...*Point) (r *StageReveal) { if prev_true && b.IsSet() { r.Z = s.R.Exp(s.x) + s.Sent = true } else { r.Z = Y.Exp(s.x) } |