Sol2js - Translating Solidity Contracts into Javascript for Hyperledger Fabric.

Middleware '18: 19th International Middleware Conference Rennes France December, 2018(2018)

引用 12|浏览13
暂无评分
摘要
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.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要