network

package
v0.4.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOfflineNetwork

func NewOfflineNetwork(parties ...party.ID) crypto.Network

It creates a new `OfflineNetwork` object, and initializes it with a list of parties, and a map of channels

func NewOnlineNetwork

func NewOnlineNetwork(ctx context.Context, nodes ...common.PeerNode) (crypto.Network, error)

It creates a new network object, assigns the subscriptions, and returns the network object

Types

This section is empty.

Jump to

Keyboard shortcuts

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