This repository, forked from the WebAssembly Spec, contains the CT-Wasm reference interpreter, which also implements a rewrite tool that strips secrecy labels and a simple label inference tool.
The instructions for building and using the reference interpreter may be found in
the interpreter
directory. We produce two binaries ct_wasm_spec
and ct2wasm
.
To use the interpreter:
./ct_wasm_spec
The label removing tool can be invoked by passing in the -strip
flag:
./ct2wasm -strip -i file_to_strip.{wat, wasm} -o file_to_output.{wat, wasm}
The label inference tool is part of the interpreter and can be invoked by passing in the -r
flag:
./ct_wasm_spec -r file_to_infer.{wat, wasm} -o file_to_output.{wat, wasm}