Versions in this module Expand all Collapse all v0 v0.1.0 Jun 29, 2022 Changes in this version + const AddressLength + const BASE58 + func DecodeMoneroBase58(data string) (result []byte) + func EncodeMoneroBase58(data ...[]byte) (result string) + func ValidateAddress(addr string) error + type Address string + type PrivateKeyInfo struct + Address string + Environment string + PrivateSpendKey string + PrivateViewKey string + type PrivateKeyPair struct + func GenerateKeys() (*PrivateKeyPair, error) + func NewPrivateKeyPair(sk *PrivateSpendKey, vk *PrivateViewKey) *PrivateKeyPair + func NewPrivateKeyPairFromBytes(skBytes, vkBytes []byte) (*PrivateKeyPair, error) + func (kp *PrivateKeyPair) Address(env common.Environment) Address + func (kp *PrivateKeyPair) AddressBytes(env common.Environment) []byte + func (kp *PrivateKeyPair) Info(env common.Environment) *PrivateKeyInfo + func (kp *PrivateKeyPair) PublicKeyPair() *PublicKeyPair + func (kp *PrivateKeyPair) SpendKey() *PrivateSpendKey + func (kp *PrivateKeyPair) SpendKeyBytes() []byte + func (kp *PrivateKeyPair) ViewKey() *PrivateViewKey + type PrivateSpendKey struct + func NewPrivateSpendKey(b []byte) (*PrivateSpendKey, error) + func SumPrivateSpendKeys(a, b *PrivateSpendKey) *PrivateSpendKey + func (k *PrivateSpendKey) AsPrivateKeyPair() (*PrivateKeyPair, error) + func (k *PrivateSpendKey) Bytes() []byte + func (k *PrivateSpendKey) Hash() [32]byte + func (k *PrivateSpendKey) HashString() string + func (k *PrivateSpendKey) Hex() string + func (k *PrivateSpendKey) Public() *PublicKey + func (k *PrivateSpendKey) Sign(msg []byte) (*Signature, error) + func (k *PrivateSpendKey) View() (*PrivateViewKey, error) + type PrivateViewKey struct + func NewPrivateViewKeyFromHex(vkHex string) (*PrivateViewKey, error) + func SumPrivateViewKeys(a, b *PrivateViewKey) *PrivateViewKey + func (k *PrivateViewKey) Hex() string + func (k *PrivateViewKey) Public() *PublicKey + type PublicKey struct + func NewPublicKeyFromHex(s string) (*PublicKey, error) + func SumPublicKeys(a, b *PublicKey) *PublicKey + func (k *PublicKey) Bytes() []byte + func (k *PublicKey) Hex() string + func (k *PublicKey) Verify(msg []byte, sig *Signature) bool + type PublicKeyPair struct + func NewPublicKeyPair(sk, vk *PublicKey) *PublicKeyPair + func NewPublicKeyPairFromHex(skHex, vkHex string) (*PublicKeyPair, error) + func SumSpendAndViewKeys(a, b *PublicKeyPair) *PublicKeyPair + func (kp *PublicKeyPair) Address(env common.Environment) Address + func (kp *PublicKeyPair) AddressBytes(env common.Environment) []byte + func (kp *PublicKeyPair) SpendKey() *PublicKey + func (kp *PublicKeyPair) ViewKey() *PublicKey + type Signature struct + func NewSignatureFromHex(s string) (*Signature, error) + func (s *Signature) Hex() string