blvm-sdk 0.1.1

Bitcoin Commons software developer kit, governance infrastructure and composition framework for Bitcoin
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! WASM module runtime.
//!
//! Loads `.wasm` modules and runs them with host imports (storage, config, log).
//! Uses trait-based storage so the embedder (e.g. blvm-node) provides the implementation.

mod host;
mod instance;
#[cfg(all(feature = "node", feature = "wasm-modules"))]
mod loader;

pub use host::{create_host_imports, WasmHostContext, WasmStorage, WasmTree};
pub use instance::WasmModuleInstance;

#[cfg(all(feature = "node", feature = "wasm-modules"))]
pub use loader::BlvmSdkWasmLoader;