Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePluginConfig ¶
func ValidatePluginConfig(config PluginConfig, dkgSignKs keystore.DKGSign, dkgEncryptKs keystore.DKGEncrypt) error
ValidatePluginConfig validates that the given OCR2VRF plugin configuration is correct.
Types ¶
type PluginConfig ¶
type PluginConfig struct { // DKG configuration fields. DKGEncryptionPublicKey string `json:"dkgEncryptionPublicKey"` DKGSigningPublicKey string `json:"dkgSigningPublicKey"` DKGKeyID string `json:"dkgKeyID"` DKGContractAddress string `json:"dkgContractAddress"` // VRF configuration fields VRFCoordinatorAddress string `json:"vrfCoordinatorAddress"` LinkEthFeedAddress string `json:"linkEthFeedAddress"` }
PluginConfig contains custom arguments for the OCR2VRF plugin.
The OCR2VRF plugin runs a DKG under the hood, so it will need both DKG and OCR2VRF configuration fields.
The DKG contract address is provided in the plugin configuration, however the OCR2VRF contract address is provided in the OCR2 job spec under the 'contractID' key.
Click to show internal directories.
Click to hide internal directories.