[英]Ethereum vs Hyperledger Fabric
I am currently undergoing a project that compares a public blockchain like Ethereum and a consortium blockchain like Hyperledger Fabric. 我目前正在进行一个比较以太坊等公共区块链和Hyperledger Fabric等财团的区块链项目。
I will be designing and implementing smart contracts on both platforms in order to measure their tx speed and cost. 我将在两个平台上设计和实施智能合约,以衡量其交易速度和成本。
Further things will be compared like privacy, potential scalability, governance and consensus protocols. 将对其他内容进行比较,例如隐私,潜在的可伸缩性,治理和共识协议。
Looking to write Eth smart contracts in Solidity, and Fabric in Golang. 希望在Solidity中编写Eth智能合约,在Golang中编写Fabric。 My experience of this is extremely minimal and so I am just looking to implement basic contract contracts, execute several on both platforms and compare.
我对此的经验极少,因此我只想实现基本的合同合同,在两个平台上执行多个合同并进行比较。
Is there a way to do dummy runs of smart contracts that simulate the real thing? 有没有办法对模拟真实事物的智能合约进行虚拟运行?
FWIW, Hyperledger Fabric now has support for running Solidity (and other EVM compliant) contracts. FWIW,Hyperledger Fabric现在支持运行Solidity(和其他符合EVM的合同)。 We have published v1.2.0-rc1 of this feature .
我们已经发布了此功能的 v1.2.0-rc1。 Basically, the image (published on DockerHub here ) can be used in place of a hyperledger/fabric-peer image in a local test config, such as can be found in the e2e_cli directory of the fabric-chaincode-evm repository.
基本上,在图像(上DockerHub出版这里 )可以被代替hyperledger /织物等图像的在本地测试配置使用,如可以在找到e2e_cli目录织物-chaincode-EVM存储库。 We are working on a Web3 proxy, but that isn't much more than a POC at present.
我们正在研究Web3代理,但是目前只不过是POC。 However, you can use one of the SDKs or the CLI (as in the example referenced earlier) to submit transactions, etc.
但是,您可以使用SDK或CLI之一(如前面引用的示例中所示)提交事务等。
I don't know much about Fabric, but for Ethereum you should check out truffle . 我对Fabric不太了解,但是对于以太坊,您应该检查松露 。 It's a tool for running ethereum smart contracts in a test environment running on you local machine, provides a full-fledged testing library and even helps you deploy smart contracts to the public blockchain.
它是用于在本地计算机上运行的测试环境中运行以太坊智能合约的工具,提供了完善的测试库,甚至可以帮助您将智能合约部署到公共区块链。
You might also find quorum interesting. 您可能还会发现仲裁很有趣。 It is an open source project for running private block chains using the Ethereum protocol.
这是一个使用以太坊协议运行私有区块链的开源项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.