Documentation ¶
Index ¶
- type InterfaceKeyRing
- type KeyRing
- func (k *KeyRing) AddFromAddress(addr []byte, meta keytypes.Meta, defaultEncoded []byte) (*pair.Pair, error)
- func (k *KeyRing) AddFromJSON(data []byte, password *string) (*pair.Pair, error)
- func (k *KeyRing) AddFromMnemonic(mn, password string, meta keytypes.Meta) (*pair.Pair, error)
- func (k *KeyRing) AddFromSeed(seed []byte, meta keytypes.Meta) (*pair.Pair, error)
- func (k *KeyRing) AddPair(pair *pair.Pair) (*pair.Pair, error)
- func (k *KeyRing) DecodeAddress(encoded []byte) ([]byte, error)
- func (k *KeyRing) EncodeAddress(key []byte) (string, error)
- func (k *KeyRing) GetPair(addr []byte) (*pair.Pair, error)
- func (k *KeyRing) GetPairs() ([]*pair.Pair, error)
- func (k *KeyRing) GetPublicKeys() ([][32]byte, error)
- func (k *KeyRing) RemovePair(addr []byte) error
- func (k *KeyRing) SetAddressPrefix(prefix address.PrefixEnum) error
- func (k *KeyRing) ToJSON(addr []byte, password *string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceKeyRing ¶
type InterfaceKeyRing interface { DecodeAddress(encoded []byte) ([]byte, error) EncodeAddress(key []byte) (string, error) SetAddressPrefix(prefix address.PrefixEnum) error AddPair(pair *pair.Pair) (*pair.Pair, error) AddFromAddress(addr []byte, meta keytypes.Meta, defaultEncoded []byte) (*pair.Pair, error) AddFromMnemonic(mn, password string, meta keytypes.Meta) (*pair.Pair, error) AddFromSeed(seed []byte, meta keytypes.Meta) (*pair.Pair, error) AddFromJSON(data []byte, password *string) (*pair.Pair, error) GetPair(addr []byte) (*pair.Pair, error) GetPairs() ([]*pair.Pair, error) GetPublicKeys() ([][32]byte, error) RemovePair(addr []byte) error // note: change to Marshal? Add Unmarshal? ToJSON(addr []byte, password *string) ([]byte, error) }
InterfaceKeyRing ...
type KeyRing ¶
type KeyRing struct {
Pairs pair.InterfacePairs
}
KeyRing ...
func (*KeyRing) AddFromAddress ¶
func (k *KeyRing) AddFromAddress(addr []byte, meta keytypes.Meta, defaultEncoded []byte) (*pair.Pair, error)
AddFromAddress ...
func (*KeyRing) AddFromJSON ¶
AddFromJSON ...
func (*KeyRing) AddFromMnemonic ¶
AddFromMnemonic ...
func (*KeyRing) AddFromSeed ¶
AddFromSeed ...
func (*KeyRing) DecodeAddress ¶
DecodeAddress ...
func (*KeyRing) EncodeAddress ¶
EncodeAddress ...
func (*KeyRing) GetPublicKeys ¶
GetPublicKeys ...
func (*KeyRing) SetAddressPrefix ¶
func (k *KeyRing) SetAddressPrefix(prefix address.PrefixEnum) error
SetAddressPrefix ...
Click to show internal directories.
Click to hide internal directories.