threshold

package
v2.1.0-mercury-20230522 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDecryptionQueue

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

Types

type CiphertextId

type CiphertextId = []byte

type DecryptionQueuingService

type DecryptionQueuingService interface {
	GetRequests(requestCountLimit int, totalBytesLimit int) []DecryptionRequest
	GetCiphertext(ciphertextId CiphertextId) ([]byte, error)
	ReturnResult(ciphertextId CiphertextId, plaintext []byte)
}

This interface will be replaced by the Threshold Decryption Plugin when it is ready

type DecryptionRequest

type DecryptionRequest struct {
	// contains filtered or unexported fields
}

type Decryptor

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

Jump to

Keyboard shortcuts

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