Versions in this module Expand all Collapse all v0 v0.9.1 Sep 1, 2019 Changes in this version + const AddressLength + const HashLength + func Bytes2Hex(d []byte) string + func CopyBytes(b []byte) (copiedBytes []byte) + func FromHex(s string) []byte + func Hex2Bytes(str string) []byte + func Hex2BytesFixed(str string, flen int) []byte + func Keccak256(data ...[]byte) []byte + func LeftPadBytes(slice []byte, l int) []byte + func RightPadBytes(slice []byte, l int) []byte + func Sha256(data ...[]byte) []byte + func ToHex(b []byte) string + func ToHexArray(b [][]byte) []string + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func Keccak256Hash(data ...[]byte) (h Hash) + func (_ Hash) ImplementsGraphQLType(name string) bool + func (h *Hash) Scan(src interface{}) error + func (h *Hash) SetBytes(b []byte) + func (h *Hash) UnmarshalGraphQL(input interface{}) error + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Format(s fmt.State, c rune) + func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value + func (h Hash) Hex() string + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + func (h Hash) TerminalString() string + func (h Hash) Value() (driver.Value, error) + type MerkleHash []byte + type UnprefixedHash Hash + func (h *UnprefixedHash) UnmarshalText(input []byte) error + func (h UnprefixedHash) MarshalText() ([]byte, error)