fraudtest

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DummyProofType fraud.ProofType = "DummyProof"

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyProof

type DummyProof[H header.Header[H]] struct {
	Valid  bool
	Panics bool
}

func NewInvalidProof

func NewInvalidProof[H header.Header[H]]() *DummyProof[H]

func NewPanickingProof added in v0.2.1

func NewPanickingProof[H header.Header[H]]() *DummyProof[H]

func NewValidProof

func NewValidProof[H header.Header[H]]() *DummyProof[H]

func (*DummyProof[H]) HeaderHash

func (m *DummyProof[H]) HeaderHash() []byte

func (*DummyProof[H]) Height

func (m *DummyProof[H]) Height() uint64

func (*DummyProof[H]) MarshalBinary

func (m *DummyProof[H]) MarshalBinary() (data []byte, err error)

func (*DummyProof[H]) Type

func (m *DummyProof[H]) Type() fraud.ProofType

func (*DummyProof[H]) UnmarshalBinary

func (m *DummyProof[H]) UnmarshalBinary(data []byte) error

func (*DummyProof[H]) Validate

func (m *DummyProof[H]) Validate(H) error

type DummyService

type DummyService[H header.Header[H]] struct{}

func (*DummyService[H]) Broadcast

func (d *DummyService[H]) Broadcast(context.Context, fraud.Proof[H]) error

func (*DummyService[H]) Get

func (d *DummyService[H]) Get(context.Context, fraud.ProofType) ([]fraud.Proof[*headertest.DummyHeader], error)

func (*DummyService[H]) Subscribe

func (d *DummyService[H]) Subscribe(fraud.ProofType) (fraud.Subscription[H], error)

Jump to

Keyboard shortcuts

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