committer

package
v0.49.1-unsafe-payload... Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: AGPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LedgerViewCommitter

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

func NewLedgerViewCommitter

func NewLedgerViewCommitter(
	ledger ledger.Ledger,
	tracer module.Tracer,
) *LedgerViewCommitter

func (*LedgerViewCommitter) CommitView

func (committer *LedgerViewCommitter) CommitView(
	snapshot *snapshot.ExecutionSnapshot,
	baseStorageSnapshot execution.ExtendableStorageSnapshot,
) (
	newCommit flow.StateCommitment,
	proof []byte,
	trieUpdate *ledger.TrieUpdate,
	newStorageSnapshot execution.ExtendableStorageSnapshot,
	err error,
)

type NoopViewCommitter

type NoopViewCommitter struct {
}

func NewNoopViewCommitter

func NewNoopViewCommitter() *NoopViewCommitter

type PayloadlessLedgerViewCommitter

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

PayloadlessLedgerViewCommitter commits an execution snapshot to a payloadless ledger and returns a proof whose leaves are reconstructed back to full ledger payloads using values read from the pre-execution storage snapshot. The returned bytes are wire-compatible with the full mtrie's proof format: downstream consumers decode them with ledger.DecodeTrieBatchProof, identical to full-mode behaviour.

It is the payloadless-mode counterpart of LedgerViewCommitter and satisfies the same computer.ViewCommitter interface. Mode is selected by which constructor is called at startup; there is no runtime mode flag.

func NewPayloadlessLedgerViewCommitter

func NewPayloadlessLedgerViewCommitter(
	ledger ledger.PayloadlessLedger,
	tracer module.Tracer,
	pathFinderVersion uint8,
) *PayloadlessLedgerViewCommitter

NewPayloadlessLedgerViewCommitter returns a committer that drives a payloadless ledger and emits reconstructed full-format proof bytes.

pathFinderVersion must match the version used by the underlying ledger so the path → registerID mapping built during reconstruction agrees with the paths carried by the proof. In production this is complete.DefaultPathFinderVersion.

func (*PayloadlessLedgerViewCommitter) CommitView

func (committer *PayloadlessLedgerViewCommitter) CommitView(
	snapshot *snapshot.ExecutionSnapshot,
	baseStorageSnapshot execution.ExtendableStorageSnapshot,
) (
	newCommit flow.StateCommitment,
	proof []byte,
	trieUpdate *ledger.TrieUpdate,
	newStorageSnapshot execution.ExtendableStorageSnapshot,
	err error,
)

CommitView commits an execution snapshot and collects a payloadless proof. Concurrency: state commitment and proof collection run in parallel, matching LedgerViewCommitter.

Jump to

Keyboard shortcuts

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