File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ import "github.com/blang/semver/v4"
20
20
21
21
// right now it has to be manually changed
22
22
// do we need to include git commitsha??
23
- var Version = semver .MustParse ("3.5.3-117 .DEROHE.STARGATE+18032023 " )
23
+ var Version = semver .MustParse ("3.5.3-140 .DEROHE.STARGATE+13062023 " )
Original file line number Diff line number Diff line change 16
16
17
17
package crypto
18
18
19
- import "bytes"
20
- import "encoding/binary"
21
- import "math/big"
22
- import "github.com/deroproject/derohe/cryptography/bn256"
23
- import "github.com/deroproject/graviton"
19
+ import (
20
+ "bytes"
21
+ "encoding/binary"
22
+ "fmt"
23
+ "math/big"
24
+
25
+ "github.com/deroproject/derohe/cryptography/bn256"
26
+ "github.com/deroproject/graviton"
27
+ )
24
28
25
29
type Statement struct {
26
30
RingSize uint64
@@ -98,6 +102,9 @@ func (s *Statement) Deserialize(r *bytes.Reader) error {
98
102
return err
99
103
}
100
104
s .RingSize = 1 << length
105
+ if s .RingSize > 128 {
106
+ return fmt .Errorf ("ring size is too large" )
107
+ }
101
108
102
109
s .Bytes_per_publickey , err = r .ReadByte ()
103
110
if err != nil {
@@ -223,3 +230,4 @@ type Proof struct {
223
230
//ip *InnerProduct
224
231
}
225
232
*/
233
+
You can’t perform that action at this time.
0 commit comments