config

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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