types

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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
}

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) 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