fakebeacon

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddr = "localhost"
	DefaultPort = 8686
)
View Source
const MaxBlobsPerBlock = 6

Variables

This section is empty.

Functions

func GenesisMethod

func GenesisMethod(w http.ResponseWriter, r *http.Request)

func SpecMethod

func SpecMethod(w http.ResponseWriter, r *http.Request)

func VersionMethod

func VersionMethod(w http.ResponseWriter, r *http.Request)

Types

type APIGenesisResponse

type APIGenesisResponse struct {
	Data ReducedGenesisData `json:"data"`
}

type APIGetBlobSidecarsResponse

type APIGetBlobSidecarsResponse struct {
	Data []*BlobSidecar `json:"data"`
}

type BlobSidecar

type BlobSidecar struct {
	Blob          kzg4844.Blob       `json:"blob"`
	Index         int                `json:"index"`
	KZGCommitment kzg4844.Commitment `json:"kzg_commitment"`
	KZGProof      kzg4844.Proof      `json:"kzg_proof"`
}

type Config

type Config struct {
	Enable bool
	Addr   string
	Port   int
}

type IndexedBlobHash

type IndexedBlobHash struct {
	Index int         // absolute index in the block, a.k.a. position in sidecar blobs array
	Hash  common.Hash // hash of the blob, used for consistency checks
}

type ReducedConfigData

type ReducedConfigData struct {
	SecondsPerSlot string `json:"SECONDS_PER_SLOT"`
}

type ReducedGenesisData

type ReducedGenesisData struct {
	GenesisTime string `json:"genesis_time"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(cfg *Config, backend ethapi.Backend) *Service

func (*Service) Run

func (s *Service) Run()

func (*Service) SidecarsMethod

func (s *Service) SidecarsMethod(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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