refine

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefineCost = 10
)

Variables

View Source
var (
	ErrBad = errors.New("service’s code was not available for lookup") // BAD
	ErrBig = errors.New("code beyond the maximum size allowed")        // BIG
)

Functions

This section is empty.

Types

type Refine

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

func New

func New(state state.State) *Refine

func (*Refine) InvokePVM

func (r *Refine) InvokePVM(
	itemIndex uint32,
	workPackage work.Package,
	authorizerHashOutput []byte,
	importedSegments []work.Segment,
	exportOffset uint64,
) ([]byte, []work.Segment, uint64, error)

InvokePVM ΨR(N,P,Y, ⟦⟦G⟧⟧, N) → (Y ∪ J, ⟦G⟧, N_G)

type RefinePVMInvoker

type RefinePVMInvoker interface {
	InvokePVM(
		itemIndex uint32,
		workPackage work.Package,
		authorizerHashOutput []byte,
		importedSegments []work.Segment,
		exportOffset uint64,
	) ([]byte, []work.Segment, uint64, error)
}

Jump to

Keyboard shortcuts

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