Documentation ¶
Index ¶
Constants ¶
View Source
const Len = sha256.Size
Len is the length of base addresses
View Source
const MaxAddrLen = 255
MaxAddrLen is the maximum allowed length (in bytes) for an address.
Variables ¶
This section is empty.
Functions ¶
func LengthPrefix ¶
LengthPrefix prefixes the address bytes with its length, this is used for example for variable-length components in store keys.
func Module ¶
Module is a specialized version of a composed address for modules. Each module account is constructed from a module name and module account key.
func MustLengthPrefix ¶
MustLengthPrefix is LengthPrefix with panic on error.
func NewComposed ¶
func NewComposed(typ string, subAddresses []Addressable) ([]byte, error)
NewComposed creates a new address based on sub addresses.
Types ¶
type Addressable ¶
type Addressable interface {
Address() []byte
}
Click to show internal directories.
Click to hide internal directories.