mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
13 lines
191 B
Go
13 lines
191 B
Go
package bls12381
|
|
|
|
import (
|
|
"math/big"
|
|
)
|
|
|
|
func bigFromHex(hex string) *big.Int {
|
|
if len(hex) > 1 && hex[:2] == "0x" {
|
|
hex = hex[2:]
|
|
}
|
|
n, _ := new(big.Int).SetString(hex, 16)
|
|
return n
|
|
}
|