ocr3util

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsOCR3OnchainKeyring2IgnoringRI

func AsOCR3OnchainKeyring2IgnoringRI[RI any](k OnchainKeyring2) ocr3types.OnchainKeyring2[RI]

Be careful! If you use this shim, any information in RI is dropped and *not* signed over. If you have security-critical information in RI, you should make your own ocr3types.OnchainKeyring2 that does use the information in RI for signing.

Types

type OnchainKeyring2

type OnchainKeyring2 interface {
	Sign(configDigest ocrtypes.ConfigDigest, seqNr uint64, report types.Report) (signature []byte, err error)
	Verify(publicKey ocrtypes.OnchainPublicKey, configDigest ocrtypes.ConfigDigest, seqNr uint64, report types.Report, signature []byte) bool
	Has(publicKey ocrtypes.OnchainPublicKey) bool
	MaxSignatureLength() int
	DebugIdentifier() string
}

OnchainKeyring2 is a genericless counterpart of ocr3types.OnchainKeyring2. If generic RI does not matter, then it is more convenient to implement this interface and then use AsOCR3OnchainKeyring2 to use it as ocr3types.OnchainKeyring2.

Jump to

Keyboard shortcuts

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