testpeers

package
v1.0.2-legacy-migration Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 17 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,
	peeringURLs []string,
	peerIdentities []*cryptolib.KeyPair,
	suite tcrypto.Suite,
	log *logger.Logger,
) (iotago.Address, []registry.DKShareRegistryProvider)

func SetupDkgTrivial added in v1.0.3

func SetupDkgTrivial(
	t require.TestingT,
	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(
	peeringURLs []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