Documentation ¶
Index ¶
- Variables
- func Copy(i *big.Int) *big.Int
- func DecodeString(base int, s string) ([]byte, error)
- func Div(a, b *big.Int) *big.Int
- func EncodeToString(base int, s []byte) (string, error)
- func HexToInt(hexNumStr string) *big.Int
- func Int64Mod(x, y int64) int64
- func IntToBaseXString(baseX, val int) string
- func IntToHex(n *big.Int) string
- func IsEqual(a, b *big.Int) bool
- func Mod(a, n *big.Int) *big.Int
- func MustEncodeToString(base int, s []byte) string
- func NewIntString(val string) *big.Int
- func NewIntUint64(val uint64) *big.Int
- func Pow(x *big.Int, y *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBaseInvalid = errors.New("invalid base - must be between [2,62]")
Functions ¶
func EncodeToString ¶ added in v0.42.0
EncodeToString uses [0-9a-zA-Z] for base62.
func IntToBaseXString ¶
func MustEncodeToString ¶ added in v0.42.0
MustEncodeToString uses [0-9a-zA-Z] for base62.
func NewIntString ¶
NewIntString creates a new `*big.Int` from an uint64.
func NewIntUint64 ¶
NewIntUint64 creates a new `*big.Int` from an uint64.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.