pub trait WasmEngine {
    type WasmInstance: WasmInstance;

    // Required method
    fn instantiate(
        &self,
        code_hash: CodeHash,
        instrumented_code: &[u8]
    ) -> Self::WasmInstance;
}
Expand description

A Scrypto WASM engine validates, instruments and runs Scrypto modules.

Required Associated Types§

Required Methods§

source

fn instantiate( &self, code_hash: CodeHash, instrumented_code: &[u8] ) -> Self::WasmInstance

Instantiate a Scrypto module.

The code must have been validated and instrumented!

Implementors§