protocol

package
v0.0.0-...-ab61f1e Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DecryptProtoName = "threshold_decrypt"
View Source
const VerifyDKGProtoName = "threshold_verifydkg"

Variables

This section is empty.

Functions

func NewThreshDecrypt

func NewThreshDecrypt(n *onet.TreeNodeInstance) (onet.ProtocolInstance, error)

Types

type DecryptShare

type DecryptShare struct {
	*base.DecryptInput
	ExecReq *core.ExecutionRequest
}

type DecryptShareResponse

type DecryptShareResponse struct {
	Shares []Share
}

type Partial

type Partial struct {
	Shares []*share.PubShare
	Eis    []kyber.Scalar
	Fis    []kyber.Scalar
}

type Reconstruct

type Reconstruct struct {
	Partials []Partial
	Publics  map[int]kyber.Point
}

type ReconstructResponse

type ReconstructResponse struct {
	InSignatures  map[string]bdnproto.BdnSignature
	OutSignatures map[string]bdnproto.BdnSignature
}

type Share

type Share struct {
	Sh *share.PubShare
	Ei kyber.Scalar
	Fi kyber.Scalar
}

type ThreshDecrypt

type ThreshDecrypt struct {
	*onet.TreeNodeInstance

	DKGID  [32]byte
	Shared *dkgprotocol.SharedSecret
	Poly   *share.PubPoly

	DecInput       *base.DecryptInput
	ExecReq        *core.ExecutionRequest
	InputHashes    map[string][]byte
	KP             *key.Pair
	Ps             []kyber.Point
	InputReceipts  map[string]*core.OpcodeReceipt
	OutputReceipts map[string]*core.OpcodeReceipt

	Threshold int
	Success   int
	Failures  int

	Decrypted chan bool
	// contains filtered or unexported fields
}

func (*ThreshDecrypt) Start

func (d *ThreshDecrypt) Start() error

type VerifyDKG

type VerifyDKG struct {
	*onet.TreeNodeInstance

	DKGID    [32]byte
	X        kyber.Point
	ExecReq  *core.ExecutionRequest
	KP       *key.Pair
	Receipts map[string]*core.OpcodeReceipt

	Threshold int
	Success   int
	Failures  int
	Verified  chan bool
	// contains filtered or unexported fields
}

func (*VerifyDKG) Start

func (v *VerifyDKG) Start() error

type VerifyRequest

type VerifyRequest struct {
	ExecReq *core.ExecutionRequest
}

type VerifyResponse

type VerifyResponse struct {
	Signatures map[string]bdnproto.BdnSignature
}

Jump to

Keyboard shortcuts

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