consensus

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduledProcessorStub

type ScheduledProcessorStub struct {
	StartScheduledProcessingCalled func(header data.HeaderHandler, body data.BodyHandler, startTime time.Time)
	IsProcessedOKCalled            func() bool
}

ScheduledProcessorStub -

func (*ScheduledProcessorStub) ForceStopScheduledExecutionBlocking

func (sps *ScheduledProcessorStub) ForceStopScheduledExecutionBlocking()

ForceStopScheduledExecutionBlocking -

func (*ScheduledProcessorStub) IsInterfaceNil

func (sps *ScheduledProcessorStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*ScheduledProcessorStub) IsProcessedOKWithTimeout

func (sps *ScheduledProcessorStub) IsProcessedOKWithTimeout() bool

IsProcessedOKWithTimeout -

func (*ScheduledProcessorStub) StartScheduledProcessing

func (sps *ScheduledProcessorStub) StartScheduledProcessing(header data.HeaderHandler, body data.BodyHandler, startTime time.Time)

StartScheduledProcessing -

type SigningHandlerStub added in v1.6.0

type SigningHandlerStub struct {
	ResetCalled                            func(pubKeys []string) error
	CreateSignatureShareForPublicKeyCalled func(message []byte, index uint16, epoch uint32, publicKeyBytes []byte) ([]byte, error)
	CreateSignatureForPublicKeyCalled      func(message []byte, publicKeyBytes []byte) ([]byte, error)
	VerifySingleSignatureCalled            func(publicKeyBytes []byte, message []byte, signature []byte) error
	StoreSignatureShareCalled              func(index uint16, sig []byte) error
	SignatureShareCalled                   func(index uint16) ([]byte, error)
	VerifySignatureShareCalled             func(index uint16, sig []byte, msg []byte, epoch uint32) error
	AggregateSigsCalled                    func(bitmap []byte, epoch uint32) ([]byte, error)
	SetAggregatedSigCalled                 func(_ []byte) error
	VerifyCalled                           func(msg []byte, bitmap []byte, epoch uint32) error
}

SigningHandlerStub implements SigningHandler interface

func (*SigningHandlerStub) AggregateSigs added in v1.6.0

func (stub *SigningHandlerStub) AggregateSigs(bitmap []byte, epoch uint32) ([]byte, error)

AggregateSigs -

func (*SigningHandlerStub) CreateSignatureForPublicKey added in v1.6.0

func (stub *SigningHandlerStub) CreateSignatureForPublicKey(message []byte, publicKeyBytes []byte) ([]byte, error)

CreateSignatureForPublicKey -

func (*SigningHandlerStub) CreateSignatureShareForPublicKey added in v1.6.0

func (stub *SigningHandlerStub) CreateSignatureShareForPublicKey(message []byte, index uint16, epoch uint32, publicKeyBytes []byte) ([]byte, error)

CreateSignatureShareForPublicKey -

func (*SigningHandlerStub) IsInterfaceNil added in v1.6.0

func (stub *SigningHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*SigningHandlerStub) Reset added in v1.6.0

func (stub *SigningHandlerStub) Reset(pubKeys []string) error

Reset -

func (*SigningHandlerStub) SetAggregatedSig added in v1.6.0

func (stub *SigningHandlerStub) SetAggregatedSig(sig []byte) error

SetAggregatedSig -

func (*SigningHandlerStub) SignatureShare added in v1.6.0

func (stub *SigningHandlerStub) SignatureShare(index uint16) ([]byte, error)

SignatureShare -

func (*SigningHandlerStub) StoreSignatureShare added in v1.6.0

func (stub *SigningHandlerStub) StoreSignatureShare(index uint16, sig []byte) error

StoreSignatureShare -

func (*SigningHandlerStub) Verify added in v1.6.0

func (stub *SigningHandlerStub) Verify(msg []byte, bitmap []byte, epoch uint32) error

Verify -

func (*SigningHandlerStub) VerifySignatureShare added in v1.6.0

func (stub *SigningHandlerStub) VerifySignatureShare(index uint16, sig []byte, msg []byte, epoch uint32) error

VerifySignatureShare -

func (*SigningHandlerStub) VerifySingleSignature added in v1.6.0

func (stub *SigningHandlerStub) VerifySingleSignature(publicKeyBytes []byte, message []byte, signature []byte) error

VerifySingleSignature -

Jump to

Keyboard shortcuts

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