The invention relates to the technical field of block chain smart contracts, and provides a method and a device for improving a
bytecode reverse engineering effect of a
smart contract. According to the method, under the condition that a function signature is known, a
compiler can be better improved, and the
readability of the
reverse engineering result of the
smart contract is improved. According to a main scheme in the invention, the method comprises the following steps: S1, conducting
reverse engineering on a contract
bytecode through Erays so as to obtain a reversed code; S2, according to the known function signature in the contract
bytecode, adding a function id and a
parameter type to each common / external function of the code obtained after reverse
engineering, and generating a parameter
list; S3, for each function in the contract bytecode in the step S1, replacing a meaningless variable name with a meaningful parameter name; S4, for an assignment statement, if the parameter of the corresponding function is assigned to a variable, adding the type of the corresponding parameter to the variable; and S5, replacing the code, which is generated by the
compiler and is used for accessing the parameter, with a simple assignment statement.