testpeers

package
v0.4.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0, BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSharedSecret added in v1.0.3

func MakeSharedSecret(suite suites.Suite, n, t int) (kyber.Point, *share.PubPoly, []*share.PriShare)

func PublicKeys

func PublicKeys(peerIdentities []*cryptolib.KeyPair) []*cryptolib.PublicKey

func SetupDkg

func SetupDkg(
	t *testing.T,
	threshold uint16,
	peerNetIDs []string,
	peerIdentities []*cryptolib.KeyPair,
	suite tcrypto.Suite,
	log *logger.Logger,
) (iotago.Address, []registry.DKShareRegistryProvider)

func SetupDkgPregenerated

func SetupDkgPregenerated(
	t *testing.T,
	threshold uint16,
	identities []*cryptolib.KeyPair,
) (iotago.Address, []registry.DKShareRegistryProvider)

func SetupDkgTrivial added in v1.0.3

func SetupDkgTrivial(
	t *testing.T,
	n, f int,
	peerIdentities []*cryptolib.KeyPair,
	dkShareRegistryProviders []registry.DKShareRegistryProvider,
) (iotago.Address, []registry.DKShareRegistryProvider)

func SetupKeys

func SetupKeys(peerCount uint16) ([]string, []*cryptolib.KeyPair)

func SetupNet

func SetupNet(
	peerNetIDs []string,
	peerIdentities []*cryptolib.KeyPair,
	behavior testutil.PeeringNetBehavior,
	log *logger.Logger,
) ([]peering.NetworkProvider, io.Closer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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