Documentation ¶
Overview ¶
Package malfeasance is a generated GoMock package.
Index ¶
- Variables
- func Validate(ctx context.Context, logger log.Log, cdb *datastore.CachedDB, ...) (types.NodeID, error)
- type Handler
- type MockSigVerifier
- type MockSigVerifierMockRecorder
- type MockSigVerifierVerifyCall
- func (c *MockSigVerifierVerifyCall) Do(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *MockSigVerifierVerifyCall
- func (c *MockSigVerifierVerifyCall) DoAndReturn(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *MockSigVerifierVerifyCall
- func (c *MockSigVerifierVerifyCall) Return(arg0 bool) *MockSigVerifierVerifyCall
- type MockpostVerifier
- type MockpostVerifierMockRecorder
- type MockpostVerifierVerifyCall
- type Mocktortoise
- type MocktortoiseMockRecorder
- type MocktortoiseOnMalfeasanceCall
- type SigVerifier
Constants ¶
This section is empty.
Variables ¶
var (
ErrKnownProof = errors.New("known proof")
)
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler processes MalfeasanceProof from gossip and, if deems it valid, propagates it to peers.
func NewHandler ¶
func (*Handler) HandleMalfeasanceProof ¶
HandleMalfeasanceProof is the gossip receiver for MalfeasanceGossip.
type MockSigVerifier ¶
type MockSigVerifier struct {
// contains filtered or unexported fields
}
MockSigVerifier is a mock of SigVerifier interface.
func NewMockSigVerifier ¶
func NewMockSigVerifier(ctrl *gomock.Controller) *MockSigVerifier
NewMockSigVerifier creates a new mock instance.
func (*MockSigVerifier) EXPECT ¶
func (m *MockSigVerifier) EXPECT() *MockSigVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSigVerifierMockRecorder ¶
type MockSigVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockSigVerifierMockRecorder is the mock recorder for MockSigVerifier.
func (*MockSigVerifierMockRecorder) Verify ¶
func (mr *MockSigVerifierMockRecorder) Verify(arg0, arg1, arg2, arg3 any) *MockSigVerifierVerifyCall
Verify indicates an expected call of Verify.
type MockSigVerifierVerifyCall ¶ added in v1.4.0
MockSigVerifierVerifyCall wrap *gomock.Call
func (*MockSigVerifierVerifyCall) Do ¶ added in v1.4.0
func (c *MockSigVerifierVerifyCall) Do(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *MockSigVerifierVerifyCall
Do rewrite *gomock.Call.Do
func (*MockSigVerifierVerifyCall) DoAndReturn ¶ added in v1.4.0
func (c *MockSigVerifierVerifyCall) DoAndReturn(f func(signing.Domain, types.NodeID, []byte, types.EdSignature) bool) *MockSigVerifierVerifyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSigVerifierVerifyCall) Return ¶ added in v1.4.0
func (c *MockSigVerifierVerifyCall) Return(arg0 bool) *MockSigVerifierVerifyCall
Return rewrite *gomock.Call.Return
type MockpostVerifier ¶ added in v1.4.0
type MockpostVerifier struct {
// contains filtered or unexported fields
}
MockpostVerifier is a mock of postVerifier interface.
func NewMockpostVerifier ¶ added in v1.4.0
func NewMockpostVerifier(ctrl *gomock.Controller) *MockpostVerifier
NewMockpostVerifier creates a new mock instance.
func (*MockpostVerifier) EXPECT ¶ added in v1.4.0
func (m *MockpostVerifier) EXPECT() *MockpostVerifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockpostVerifier) Verify ¶ added in v1.4.0
func (m_2 *MockpostVerifier) Verify(ctx context.Context, p *shared.Proof, m *shared.ProofMetadata, opts ...verifying.OptionFunc) error
Verify mocks base method.
type MockpostVerifierMockRecorder ¶ added in v1.4.0
type MockpostVerifierMockRecorder struct {
// contains filtered or unexported fields
}
MockpostVerifierMockRecorder is the mock recorder for MockpostVerifier.
func (*MockpostVerifierMockRecorder) Verify ¶ added in v1.4.0
func (mr *MockpostVerifierMockRecorder) Verify(ctx, p, m any, opts ...any) *MockpostVerifierVerifyCall
Verify indicates an expected call of Verify.
type MockpostVerifierVerifyCall ¶ added in v1.4.0
MockpostVerifierVerifyCall wrap *gomock.Call
func (*MockpostVerifierVerifyCall) Do ¶ added in v1.4.0
func (c *MockpostVerifierVerifyCall) Do(f func(context.Context, *shared.Proof, *shared.ProofMetadata, ...verifying.OptionFunc) error) *MockpostVerifierVerifyCall
Do rewrite *gomock.Call.Do
func (*MockpostVerifierVerifyCall) DoAndReturn ¶ added in v1.4.0
func (c *MockpostVerifierVerifyCall) DoAndReturn(f func(context.Context, *shared.Proof, *shared.ProofMetadata, ...verifying.OptionFunc) error) *MockpostVerifierVerifyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpostVerifierVerifyCall) Return ¶ added in v1.4.0
func (c *MockpostVerifierVerifyCall) Return(arg0 error) *MockpostVerifierVerifyCall
Return rewrite *gomock.Call.Return
type Mocktortoise ¶
type Mocktortoise struct {
// contains filtered or unexported fields
}
Mocktortoise is a mock of tortoise interface.
func NewMocktortoise ¶
func NewMocktortoise(ctrl *gomock.Controller) *Mocktortoise
NewMocktortoise creates a new mock instance.
func (*Mocktortoise) EXPECT ¶
func (m *Mocktortoise) EXPECT() *MocktortoiseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mocktortoise) OnMalfeasance ¶
func (m *Mocktortoise) OnMalfeasance(arg0 types.NodeID)
OnMalfeasance mocks base method.
type MocktortoiseMockRecorder ¶
type MocktortoiseMockRecorder struct {
// contains filtered or unexported fields
}
MocktortoiseMockRecorder is the mock recorder for Mocktortoise.
func (*MocktortoiseMockRecorder) OnMalfeasance ¶
func (mr *MocktortoiseMockRecorder) OnMalfeasance(arg0 any) *MocktortoiseOnMalfeasanceCall
OnMalfeasance indicates an expected call of OnMalfeasance.
type MocktortoiseOnMalfeasanceCall ¶ added in v1.4.0
MocktortoiseOnMalfeasanceCall wrap *gomock.Call
func (*MocktortoiseOnMalfeasanceCall) Do ¶ added in v1.4.0
func (c *MocktortoiseOnMalfeasanceCall) Do(f func(types.NodeID)) *MocktortoiseOnMalfeasanceCall
Do rewrite *gomock.Call.Do
func (*MocktortoiseOnMalfeasanceCall) DoAndReturn ¶ added in v1.4.0
func (c *MocktortoiseOnMalfeasanceCall) DoAndReturn(f func(types.NodeID)) *MocktortoiseOnMalfeasanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MocktortoiseOnMalfeasanceCall) Return ¶ added in v1.4.0
func (c *MocktortoiseOnMalfeasanceCall) Return() *MocktortoiseOnMalfeasanceCall
Return rewrite *gomock.Call.Return