integrationTests

package
v0.0.0-...-b321e85 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logger.GetOrCreate("integrationtests/broadcaster")

Log -

View Source
var TestHasher = blake2b.NewBlake2b()

TestHasher -

View Source
var TestKeyGenerator = signing.NewKeyGenerator(suite)

TestKeyGenerator -

View Source
var TestMarshalizer = &marshal.JsonMarshalizer{}

TestMarshalizer -

View Source
var TestSingleSigner = &singlesig.Ed25519Signer{}

TestSingleSigner -

Functions

func ConnectNodes

func ConnectNodes(nodes []Connectable)

ConnectNodes will try to connect all provided connectable instances in a full mesh fashion

func CreateLinkedMessengers

func CreateLinkedMessengers(numMessengers int) []p2p.Messenger

CreateLinkedMessengers will create the specified number of messengers and will connect them all between them

func CreateMessengerFromConfig

func CreateMessengerFromConfig(p2pConfig p2pConfig.P2PConfig) p2p.Messenger

CreateMessengerFromConfig creates a new libp2p messenger with provided configuration

func CreateMessengerWithNoDiscovery

func CreateMessengerWithNoDiscovery() p2p.Messenger

CreateMessengerWithNoDiscovery creates a new libp2p messenger with no peer discovery

Types

type Broadcaster

type Broadcaster interface {
	BroadcastSignature(signature []byte, messageHash []byte)
	BroadcastJoinTopic()
	SortedPublicKeys() [][]byte
	AddBroadcastClient(client core.BroadcastClient) error
	Close() error
	IsInterfaceNil() bool
}

Broadcaster defines a component able to communicate with other such instances and manage signatures and other state related data

type Connectable

type Connectable interface {
	ConnectTo(connectable Connectable) error
	GetConnectableAddress() string
	IsInterfaceNil() bool
}

Connectable defines the operations for a struct to become connectable by other struct In other words, all instances that implement this interface are able to connect with each other

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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