Documentation ¶
Index ¶
- type ScheduledProcessorStub
- func (sps *ScheduledProcessorStub) ForceStopScheduledExecutionBlocking()
- func (sps *ScheduledProcessorStub) IsInterfaceNil() bool
- func (sps *ScheduledProcessorStub) IsProcessedOKWithTimeout() bool
- func (sps *ScheduledProcessorStub) StartScheduledProcessing(header data.HeaderHandler, body data.BodyHandler, startTime time.Time)
- type SigningHandlerStub
- func (stub *SigningHandlerStub) AggregateSigs(bitmap []byte, epoch uint32) ([]byte, error)
- func (stub *SigningHandlerStub) CreateSignatureForPublicKey(message []byte, publicKeyBytes []byte) ([]byte, error)
- func (stub *SigningHandlerStub) CreateSignatureShareForPublicKey(message []byte, index uint16, epoch uint32, publicKeyBytes []byte) ([]byte, error)
- func (stub *SigningHandlerStub) IsInterfaceNil() bool
- func (stub *SigningHandlerStub) Reset(pubKeys []string) error
- func (stub *SigningHandlerStub) SetAggregatedSig(sig []byte) error
- func (stub *SigningHandlerStub) SignatureShare(index uint16) ([]byte, error)
- func (stub *SigningHandlerStub) StoreSignatureShare(index uint16, sig []byte) error
- func (stub *SigningHandlerStub) Verify(msg []byte, bitmap []byte, epoch uint32) error
- func (stub *SigningHandlerStub) VerifySignatureShare(index uint16, sig []byte, msg []byte, epoch uint32) error
- func (stub *SigningHandlerStub) VerifySingleSignature(publicKeyBytes []byte, message []byte, signature []byte) error
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 CreateSignatureForPublicKeyCalled func(message []byte, publicKeyBytes []byte) ([]byte, error) VerifySingleSignatureCalled func(publicKeyBytes []byte, message []byte, signature []byte) 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 -
Click to show internal directories.
Click to hide internal directories.