Documentation ¶
Index ¶
- type Address
- func (a *Address) CheckPrivateSpendKey(key string) bool
- func (a *Address) CheckPrivateViewKey(key string) bool
- func (b *Address) IsMainnet() bool
- func (b *Address) IsStagenet() bool
- func (b *Address) IsTestnet() bool
- func (b *Address) Net() string
- func (b *Address) SpendKey() string
- func (b *Address) Valid() bool
- func (b *Address) ViewKey() string
- func (a *Address) WithPaymentID(paymentID string) *IntegratedAddress
- type AtomicXMR
- type FloatXMR
- type IntegratedAddress
- func (ia *IntegratedAddress) BaseAddress() *Address
- func (b *IntegratedAddress) IsMainnet() bool
- func (b *IntegratedAddress) IsStagenet() bool
- func (b *IntegratedAddress) IsTestnet() bool
- func (b *IntegratedAddress) Net() string
- func (ia *IntegratedAddress) PaymentID() string
- func (b *IntegratedAddress) SpendKey() string
- func (b *IntegratedAddress) Valid() bool
- func (b *IntegratedAddress) ViewKey() string
- type RPCConfig
- type SubAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
Address is a Monero address
func NewAddress ¶
NewAddress creates a new Address struct from a hex address string
func (*Address) CheckPrivateSpendKey ¶
CheckPrivateSpendKey checks if private spend key matches this address.
func (*Address) CheckPrivateViewKey ¶
CheckPrivateViewKey checks if private view key matches this address.
func (*Address) IsStagenet ¶
func (b *Address) IsStagenet() bool
func (*Address) WithPaymentID ¶
func (a *Address) WithPaymentID(paymentID string) *IntegratedAddress
WithPaymentID creates a new integrated address with the given hex string payment ID
type AtomicXMR ¶
type AtomicXMR uint64
AtomicXMR is XMR currency units
type FloatXMR ¶
type FloatXMR float64
FloatXMR is
type IntegratedAddress ¶
type IntegratedAddress struct {
// contains filtered or unexported fields
}
IntegratedAddress is a Monero integrated address. A master address integrated with payment id (short one, max 64 bit). TODO check length of payment ID
func NewIntegratedAddress ¶
func NewIntegratedAddress(addr string) *IntegratedAddress
NewIntegratedAddress creates a new integrated address struct
func (*IntegratedAddress) BaseAddress ¶
func (ia *IntegratedAddress) BaseAddress() *Address
BaseAddress returns the base address without payment id.
func (*IntegratedAddress) IsStagenet ¶
func (b *IntegratedAddress) IsStagenet() bool
func (*IntegratedAddress) PaymentID ¶
func (ia *IntegratedAddress) PaymentID() string
PaymentID returns the integrated payment id.
type RPCConfig ¶
type RPCConfig struct { Protocol string Host string Port uint CustomHeaders map[string]string Transport http.RoundTripper }
RPCConfig holds the configuration of a monero RPC client.
type SubAddress ¶
type SubAddress struct {
// contains filtered or unexported fields
}
SubAddress is a Monero subaddress
func NewSubAddress ¶
func NewSubAddress(addr string) *SubAddress
NewSubAddress creates a new subaddress struct
func (*SubAddress) IsStagenet ¶
func (b *SubAddress) IsStagenet() bool