In recent years, as blockchain adoption has been expanding across a wide range of domains, e.g., supply chain and digital asset, smart contracts' confidentiality has now become a fundamental demand for practical applications. However, while new privacy protection techniques are emerging, how existing ones can best fit development settings is understudied. State-of-art solutions lack architectural support of programming interfaces thus can hardly reach general developers. This paper proposes CLOAK, a pluggable and configurable framework for developing and deploying confidential smart contracts. The key capability of CLOAK is to allow developers to develop and deploy practical solutions to Multi-party Transaction (MPT) problems, i.e., to verifiably transact with secret parameters and states owned by different parties by simply specifying it. To this end, CLOAK allows users to specify privacy invariants in a declarative way, automatically generate runtime with enforced privacy, and deploy it to enable the MPT on existing platforms. Additionally, we identify the pitfalls and treats for achieving MPT, e.g., achieving public verifiability and resisting byzantine adversaries with minimal blockchain interaction. In our evaluation of both examples and real-world applications, developers manage to deploy business services on blockchain concisely by only developing CLOAK smart contracts, whose size is less than 13.5% of the deployed ones. Moreover, while previous works require at least $O(n)$ transactions to secure an MPT, CLOAK requires only 2 transactions and reduces gas cost by 29% on average. We believe that the insights learned from CLOAK pave the way for public verifiable thus reusable general-purpose multi-party computation achieved by harmonizing TEE and blockchain.
翻译:近年来,随着链链的采用在广泛的领域(如供应链和数字资产等)中不断扩大,采用链链链的采用正在扩大,智能合同的保密性现已成为对实际应用的基本需求。然而,虽然新的隐私保护技术正在出现,但新的隐私保护技术正在出现,而现有技术如何能最好地适应发展环境,对此研究不足。由于最先进的解决方案缺乏对编程界面的建筑支持,因此无法接触到一般开发者。本文提议CLOAK,这是一个开发和部署保密智能合同的可插入和可配置的框架。CLOAK的主要能力是让开发者制定和部署多方交易(MPT)问题的实际解决方案,如今智能合同的保密性保密性现在已经成为对实际应用的根本性需求。然而,CLOAK公司允许用户以宣示的方式指定变异性隐私,自动生成强制隐私运行的运行时间,并部署它使MPT在现有平台上能够实现。CLOAKK公司的平均通则确定实现MPT的陷阱和治疗方法,例如,在最不易交易中实现公共可核实和抵制由S-OLOA的S-A智能交易方式进行最起码的卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡洛洛-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡的操作,在最低限度的计算,因此需要需要评估,通过最低的平-卡-卡-卡-至少的至少的平-卡-要的平的平的平的平的平的平的平的平的平-需要需要需要,需要,需要,需要,需要需要,只有至少、只有的只是的平的平的平-C-C-C-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡-卡的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的平的言的言的言的言的言的言的言的言的言的言的言的言的言的言的言的言