Abstract | ||
---|---|---|
Could smart contracts written in Solidity, a popular language among blockchain developers for Ethereum, be run on other blockchain platforms such as Hyperleger Fabric. To run Solidity smart contracts on another blockchain platform, one can either incorporate the Ethereum Virtual Machine (EVM) in the target blockchain, or perform a source-to-source translation of the Solidity contracts to a smart contract language for the target platform. This paper presents Sol2js, an open source source-to-source translation tool that generates Javascript smart contracts for Hyperledger Fabric from Solidity contracts, and provides a conceptual mapping of Ethereum constructs to that of Hyperleger Fabric, where possible. Presently, the tool is able to successfully translate 65-70% of Solidity constructs including major types, functions, inheritance, and events. The preliminary results show that the average of the lines of code (loc) across translated contracts is 7.5x more than the average of Solidity contracts loc while preserving contract semantics.
|
Year | DOI | Venue |
---|---|---|
2018 | 10.1145/3284764.3284768 | Middleware '18: 19th International Middleware Conference
Rennes
France
December, 2018 |
Field | DocType | ISBN |
Solidity,Programming language,Virtual machine,Computer science,Byzantine fault tolerance,Semantics,JavaScript,Source lines of code,Scalability,Smart contract | Conference | 978-1-4503-6110-1 |
Citations | PageRank | References |
1 | 0.36 | 0 |
Authors | ||
4 |
Name | Order | Citations | PageRank |
---|---|---|---|
Muhammad Ahmad Zafar | 1 | 1 | 0.36 |
Falak Sher | 2 | 1 | 0.36 |
Muhammad Umar Janjua | 3 | 1 | 0.70 |
Salman Baset | 4 | 69 | 9.66 |