repair

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHighestWindowIndexRequest

func BuildHighestWindowIndexRequest(identity ed25519.PrivateKey, recipient gossip.Pubkey, slot uint64, shredIndex uint64, nonce uint32) ([]byte, error)

func BuildPong

func BuildPong(identity ed25519.PrivateKey, ping Ping) ([]byte, error)

func BuildWindowIndexRequest

func BuildWindowIndexRequest(identity ed25519.PrivateKey, recipient gossip.Pubkey, slot uint64, shredIndex uint64, nonce uint32) ([]byte, error)

func NewHighestWindowIndexRequest

func NewHighestWindowIndexRequest(identity ed25519.PrivateKey, recipient gossip.Pubkey, slot uint64, shredIndex uint64) ([]byte, uint32, error)

func NewWindowIndexRequest

func NewWindowIndexRequest(identity ed25519.PrivateKey, recipient gossip.Pubkey, slot uint64, shredIndex uint64) ([]byte, uint32, error)

func ResponseNonce

func ResponseNonce(packet []byte) (uint32, bool)

func VerifySignedRequest

func VerifySignedRequest(packet []byte, sender gossip.Pubkey) bool

Types

type Ping

type Ping struct {
	From      gossip.Pubkey
	Token     [32]byte
	Signature gossip.Signature
}

func DecodePing

func DecodePing(packet []byte) (Ping, bool)

Jump to

Keyboard shortcuts

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