Documentation
¶
Index ¶
- Constants
- func ComputeHrp(address_type uint8, network uint8) string
- type Address
- func (addr Address) Bytes() []byte
- func (addr *Address) Debug() string
- func (addr *Address) Equal(other *Address) bool
- func (addr *Address) MarshalCBOR() ([]byte, error)
- func (addr Address) String() string
- func (addr *Address) ToCbor() (string, error)
- func (addr *Address) UnmarshalCBOR(value []byte) error
Constants ¶
View Source
const ( BYRON = 0b1000 KEY_KEY = 0b0000 SCRIPT_KEY = 0b0001 KEY_SCRIPT = 0b0010 SCRIPT_SCRIPT = 0b0011 KEY_POINTER = 0b0100 SCRIPT_POINTER = 0b0101 KEY_NONE = 0b0110 SCRIPT_NONE = 0b0111 NONE_KEY = 0b1110 NONE_SCRIPT = 0b1111 )
View Source
const ( MAINNET = 1 TESTNET = 0 )
Variables ¶
This section is empty.
Functions ¶
func ComputeHrp ¶
Types ¶
type Address ¶
type Address struct {
PaymentPart []byte
StakingPart []byte
Network byte
AddressType byte
HeaderByte byte
Hrp string
}
func DecodeAddress ¶
func (*Address) MarshalCBOR ¶
func (*Address) UnmarshalCBOR ¶
Click to show internal directories.
Click to hide internal directories.