py-solc icon indicating copy to clipboard operation
py-solc copied to clipboard

Implement a Python-C binding to Soldity

Open axic opened this issue 9 years ago • 2 comments

Solidity has a JSON-based interface written in C to compiler contracts. The input is a JSON formatted list of contracts and the output is a JSON with bytecode, assembly, etc. (all the features of the commandline compiler).

This C interface (located in solc/jsonCompiler.cpp) could be used to write an FFI binding in Python. It is already compiled as a library (libsoljson).

axic avatar Sep 10 '16 11:09 axic

This would be a big improvement over the current subprocess based implementation.

pipermerriam avatar Sep 10 '16 13:09 pipermerriam

... Okay maybe this is a better candidate for a backend for https://github.com/pipermerriam/populus/issues/290

cag avatar May 08 '17 20:05 cag