dtolnay/watt

Tooling for verifying wasm was compiled from the public source

开放

#8 创建于 2019年10月15日

 (3 条评论) (3 个反应) (0 位负责人)Rust (31 个派生)github user discovery
help wanted

仓库指标

星标
 (1,522 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Hello

Maybe this is just a paranoia on my side. However, currently if I want to do an audit of my dependencies, I can download and extract the crate source downloaded from crates.io and read it. There are even tools promoting such approach, like cargo-crev.

But if the crate contains the binary wasm code, reading it and understanding what it does gets much harder. I understand that the compiled code can't do arbitrary stuff to the system itself, but it could still produce malicious code into its output, or simply be buggy and produce wrong code.

So I wonder, would it be possible to somehow make it possible (by some tooling) to automatically bundle both the original source code and the wasm and have a way to opt into the longer compile time, but making sure it is indeed from the given sources?

贡献者指南