dpcc

package module
v0.0.0-...-83e1d0d Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

README

Initial codebase retrieved from https://github.com/dedis/student_18_decenar.

Documentation

Index

Constants

View Source
const ServiceName = "DPPC"

ServiceName is used for registration on the onet.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*onet.Client
}

Client is a structure to communicate with the DWC service

func NewClient

func NewClient() *Client

NewClient instantiates a new decenarch.Client

func (*Client) PrivateHashRequest

func (c *Client) PrivateHashRequest(r *onet.Roster, URL string) (*HashPrivateResponse, error)

PrivateHashRequest sends a request for a private hash protocol to the roster

func (*Client) PublicHashRequest

func (c *Client) PublicHashRequest(r *onet.Roster, URL string) (*HashPublicResponse, error)

PublicHashRequest sends a request for a public hash protocol to the roster

type HashPrivateRequest

type HashPrivateRequest struct {
	Roster           *onet.Roster
	URL              string
	ClientPublicKeys map[string]kyber.Point
}

HashPrivateRequest is used by the client to send a request of a hash private protocol to the leader of the roster

type HashPrivateResponse

type HashPrivateResponse struct {
	Hashes    map[string][]byte
	Responses map[string]*HashPrivateSingleResponse
}

HashPrivateResponse is used by the leader of the protocol to send the results of the hash private protocol back to the client

type HashPrivateSingleResponse

type HashPrivateSingleResponse struct {
	PublicKey     kyber.Point
	EncryptedHash []byte
	Nonce         []byte
}

HashPrivateSingleResponse is a helper for HashPrivateResponse and stores the response of a single worker in the roster of the hash private protocol

type HashPublicRequest

type HashPublicRequest struct {
	Roster *onet.Roster
	URL    string
	Nonce  []byte
}

HashPublicRequest is used by the client to send a request of a hash public protocol to the leader of the roster

type HashPublicResponse

type HashPublicResponse struct {
	Responses map[string]*HashPublicSingleResponse
}

HashPublicResponse is used by the leader of the protocol to send the results of the hash public protocol to the client

type HashPublicSingleResponse

type HashPublicSingleResponse struct {
	PubliKey  kyber.Point
	Hash      []byte
	Signature []byte
}

HashPublicSingleResponse is a helper for HashPublicResponse and stores the response of a single worker in the roster for the hash public protocol

Directories

Path Synopsis
Conode is the main binary for running a Cothority server.
Conode is the main binary for running a Cothority server.

Jump to

Keyboard shortcuts

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