Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CeremonyServer ¶
type CeremonyServer struct {
// contains filtered or unexported fields
}
CeremonyServer represents a server that handles the trusted setup ceremony by coordinating contributors.
func New ¶
func New(service api.CeremonyServiceServer) *CeremonyServer
New creates a new instance of the ceremony.
service implements handlers for the ceremony protocol.
The function returns a handler to the ceremony server. The handler can later be used to start and stop the ceremony.
func (*CeremonyServer) Start ¶
func (s *CeremonyServer) Start(host string, port int) error
Start initializes the ceremony and starts listening for the incoming contributors' connections.
The server will listen on the address specified by host and TCP port specified by port.
The function is not blocking, it spawns a goroutine that listens for connections in the background.
func (*CeremonyServer) Stop ¶
func (s *CeremonyServer) Stop()
Stop prevents the server from accepting new connections from contributors.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package ceremony_service implements the gRPC service for the multi-party computation setup ceremony.
|
Package ceremony_service implements the gRPC service for the multi-party computation setup ceremony. |
|
Package contributors_manager implements a manager for contributors in the multi-party computation setup ceremony.
|
Package contributors_manager implements a manager for contributors in the multi-party computation setup ceremony. |
|
Package coordinator implements the coordinator logic for the multi-party computation setup ceremony.
|
Package coordinator implements the coordinator logic for the multi-party computation setup ceremony. |