mock

package
v3.2.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKeymanager

type MockKeymanager struct {
	PublicKeys             [][fieldparams.BLSPubkeyLength]byte
	ReloadPublicKeysChan   chan [][fieldparams.BLSPubkeyLength]byte
	ReloadPublicKeysCalled bool
	// contains filtered or unexported fields
}

MockKeymanager --

func NewMock

func NewMock() MockKeymanager

func (*MockKeymanager) DeleteKeystores

func (*MockKeymanager) ExtractKeystores

func (*MockKeymanager) ExtractKeystores(
	_ context.Context, _ []bls.PublicKey, _ string,
) ([]*keymanager.Keystore, error)

ExtractKeystores --

func (*MockKeymanager) FetchValidatingPublicKeys

func (m *MockKeymanager) FetchValidatingPublicKeys(context.Context) ([][fieldparams.BLSPubkeyLength]byte, error)

FetchValidatingPublicKeys --

func (*MockKeymanager) ListKeymanagerAccounts

ListKeymanagerAccounts --

func (*MockKeymanager) ReloadPublicKeys

func (m *MockKeymanager) ReloadPublicKeys(context.Context) ([][fieldparams.BLSPubkeyLength]byte, error)

ReloadPublicKeys --

func (*MockKeymanager) Sign

Sign --

func (*MockKeymanager) SubscribeAccountChanges

func (m *MockKeymanager) SubscribeAccountChanges(chan [][fieldparams.BLSPubkeyLength]byte) event.Subscription

SubscribeAccountChanges --

Jump to

Keyboard shortcuts

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