Documentation
¶
Index ¶
Constants ¶
const ServiceName = "DPPC"
ServiceName is used for registration on the onet.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a structure to communicate with the DWC service
func (*Client) PrivateHashRequest ¶
PrivateHashRequest sends a request for a private hash protocol to the roster
func (*Client) PublicHashRequest ¶
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 ¶
HashPrivateSingleResponse is a helper for HashPrivateResponse and stores the response of a single worker in the roster of the hash private protocol
type HashPublicRequest ¶
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