threshold

package
v2.12.1-mercury06192024 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecryptionQueue

func NewDecryptionQueue(maxQueueLength int, maxCiphertextBytes int, maxCiphertextIdLen int, completedRequestsCacheTimeout time.Duration, lggr logger.Logger) *decryptionQueue

func NewThresholdService added in v2.4.0

func NewThresholdService(sharedOracleArgs *libocr2.OCR2OracleArgs, conf *ThresholdServicesConfig) (job.ServiceCtx, error)

func UnmarshalKeys added in v2.4.0

func UnmarshalKeys(raw []byte) (publicKey tdh2easy.PublicKey, privateShare tdh2easy.PrivateShare, err error)

Types

type Decryptor

type Decryptor interface {
	Decrypt(ctx context.Context, ciphertextId decryptionPlugin.CiphertextId, ciphertext []byte) ([]byte, error)
}

type KeyshareWithPubKey added in v2.4.0

type KeyshareWithPubKey struct {
	PublicKey       json.RawMessage //tdh2easy.PublicKey
	PrivateKeyShare json.RawMessage //tdh2easy.PrivateShare
}

type ThresholdServicesConfig added in v2.4.0

type ThresholdServicesConfig struct {
	DecryptionQueue    decryptionPlugin.DecryptionQueuingService
	KeyshareWithPubKey []byte
	ConfigParser       decryptionPluginConfig.ConfigParser
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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