Documentation
¶
Index ¶
- func RawReportContext3(digest types.ConfigDigest, seqNr uint64) [2][32]byte
- func ReportToSigData(reportCtx ocrtypes.ReportContext, report ocrtypes.Report) []byte
- func ReportToSigData3(digest types.ConfigDigest, seqNr uint64, r ocrtypes.Report) []byte
- func ToEncryptedJSON(key KeyBundle, password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
- type EncryptedOCRKeyExport
- type KeyBundle
- type OCR3SignerVerifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawReportContext3 ¶
func RawReportContext3(digest types.ConfigDigest, seqNr uint64) [2][32]byte
func ReportToSigData ¶
func ReportToSigData(reportCtx ocrtypes.ReportContext, report ocrtypes.Report) []byte
func ReportToSigData3 ¶
func ToEncryptedJSON ¶
func ToEncryptedJSON(key KeyBundle, password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
Types ¶
type EncryptedOCRKeyExport ¶
type EncryptedOCRKeyExport struct {
KeyType string `json:"keyType"`
ChainType corekeys.ChainType `json:"chainType"`
ID string `json:"id"`
OnchainPublicKey string `json:"onchainPublicKey"`
OffChainPublicKey string `json:"offchainPublicKey"`
ConfigPublicKey string `json:"configPublicKey"`
Crypto keystore.CryptoJSON `json:"crypto"`
}
EncryptedOCRKeyExport represents encrypted OCR key export
func (EncryptedOCRKeyExport) GetCrypto ¶
func (x EncryptedOCRKeyExport) GetCrypto() keystore.CryptoJSON
type KeyBundle ¶
type KeyBundle interface {
// OnchainKeyring is used for signing reports (groups of observations, verified onchain)
ocrtypes.OnchainKeyring
// offchainKeyring is used for signing observations
ocrtypes.OffchainKeyring
OCR3SignerVerifier
ID() string
ChainType() corekeys.ChainType
Marshal() ([]byte, error)
Unmarshal(b []byte) (err error)
Raw() internal.Raw
OnChainPublicKey() string
// Decrypts ciphertext using the encryptionKey from an OCR2 offchainKeyring
NaclBoxOpenAnonymous(ciphertext []byte) (plaintext []byte, err error)
}
func FromEncryptedJSON ¶
FromEncryptedJSON returns key from encrypted json
func MustNewInsecure ¶
MustNewInsecure returns key bundle based on the chain type or panics
type OCR3SignerVerifier ¶
type OCR3SignerVerifier interface {
SignBlob(b []byte) (sig []byte, err error)
VerifyBlob(publicKey ocrtypes.OnchainPublicKey, b []byte, sig []byte) bool
Sign3(digest ocrtypes.ConfigDigest, seqNr uint64, r ocrtypes.Report) (signature []byte, err error)
Verify3(publicKey ocrtypes.OnchainPublicKey, cd ocrtypes.ConfigDigest, seqNr uint64, r ocrtypes.Report, signature []byte) bool
}
Click to show internal directories.
Click to hide internal directories.