chevdor / subwasm

Subwasm is a cli utility to look inside a Substrate WASM Runtime. It can inspect and compare the metadata of Substrate based runtimes such as Polkadot or Kusama.
MIT License
62 stars 25 forks source link

Add subcommand to (de)compress a runtime #28

Closed chevdor closed 3 years ago

chevdor commented 3 years ago

The motivation comes from https://github.com/paritytech/substrate/issues/10161.

Since subwasm 0.15.0 and the fix of a bug that resulted in decompressing anything we got on chain before storing the file, we now remain true to what is on chain.

The idea with this new feature would be a new sub command that can compress and decompress at will. Since we can already fetch a runtime on chain with the get command, we could stick with simply (de)compressing wasm from/to a local file.

Specs from Sergei: