Documentation ¶
Index ¶
- Constants
- func NewHashPrivateProtocol(n *onet.TreeNodeInstance) (onet.ProtocolInstance, error)
- func NewHashPublicProtocol(n *onet.TreeNodeInstance) (onet.ProtocolInstance, error)
- type ConodeResponse
- type HashPrivate
- type HashPrivateAnnouncement
- type HashPrivateResponse
- type HashPublic
- type HashPublicAnnouncement
- type HashPublicResponse
Constants ¶
const NameHashPrivate = "HashPrivate"
NameHashPrivate is the protocol identifier string
const NameHashPublic = "HashPublic"
NameHashPublic is the protocol identifier string
Variables ¶
This section is empty.
Functions ¶
func NewHashPrivateProtocol ¶
func NewHashPrivateProtocol(n *onet.TreeNodeInstance) (onet.ProtocolInstance, error)
NewHashPrivateProtocol returns a HashPrivateProtocol with the necessary information and the right channels initialized
func NewHashPublicProtocol ¶
func NewHashPublicProtocol(n *onet.TreeNodeInstance) (onet.ProtocolInstance, error)
NewHashPublicProtocol returns a HashPublicProtocol with the right channels initialized
Types ¶
type ConodeResponse ¶
ConodeResponse is a data structure used by the leader of the protocol to send the encrypted hashes and the nonces of all conodes to the client
type HashPrivate ¶
type HashPrivate struct { *onet.TreeNodeInstance // resource's URL URL string // public keys provided by the server ClientPublicKeys map[string]kyber.Point // map of encrypted hashes received from every server Responses map[string]*ConodeResponse // the channel that indicates if we are finished or not Finished chan bool // contains filtered or unexported fields }
HashPrivate is the core structure of the protocol, holding all the necessary information
func (*HashPrivate) Dispatch ¶
func (h *HashPrivate) Dispatch() error
Dispatch will listen on the two channels we user
func (*HashPrivate) Start ¶
func (h *HashPrivate) Start() error
Start is executed by the root to start the protocol, by checking that all the needed parameters have been initialized and by handling the announcement for the root itself
type HashPrivateAnnouncement ¶
HashPrivateAnnouncement is sent down the tree by the leader to start a new HashPrivate protocol
type HashPrivateResponse ¶
HashPrivateResponse contains the encrypted hash and its signature and is sent by every conode to the root
type HashPublic ¶
type HashPublic struct { *onet.TreeNodeInstance // resource's URL URL string // nonce received from the client Nonce []byte // map of conode responses indexed by the public key of the worker Responses map[string]*HashPublicResponse // the channel that indicates if we are finished or not Finished chan bool // contains filtered or unexported fields }
HashPublic is the core structure of the protocol, holding all the necessary information
func (*HashPublic) Dispatch ¶
func (h *HashPublic) Dispatch() error
Dispatch will listen on the two channels we use
func (*HashPublic) Start ¶
func (h *HashPublic) Start() error
Start is executed by the root to start the protocol, by checking that all the needed parameters have been initialized and by handling the announcement for the root itself
type HashPublicAnnouncement ¶
HashPublicAnnouncement is sent down the tree by the root to propagate the hash received by the client to other conodes
type HashPublicResponse ¶
HashPublicResponse send by every conode to the root