Skip to main content

Module api

Module api 

Source
Expand description

String-in / string-out surface: exactly what crosses the wasm boundary.

kernel-wasm is a one-line shim over this module and the golden fixtures exercise it directly, so the native tests and the wasm build can never drift apart.

Constants§

FEATURES
Capabilities the host may branch on. Additive only.

Functions§

compute_state_hash_json
compute_state_hash export. Input: StateHashInput; value: StateHashOutput.
derive_ids_json
derive_ids export. Input: DeriveIdsInput; value: DeriveIdsOutput.
plan_retry_json
plan_retry export. Input: PlanRetryInput; value: RetryPlan.
prepare_event_json
prepare_event export. Input: PrepareEventInput; value: Prepared.
reduce_step_json
reduce_step export. Input: ReduceStepInput; value: Transition.
refold_check_json
refold_check export. Input: RefoldCheckInput; value: RefoldCheckOutput.
validate_event_json
validate_event export. Input: EventInput; value: ValidateEventOutput.
version
The KernelVersion of this build: crate version, PROTOCOL_VERSION, FEATURES.
version_json
kernel_version export. Value: KernelVersion.