server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0, MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PDPRoutePath     = "/pdp"
	PRoofSetRoutPath = "/proof-sets"
	PiecePrefix      = "/piece"
)

Variables

View Source
var PieceSizeLimit = abi.PaddedPieceSize(proof.MaxMemtreeSize).Unpadded()

Functions

This section is empty.

Types

type GetProofSetResponse

type GetProofSetResponse struct {
	ID                 int64       `json:"id"`
	NextChallengeEpoch int64       `json:"nextChallengeEpoch"`
	Roots              []RootEntry `json:"roots"`
}

type PDPHandler

type PDPHandler struct {
	Service *service.PDPService
	// contains filtered or unexported fields
}

func NewPDPHandler

func NewPDPHandler(service *service.PDPService, identity app.IdentityConfig) (*PDPHandler, error)

func (*PDPHandler) RegisterRoutes

func (p *PDPHandler) RegisterRoutes(e *echo.Echo)

type RootEntry

type RootEntry struct {
	RootID        int64  `json:"rootId"`
	RootCID       string `json:"rootCid"`
	SubrootCID    string `json:"subrootCid"`
	SubrootOffset int64  `json:"subrootOffset"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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