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.
Click to show internal directories.
Click to hide internal directories.