Documentation ¶
Index ¶
- type ScratchAccount
- func (a *ScratchAccount) ID() uuid.UUID
- func (a *ScratchAccount) IsUnlocked() bool
- func (a *ScratchAccount) Lock()
- func (a *ScratchAccount) Name() string
- func (a *ScratchAccount) Path() string
- func (a *ScratchAccount) PublicKey() types.PublicKey
- func (a *ScratchAccount) Sign(data []byte) (types.Signature, error)
- func (a *ScratchAccount) Unlock([]byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScratchAccount ¶
type ScratchAccount struct {
// contains filtered or unexported fields
}
ScratchAccount is an account that exists temporarily.
func NewScratchAccount ¶
func NewScratchAccount(privKey []byte, pubKey []byte) (*ScratchAccount, error)
NewScratchAccount creates a new local account.
func (*ScratchAccount) ID ¶
func (a *ScratchAccount) ID() uuid.UUID
func (*ScratchAccount) IsUnlocked ¶
func (a *ScratchAccount) IsUnlocked() bool
func (*ScratchAccount) Lock ¶
func (a *ScratchAccount) Lock()
func (*ScratchAccount) Name ¶
func (a *ScratchAccount) Name() string
func (*ScratchAccount) Path ¶
func (a *ScratchAccount) Path() string
func (*ScratchAccount) PublicKey ¶
func (a *ScratchAccount) PublicKey() types.PublicKey
func (*ScratchAccount) Unlock ¶
func (a *ScratchAccount) Unlock([]byte) error
Click to show internal directories.
Click to hide internal directories.