pyevmasm
pyevmasm copied to clipboard
Decode and strip CBOR encoded metadata
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.