Versions in this module Expand all Collapse all v0 v0.0.4 Apr 14, 2023 v0.0.3 Apr 14, 2023 Changes in this version + var ErrInvalidByronAddress = errors.New("invalid byron address") + var ErrInvalidByronChecksum = errors.New("invalid byron checksum") + var ErrUnsupportedAddress = errors.New("invalid/unsupported address type") + func VariableNatDecode(raw []byte) (uint64, int, error) + func VariableNatEncode(num uint64) []byte + type Address interface + Bytes func() []byte + NetworkInfo func() *network.NetworkInfo + String func() string + func NewAddress(raw string) (addr Address, err error) + func NewAddressFromBytes(data []byte) (addr Address, err error) + func NewAddressFromHex(hexAddr string) (addr Address, err error) + type BaseAddress struct + Network network.NetworkInfo + Payment StakeCredential + Stake StakeCredential + func NewBaseAddress(network *network.NetworkInfo, payment *StakeCredential, stake *StakeCredential) *BaseAddress + func (b *BaseAddress) Bytes() []byte + func (b *BaseAddress) MarshalCBOR() ([]byte, error) + func (b *BaseAddress) NetworkInfo() *network.NetworkInfo + func (b *BaseAddress) Prefix() string + func (b *BaseAddress) String() string + func (b *BaseAddress) ToEnterprise() (addr *EnterpriseAddress) + func (b *BaseAddress) ToReward() (addr *RewardAddress) + type ByronAddress struct + Attributes ByronAddressAttributes + Hash []byte + Tag uint + func (b *ByronAddress) Bytes() (bytes []byte) + func (b *ByronAddress) MarshalCBOR() (bytes []byte, err error) + func (b *ByronAddress) NetworkInfo() (ni *network.NetworkInfo) + func (b *ByronAddress) Prefix() string + func (b *ByronAddress) String() (str string) + func (b *ByronAddress) UnmarshalCBOR(data []byte) error + type ByronAddressAttributes struct + Network *uint8 + Payload []byte + type EnterpriseAddress struct + Network network.NetworkInfo + Payment StakeCredential + func NewEnterpriseAddress(network *network.NetworkInfo, payment *StakeCredential) *EnterpriseAddress + func (e *EnterpriseAddress) Bytes() []byte + func (e *EnterpriseAddress) MarshalCBOR() (bytes []byte, err error) + func (e *EnterpriseAddress) NetworkInfo() *network.NetworkInfo + func (e *EnterpriseAddress) Prefix() string + func (e *EnterpriseAddress) String() string + type PointerAddress struct + Network network.NetworkInfo + Payment StakeCredential + Stake StakePointer + func NewPointerAddress(net network.NetworkInfo, payment StakeCredential, stake StakePointer) *PointerAddress + func (p *PointerAddress) Bytes() (bytes []byte) + func (p *PointerAddress) MarshalCBOR() (bytes []byte, err error) + func (p *PointerAddress) NetworkInfo() *network.NetworkInfo + func (p *PointerAddress) Prefix() string + func (p *PointerAddress) String() string + type RewardAddress struct + Network network.NetworkInfo + Stake StakeCredential + func NewRewardAddress(net *network.NetworkInfo, stake *StakeCredential) *RewardAddress + func (r *RewardAddress) Bytes() []byte + func (r *RewardAddress) MarshalCBOR() ([]byte, error) + func (r *RewardAddress) NetworkInfo() *network.NetworkInfo + func (r *RewardAddress) Prefix() string + func (r *RewardAddress) String() string + type StakeCredential struct + Kind StakeCredentialType + Payload []byte + func NewKeyStakeCredential(hash []byte) *StakeCredential + func NewScriptStakeCredential(hash []byte) *StakeCredential + type StakeCredentialType byte + const KeyStakeCredentialType + const ScriptStakeCredentialType + type StakePointer struct + CertIndex uint64 + Slot uint64 + TxIndex uint64 + func NewPointer(slot, txIndex, certIndex uint64) *StakePointer