MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid.
(s string)
| 94 | |
| 95 | // MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid. |
| 96 | func MustParseBig256(s string) *big.Int { |
| 97 | v, ok := ParseBig256(s) |
| 98 | if !ok { |
| 99 | panic("invalid 256 bit integer: " + s) |
| 100 | } |
| 101 | return v |
| 102 | } |
| 103 | |
| 104 | // BigPow returns a ** b as a big integer. |
| 105 | func BigPow(a, b int64) *big.Int { |