iotex-desktop-wallet
iotex-desktop-wallet copied to clipboard
Contract source code validator
Contract source code validator for contract creators to upload their source code. If source code matches the byte code of the contract, store that source code and abi. With the ABI, we are able to parse the execution input and output, and show them in formatted way (say JSON).
Similar functionality can be found on etherscan: https://etherscan.io/address/0xa5025faba6e70b84f74e9b1113e5f7f4e7f4859f#code
This breakdown to the following steps:
- let someone upload the solidity src code, and specifies the compiler version.
- server verifies it by compiling and comparing it to the bytecode in the tx (CAPTCHA needed to mitigate DDOS)
- server accepts and displays contract src code, and never accept another copy of the src code.
- server further supports read methods in the contract