eth-sri / securify2

Securify v2.0
Apache License 2.0
586 stars 136 forks source link

What does Securify need the solc compiler for? #16

Closed lukasdenk closed 3 years ago

YannisSach commented 3 years ago

Hi Luke, Securify needs solc to get the AST which corresponds to the solidity file under analysis. This way we do not have to implement a parser. You could get a taste of how this AST looks like (even though it is not exactly the same as the one Securify uses) by executing solc <solidity_contract> --ast-json. You might want to take a look at securify/solidity/solidity_ast_compiler.py for a deeper insight.

Yannis

lukasdenk commented 3 years ago

Thanks!