ocr

package
v0.1.0-test Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCCIPTransmitter

func NewCCIPTransmitter(
	txm txm.TxManager,
	lggr logger.Logger,
) (ocr3types.ContractTransmitter[[]byte], error)

Types

type RawReportContext3Func

type RawReportContext3Func func(configDigest [32]byte, seqNr uint64) [2][32]byte

type ToEd25519CalldataFunc

type ToEd25519CalldataFunc func(
	rawReportCtx [2][32]byte,
	report ocr3types.ReportWithInfo[[]byte],
	signatures [][96]byte,
	codec ccipocr3.ExtraDataCodec,
) (contract string, method string, args any, err error)

ToEd25519CalldataFunc is a function that takes in the OCR3 report and Ed25519 signature data and processes them. It returns the contract name, method name, and arguments for the on-chain contract call. The ReportWithInfo bytes field is also decoded according to the implementation of this function, the commit and execute plugins have different representations for this data. Ed25519 signatures are 96 bytes long (64 bytes signature + 32 bytes public key).

Jump to

Keyboard shortcuts

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