aboutsummaryrefslogtreecommitdiff
path: root/nizk
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-11-17 21:39:37 +0100
committerÖzgür Kesim <oec@kesim.org>2024-11-17 21:39:37 +0100
commit79c40263d58b82d348aa548564e7681f0b51424a (patch)
treed2a9547a2b9f9df5d436c0495b17cf3984fdbfd4 /nizk
parentdd65b09c996523346de8ca61bcfd309e4d9f16d1 (diff)
allow up to 32 bit encoding
Diffstat (limited to 'nizk')
-rw-r--r--nizk/commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/nizk/commit.go b/nizk/commit.go
index 27e31f7..b68c0f4 100644
--- a/nizk/commit.go
+++ b/nizk/commit.go
@@ -56,7 +56,7 @@ func NewBitFromScalars(id Bytes, set bool, α, β *Scalar) *Bit {
}
func Int2Bits(id Bytes, val int, bitlength int) []*Bit {
- if bitlength < 0 || bitlength > 24 {
+ if bitlength < 0 || bitlength > 32 {
return nil
}