Versions in this module Expand all Collapse all v0 v0.5.2 Nov 22, 2019 Changes in this version + const HashLength + var ErrBig256Range = &decError + var ErrEmptyNumber = &decError + var ErrEmptyString = &decError + var ErrLeadingZero = &decError + var ErrMissingPrefix = &decError + var ErrOddLength = &decError + var ErrSyntax = &decError + var ErrUint64Range = &decError + var ErrUintRange = &decError + func DecodeHex(input string) ([]byte, error) + func EncodeHex(b []byte) string + func FromHex(s string) []byte + func Hex2Bytes(str string) []byte + func MustDecodeHex(input string) []byte + func UnmarshalFixedHexText(typname string, input, out []byte) error + func UnmarshalFixedJSON(typ reflect.Type, input, out []byte) error + func UnmarshalFixedText(typname string, input, out []byte) error + type Hash [HashLength]byte + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func (h *Hash) Hex() string + func (h *Hash) SetBytes(b []byte) + func (h *Hash) String() string + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Bytes() []byte + func (h Hash) MarshalText() ([]byte, error) + type HexBytes []byte + func (b *HexBytes) UnmarshalJSON(input []byte) error + func (b *HexBytes) UnmarshalText(input []byte) error + func (b HexBytes) MarshalText() ([]byte, error) + func (b HexBytes) String() string