0

BSC 上有一份合同未经验证,我真的很想得到它背后的代码。我有完整的字节码和 ABI。是否有可能使用它获得可读的源代码?

谢谢!

4

1 回答 1

1

BSCScan has an integrated decompiler that produces pseudocode from the input binary bytecode.

It's not perfect - some of the resulting code performs overly complicated operations that can be written on one line in Solidity, some functions are not able to decompile at all, ... but it can help with manually reconstructing the source code.

There are other decompilers available online as well. Usually it helps to decompile the binary using multiple tools so that you get a better sense of what the source code should do.

于 2021-12-30T13:32:31.820 回答