《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (6): 1969-1978.DOI: 10.11772/j.issn.1001-9081.2022050719

• 前沿与综合应用 • 上一篇    下一篇

基于TrustZone的区块链智能合约隐私授权方法

陈璐瑀1, 马小峰1(), 何敬1, 龚生智2, 高建3   

  1. 1.同济大学 电子与信息工程学院, 上海 201804
    2.梧桐链数字科技研究院(苏州)有限公司, 江苏 苏州 215100
    3.云南省科学技术院 科技管理办公室, 昆明 650100
  • 收稿日期:2022-05-20 修回日期:2022-12-27 接受日期:2022-12-30 发布日期:2023-06-08 出版日期:2023-06-10
  • 通讯作者: 马小峰
  • 作者简介:陈璐瑀(1997—),男,福建宁德人,硕士研究生,主要研究方向:区块链、金融科技
    马小峰(1975—),男,山西大同人,副教授,博士,主要研究方向:区块链、金融科技Email:xiaofengma@tongji.edu.cn
    何敬(2000—),男,湖南株洲人,硕士研究生,主要研究方向:区块链、金融科技
    龚生智(1985—),重庆人,副高级工程师,主要研究方向:企业数字化、区块链、隐私计算
    高建(1982—),男,山东济宁人,副研究员,硕士,主要研究方向:数字技术、科技管理。
  • 基金资助:
    上海市科技创新行动计划项目(21511101503)

Blockchain smart contract privacy authorization method based on TrustZone

Luyu CHEN1, Xiaofeng MA1(), Jing HE1, Shengzhi GONG2, Jian GAO3   

  1. 1.College of Electronic and Information Engineering,Tongji University,Shanghai 201804,China
    2.Wutong Chain Digital Technology Research Institute (Suzhou) Company Limited,Suzhou Jiangsu 215100,China
    3.Office of Science and Technology Management,Yunnan Provincial Academy of Science and Technology,Kunming Yunnan 650100,China
  • Received:2022-05-20 Revised:2022-12-27 Accepted:2022-12-30 Online:2023-06-08 Published:2023-06-10
  • Contact: Xiaofeng MA
  • About author:CHEN Luyu, born in 1997, M. S. candidate. His research interests include blockchain, financial technology.
    HE Jing, born in 2000, M. S. candidate. His research interests include blockchain, financial technology.
    GONG Shengzhi, born in 1985, associate senior engineer. His research interests include enterprise digitization, blockchain, privacy computing.
    GAO Jian, born in 1982, M. S., associate research fellow. His research interests include digital technology, management of science and technology.
  • Supported by:
    Shanghai Science and Technology Innovation Action Plan(21511101503)

摘要:

为满足当代数字化背景下数据共享的需求,同时兼顾保护隐私数据安全的必要性,提出一种基于TrustZone的区块链智能合约隐私数据授权方法。区块链系统能够在不同应用场景中实现数据共享,并且满足监管的要求;TrustZone可信执行环境(TEE)技术则为隐私计算提供安全的隔离环境。在整体系统中,隐私数据的上传由监管机构完成,其余业务节点需要在获得用户授权的前提下,获得隐私数据的明文信息,从而保护用户的隐私安全。针对技术融合时TrustZone架构存在的内存空间较小的问题,提出一种针对小内存条件的隐私求交算法,其中,通过基于分组计算的思想完成对大数量级数据集合的求交运算。使用不同数量级大小的数据集测试所提算法,结果表明所提算法在时间与空间方面的消耗在极小范围内波动,方差分别约为1.0 s2与0.01 MB2,较为稳定;当增大数据集数量级时,所提算法的时间消耗是可预期的;此外,使用事先排序的数据集能够大幅提高算法性能。

关键词: 区块链, 智能合约, 可信执行环境, TrustZone, 隐私求交

Abstract:

To meet the needs of data sharing in the context of digitalization currently, and take into account the necessity of protecting private data security at the same time, a blockchain smart contract private data authorization method based on TrustZone was proposed. The blockchain system is able to realize data sharing in different application scenarios and meet regulatory requirements, and a secure isolation environment was provided by TrustZone Trusted Execution Environment (TEE) technology for private computing. In the integrated system, the uploading of private data was completed by the regulatory agency, the plaintext information of the private data was obtained by other business nodes only after obtaining the authorization of the user. In this way, the privacy and security of the user were able to be protected. Aiming at the problem of limited memory space in the TrustZone architecture during technology fusion, a privacy set intersection algorithm for small memory conditions was proposed. In the proposed algorithm, the intersection operation for large-scale datasets was completed on the basis of the ??grouping computing idea. The proposed algorithm was tested with datasets of different orders of magnitude. The results show that the time and space consumption of the proposed algorithm fluctuates in a very small range and is relatively stable. The variances are 1.0 s2 and 0.01 MB2 respectively. When the order of magnitudes of the dataset is increased, the time consumption is predictable. Furthermore, using a pre-sorted dataset can greatly improve the algorithm performance.

Key words: blockchain, smart contract, Trusted Execution Environment (TEE), TrustZone, private set intersection

中图分类号: