Documentation ¶
Index ¶
Constants ¶
View Source
const ( KNamePrefix = "wallet-" KDefault = "default" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalWallet ¶
type LocalWallet struct {
// contains filtered or unexported fields
}
func KeyWallet ¶
func KeyWallet(keys ...*Key) *LocalWallet
func (*LocalWallet) GetDefault ¶
func (w *LocalWallet) GetDefault() (peer.ID, error)
type MemKeyStore ¶
type MemKeyStore struct {
// contains filtered or unexported fields
}
func NewMemKeyStore ¶
func NewMemKeyStore() *MemKeyStore
func (*MemKeyStore) Delete ¶
func (mks *MemKeyStore) Delete(k string) error
Delete removes a key from keystore
func (*MemKeyStore) Get ¶
func (mks *MemKeyStore) Get(k string) (types.KeyInfo, error)
Get gets a key out of keystore and returns KeyInfo corresponding to named key
func (*MemKeyStore) List ¶
func (mks *MemKeyStore) List() ([]string, error)
List lists all the keys stored in the KeyStore
Click to show internal directories.
Click to hide internal directories.