Versions in this module Expand all Collapse all v1 v1.0.0 Jun 16, 2022 Changes in this version + var ErrBig256Range = errors.New("hex number > 256 bits") + var ErrEmptyNumber = errors.New("hex string \"0x\"") + var ErrEmptyString = errors.New("empty hex string") + var ErrLeadingZero = errors.New("hex number with leading zero digits") + var ErrMissingPrefix = errors.New("hex string without 0x prefix") + var ErrNonString = errors.New("non-string") + var ErrSyntax = errors.New("invalid hex string") + func Reciprocal(m *Int) (mu [5]uint64) + type Int [4]uint64 + func FromBig(b *big.Int) (*Int, bool) + func FromHex(hex string) (*Int, error) + func NewInt(val uint64) *Int + func (z *Int) Abs(x *Int) *Int + func (z *Int) Add(x, y *Int) *Int + func (z *Int) AddMod(x, y, m *Int) *Int + func (z *Int) AddOverflow(x, y *Int) (*Int, bool) + func (z *Int) AddUint64(x *Int, y uint64) *Int + func (z *Int) And(x, y *Int) *Int + func (z *Int) BitLen() int + func (z *Int) Byte(n *Int) *Int + func (z *Int) ByteLen() int + func (z *Int) Bytes() []byte + func (z *Int) Bytes20() [20]byte + func (z *Int) Bytes22() [22]byte + func (z *Int) Bytes32() [32]byte + func (z *Int) Clear() *Int + func (z *Int) Clone() *Int + func (z *Int) Cmp(x *Int) (r int) + func (z *Int) Div(x, y *Int) *Int + func (z *Int) DivMod(x, y, m *Int) (*Int, *Int) + func (z *Int) EncodeRLP(w io.Writer) error + func (z *Int) Eq(x *Int) bool + func (z *Int) Exp(base, exponent *Int) *Int + func (z *Int) ExtendSign(x, byteNum *Int) *Int + func (z *Int) Format(s fmt.State, ch rune) + func (z *Int) Gt(x *Int) bool + func (z *Int) GtUint64(n uint64) bool + func (z *Int) Hex() string + func (z *Int) IsUint64() bool + func (z *Int) IsZero() bool + func (z *Int) Lsh(x *Int, n uint) *Int + func (z *Int) Lt(x *Int) bool + func (z *Int) LtUint64(n uint64) bool + func (z *Int) MarshalText() ([]byte, error) + func (z *Int) Mod(x, y *Int) *Int + func (z *Int) Mul(x, y *Int) *Int + func (z *Int) MulDivOverflow(x, y, d *Int) (*Int, bool) + func (z *Int) MulMod(x, y, m *Int) *Int + func (z *Int) MulModWithReciprocal(x, y, m *Int, mu *[5]uint64) *Int + func (z *Int) MulOverflow(x, y *Int) (*Int, bool) + func (z *Int) Neg(x *Int) *Int + func (z *Int) Not(x *Int) *Int + func (z *Int) Or(x, y *Int) *Int + func (z *Int) PaddedBytes(n int) []byte + func (z *Int) Rsh(x *Int, n uint) *Int + func (z *Int) SDiv(n, d *Int) *Int + func (z *Int) SMod(x, y *Int) *Int + func (z *Int) SRsh(x *Int, n uint) *Int + func (z *Int) Set(x *Int) *Int + func (z *Int) SetAllOne() *Int + func (z *Int) SetBytes(buf []byte) *Int + func (z *Int) SetBytes1(in []byte) *Int + func (z *Int) SetBytes10(in []byte) *Int + func (z *Int) SetBytes11(in []byte) *Int + func (z *Int) SetBytes12(in []byte) *Int + func (z *Int) SetBytes13(in []byte) *Int + func (z *Int) SetBytes14(in []byte) *Int + func (z *Int) SetBytes15(in []byte) *Int + func (z *Int) SetBytes16(in []byte) *Int + func (z *Int) SetBytes17(in []byte) *Int + func (z *Int) SetBytes18(in []byte) *Int + func (z *Int) SetBytes19(in []byte) *Int + func (z *Int) SetBytes2(in []byte) *Int + func (z *Int) SetBytes20(in []byte) *Int + func (z *Int) SetBytes21(in []byte) *Int + func (z *Int) SetBytes22(in []byte) *Int + func (z *Int) SetBytes23(in []byte) *Int + func (z *Int) SetBytes24(in []byte) *Int + func (z *Int) SetBytes25(in []byte) *Int + func (z *Int) SetBytes26(in []byte) *Int + func (z *Int) SetBytes27(in []byte) *Int + func (z *Int) SetBytes28(in []byte) *Int + func (z *Int) SetBytes29(in []byte) *Int + func (z *Int) SetBytes3(in []byte) *Int + func (z *Int) SetBytes30(in []byte) *Int + func (z *Int) SetBytes31(in []byte) *Int + func (z *Int) SetBytes32(in []byte) *Int + func (z *Int) SetBytes4(in []byte) *Int + func (z *Int) SetBytes5(in []byte) *Int + func (z *Int) SetBytes6(in []byte) *Int + func (z *Int) SetBytes7(in []byte) *Int + func (z *Int) SetBytes8(in []byte) *Int + func (z *Int) SetBytes9(in []byte) *Int + func (z *Int) SetFromBig(b *big.Int) bool + func (z *Int) SetOne() *Int + func (z *Int) SetUint64(x uint64) *Int + func (z *Int) Sgt(x *Int) bool + func (z *Int) Sign() int + func (z *Int) Slt(x *Int) bool + func (z *Int) Sqrt(x *Int) *Int + func (z *Int) String() string + func (z *Int) Sub(x, y *Int) *Int + func (z *Int) SubOverflow(x, y *Int) (*Int, bool) + func (z *Int) SubUint64(x *Int, y uint64) *Int + func (z *Int) ToBig() *big.Int + func (z *Int) Uint64() uint64 + func (z *Int) Uint64WithOverflow() (uint64, bool) + func (z *Int) UnmarshalJSON(input []byte) error + func (z *Int) UnmarshalText(input []byte) error + func (z *Int) WriteToArray20(dest *[20]byte) + func (z *Int) WriteToArray32(dest *[32]byte) + func (z *Int) WriteToSlice(dest []byte) + func (z *Int) Xor(x, y *Int) *Int