Documentation ¶
Index ¶
- type Address
- func (_ *Address) CanMarshalMsg(z interface{}) bool
- func (_ *Address) CanUnmarshalMsg(z interface{}) bool
- func (addr Address) GetChecksum() []byte
- func (addr Address) GetUserAddress() string
- func (addr Address) IsZero() bool
- func (z *Address) MarshalMsg(b []byte) []byte
- func (addr Address) MarshalText() ([]byte, error)
- func (z *Address) MsgIsZero() bool
- func (z *Address) Msgsize() int
- func (addr Address) String() string
- func (z *Address) UnmarshalMsg(bts []byte) ([]byte, error)
- func (addr *Address) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
Address is a unique identifier corresponding to ownership of money
func UnmarshalChecksumAddress ¶
UnmarshalChecksumAddress tries to unmarshal the checksummed address string. Algorand strings addresses ( base32 encoded ) have a postamble which serves as the checksum of the address. When converted to an Address object representation, that checksum is dropped (after validation).
func (*Address) CanMarshalMsg ¶
func (*Address) CanUnmarshalMsg ¶
func (Address) GetChecksum ¶
GetChecksum returns the checksum as []byte Checksum in Algorand are the last 4 bytes of the shortAddress Hash. H(Address)[28:]
func (Address) GetUserAddress ¶
GetUserAddress returns the human-readable, checksummed version of the address
func (*Address) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (Address) MarshalText ¶
MarshalText returns the address string as an array of bytes
func (*Address) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*Address) UnmarshalMsg ¶
UnmarshalMsg implements msgp.Unmarshaler
func (*Address) UnmarshalText ¶
UnmarshalText initializes the Address from an array of bytes.