Documentation ¶
Index ¶
- func RandomMnemonic12() (types.Address, ed25519.PrivateKey, string, error)
- func RandomMnemonic24() (types.Address, ed25519.PrivateKey, string, error)
- type Account
- type Manager
- func (m Manager) Account(address types.Address) (*Account, error)
- func (m Manager) AccountAtIndex(entryPath string, target types.Address, index uint32) (*Account, error)
- func (m Manager) AccountSearch(entryPath *string, target types.Address, passphrase string) (*Account, error)
- func (m *Manager) AddEntropyStore(entropyStore string) error
- func (m Manager) AddLockEventListener(lis func(event entropystore.UnlockEvent)) int
- func (m Manager) ExtractMnemonic(entropyStore string, passphrase string) (string, error)
- func (m Manager) GetDataDir() string
- func (m *Manager) GetEntropyStoreManager(entropyStore string) (*entropystore.Manager, error)
- func (m Manager) GlobalCheckAddrUnlock(targetAdr types.Address) bool
- func (m Manager) GlobalFindAddr(targetAdr types.Address) (path string, key *derivation.Key, index uint32, err error)
- func (m Manager) GlobalFindAddrWithPassphrase(targetAdr types.Address, pass string) (path string, key *derivation.Key, index uint32, err error)
- func (m *Manager) IsUnlocked(entropyStore string) bool
- func (m Manager) ListAllEntropyFiles() []string
- func (m Manager) ListEntropyFilesInStandardDir() ([]string, error)
- func (m *Manager) Lock(entropyStore string) error
- func (m *Manager) MatchAddress(EntryPath string, coinbase types.Address, index uint32) error
- func (m *Manager) NewMnemonicAndEntropyStore(passphrase string) (mnemonic string, em *entropystore.Manager, err error)
- func (m *Manager) RecoverEntropyStoreFromMnemonic(mnemonic string, passphrase string) (em *entropystore.Manager, err error)
- func (m *Manager) RefreshCache()
- func (m *Manager) RemoveEntropyStore(entropyStore string)
- func (m Manager) RemoveUnlockChangeChannel(id int)
- func (m *Manager) Start() error
- func (m *Manager) Stop()
- func (m *Manager) Unlock(entropyStore, passphrase string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomMnemonic12 ¶
func RandomMnemonic24 ¶
Types ¶
type Account ¶
type Account struct { interfaces.Account // contains filtered or unexported fields }
func NewAccountFromHexKey ¶
func RandomAccount ¶
func (Account) PrivateKey ¶
func (acct Account) PrivateKey() (ed25519.PrivateKey, error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (Manager) AccountAtIndex ¶
func (Manager) AccountSearch ¶
func (*Manager) AddEntropyStore ¶
if your entropyStore file is not in the standard dir you can add it so we can index it
func (Manager) AddLockEventListener ¶
func (m Manager) AddLockEventListener(lis func(event entropystore.UnlockEvent)) int
func (Manager) ExtractMnemonic ¶
func (Manager) GetDataDir ¶
func (*Manager) GetEntropyStoreManager ¶
func (m *Manager) GetEntropyStoreManager(entropyStore string) (*entropystore.Manager, error)
func (Manager) GlobalCheckAddrUnlock ¶
func (Manager) GlobalFindAddr ¶
func (Manager) GlobalFindAddrWithPassphrase ¶
func (m Manager) GlobalFindAddrWithPassphrase(targetAdr types.Address, pass string) (path string, key *derivation.Key, index uint32, err error)
Deprecated
func (*Manager) IsUnlocked ¶
func (Manager) ListAllEntropyFiles ¶
func (Manager) ListEntropyFilesInStandardDir ¶
func (*Manager) MatchAddress ¶
func (*Manager) NewMnemonicAndEntropyStore ¶
func (*Manager) RecoverEntropyStoreFromMnemonic ¶
func (*Manager) RefreshCache ¶
func (m *Manager) RefreshCache()
func (*Manager) RemoveEntropyStore ¶
func (Manager) RemoveUnlockChangeChannel ¶
Click to show internal directories.
Click to hide internal directories.