Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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