Versions in this module Expand all Collapse all v0 v0.1.0 May 8, 2018 Changes in this version + const AddressLength + const DefaultHTTPHost + const DefaultHTTPPort + const DefaultIPCSocket + const DefaultWSHost + const DefaultWSPort + const HashLength + var Ada = BigPow(10, 3) + var Babbage = BigPow(10, 6) + var Big0 = big.NewInt(0) + var Big1 = big.NewInt(1) + var Big2 = big.NewInt(2) + var Big256 = big.NewInt(0xff) + var Big257 = big.NewInt(257) + var Big3 = big.NewInt(3) + var Big32 = big.NewInt(32) + var Big36 = big.NewInt(36) + var Big97 = big.NewInt(97) + var Big98 = big.NewInt(98) + var BigFalse = big.NewInt(0) + var BigTrue = Big1 + var Douglas = BigPow(10, 42) + var Einstein = BigPow(10, 21) + var Ether = BigPow(10, 18) + var Finney = BigPow(10, 15) + var MaxBig = new(big.Int).SetString("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", 16) + var SessionID string + var Shannon = BigPow(10, 9) + var Szabo = BigPow(10, 12) + var Wei = big.NewInt(1) + func BigMax(x, y *big.Int) *big.Int + func BigMin(x, y *big.Int) *big.Int + func BigPow(a, b int) *big.Int + func BigToBytes(num *big.Int, base int) []byte + func BitTest(num *big.Int, i int) bool + func Bytes2Hex(d []byte) string + func CopyBytes(b []byte) (copiedBytes []byte) + func CurrencyToString(num *big.Int) string + func DefaultDataDir() string + func EmptyHash(h Hash) bool + func EnsurePathAbsoluteOrRelativeTo(Datadir string, filename string) string + func FirstBitSet(v *big.Int) int + func FromHex(s string) []byte + func Hex2Bytes(str string) []byte + func Hex2BytesFixed(str string, flen int) []byte + func HomeDir() string + func IsHex(str string) bool + func IsHexAddress(s string) bool + func LeftPadBytes(slice []byte, l int) []byte + func PP(value []byte) string + func RightPadBytes(slice []byte, l int) []byte + func S256(x *big.Int) *big.Int + func SetClientVersion(version string) + func ToHex(b []byte) string + func U256(x *big.Int) *big.Int + type Address [AddressLength]byte + func BigToAddress(b *big.Int) Address + func BytesToAddress(b []byte) Address + func HexToAddress(s string) Address + func StringToAddress(s string) Address + func (a *Address) Set(other Address) + func (a *Address) SetBytes(b []byte) + func (a *Address) SetString(s string) + func (a *Address) UnmarshalJSON(data []byte) error + func (a Address) Big() *big.Int + func (a Address) Bytes() []byte + func (a Address) Hash() Hash + func (a Address) Hex() string + func (a Address) MarshalJSON() ([]byte, error) + func (a Address) Str() string + type ClientSessionIdentityT struct + Goarch string + Goos string + Goversion string + Hostname string + MachineID string + Pid int + SessionID string + StartTime time.Time + Username string + Version string + func GetClientSessionIdentity() *ClientSessionIdentityT + func (s *ClientSessionIdentityT) String() string + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func (h *Hash) Set(other Hash) + func (h *Hash) SetBytes(b []byte) + func (h *Hash) SetString(s string) + func (h *Hash) UnmarshalJSON(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value + func (h Hash) Hex() string + func (h Hash) IsEmpty() bool + func (h Hash) MarshalJSON() ([]byte, error) + func (h Hash) Str() string + type StorageSize float64 + func (self StorageSize) Int64() int64 + func (self StorageSize) String() string