pyevmasm icon indicating copy to clipboard operation
pyevmasm copied to clipboard

Decode and strip CBOR encoded metadata

Open thevaizman opened this issue 2 years ago • 1 comments

Currently, metadata appended to the EVM binary by the compiler is treated as part of the program. This creates confusion because the bytes of the metadata should not be interpreted as opcodes as they make no sense when interpreted as such.

I added a step in the disassembly process, which decodes, prints and strips CBOR encoded metadata from binary inputs using an array of known patterns. The patterns array should be maintained and updated when new patterns are detected.

I believe this contribution will produce cleaner output.

thevaizman avatar May 14 '22 12:05 thevaizman

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 14 '22 12:05 CLAassistant