util

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 11 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 DepositInfo added in v1.5.8

type DepositInfo struct {
	Name                  string
	Account               string
	PublicKey             []byte
	WithdrawalCredentials []byte
	Signature             []byte
	DepositDataRoot       []byte
	DepositMessageRoot    []byte
	ForkVersion           []byte
	Amount                uint64
	Version               uint64
}

DepositInfo is a generic deposit structure.

func DepositInfoFromJSON added in v1.5.8

func DepositInfoFromJSON(input []byte) ([]*DepositInfo, error)

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