util

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

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(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) Sign

func (a *ScratchAccount) Sign(data []byte, domain uint64) (types.Signature, error)

func (*ScratchAccount) Unlock

func (a *ScratchAccount) Unlock([]byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL