aboutsummaryrefslogtreecommitdiff
path: root/nizk/stage2.go
diff options
context:
space:
mode:
Diffstat (limited to 'nizk/stage2.go')
-rw-r--r--nizk/stage2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nizk/stage2.go b/nizk/stage2.go
index f38475d..8cda33e 100644
--- a/nizk/stage2.go
+++ b/nizk/stage2.go
@@ -128,7 +128,7 @@ func (b *Bit) RevealStage2(lost bool, prev *Bit, Xs ...*Point) (rv2 *StageReveal
ch := Challenge(points...)
pr = &Stage2Proof{}
- if !prev.IsSet() {
+ if lost {
pr.Ch[0] = ω[0]
pr.Ch[1] = ω[1]
pr.Ch[2] = ch.Sub(ω[0]).Sub(ω[1])