mercuryshim

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (t *MercuryOCR3ContractTransmitter) FromAccount() (types.Account, error)

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(outctx ocr3types.OutcomeContext, query types.Query) (ocr3types.Quorum, error)

func (*MercuryReportingPlugin) Outcome

func (*MercuryReportingPlugin) Query

func (*MercuryReportingPlugin) Reports

func (*MercuryReportingPlugin) ShouldAcceptAttestedReport

func (*MercuryReportingPlugin) ShouldTransmitAcceptedReport

func (*MercuryReportingPlugin) ValidateObservation

func (p *MercuryReportingPlugin) ValidateObservation(outctx ocr3types.OutcomeContext, query types.Query, ao types.AttributedObservation) error

Jump to

Keyboard shortcuts

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