Documentation ¶
Index ¶
Constants ¶
View Source
const ( AddressTypeIndex = 0 AddressTypeLength = 1 AddressNetworkIdIndex = 1 AddressNetworkIdLength = 1 AddressContentIndex = 2 AddressContentLength = 20 AddressChecksumIndex = 22 AddressChecksumLength = 4 AddressLength = AddressTypeLength + AddressNetworkIdLength + AddressContentLength + AddressChecksumLength PublicKeyLength = secp256k1.PublicKeyLength AddressStringLength = 52 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
Raw []byte
}
func AddressParse ¶
AddressParse parse address string.
func AddressParseFromBytes ¶
AddressParseFromBytes parse address from bytes.
func NewAddressFromPublicKey ¶
func (*Address) CommonAddress ¶
type AddressType ¶
type AddressType byte
const ( AddressTypeAccount AddressType = 0x01 + iota AddressTypeContract )
Click to show internal directories.
Click to hide internal directories.