Questions tagged [wasmi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
84 views

Wasm traps in ink contract but not in a `wasm-pack` test

I have a contract that implements some ZKP verification logic with plonk. The verification logic is contained in some other crate that can be compiled to Wasm, and there are wasm-pack tests like this: ...
Oleksandr Mykhailenko's user avatar
7 votes
2 answers
254 views

How is wasmi different from wasmtime?

I found wasmi is a dependency in multiple substrate crates, but there's one crate that also uses wasmtime. How is wasmi different from wasmtime?
RoboT's user avatar
  • 377
1 vote
1 answer
71 views

ERROR: Your wasm-opt version is 91, but we require a version >= 99

I am doing the prepare your first contract tutorial on subtrate and i am getting the following error ERROR: Your wasm-opt version is 91, but we require a version >= 99.Can anyone please tell me how ...
Vitthal agarwal's user avatar
7 votes
1 answer
137 views

Is the WASM blob created from ink! contract always deterministic

The contract's source code is provided during the contract verification on a block explorer (or some other source verifier). The block explorer needs to compile that source and verify if the generated ...
Maario's user avatar
  • 659
11 votes
2 answers
193 views

Wasm interpreter in pallet-contracts

I have a question about how pallet-contracts interprets a Wasm contract. Are the following assumptions correct? pallet-contracts interprets contracts through the simple wasmi interpreter gas metering ...
Torsten Stüber's user avatar
8 votes
1 answer
94 views

Performance of same logic with a contract using pallet-contracts vs. a native pallet (excluding metering)

I'm wondering what is current state of the art of Substrate's pallet-contracts performance as compared to the same functional implementation as a pallet. I acknowledge that different logic can have ...
nazar-pc's user avatar
  • 541
7 votes
1 answer
75 views

In what way(s) is the wasmi project used in Substrate/Polkadot?

What is the purpose of using wasmi in Substrate/Polkadot? Would it also be possible to use the wasmer project instead?
Niklas Fasching's user avatar
2 votes
1 answer
61 views

Wasmi is not related to the polkadot or substrate?

Does wasmi only function as an interpreter that changes the rust code to wasm? Wasmi is not related to the function of Polkadot, such as scale codec(encode, decode extrinsics) or signing and signature ...
PaperFrog's user avatar
  • 495