Deploying a zipped wasm

Hi @skilesare !

What program do you use to compress the module? The replica currently supports only GZip-compressed modules:

  • If the wasm_module starts with byte sequence [0x1f, 0x8b, 0x08] , the system decompresses the contents of wasm_module as a gzip stream according to RFC-1952 and then parses the output as a WebAssembly binary.
    Smart Contracts on the Internet Computer

You can use either gzip or pigz to compress the module.

1 Like