iotex-desktop-wallet icon indicating copy to clipboard operation
iotex-desktop-wallet copied to clipboard

Contract source code validator

Open CoderZhi opened this issue 5 years ago • 1 comments

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

CoderZhi avatar Jul 11 '19 23:07 CoderZhi

This breakdown to the following steps:

  1. let someone upload the solidity src code, and specifies the compiler version.
  2. server verifies it by compiling and comparing it to the bytecode in the tx (CAPTCHA needed to mitigate DDOS)
  3. server accepts and displays contract src code, and never accept another copy of the src code.
  4. server further supports read methods in the contract

raullenchai avatar Jul 20 '20 01:07 raullenchai