Documentation ¶
Index ¶
- Variables
- type AccountManager
- func (am *AccountManager) Accounts() []*address.Address
- func (am *AccountManager) CreateNewAccount(passphrase []byte) (*address.Address, error)
- func (am *AccountManager) GetUnlocked(address string) ([]byte, error)
- func (am *AccountManager) Import(keyContent []byte, passphrase []byte) (*address.Address, error)
- func (am *AccountManager) Lock(address *address.Address) error
- func (am *AccountManager) ResetPassword(address *address.Address, oldPass []byte, newPass []byte) error
- func (am *AccountManager) SignHash(address *address.Address, hash common.Hash) ([]byte, error)
- func (am *AccountManager) Unlock(address *address.Address, passphrase []byte, duration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAccountNotFound account is not found. ErrAccountNotFound = errors.New("account is not found") // ErrAccountIsLocked account locked. ErrAccountIsLocked = errors.New("account is locked") // ErrInvalidSignerAddress sign addr not from ErrInvalidSignerAddress = errors.New("transaction sign not use from address") )
Functions ¶
This section is empty.
Types ¶
type AccountManager ¶
type AccountManager struct {
// contains filtered or unexported fields
}
func NewAccountManager ¶
func NewAccountManager(config *config.Config) (*AccountManager, error)
func (*AccountManager) Accounts ¶
func (am *AccountManager) Accounts() []*address.Address
func (*AccountManager) CreateNewAccount ¶
func (am *AccountManager) CreateNewAccount(passphrase []byte) (*address.Address, error)
func (*AccountManager) GetUnlocked ¶
func (am *AccountManager) GetUnlocked(address string) ([]byte, error)
func (*AccountManager) ResetPassword ¶
Click to show internal directories.
Click to hide internal directories.