Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAddressLength = errors.New("invalid address length (42)") ErrInvalidAddressMissingPrefix = errors.New("missing prefix 0x") ErrInvalidAddressBadCharacters = errors.New("contains invalid characters") ErrInvalidAddressNull = errors.New("null address") ErrUnknownAddressAlg = errors.New("unknown crypto algorithm for address") )
View Source
var (
ErrInvalidCompositeKey = errors.New("invalid composite key")
)
View Source
var ( // ErrNilCounter is returned when a nil counter is used. ErrNilCounter = errors.New("nil counter") )
Functions ¶
func BytesToHexString ¶
func BytesToUint64 ¶
func BytesToUint8 ¶
func Uint64ToString ¶
Types ¶
type Address ¶
type Address string
Address is the hex string of ethereum account address
const ( AddressPrefix = "0x" ZeroAddress Address = "0x0000000000000000000000000000000000000000" )
func (Address) EmptyAddress ¶
func (*Address) FromPublicKey ¶
func (*Address) FromString ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a data type that represents a counter that can be incremented, decremented, and reset.
func BytesToCounter ¶
func NewCounter ¶
NewCounter creates a new counter with the specified initial value.
Click to show internal directories.
Click to hide internal directories.