6 releases (breaking)

0.5.0 Apr 19, 2024
0.4.0 Feb 22, 2024
0.3.0 Feb 20, 2024
0.2.0 Nov 7, 2023
0.0.1 Sep 19, 2023

#20 in #dharitri

Download history 6/week @ 2024-01-05 13/week @ 2024-01-12 2/week @ 2024-01-19 238/week @ 2024-02-16 128/week @ 2024-02-23 19/week @ 2024-03-01 9/week @ 2024-03-08 5/week @ 2024-03-15 42/week @ 2024-03-29 13/week @ 2024-04-05 140/week @ 2024-04-19

195 downloads per month
Used in 5 crates (2 directly)

GPL-3.0-only

81KB
1.5K SLoC

dharitri-chain-vm-executor

The Dharitri VM is composed of two parts:

  • A high-level VM, that connects to the protocol and manages the environment of the smart contract execution
  • A low-level component, called "executor", whose sole purpose is running WebAssembly code, as given. The only current implementation of this component is a wrapper around Wasmer 2.2.

This crate contains the Rust implementation of the interface between the two VM layers.

There are two parts of this interface:

  • The one going "forwards", from high-level, to low-level, used for starting execution: Executor, Instance.
  • The one going "backwards", from low-level, to high-level, used by the executor to request data: VMHooks.

Dependencies

~4–13MB
~143K SLoC