Documentation
¶
Index ¶
- func GetPubKey(privKey []byte) ([]byte, error)
- type Config
- type IWallets
- type Seed
- type SeedNoPrivKey
- type Stub
- type Wallets
- func (w *Wallets) Close() error
- func (w *Wallets) Create(password []byte) (*Seed, error)
- func (w *Wallets) DBExists() bool
- func (w *Wallets) GetSeeds() ([]SeedNoPrivKey, error)
- func (w *Wallets) GetUserAddress(privKey []byte) string
- func (w *Wallets) Seed(mnemonic, password []byte) (*Seed, error)
- func (w *Wallets) UpdateSeeds(seed []SeedNoPrivKey)
- func (w *Wallets) Validate(privKey []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Seed ¶
type Seed struct {
Address []byte
Timestamp int64
PubKey []byte
PrivKey []byte
Mnemonic []byte
ExtraData map[string]interface{}
}
Seed represents each 'item' in the blockchain
type SeedNoPrivKey ¶
type Wallets ¶
type Wallets struct {
File string
Seeds []SeedNoPrivKey
TempSeeds []SeedNoPrivKey
// contains filtered or unexported fields
}
Wallets represent a wallet adapter.
func (*Wallets) GetSeeds ¶
func (w *Wallets) GetSeeds() ([]SeedNoPrivKey, error)
GetSeeds get all seeds in local memory.
func (*Wallets) GetUserAddress ¶
func (*Wallets) UpdateSeeds ¶
func (w *Wallets) UpdateSeeds(seed []SeedNoPrivKey)
UpdateSeeds update the local list of seeds. @todo update wallet database
Click to show internal directories.
Click to hide internal directories.