retirement

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 13 Imported by: ? 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 NewNeverShouldRetireCache

func NewNeverShouldRetireCache() llotypes.ShouldRetireCache

Types

type Config

type Config struct {
	Digest  [32]byte      `db:"config_digest"`
	Signers pq.ByteaArray `db:"signers"`
	F       uint8         `db:"f"`
}

type NullRetirementReportCache

type NullRetirementReportCache struct{}

func (*NullRetirementReportCache) AttestedRetirementReport

func (n *NullRetirementReportCache) AttestedRetirementReport(predecessorConfigDigest ocr2types.ConfigDigest) ([]byte, error)

func (*NullRetirementReportCache) CheckAttestedRetirementReport

func (n *NullRetirementReportCache) CheckAttestedRetirementReport(predecessorConfigDigest ocr2types.ConfigDigest, attestedRetirementReport []byte) (protocol.RetirementReport, error)

func (*NullRetirementReportCache) StoreAttestedRetirementReport

func (n *NullRetirementReportCache) StoreAttestedRetirementReport(ctx context.Context, cd ocr2types.ConfigDigest, retirementReport []byte, sigs []types.AttributedOnchainSignature) error

func (*NullRetirementReportCache) StoreConfig

func (n *NullRetirementReportCache) StoreConfig(ctx context.Context, cd ocr2types.ConfigDigest, signers [][]byte, f uint8) error

type RetirementReportCache

type RetirementReportCache interface {
	services.Service
	StoreAttestedRetirementReport(ctx context.Context, cd ocrtypes.ConfigDigest, seqNr uint64, retirementReport []byte, sigs []types.AttributedOnchainSignature) error
	StoreConfig(ctx context.Context, cd ocr2types.ConfigDigest, signers [][]byte, f uint8) error
	RetirementReportCacheReader
}

RetirementReportCache is intended to be a global singleton that is wrapped by a PluginScopedRetirementReportCache for a given plugin

func NewRetirementReportCache

func NewRetirementReportCache(lggr logger.Logger, ds sqlutil.DataSource) RetirementReportCache

type RetirementReportCacheORM

type RetirementReportCacheORM interface {
	StoreAttestedRetirementReport(ctx context.Context, cd ocr2types.ConfigDigest, attestedRetirementReport []byte) error
	LoadAttestedRetirementReports(ctx context.Context) (map[ocr2types.ConfigDigest][]byte, error)
	StoreConfig(ctx context.Context, cd ocr2types.ConfigDigest, signers [][]byte, f uint8) error
	LoadConfigs(ctx context.Context) ([]Config, error)
}

type RetirementReportCacheReader

type RetirementReportCacheReader interface {
	AttestedRetirementReport(cd ocr2types.ConfigDigest) ([]byte, bool)
	Config(cd ocr2types.ConfigDigest) (Config, bool)
}

RetirementReportCacheReader is used by the plugin-scoped RetirementReportCache

type RetirementReportVerifier

type RetirementReportVerifier interface {
	Verify(key types.OnchainPublicKey, digest types.ConfigDigest, seqNr uint64, r ocr3types.ReportWithInfo[llotypes.ReportInfo], signature []byte) bool
}

Jump to

Keyboard shortcuts

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