utils

package
v0.4.3 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureSelfIDInGroup

func EnsureSelfIDInGroup(selfID party.ID, group []party.ID) []party.ID

EnsureSelfIDInGroup ensures that the given self ID is in the given group.

func HandleNetworkProtocol

func HandleNetworkProtocol(id party.ID, h protocol.Handler, network crypto.Network)

HandleNetworkProtocol is a helper function that loops over all the parties and calls the given handler.

func PartyIdListToPeerIdList

func PartyIdListToPeerIdList(ids []crypto.PartyID) []crypto.PeerID

It converts a list of party IDs to a list of peer IDs

func PartyIdToPeerId

func PartyIdToPeerId(id crypto.PartyID) crypto.PeerID

It converts a party ID to a peer ID

func PeerIdListToPartyIdList

func PeerIdListToPartyIdList(ids []crypto.PeerID) []crypto.PartyID

It converts a list of peer IDs to a list of party IDs

func PeerIdToPartyId

func PeerIdToPartyId(id crypto.PeerID) crypto.PartyID

It converts a peer.ID to a party.ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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