Open
Milestone

SCORU Wasm - Instrumentation

Goal

It is possible to instrument Wasm kernels to avoid kernels accidentally deviating from PVM semantics.

Breakdown

  • Gas budget per checkpoint check
  • Stack depth checks
  • No or Predictable Floating-point check
  • Observing consumed gas (e.g. through Host Function available in instrumented mode only)
  • Handle non O(1) instructions - Memory - Copy - Set - Table - Copy - Set - Others

Strategy

  • Not part of PVM - no need to tickify
  • Add unsafe host functions to ref interpreter (for testing infra) - Write function : instr -> instr - Group O(1) instructions (eliminates some branch points but maybe not all)

Design document

https://www.notion.so/trilitech/WASM-Rollup-0d2a996db2d8484fb87615bf5a96914d

  • Work items 6
  • Merge requests 0
  • Participants 0
  • Labels 2
Loading
Loading
Loading
Loading
16% complete
16%
Start date
No start date
None
Due date
No due date
6
Work items 6 New issue
Open: 5 Closed: 1
None
Total weight
None
0
Merge requests 0
Open: 0 Closed: 0 Merged: 0
0
Releases
None
Reference: tezos/tezos%"SCORU Wasm - Instrumentation"