heartbeat

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInterceptedHeartbeat

func NewInterceptedHeartbeat(arg ArgBaseInterceptedHeartbeat) (*interceptedHeartbeat, error)

NewInterceptedHeartbeat tries to create a new intercepted heartbeat instance

func NewInterceptedPeerAuthentication

func NewInterceptedPeerAuthentication(arg ArgInterceptedPeerAuthentication) (*interceptedPeerAuthentication, error)

NewInterceptedPeerAuthentication tries to create a new intercepted peer authentication instance

Types

type ArgBaseInterceptedHeartbeat

type ArgBaseInterceptedHeartbeat struct {
	DataBuff   []byte
	Marshaller marshal.Marshalizer
}

ArgBaseInterceptedHeartbeat is the base argument used for messages

type ArgInterceptedPeerAuthentication

type ArgInterceptedPeerAuthentication struct {
	ArgBaseInterceptedHeartbeat
	NodesCoordinator      NodesCoordinator
	SignaturesHandler     SignaturesHandler
	PeerSignatureHandler  crypto.PeerSignatureHandler
	PayloadValidator      process.PeerAuthenticationPayloadValidator
	HardforkTriggerPubKey []byte
}

ArgInterceptedPeerAuthentication is the argument used in the intercepted peer authentication constructor

type NodesCoordinator

type NodesCoordinator interface {
	GetValidatorWithPublicKey(publicKey []byte) (validator nodesCoordinator.Validator, shardId uint32, err error)
	IsInterfaceNil() bool
}

NodesCoordinator defines the behavior of a struct able to do validator selection

type SignaturesHandler

type SignaturesHandler interface {
	Verify(payload []byte, pid core.PeerID, signature []byte) error
	IsInterfaceNil() bool
}

SignaturesHandler defines the behavior of a struct able to handle signatures

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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