config

package
v1.7.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 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
	LinkEthFeedAddress string   `json:"linkEthFeedAddress"`
	ConfirmationDelays []uint32 `json:"confirmationDelays"`
	LookbackBlocks     int64    `json:"lookbackBlocks"`
}

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