Documentation ¶
Index ¶
Constants ¶
View Source
const DummyProofType fraud.ProofType = "DummyProof"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyProof ¶
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)
Click to show internal directories.
Click to hide internal directories.