Versions in this module Expand all Collapse all v0 v0.1.0 May 24, 2023 Changes in this version + var ErrInvalidAddressBadCharacters = errors.New("contains invalid characters") + var ErrInvalidAddressLength = errors.New("invalid address length (42)") + var ErrInvalidAddressMissingPrefix = errors.New("missing prefix 0x") + var ErrInvalidAddressNull = errors.New("null address") + var ErrInvalidCompositeKey = errors.New("invalid composite key") + var ErrNilCounter = errors.New("nil counter") + var ErrUnknownAddressAlg = errors.New("unknown crypto algorithm for address") + func BytesToHexString(input []byte) string + func BytesToUint64(input []byte) (uint64, error) + func BytesToUint8(input []byte) (uint8, error) + func Uint64ToString(input uint64) string + type Address string + const AddressPrefix + const ZeroAddress + func (addr *Address) FromPublicKey(pub interface{}) error + func (addr *Address) FromString(addrStr string) + func (addr Address) Bytes() []byte + func (addr Address) EmptyAddress() bool + func (addr Address) String() string + func (addr Address) Validate() error + type Bool string + const False + const True + func BytesToBool(input []byte) Bool + func (b Bool) Bool() bool + func (b Bool) Bytes() []byte + func (b Bool) String() string + type Counter struct + func BytesToCounter(input []byte) (*Counter, error) + func NewCounter(initNumber uint64) *Counter + func (counter *Counter) Bytes() []byte + func (counter *Counter) Current() uint64 + func (counter *Counter) Decrement(offset uint64) error + func (counter *Counter) Increment(offset uint64) error + func (counter *Counter) Reset() + func (counter *Counter) String() string