Skip to content

nooschain v0.1.0


nooschain / chain/state-root-engines/state-root-engine / StateRootEngine

Interface: StateRootEngine

Defined in: chain/state-root-engines/state-root-engine.ts:54

Minimal state-root engine contract used by benchmarks.

Engines are intentionally stateless from the TypeScript caller's perspective. Each call receives all input needed to reproduce a root, which makes external-process candidates easy to verify and avoids hidden mutable state in benchmark comparisons.

Properties

name

readonly name: string

Defined in: chain/state-root-engines/state-root-engine.ts:55


source

readonly source: "external_process" | "in_process"

Defined in: chain/state-root-engines/state-root-engine.ts:56

Methods

applyBatch()

applyBatch(input): Promise<StateRootEngineResult>

Defined in: chain/state-root-engines/state-root-engine.ts:57

Parameters

input

StateRootApplyInput

Returns

Promise<StateRootEngineResult>


rebuildFromLeaves()

rebuildFromLeaves(leaves): Promise<StateRootEngineResult>

Defined in: chain/state-root-engines/state-root-engine.ts:58

Parameters

leaves

StateRootEngineLeaf[]

Returns

Promise<StateRootEngineResult>

Audience-first NOOSChain documentation.