diff options
author | Özgür Kesim <oec@codeblau.de> | 2024-11-14 21:54:14 +0100 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2024-11-14 21:54:14 +0100 |
commit | 53b2c23ec4d2260c930d6403b04a6564c0a36245 (patch) | |
tree | 04132e1b220877aafd37a600ea92bd0f1d132106 /nizk/stage2.go | |
parent | 38ab8f84c71ef2448fbbd10652fd4068cfbc3a31 (diff) |
stage2: fix logic error for lost case
Diffstat (limited to 'nizk/stage2.go')
-rw-r--r-- | nizk/stage2.go | 2 |
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]) |