mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-25 00:03:12 +00:00
19 lines
337 B
Go
19 lines
337 B
Go
package sha512
|
|
|
|
import ("math/big")
|
|
|
|
func newBigInt(s string) *big.Int {
|
|
result, success := new(big.Int).SetString(s, 16)
|
|
if !success {
|
|
panic("invalid bigint")
|
|
}
|
|
return result
|
|
}
|
|
|
|
func newBigIntBase10(s string) *big.Int {
|
|
result, success := new(big.Int).SetString(s, 10)
|
|
if !success {
|
|
panic("invalid bigint")
|
|
}
|
|
return result
|
|
} |