types

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidContentType = errors.New("invalid content type")

ErrInvalidContentType is returned when the response content type is invalid.

View Source
var ErrMissingEthConsensusVersion = errors.New("missing eth-consensus-version")

ErrMissingEthConsensusVersion is returned when the response is octet-stream but there is no "Eth-Consensus-Version" header.

View Source
var ErrMissingRelayPubkey = errors.New("missing relay public key")

ErrMissingRelayPubkey is returned if a new RelayEntry URL has no public key.

View Source
var ErrPointAtInfinityPubkey = errors.New("relay public key cannot be the point-at-infinity")

ErrPointAtInfinityPubkey is returned if a new RelayEntry URL has point-at-infinity public key.

Functions

func GetURI

func GetURI(url *url.URL, path string) string

GetURI returns the full request URI with scheme, host, path and args.

func RelayEntriesToStrings

func RelayEntriesToStrings(relays []RelayEntry) []string

RelayEntriesToStrings returns the string representation of a list of relay entries

Types

type RelayEntry

type RelayEntry struct {
	PublicKey   phase0.BLSPubKey
	URL         *url.URL
	SupportsSSZ bool
}

RelayEntry represents a relay that mev-boost connects to.

func NewRelayEntry

func NewRelayEntry(relayURL string) (entry RelayEntry, err error)

NewRelayEntry creates a new instance based on an input string relayURL can be IP@PORT, PUBKEY@IP:PORT, https://IP, etc.

func (*RelayEntry) Copy added in v1.9.0

func (r *RelayEntry) Copy() (ret RelayEntry)

Copy returns a deep copy of the relay entry.

func (*RelayEntry) GetURI

func (r *RelayEntry) GetURI(path string) string

GetURI returns the full request URI with scheme, host, path and args for the relay.

func (*RelayEntry) String

func (r *RelayEntry) String() string

type U256Str

type U256Str = types.U256Str

func IntToU256

func IntToU256(i uint64) U256Str

Jump to

Keyboard shortcuts

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