Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MainnetPrefix is the prefix added to the human readable address of mainnet MainnetPrefix = "io" // TestnetPrefix is the prefix added to the human readable address of testnet TestnetPrefix = "it" )
Variables ¶
View Source
var ErrInvalidAddr = errors.New("invalid address")
ErrInvalidAddr indicates the invalid address error
Functions ¶
Types ¶
type AddrV1 ¶
type AddrV1 struct {
// contains filtered or unexported fields
}
AddrV1 is V1 address format to be used on IoTeX blockchain and subchains. It is composed of 20 bytes: hash derived from the the public key:
type Address ¶
type Address interface { // String encodes the whole address into an address string encoded in string format String() string // Bytes serializes the whole address struct into a byte slice, which is composed of the payload to identify an // address within one blockchain Bytes() []byte }
Address defines the interface of the blockchain address
func FromString ¶
FromString decodes an encoded address string into an address struct
Directories ¶
Path | Synopsis |
---|---|
Package bech32 includes a Bech32 string which is at most 90 characters long and consists of: The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader.
|
Package bech32 includes a Bech32 string which is at most 90 characters long and consists of: The human-readable part, which is intended to convey the type of data, or anything else that is relevant to the reader. |
Click to show internal directories.
Click to hide internal directories.