gloas

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package gloas implements the Gloas-fork Builder API handlers and helpers. See https://github.com/ethereum/builder-specs/blob/epbs-spec-updates/specs/gloas/builder.md

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilSignedRequestAuth is returned when the SignedRequestAuth wrapper is nil.
	ErrNilSignedRequestAuth = errors.New("signed request auth is nil")
	// ErrNilRequestAuthMessage is returned when the inner RequestAuth message is nil.
	ErrNilRequestAuthMessage = errors.New("request auth message is nil")
	// ErrInvalidRequestAuthSignature is returned when BLS verification fails.
	ErrInvalidRequestAuthSignature = errors.New("invalid request auth signature")
)
View Source
var DomainRequestAuth = phase0.DomainType{0x0B, 0x00, 0x00, 0x01}

DomainRequestAuth is the DomainType used to sign SignedRequestAuth messages. Defined in builder-specs as DOMAIN_REQUEST_AUTH = DomainType('0x0B000001').

Functions

func VerifyRequestAuth

func VerifyRequestAuth(
	signed *gloastypes.SignedRequestAuthV1,
	validatorPubkey phase0.BLSPubKey,
	genesisForkVersion phase0.Version,
) error

VerifyRequestAuth verifies the BLS signature on a SignedRequestAuth against the supplied validator public key.

Per the Gloas builder-specs validator.md, the signing domain is compute_domain(DOMAIN_REQUEST_AUTH), which defaults to (GENESIS_FORK_VERSION, zero genesis_validators_root). Callers pass the chain's genesis fork version; the genesis_validators_root is always zero per spec.

Returns nil on success, or one of the package's sentinel errors on failure.

Types

This section is empty.

Directories

Path Synopsis
Code generated by dynamic-ssz.
Code generated by dynamic-ssz.

Jump to

Keyboard shortcuts

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