Documentation
¶
Index ¶
- type Account
- func (a *Account) ID() uuid.UUID
- func (a *Account) IsUnlocked() bool
- func (a *Account) Lock()
- func (a *Account) Name() string
- func (a *Account) Path() string
- func (a *Account) PublicKey() e2types.PublicKey
- func (a *Account) Sign(data []byte) (e2types.Signature, error)
- func (a *Account) Unlock(passphrase []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
NewAccount creates a new account.
func (*Account) IsUnlocked ¶
IsUnlocked returns true if the account is unlocked.
func (*Account) Lock ¶
func (a *Account) Lock()
Lock locks the account. A locked account cannot sign.
func (*Account) Path ¶
Path provides the path for the account. Can be empty if the account is not derived from a path.
Click to show internal directories.
Click to hide internal directories.