gnark-plonky2-verifier/sha512/utils.go
sha512/utils.goRaw
1package sha512
2
3import ("math/big")
4
5func newBigInt(s string) *big.Int {
6 result, success := new(big.Int).SetString(s, 16)
7 if !success {
8 panic("invalid bigint")
9 }
10 return result
11}
12
13func newBigIntBase10(s string) *big.Int {
14 result, success := new(big.Int).SetString(s, 10)
15 if !success {
16 panic("invalid bigint")
17 }
18 return result
19}