Allow publishing the WASM to IPFS
Ideally, once a wasm has been compiled, we should offer the ability for users who defined an IPFS API endpoint to 'upload' the wasm to IPFS. In order to benefit from dedup and publish the verification results as well, we can upload the following structure to IPFS:
result
|
+-- runtime.wasm
+-- verification.json
In this example, verification.json will be unique for each user (because of the signatures, dates, etc...) but the file is rather small.
The runtime itself, will be "deduped" as long as other usrs find the same hash, making "frequently found wasm" easier to reach.