util

package
v1.5.0-beta9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BLSID added in v1.5.0

func BLSID(id uint64) *bls.ID

BLSID turns a uint64 in to a BLS identifier.

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

func (a *ScratchAccount) Sign(data []byte) (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