Documentation ¶
Index ¶
- type KeyEntry
- type KeyRing
- func (kr *KeyRing) AddKey(username string, key *KeyEntry) error
- func (kr *KeyRing) GenerateNewKey(username string, seed string, passphrase []byte, encrypt bool) (*KeyEntry, error)
- func (kr *KeyRing) GetFirstKey() *KeyEntry
- func (kr *KeyRing) GetKey(username string) *KeyEntry
- func (kr *KeyRing) GetNumKeys() int
- func (kr *KeyRing) ImportNewKey(username string, keyBytes []byte, passphrase []byte, encrypt bool) (*KeyEntry, error)
- func (kr *KeyRing) Load() error
- func (kr *KeyRing) PrintKeyList(withPubKey bool)
- func (kr *KeyRing) RemoveKey(username string) error
- func (kr *KeyRing) Save() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyEntry ¶
type KeyEntry struct { Address string `json:"address"` PubKey []byte `json:"pub_key"` PrivKey []byte `json:"priv_key"` Encrypted bool `json:"encrypted"` }
func GenerateKey ¶
type KeyRing ¶
type KeyRing struct {
// contains filtered or unexported fields
}
func GetKeyRing ¶
func (*KeyRing) GenerateNewKey ¶
func (*KeyRing) GetFirstKey ¶
func (*KeyRing) GetNumKeys ¶
func (*KeyRing) ImportNewKey ¶
func (*KeyRing) PrintKeyList ¶
Click to show internal directories.
Click to hide internal directories.