{"modulePath":"github.com/GoPlugin/libocr","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package protocol\n\n## Constants\n\n```go\nconst ContractTransmitterTimeoutWarningGracePeriod = 50 * time.Millisecond\n```\n\n```go\nconst ReportingPluginTimeoutWarningGracePeriod = 100 * time.Millisecond\n```\n\n## Functions\n\n```go\nfunc ByzQuorumSize(n, f int) int\n```\n\n```go\nfunc Leader(epoch uint64, n int, key [16]byte) (leader commontypes.OracleID)\n```\nLeader will produce an oracle id for the given epoch.\n\n```go\nfunc RunOracle[RI any](\n\tctx context.Context,\n\n\tconfig ocr3config.SharedConfig,\n\tcontractTransmitter ocr3types.ContractTransmitter[RI],\n\tdatabase Database,\n\tid commontypes.OracleID,\n\tlocalConfig types.LocalConfig,\n\tlogger loghelper.LoggerWithContext,\n\tnetEndpoint NetworkEndpoint[RI],\n\toffchainKeyring types.OffchainKeyring,\n\tonchainKeyring ocr3types.OnchainKeyring[RI],\n\treportingPlugin ocr3types.OCR3Plugin[RI],\n\ttelemetrySender TelemetrySender,\n)\n```\nRunOracle runs one oracle instance of the offchain reporting protocol and manages the lifecycle of all underlying goroutines.\n\nRunOracle runs forever until ctx is cancelled. It will only shut down after all its sub-goroutines have exited.\n\n```go\nfunc RunPacemaker[RI any](\n\tctx context.Context,\n\n\tchNetToPacemaker \u003c-chan MessageToPacemakerWithSender[RI],\n\tchPacemakerToReportGeneration chan\u003c- EventToReportGeneration[RI],\n\tchReportGenerationToPacemaker \u003c-chan EventToPacemaker[RI],\n\tconfig ocr3config.SharedConfig,\n\tdatabase Database,\n\tid commontypes.OracleID,\n\tlocalConfig types.LocalConfig,\n\tlogger loghelper.LoggerWithContext,\n\tnetSender NetworkSender[RI],\n\toffchainKeyring types.OffchainKeyring,\n\ttelemetrySender TelemetrySender,\n\n\trestoredEpoch uint64,\n)\n```\nPacemaker keeps track of the state and message handling for an oracle participating in the off-chain reporting protocol\n\n```go\nfunc RunReportFinalization[RI any](\n\tctx context.Context,\n\n\tchNetToReportFinalization \u003c-chan MessageToReportFinalizationWithSender[RI],\n\tchReportFinalizationToTransmission chan\u003c- EventToTransmission[RI],\n\tchReportGenerationToReportFinalization \u003c-chan EventToReportFinalization[RI],\n\tconfig ocr3config.SharedConfig,\n\tcontractSigner ocr3types.OnchainKeyring[RI],\n\tcontractTransmitter ocr3types.ContractTransmitter[RI],\n\tlogger loghelper.LoggerWithContext,\n\tnetSender NetworkSender[RI],\n\treportingPlugin ocr3types.OCR3Plugin[RI],\n)\n```\n\n```go\nfunc RunReportGeneration[RI any](\n\tctx context.Context,\n\tsubprocesses *subprocesses.Subprocesses,\n\n\tchNetToReportGeneration \u003c-chan MessageToReportGenerationWithSender[RI],\n\tchPacemakerToReportGeneration \u003c-chan EventToReportGeneration[RI],\n\tchReportGenerationToPacemaker chan\u003c- EventToPacemaker[RI],\n\tchReportGenerationToReportFinalization chan\u003c- EventToReportFinalization[RI],\n\tconfig ocr3config.SharedConfig,\n\tdatabase Database,\n\tid commontypes.OracleID,\n\tlocalConfig types.LocalConfig,\n\tlogger loghelper.LoggerWithContext,\n\tnetSender NetworkSender[RI],\n\toffchainKeyring types.OffchainKeyring,\n\treportingPlugin ocr3types.OCR3Plugin[RI],\n\ttelemetrySender TelemetrySender,\n\n\trestoredCert CertifiedPrepareOrCommit,\n)\n```\n\n```go\nfunc RunTransmission[RI any](\n\tctx context.Context,\n\tsubprocesses *subprocesses.Subprocesses,\n\n\tchReportFinalizationToTransmission \u003c-chan EventToTransmission[RI],\n\tconfig ocr3config.SharedConfig,\n\tcontractTransmitter ocr3types.ContractTransmitter[RI],\n\tdatabase ocr3types.Database,\n\tid commontypes.OracleID,\n\tlocalConfig types.LocalConfig,\n\tlogger loghelper.LoggerWithContext,\n\treportingPlugin ocr3types.OCR3Plugin[RI],\n)\n```\nTransmissionProtocol tracks the local oracle process's role in the transmission of a report to the on-chain oracle contract.\n\nNote: The transmission protocol doesn't clean up pending transmissions when it is terminated. This is by design, but means that old pending transmissions may accumulate in the database. They should be garbage collected once in a while.\n\n## Types\n\n```go\ntype AttestedReportMany[RI any] struct {\n\tReportWithInfo       ocr3types.ReportWithInfo[RI]\n\tAttributedSignatures []types.AttributedOnchainSignature\n}\n```\n\n```go\ntype AttributedCommitSignature struct {\n\tSignature CommitSignature\n\tSigner    commontypes.OracleID\n}\n```\n\n```go\ntype AttributedPrepareSignature struct {\n\tSignature PrepareSignature\n\tSigner    commontypes.OracleID\n}\n```\n\n```go\ntype AttributedSignedHighestCertifiedTimestamp struct {\n\tSignedHighestCertifiedTimestamp SignedHighestCertifiedTimestamp\n\tSigner                          commontypes.OracleID\n}\n```\n\n```go\ntype AttributedSignedObservation struct {\n\tSignedObservation SignedObservation\n\tObserver          commontypes.OracleID\n}\n```\n\n```go\ntype CertifiedPrepareOrCommit interface {\n\tEpoch() uint64\n\tTimestamp() HighestCertifiedTimestamp\n\tIsGenesis() bool\n\tVerify(\n\t\t_ types.ConfigDigest,\n\t\t_ []config.OracleIdentity,\n\t\tn int,\n\t\tf int,\n\t) error\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype CertifiedPrepareOrCommitCommit struct {\n\tCommitEpoch             uint64\n\tSeqNr                   uint64\n\tOutcome                 ocr3types.Outcome\n\tCommitQuorumCertificate []AttributedCommitSignature\n}\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitCommit) Epoch() uint64\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitCommit) IsGenesis() bool\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitCommit) Timestamp() HighestCertifiedTimestamp\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitCommit) Verify(\n\tconfigDigest types.ConfigDigest,\n\toracleIdentities []config.OracleIdentity,\n\tn int,\n\tf int,\n) error\n```\n\n```go\ntype CertifiedPrepareOrCommitPrepare struct {\n\tPrepareEpoch             uint64\n\tSeqNr                    uint64\n\tOutcomeInputsDigest      OutcomeInputsDigest\n\tOutcome                  ocr3types.Outcome\n\tPrepareQuorumCertificate []AttributedPrepareSignature\n}\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitPrepare) Epoch() uint64\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitPrepare) IsGenesis() bool\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitPrepare) Timestamp() HighestCertifiedTimestamp\n```\n\n```go\nfunc (hc *CertifiedPrepareOrCommitPrepare) Verify(\n\tconfigDigest types.ConfigDigest,\n\toracleIdentities []config.OracleIdentity,\n\tn int,\n\tf int,\n) error\n```\n\n```go\ntype CommitSignature []byte\n```\n\n```go\nfunc MakeCommitSignature(\n\tocr3ts Timestamp,\n\tseqNr uint64,\n\toutcomeDigest OutcomeDigest,\n\tsigner func(msg []byte) ([]byte, error),\n) (CommitSignature, error)\n```\n\n```go\nfunc (sig CommitSignature) Verify(\n\tocr3ts Timestamp,\n\tseqNr uint64,\n\toutcomeDigest OutcomeDigest,\n\tpublicKey types.OffchainPublicKey,\n) error\n```\n\n```go\ntype Database interface {\n\ttypes.ConfigDatabase\n\n\tReadCert(ctx context.Context, configDigest types.ConfigDigest) (CertifiedPrepareOrCommit, error)\n\tWriteCert(ctx context.Context, configDigest types.ConfigDigest, cert CertifiedPrepareOrCommit) error\n}\n```\n\n```go\ntype EventChangeLeader[RI any] struct{}\n```\nEventChangeLeader is used to process the \"change-leader\" event passed by the local oracle from its the reporting protocol to the leader-election protocol\n\n```go\ntype EventDeliver[RI any] struct {\n\tCertifiedCommit CertifiedPrepareOrCommitCommit\n}\n```\n\n```go\ntype EventMissingOutcome[RI any] struct {\n\tSeqNr uint64\n}\n```\n\n```go\ntype EventProgress[RI any] struct{}\n```\nEventProgress is used to process the \"progress\" event passed by the local oracle from its the reporting protocol to the leader-election protocol. It is sent by the reporting protocol when the leader has produced a valid new report.\n\n```go\ntype EventStartNewEpoch[RI any] struct {\n\tEpoch uint64\n}\n```\n\n```go\ntype EventToPacemaker[RI any] interface {\n\t// contains filtered or unexported methods\n}\n```\nEventToPacemaker is the interface used to pass in-process events to the leader-election protocol.\n\n```go\ntype EventToReportFinalization[RI any] interface {\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype EventToReportGeneration[RI any] interface {\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype EventToTransmission[RI any] interface {\n\t// contains filtered or unexported methods\n}\n```\nEventToTransmission is the interface used to pass a completed report to the protocol which will transmit it to the on-chain smart contract.\n\n```go\ntype EventTransmit[RI any] struct {\n\tSeqNr          uint64\n\tIndex          int\n\tAttestedReport AttestedReportMany[RI]\n}\n```\nEventTransmit is used to process the \"transmit\" event passed by the local reporting protocol to to the local transmit-to-the-onchain-smart-contract protocol.\n\n```go\ntype HighestCertifiedTimestamp struct {\n\tSeqNr                 uint64\n\tCommittedElsePrepared bool\n}\n```\n\n```go\nfunc (t HighestCertifiedTimestamp) Less(t2 HighestCertifiedTimestamp) bool\n```\n\n```go\ntype Message[RI any] interface {\n\t// CheckSize checks whether the given message conforms to the limits imposed by\n\t// reportingPluginLimits\n\tCheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n\t// contains filtered or unexported methods\n}\n```\nMessage is the interface used to pass an inter-oracle message to the local oracle process.\n\n```go\ntype MessageBuffer[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\nMessageBuffer implements a fixed capacity ringbuffer for items of type MessageToReportGeneration\n\n```go\nfunc NewMessageBuffer[RI any](cap int) *MessageBuffer[RI]\n```\n\n```go\nfunc (rb *MessageBuffer[RI]) Peek() *MessageToReportGeneration[RI]\n```\nPeek at the front item\n\n```go\nfunc (rb *MessageBuffer[RI]) Pop() *MessageToReportGeneration[RI]\n```\nPop front item\n\n```go\nfunc (rb *MessageBuffer[RI]) Push(msg MessageToReportGeneration[RI])\n```\nPush new item to back. If the additional item would lead to the capacity being exceeded, remove the front item first\n\n```go\ntype MessageCommit[RI any] struct {\n\tEpoch     uint64\n\tSeqNr     uint64\n\tSignature CommitSignature\n}\n```\n\n```go\nfunc (msg MessageCommit[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageFinal[RI any] struct {\n\tSeqNr            uint64\n\tReportSignatures [][]byte\n}\n```\nMessageFinal corresponds to the \"final\" message in alg. 2. It is sent by the current leader with the aggregated signature(s) to all participating oracles, for them to participate in the subsequent transmission of the report to the on-chain contract.\n\n```go\nfunc (msg MessageFinal[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageNewEpoch[RI any] struct {\n\tEpoch uint64\n}\n```\nMessageNewEpoch corresponds to the \"newepoch(epoch\\_number)\" message from alg. 1. It indicates that the node believes the protocol should move to the specified epoch.\n\n```go\nfunc (msg MessageNewEpoch[RI]) CheckSize(types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageObserve[RI any] struct {\n\tEpoch             uint64\n\tSeqNr             uint64\n\tSignedObservation SignedObservation\n}\n```\nMessageObserve corresponds to the \"observe\" message from alg. 2. Participating oracles send this back to the leader in response to MessageStartRound's.\n\n```go\nfunc (msg MessageObserve[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessagePrepare[RI any] struct {\n\tEpoch     uint64\n\tSeqNr     uint64\n\tSignature PrepareSignature\n}\n```\n\n```go\nfunc (msg MessagePrepare[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessagePropose[RI any] struct {\n\tEpoch                        uint64\n\tSeqNr                        uint64\n\tAttributedSignedObservations []AttributedSignedObservation\n}\n```\n\n```go\nfunc (msg MessagePropose[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageReconcile[RI any] struct {\n\tEpoch                           uint64\n\tHighestCertified                CertifiedPrepareOrCommit\n\tSignedHighestCertifiedTimestamp SignedHighestCertifiedTimestamp\n}\n```\n\n```go\nfunc (msg MessageReconcile[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageRequestCertifiedCommit[RI any] struct {\n\tSeqNr uint64\n}\n```\n\n```go\nfunc (msg MessageRequestCertifiedCommit[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageStartEpoch[RI any] struct {\n\tEpoch           uint64\n\tStartEpochProof StartEpochProof\n}\n```\n\n```go\nfunc (msg MessageStartEpoch[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageStartRound[RI any] struct {\n\tEpoch uint64\n\tSeqNr uint64\n\tQuery types.Query\n}\n```\nMessageStartRound corresponds to the \"observe-req\" message from alg. 2. The leader transmits this to request observations from participating oracles, so that it can collate them into a report.\n\n```go\nfunc (msg MessageStartRound[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageSupplyCertifiedCommit[RI any] struct {\n\tCertifiedCommit CertifiedPrepareOrCommitCommit\n}\n```\n\n```go\nfunc (msg MessageSupplyCertifiedCommit[RI]) CheckSize(reportingPluginLimits types.ReportingPluginLimits) bool\n```\n\n```go\ntype MessageToPacemaker[RI any] interface {\n\tMessage[RI]\n\t// contains filtered or unexported methods\n}\n```\nMessageToPacemaker is the interface used to pass a message to the local leader-election protocol\n\n```go\ntype MessageToPacemakerWithSender[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\nMessageToPacemakerWithSender records a msg with the idx of the sender oracle\n\n```go\ntype MessageToReportFinalization[RI any] interface {\n\tMessage[RI]\n\t// contains filtered or unexported methods\n}\n```\n\n```go\ntype MessageToReportFinalizationWithSender[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype MessageToReportGeneration[RI any] interface {\n\tMessage[RI]\n\t// contains filtered or unexported methods\n}\n```\nMessageToReportGeneration is the interface used to pass an inter-oracle message to the local oracle reporting process.\n\n```go\ntype MessageToReportGenerationWithSender[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\nMessageToReportGenerationWithSender records a message destined for the oracle reporting\n\n```go\ntype MessageWithSender[RI any] struct {\n\tMsg    Message[RI]\n\tSender commontypes.OracleID\n}\n```\nMessageWithSender records a msg with the index of the sender oracle\n\n```go\ntype MinHeapTimeToPendingTransmission[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\nType safe wrapper around MinHeapTimeToContractReportInternal\n\n```go\nfunc (h *MinHeapTimeToPendingTransmission[RI]) Len() int\n```\n\n```go\nfunc (h *MinHeapTimeToPendingTransmission[RI]) Peek() MinHeapTimeToPendingTransmissionItem[RI]\n```\n\n```go\nfunc (h *MinHeapTimeToPendingTransmission[RI]) Pop() MinHeapTimeToPendingTransmissionItem[RI]\n```\n\n```go\nfunc (h *MinHeapTimeToPendingTransmission[RI]) Push(item MinHeapTimeToPendingTransmissionItem[RI])\n```\n\n```go\ntype MinHeapTimeToPendingTransmissionInternal[RI any] []MinHeapTimeToPendingTransmissionItem[RI]\n```\nImplements heap.Interface and uses interface{} all over the place.\n\n```go\nfunc (pq MinHeapTimeToPendingTransmissionInternal[RI]) Len() int\n```\n\n```go\nfunc (pq MinHeapTimeToPendingTransmissionInternal[RI]) Less(i, j int) bool\n```\n\n```go\nfunc (pq *MinHeapTimeToPendingTransmissionInternal[RI]) Pop() interface{}\n```\n\n```go\nfunc (pq *MinHeapTimeToPendingTransmissionInternal[RI]) Push(x interface{})\n```\n\n```go\nfunc (pq MinHeapTimeToPendingTransmissionInternal[RI]) Swap(i, j int)\n```\n\n```go\ntype MinHeapTimeToPendingTransmissionItem[RI any] struct {\n\tTime           time.Time\n\tSeqNr          uint64\n\tIndex          int\n\tAttestedReport AttestedReportMany[RI]\n}\n```\n\n```go\ntype NetworkEndpoint[RI any] interface {\n\tNetworkSender[RI]\n\t// Receive returns channel which carries all messages sent to this oracle\n\tReceive() \u003c-chan MessageWithSender[RI]\n\n\t// Start must be called before Receive. Calling Start more than once causes\n\t// panic.\n\tStart() error\n\n\t// Close must be called before receive. Close can be called multiple times.\n\t// Close can be called even on an unstarted NetworkEndpoint.\n\tClose() error\n}\n```\nNetworkEndpoint sends \u0026 receives messages to/from other oracles\n\n```go\ntype NetworkSender[RI any] interface {\n\t// SendTo(msg, to) sends msg to \"to\"\n\tSendTo(msg Message[RI], to commontypes.OracleID)\n\t// Broadcast(msg) sends msg to all oracles\n\tBroadcast(msg Message[RI])\n}\n```\nNetworkSender sends messages to other oracles\n\n```go\ntype OutcomeDigest [32]byte\n```\n\n```go\nfunc MakeOutcomeDigest(outcome ocr3types.Outcome) OutcomeDigest\n```\n\n```go\ntype OutcomeInputsDigest [32]byte\n```\n\n```go\nfunc MakeOutcomeInputsDigest(\n\tocr3ts Timestamp,\n\tpreviousOutcome ocr3types.Outcome,\n\tseqNr uint64,\n\tquery types.Query,\n\tattributedObservations []types.AttributedObservation,\n) OutcomeInputsDigest\n```\n\n```go\ntype PrepareSignature []byte\n```\n\n```go\nfunc MakePrepareSignature(\n\tocr3ts Timestamp,\n\tseqNr uint64,\n\toutcomeInputsDigest OutcomeInputsDigest,\n\toutcomeDigest OutcomeDigest,\n\tsigner func(msg []byte) ([]byte, error),\n) (PrepareSignature, error)\n```\n\n```go\nfunc (sig PrepareSignature) Verify(\n\tocr3ts Timestamp,\n\tseqNr uint64,\n\toutcomeInputsDigest OutcomeInputsDigest,\n\toutcomeDigest OutcomeDigest,\n\tpublicKey types.OffchainPublicKey,\n) error\n```\n\n```go\ntype SignedHighestCertifiedTimestamp struct {\n\tHighestCertifiedTimestamp HighestCertifiedTimestamp\n\tSignature                 []byte\n}\n```\n\n```go\nfunc MakeSignedHighestCertifiedTimestamp(\n\tocr3ts Timestamp,\n\thighestCertifiedTimestamp HighestCertifiedTimestamp,\n\tsigner func(msg []byte) ([]byte, error),\n) (SignedHighestCertifiedTimestamp, error)\n```\n\n```go\nfunc (shct *SignedHighestCertifiedTimestamp) Verify(ocr3ts Timestamp, publicKey types.OffchainPublicKey) error\n```\n\n```go\ntype SignedObservation struct {\n\tObservation types.Observation\n\tSignature   []byte\n}\n```\n\n```go\nfunc MakeSignedObservation(\n\tocr3ts Timestamp,\n\tquery types.Query,\n\tobservation types.Observation,\n\tsigner func(msg []byte) (sig []byte, err error),\n) (\n\tSignedObservation,\n\terror,\n)\n```\n\n```go\nfunc (so SignedObservation) Verify(ocr3ts Timestamp, query types.Query, publicKey types.OffchainPublicKey) error\n```\n\n```go\ntype SimpleNetwork[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\nSimpleNetwork is a strawman (in-memory) implementation of the Network interface. Network channels are buffered and can queue up to 100 messages before blocking.\n\n```go\nfunc NewSimpleNetwork[RI any](n int) *SimpleNetwork[RI]\n```\nNewSimpleNetwork returns a SimpleNetwork for n oracles\n\n```go\nfunc (net *SimpleNetwork[RI]) Endpoint(id commontypes.OracleID) (NetworkEndpoint[RI], error)\n```\nEndpoint returns the interface for oracle id's networking facilities\n\n```go\ntype SimpleNetworkEndpoint[RI any] struct {\n\t// contains filtered or unexported fields\n}\n```\nSimpleNetworkEndpoint is a strawman (in-memory) implementation of NetworkEndpoint, used by SimpleNetwork\n\n```go\nfunc (end SimpleNetworkEndpoint[RI]) Broadcast(msg Message[RI])\n```\nBroadcast sends msg to all participating oracles\n\n```go\nfunc (SimpleNetworkEndpoint[RI]) Close() error\n```\nClose satisfies the interface\n\n```go\nfunc (end SimpleNetworkEndpoint[RI]) Receive() \u003c-chan MessageWithSender[RI]\n```\nReceive returns a channel which carries all messages sent to the oracle\n\n```go\nfunc (end SimpleNetworkEndpoint[RI]) SendTo(msg Message[RI], to commontypes.OracleID)\n```\nSendTo sends msg to oracle \"to\"\n\n```go\nfunc (SimpleNetworkEndpoint[RI]) Start() error\n```\nStart satisfies the interface\n\n```go\ntype StartEpochProof struct {\n\tHighestCertified      CertifiedPrepareOrCommit\n\tHighestCertifiedProof []AttributedSignedHighestCertifiedTimestamp\n}\n```\n\n```go\nfunc (qc *StartEpochProof) Verify(\n\tocr3ts Timestamp,\n\toracleIdentities []config.OracleIdentity,\n\tn int,\n\tf int,\n) error\n```\n\n```go\ntype TelemetrySender interface {\n\tRoundStarted(\n\t\tconfigDigest types.ConfigDigest,\n\t\tepoch uint64,\n\t\tround uint8,\n\t\tleader commontypes.OracleID,\n\t)\n}\n```\n\n```go\ntype Timestamp struct {\n\tConfigDigest types.ConfigDigest\n\tEpoch        uint64\n}\n```\n\n```go\ntype XXXUnknownMessageType[RI any] struct{}\n```\nUsed only for testing\n\n```go\nfunc (XXXUnknownMessageType[RI]) CheckSize(types.ReportingPluginLimits) bool\n```\nConform to protocol.Message interface\n\n","path":"github.com/GoPlugin/libocr/offchainreporting2plus/internal/ocr3/protocol","name":"protocol","synopsis":"","isRedistributable":true}
