execution

package
v0.0.7-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package execution composes untrusted map/list provers and mutation appliers. It produces portable MALT results but never decides whether a client should trust them; callers verify results through package malt and auth/verifier.

Index

Constants

This section is empty.

Variables

View Source
var ErrCapabilityUnavailable = errors.New("MALT executor capability is unavailable")

Functions

This section is empty.

Types

type Executor

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

Executor is an untrusted execution facade. Scope is backend placement state, not part of canonical queries or mutations.

func NewExecutor

func NewExecutor(opts Options) (*Executor, error)

func (*Executor) Apply

func (*Executor) ProveMap

ProveMap returns either a membership proof or an authenticated non-membership proof without changing Read's not-found behavior.

func (*Executor) Read

func (*Executor) Resolve

Resolve executes one canonical segment-path derivation. The returned result is untrusted until the caller applies malt.VerifyResolve.

type ListReader

type ListReader interface {
	Prove(context.Context, string, cid.Cid, uint64) (list.Query, structure.Proof, error)
}

type MapReader

type MapReader interface {
	Prove(context.Context, string, cid.Cid, arcset.Path) (mapping.Binding, structure.Proof, error)
}

type MeasuredListReader

type MeasuredListReader interface {
	ListReader
	ProveRange(context.Context, string, cid.Cid, uint64, *uint64) (list.RangeResult, structure.Proof, error)
}

type MutationApplier

type MutationApplier interface {
	Apply(context.Context, string, mutation.SemanticMutation) (mutation.WriteReceipt, error)
}

type Options

type Options struct {
	Scope    string
	Resolver malt.Resolver
	Maps     MapReader
	Lists    ListReader
	Writer   MutationApplier
}

Jump to

Keyboard shortcuts

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