aboutsummaryrefslogtreecommitdiff
path: root/nizk/stage1.go
diff options
context:
space:
mode:
Diffstat (limited to 'nizk/stage1.go')
-rw-r--r--nizk/stage1.go2
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)
}