mercuryshim

package
v0.0.0-...-e5b78d8 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportingPluginLimits

func ReportingPluginLimits(mercuryPluginLimits ocr3types.MercuryPluginLimits) ocr3types.ReportingPluginLimits

Types

type MercuryOCR3ContractTransmitter

type MercuryOCR3ContractTransmitter struct {
	// contains filtered or unexported fields
}

func NewMercuryOCR3ContractTransmitter

func NewMercuryOCR3ContractTransmitter(ocr2ContractTransmitter types.ContractTransmitter) *MercuryOCR3ContractTransmitter

func (*MercuryOCR3ContractTransmitter) FromAccount

func (*MercuryOCR3ContractTransmitter) Transmit

type MercuryOCR3OnchainKeyring

type MercuryOCR3OnchainKeyring struct {
	// contains filtered or unexported fields
}

func NewMercuryOCR3OnchainKeyring

func NewMercuryOCR3OnchainKeyring(ocr2OnchainKeyring types.OnchainKeyring) *MercuryOCR3OnchainKeyring

func (*MercuryOCR3OnchainKeyring) MaxSignatureLength

func (ok *MercuryOCR3OnchainKeyring) MaxSignatureLength() int

func (*MercuryOCR3OnchainKeyring) PublicKey

func (*MercuryOCR3OnchainKeyring) Sign

func (ok *MercuryOCR3OnchainKeyring) Sign(configDigest types.ConfigDigest, seqNr uint64, reportWithInfo ocr3types.ReportWithInfo[MercuryReportInfo]) (signature []byte, err error)

func (*MercuryOCR3OnchainKeyring) Verify

func (ok *MercuryOCR3OnchainKeyring) Verify(pubkey types.OnchainPublicKey, configDigest types.ConfigDigest, seqNr uint64, reportWithInfo ocr3types.ReportWithInfo[MercuryReportInfo], sig []byte) bool

type MercuryReportInfo

type MercuryReportInfo struct {
	Epoch uint32
	Round uint8
}

type MercuryReportingPlugin

type MercuryReportingPlugin struct {
	Config       ocr3types.ReportingPluginConfig
	Logger       loghelper.LoggerWithContext
	Plugin       ocr3types.MercuryPlugin
	PluginLimits ocr3types.MercuryPluginLimits
}

func (*MercuryReportingPlugin) Close

func (p *MercuryReportingPlugin) Close() error

func (*MercuryReportingPlugin) Observation

func (*MercuryReportingPlugin) ObservationQuorum

func (p *MercuryReportingPlugin) ObservationQuorum(ctx context.Context, outctx ocr3types.OutcomeContext, query types.Query, aos []types.AttributedObservation) (bool, error)

func (*MercuryReportingPlugin) Outcome

func (*MercuryReportingPlugin) Query

func (*MercuryReportingPlugin) Reports

func (*MercuryReportingPlugin) ShouldAcceptAttestedReport

func (*MercuryReportingPlugin) ShouldTransmitAcceptedReport

func (*MercuryReportingPlugin) ValidateObservation

Jump to

Keyboard shortcuts

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