arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1805.08541cs.DCcs.CR
收藏

区块链和可信计算:Hyperledger Fabric的问题、陷阱和解决方案

Blockchain and Trusted Computing: Problems, Pitfalls, and a Solution for Hyperledger Fabric

Marcus Brandenburger, Christian Cachin, Rüdiger Kapitza, Alessandro Sorniotti

摘要:

区块链上的智能合约无法保密,因为它的数据会在网络中的所有节点上复制。为了解决这个问题,有人建议将区块链与可信执行环境(TEE)(如英特尔SGX)相结合,以执行需要隐私的应用程序。不受信任的区块链节点无法访问TEE内的数据和计算。本文首先探讨了TEE与区块链相结合所产生的一些陷阱。由于TEE原则上是无状态的,因此它们容易受到回滚攻击,应该防止回滚攻击以维护应用程序的隐私。然而,在具有非最终共识协议的区块链中,例如以太坊中的工作量证明等,合约执行必须通过设计来处理回滚。这意味着用于保护区块链执行的TEE不能直接用于此类区块链;这种方法只有在共识决策是最终决定时才有效。其次,这项工作为英特尔SGX技术中的Hyperledger Fabric智能合约执行引入了一个架构和原型,Hyperledger Fabric是企业区块链应用程序的重要平台。我们的系统解决了由执行顺序验证架构的Fabric,并防止回滚攻击基于TEE尽可能的困难。为了提高安全性,我们的设计将区块链上的每个应用程序封装在自己的安全区中,使其免受主机系统的影响。一项评估表明,对于密封投标拍卖应用程序,将执行转移到SGX的开销在10%-20%之间。

英文摘要:

A smart contract on a blockchain cannot keep a secret because its data is replicated on all nodes in a network. To remedy this problem, it has been suggested to combine blockchains with trusted execution environments (TEEs), such as Intel SGX, for executing applications that demand privacy. Untrusted blockchain nodes cannot get access to the data and computations inside the TEE. This paper first explores some pitfalls that arise from the combination of TEEs with blockchains. Since TEEs are, in principle, stateless they are susceptible to rollback attacks, which should be prevented to maintain privacy for the application. However, in blockchains with non-final consensus protocols, such as the proof-of-work in Ethereum and others, the contract execution must handle rollbacks by design. This implies that TEEs for securing blockchain execution cannot be directly used for such blockchains; this approach works only when the consensus decisions are final. Second, this work introduces an architecture and a prototype for smart-contract execution within Intel SGX technology for Hyperledger Fabric, a prominent platform for enterprise blockchain applications. Our system resolves difficulties posed by the execute-order-validate architecture of Fabric and prevents rollback attacks on TEE-based execution as far as possible. For increasing security, our design encapsulates each application on the blockchain within its own enclave that shields it from the host system. An evaluation shows that the overhead moving execution into SGX is within 10%-20% for a sealed-bid auction application.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑