threshold

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceName = "ThresholdService"

Functions

This section is empty.

Types

type Client

type Client struct {
	*onet.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(r *onet.Roster) *Client

func (*Client) Decrypt

func (c *Client) Decrypt(input *base.DecryptInput, execReq *core.ExecutionRequest) (
	*DecryptReply, error)

func (*Client) InitDKG

func (c *Client) InitDKG(execReq *core.ExecutionRequest) (*InitDKGReply, error)

func (*Client) InitUnit

func (c *Client) InitUnit(threshold int) (*InitUnitReply, error)

type DKGID

type DKGID [32]byte

func NewDKGID

func NewDKGID(in []byte) DKGID

type DecryptReply

type DecryptReply struct {
	Output         base.DecryptOutput
	InputReceipts  map[string]*core.OpcodeReceipt
	OutputReceipts map[string]*core.OpcodeReceipt
}

type DecryptRequest

type DecryptRequest struct {
	Input   base.DecryptInput
	ExecReq core.ExecutionRequest
}

type InitDKGReply

type InitDKGReply struct {
	Output   base.DKGOutput
	Receipts map[string]*core.OpcodeReceipt
}

type InitDKGRequest

type InitDKGRequest struct {
	ExecReq core.ExecutionRequest
}

type InitUnitReply

type InitUnitReply struct{}

type InitUnitRequest

type InitUnitRequest struct {
	Roster    *onet.Roster
	Threshold int
}

type Service

type Service struct {
	*onet.ServiceProcessor
	// contains filtered or unexported fields
}

func (*Service) Decrypt

func (s *Service) Decrypt(req *DecryptRequest) (*DecryptReply, error)

func (*Service) InitDKG

func (s *Service) InitDKG(req *InitDKGRequest) (*InitDKGReply, error)

func (*Service) InitUnit

func (s *Service) InitUnit(req *InitUnitRequest) (*InitUnitReply, error)

func (*Service) NewProtocol

func (s *Service) NewProtocol(tn *onet.TreeNodeInstance, conf *onet.GenericConfig) (onet.ProtocolInstance, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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