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
readonlyname:string
Defined in: chain/state-root-engines/state-root-engine.ts:55
source
readonlysource:"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
Returns
Promise<StateRootEngineResult>
rebuildFromLeaves()
rebuildFromLeaves(
leaves):Promise<StateRootEngineResult>
Defined in: chain/state-root-engines/state-root-engine.ts:58
Parameters
leaves
Returns
Promise<StateRootEngineResult>