《计算机应用》唯一官方网站 ›› 2023, Vol. 43 ›› Issue (10): 3028-3037.DOI: 10.11772/j.issn.1001-9081.2022111641
• 区块链 • 上一篇
郭晓涵1,2,3(), 姚中原1,2,3, 张勇1,2,3, 郭尚坤1,2,3, 王超1,2,3, 斯雪明1,3
收稿日期:
2022-11-02
修回日期:
2022-12-02
接受日期:
2022-12-13
发布日期:
2023-05-08
出版日期:
2023-10-10
通讯作者:
郭晓涵
作者简介:
姚中原(1988—),男,河南固始人,讲师,博士,CCF会员,主要研究方向:密码学、区块链基金资助:
Xiaohan GUO1,2,3(), Zhongyuan YAO1,2,3, Yong ZHANG1,2,3, Shangkun GUO1,2,3, Chao WANG1,2,3, Xueming SI1,3
Received:
2022-11-02
Revised:
2022-12-02
Accepted:
2022-12-13
Online:
2023-05-08
Published:
2023-10-10
Contact:
Xiaohan GUO
About author:
YAO Zhongyuan, born in 1988, Ph. D., lecturer. His research interests include cryptology, blockchain.Supported by:
摘要:
联盟链跨链交互既增强了联盟链应用的功能,又扩展了应用的使用范围,因此对促进联盟链应用推广和产业发展意义重大。然而,目前联盟链跨链交互依然存在着用户身份和资产交易信息隐私泄露的问题,进而阻碍了联盟链跨链交互技术的广泛应用。针对以上问题,提出一个基于改进公证人机制的联盟链资产跨链隐私保护方案。首先,在合约层引入哈希锁定机制来改进传统的单签名公证人跨链方式,从而降低传统公证人机制中心化作恶的风险;其次,利用同态加密的特性在保证交易合法的前提下,实现对交易资产的可用不可见;同时,利用多密钥生成中心(KGC)模式的标识密码算法实现在网络层上的用户身份隐私保护。理论分析和实验结果表明,所提方案对联盟链跨链交互时交易中的用户身份信息和资产信息具有良好的隐私保护效果,且相较于其他同类方案在签名和验证方面的开销更低。
中图分类号:
郭晓涵, 姚中原, 张勇, 郭尚坤, 王超, 斯雪明. 基于改进公证人机制的联盟链跨链隐私保护方案[J]. 计算机应用, 2023, 43(10): 3028-3037.
Xiaohan GUO, Zhongyuan YAO, Yong ZHANG, Shangkun GUO, Chao WANG, Xueming SI. Cross-chain privacy protection scheme of consortium blockchain based on improved notary mechanism[J]. Journal of Computer Applications, 2023, 43(10): 3028-3037.
符号 | 含义 |
---|---|
Paillier同态加密密钥生成算法, 生成大小为size的密钥 | |
利用公共参数 | |
利用公共参数k解密消息CT | |
利用地址对应私钥 | |
签名验证函数,验证成功返回1,验证失败返回0 | |
利用Paillier算法公钥加密消息 | |
获取当前账户余额 |
表1 函数符号及其含义
Tab. 1 Function symbols and their meanings
符号 | 含义 |
---|---|
Paillier同态加密密钥生成算法, 生成大小为size的密钥 | |
利用公共参数 | |
利用公共参数k解密消息CT | |
利用地址对应私钥 | |
签名验证函数,验证成功返回1,验证失败返回0 | |
利用Paillier算法公钥加密消息 | |
获取当前账户余额 |
方案 | 签名开销 | 加密开销 | 验证开销 | 身份隐私保护 | 交易隐私保护 |
---|---|---|---|---|---|
文献[ | 无 | 有 | 无 | ||
文献[ | 有 | 有 | |||
文献[ | 无 | 有 | 有 | ||
本文方案 | 有 | 有 |
表2 本文方案与同类隐私保护方案在效率和隐私保护上的对比
Tab. 2 Comparison of efficiency and privacy protection between the proposed scheme and similar privacy protection schemes
方案 | 签名开销 | 加密开销 | 验证开销 | 身份隐私保护 | 交易隐私保护 |
---|---|---|---|---|---|
文献[ | 无 | 有 | 无 | ||
文献[ | 有 | 有 | |||
文献[ | 无 | 有 | 有 | ||
本文方案 | 有 | 有 |
项目 | 内容 |
---|---|
用户ID | 201508020116 |
链上账户地址 | 13de33c9f3246dc51efc345fd6a8780b1ced68e73c81115ebb8b2c715d7b853c |
用户签名私钥 | 03420004512865bf1280168a8a4fee7393f22a95c19b68aa2d5c07378ca65fd485f324a61ef981952e807cb93202c789e 04b1aa4690d3693df780c00801fd0f73912abce |
用户加密私钥 | 03818200040f7884b3ff527f06ffc493299bcf46adbf5dac3634e5098dd14baa21c93d6ed517859537951558b296aacdde 6507f3508f5254056fa3601a63b13274ab9691780b2f4a650b40d2a800fc39a2bde09266d4028ae0e92a725d6bd8e891c 7a32a076fa2064cc591811c0015db46f93d8f9de8c60e70993c1462aee113c9df314638 |
表3 账户信息
Tab. 3 Account information
项目 | 内容 |
---|---|
用户ID | 201508020116 |
链上账户地址 | 13de33c9f3246dc51efc345fd6a8780b1ced68e73c81115ebb8b2c715d7b853c |
用户签名私钥 | 03420004512865bf1280168a8a4fee7393f22a95c19b68aa2d5c07378ca65fd485f324a61ef981952e807cb93202c789e 04b1aa4690d3693df780c00801fd0f73912abce |
用户加密私钥 | 03818200040f7884b3ff527f06ffc493299bcf46adbf5dac3634e5098dd14baa21c93d6ed517859537951558b296aacdde 6507f3508f5254056fa3601a63b13274ab9691780b2f4a650b40d2a800fc39a2bde09266d4028ae0e92a725d6bd8e891c 7a32a076fa2064cc591811c0015db46f93d8f9de8c60e70993c1462aee113c9df314638 |
算法 | 平均耗时 |
---|---|
SM9_Encrypt | 141.45 |
SM9_Decrypt | 577.33 |
SM9_Sign | 131.48 |
SM9_Verify | 681.50 |
Paillier_Encrypt | 25.55 |
Paillier_Decrypt | 27.75 |
表4 各算法平均耗时 (ms)
Tab. 4 Average time consumed by different algorithms
算法 | 平均耗时 |
---|---|
SM9_Encrypt | 141.45 |
SM9_Decrypt | 577.33 |
SM9_Sign | 131.48 |
SM9_Verify | 681.50 |
Paillier_Encrypt | 25.55 |
Paillier_Decrypt | 27.75 |
1 | 邵奇峰,金澈清,张召,等. 区块链技术:架构及进展[J]. 计算机学报, 2018, 41(5): 969-988. |
SHAO Q F, JIN C Q, ZHANG Z, et al. Blockchain: architecture and research progress[J]. Chinese Journal of Computers, 2018, 41(5): 969-988. | |
2 | 黄征,李祥学,来学嘉,等. 区块链技术及其应用[J]. 信息安全研究, 2017, 3(3):237-245. |
HUANG Z, LI X X, LAI X J, et al. Blockchain technology and its application[J]. Journal of Information Security Research, 2017, 3(3):237-245. | |
3 | TRELEAVEN P, GENDAL BROWN R, YANG D. Blockchain technology in finance[J]. Computer, 2017, 50(9):14-17. 10.1109/mc.2017.3571047 |
4 | SHAHNAZ A, QAMAR U, KHALID A. Using blockchain for electronic health records[J]. IEEE Access, 2019, 7:147782-147795. 10.1109/access.2019.2946373 |
5 | PAL A, KANT K. Using blockchain for provenance and traceability in internet of things-integrated food logistics[J]. Computer, 2019, 52(12): 94-98. 10.1109/mc.2019.2942111 |
6 | 张志威,王国仁,徐建良,等. 区块链的数据管理技术综述[J]. 软件学报, 2020, 31(9):2903-2925. |
ZHANG Z W, WANG G R, XU J L, et al. Survey on data management in blockchain systems[J]. Journal of Software, 2020, 31(9):2903-2925. | |
7 | 何帅,黄襄念,陈晓亮. 区块链跨链技术发展及应用研究综述[J]. 西华大学学报(自然科学版), 2021, 40(3):1-14. |
HE S, HUANG X N, CHEN X L. The research summary of the development and application of blockchain cross-chain technology[J]. Journal of Xihua University (Natural Science Edition), 2021, 40(3):1-14. | |
8 | 李芳,李卓然,赵赫. 区块链跨链技术进展研究[J]. 软件学报, 2019, 30(6):1649-1660. 10.13328/j.cnki.jos.005741 |
LI F, LI Z R, ZHAO H. Research on the progress in cross-chain technology of blockchains[J]. Journal of Software, 2019, 30(6):1649-1660. 10.13328/j.cnki.jos.005741 | |
9 | ROBINSON P. Survey of crosschain communications protocols[J]. Computer Networks, 2021, 200: No.108488. 10.1016/j.comnet.2021.108488 |
10 | 祝烈煌,高峰,沈蒙,等. 区块链隐私保护研究综述[J]. 计算机研究与发展, 2017, 54(10):2170-2186. 10.7544/issn1000-1239.2017.20170471 |
ZHU L H, GAO F, SHEN M, et al. Survey on privacy preserving techniques for blockchain technology[J]. Journal of Computer Research and Development, 2017, 54(10): 2170-2186. 10.7544/issn1000-1239.2017.20170471 | |
11 | 王晨旭,程加成,桑新欣,等. 区块链数据隐私保护:研究现状与展望[J]. 计算机研究与发展, 2021, 58(10):2099-2119. 10.7544/issn1000-1239.2021.20210804 |
WANG C X, CHENG J C, SANG X X, et al. Data privacy-preserving for blockchain: state of the art and trends[J]. Journal of Computer Research and Development, 2021, 58(10):2099-2119. 10.7544/issn1000-1239.2021.20210804 | |
12 | 张奥,白晓颖. 区块链隐私保护研究与实践综述[J]. 软件学报, 2020, 31(5):1406-1434. |
ZHANG A, BAI X Y. Survey of research and practices on blockchain privacy protection[J]. Journal of Software, 2020, 31(5):1406-1434. | |
13 | 刘彦松,夏琦,李柱,等. 基于区块链的链上数据安全共享体系研究[J]. 大数据, 2020, 6(5):92-105. 10.11959/j.issn.2096-0271.2020046 |
LIU Y S, XIA Q, LI Z, et al. Research on secure data sharing system based on blockchain[J]. Big Data Research, 2020, 6(5):92-105. 10.11959/j.issn.2096-0271.2020046 | |
14 | MAXWELL G. CoinJoin: Bitcoin privacy for the real world[EB/OL]. (2013-08-22) [2022-05-03].. |
15 | SASSON E BEN, CHIESA A, GARMAN C, et al. Zerocash: decentralized anonymous payments from Bitcoin[C]// Proceedings of the 2014 IEEE Symposium on Security and Privacy. Piscataway: IEEE, 2014:459-474. 10.1109/sp.2014.36 |
16 | MAXWELL G. Confidential transactions[EB/OL]. [2022-09-15].. |
17 | NOETHER S, MACKENZIE A, Monero Research Lab. Ring confidential transactions[J]. Ledger, 2016, 1:1-18. 10.5195/ledger.2016.34 |
18 | 杨亚涛,蔡居良,张筱薇,等. 基于SM9算法可证明安全的区块链隐私保护方案[J]. 软件学报, 2019, 30(6):1692-1704. |
YANG Y T, CAI J L, ZHANG X W, et al. Privacy preserving scheme in block chain with provably secure based on SM9 algorithm[J]. Journal of Software, 2019, 30(6): 1692-1704. | |
19 | 刁一晴,叶阿勇,张娇美,等. 基于群签名和同态加密的联盟链双重隐私保护方法[J]. 计算机研究与发展, 2022, 59(1):172-181. 10.7544/issn1000-1239.20200576 |
DIAO Y Q, YE A Y, ZHANG J M, et al. A dual privacy protection method based on group signature and homomorphic encryption for alliance blockchain[J]. Journal of Computer Research and Development, 2022, 59(1):172-181. 10.7544/issn1000-1239.20200576 | |
20 | 郭阳楠,蒋文保,叶帅. 可监管的区块链匿名交易系统模型[J]. 计算机应用, 2022, 42(9):2757-2764. |
GUO Y N, JIANG W B, YE S. Supervisable blockchain anonymous transaction system model[J]. Journal of Computer Applications, 2022, 42(9):2757-2764. | |
21 | 戴波,赖旬阳,胡凯,等. 基于多角色节点的区块链可扩展方案研究与设计[J]. 浙江工业大学学报, 2021, 49(5):487-493. 10.3969/j.issn.1006-4303.2021.05.003 |
DAI B, LAI X Y, HU K, et al. Research and design of scalable blockchain scheme based on multi-role nodes[J]. Journal of Zhejiang University of Technology, 2021, 49(5):487-493. 10.3969/j.issn.1006-4303.2021.05.003 | |
22 | 郭佳程,宁德军,李泱丞,等. 基于区块链的可信分布式能源共享网络研究[J]. 计算机工程, 2021, 47(3):17-28. |
GUO J C, NING D J, LI Y C, et al. Research on trusted distributed energy sharing network based on blockchain[J]. Computer Engineering, 2021, 47(3):17-28. | |
23 | 唐榆程. 基于区块链的隐私保护技术的研究与应用[D]. 成都:电子科技大学, 2021:15-41. |
TANG Y C. Research and application of privacy protection technology based on blockchain[D]. Chengdu: University of Electronic Science and Technology of China, 2021:15-41. | |
24 | 王宇. 基于跨区块链的电子健康记录隐私保护方案研究[D]. 成都:西华大学, 2021:15-40. 10.1109/icccbda51879.2021.9442539 |
WANG Y. Research on privacy-preserving scheme of electronic health records based on cross-blockchain[D]. Chengdu: Xihua University, 2021:15-40. 10.1109/icccbda51879.2021.9442539 | |
25 | 郑建辉,林飞龙,陈中育,等. 基于联盟自治的区块链跨链机制[J]. 计算机应用, 2022, 42(11):3444-3457. |
ZHENG J H, LIN F L, CHEN Z Y, et al. Federated-autonomy-based cross-chain scheme for blockchain[J]. Journal of Computer Applications, 2022, 42(11):3444-3457. | |
26 | 万哲驿. 基于零知识证明的区块链数据隐私保护方法研究[D]. 重庆:重庆邮电大学, 2020:17-41. |
WAN Z Y. Research on blockchain data privacy protection method based on zero knowledge proof[D]. Chongqing: Chongqing University of Posts and Telecommunications, 2020:17-41. | |
27 | IMOTO S, SUDO Y, KAKUGAWA H, et al. Atomic cross-chain swaps with improved space and local time complexity[C]// Proceedings of the 2019 International Symposium on Stabilization, Safety, and Security of Distributed Systems, LNCS 11914. Cham: Springer, 2019:194-208. |
28 | HERLIHY M. Atomic cross-chain swaps[C]// Proceedings of the 2018 ACM Symposium on Principles of Distributed Computing. New York: ACM, 2018:245-254. 10.1145/3212734.3212736 |
29 | 蔡晓晴,邓尧,张亮,等. 区块链原理及其核心技术[J]. 计算机学报, 2021, 44(1):84-131. 10.11897/SP.J.1016.2021.00084 |
CAI X Q, DENG Y, ZHANG L, et al. The principle and core technology of blockchain[J]. Chinese Journal of Computers, 2021, 44(1):84-131. 10.11897/SP.J.1016.2021.00084 | |
30 | 袁勇,王飞跃. 区块链技术发展现状与展望[J]. 自动化学报, 2016, 42(4):481-494. 10.16383/j.aas.2016.c160158 |
YUAN Y, WANG F Y. Blockchain: the state of the art and future trends[J]. Acta Automatica Sinica, 2016, 42(4):481-494. 10.16383/j.aas.2016.c160158 | |
31 | PAILLIER P. Public-key cryptosystems based on composite degree residuosity classes[C]// Proceedings of the 1999 International Conference on the Theory and Applications of Cryptographic Techniques, LNCS 1592. Berlin: Springer, 1999: 223-238. |
32 | HERLIHY M, LISKOV B, SHRIRA L. Cross-chain deals and adversarial commerce[J]. The VLDB Journal, 2022, 31(6):1291-1039. 10.1007/s00778-021-00686-1 |
33 | ROBINSON P, RAMESH R, JOHNSON S. Atomic cross-chain transactions for Ethereum private sidechains[J]. Blockchain: Research and Applications, 2022, 3(1):100030. 10.1016/j.bcra.2021.100030 |
34 | 郭朝,郭帅印,张胜利,等. 区块链跨链技术分析[J]. 物联网学报, 2020, 4(2):35-48. 10.11959/j.issn.2096-3750.2020.00162 |
GUO Z, GUO S Y, ZHANG S L, et al. Analysis of cross-chain technology of blockchain[J]. Chinese Journal on Internet of Things, 2020, 4(2):35-48. 10.11959/j.issn.2096-3750.2020.00162 | |
35 | 路爱同,赵阔,杨晶莹,等. 区块链跨链技术研究[J]. 信息网络安全, 2019(8):83-90. |
LU A T, ZHAO K, YANG J Y, et al. Research on cross-chain technology of blockchain[J]. Netinfo Security, 2019(8):83-90. | |
36 | SHAMIR A. Identity-based cryptosystems and signature schemes[C]// Proceedings of the 1984 Workshop on the Theory and Application of Cryptographic Techniques, LNCS 196. Berlin: Springer, 1985:47-53. 10.1007/3-540-39568-7_5 |
37 | BONEH D, FRANKLIN M. Identity-based encryption from the Weil pairing[C]// Proceedings of the 2001 Annual International Cryptology Conference LNCS 2139. Berlin: Springer, 2001:213-229. 10.1007/3-540-44647-8_13 |
38 | SAKAI R. Cryptosystems based on pairing[C]// Proceedings of the 2000 Symposium on Cryptography and Information Security. Okinawa, Japan: [ S.n.], 2000:26-28. 10.1201/9780203325438.sec5 |
39 | 袁峰,程朝辉. SM9标识密码算法综述[J]. 信息安全研究, 2016, 2(11):1008-1027. |
YUAN F, CHENG Z H. Overview on SM9 identity-based cryptographic algorithm[J]. Journal of Information Security Research, 2016, 2(11):1008-1027. | |
40 | WANG Q, WANG S, ZHANG P, et al. An achieving data exchange cross-chain alliance protocol[J]. Journal of Physics: Conference Series, 2019, 1213(4): No.042037. 10.1088/1742-6596/1213/4/042037 |
41 | WANG H, CEN Y, LI X. Blockchain router: a cross-chain communication protocol[C]// Proceedings of the 6th International Conference on Informatics, Environment, Energy and Applications. New York: ACM, 2017:94-97. 10.1145/3070617.3070634 |
[1] | 马海英, 李金舟, 杨及坤. 基于区块链可撤销属性的去中心化属性基加密方案[J]. 《计算机应用》唯一官方网站, 2023, 43(9): 2789-2797. |
[2] | 黄硕, 李艳辉, 曹建秋. 本地化差分隐私下的频繁序列模式挖掘算法PrivSPM[J]. 《计算机应用》唯一官方网站, 2023, 43(7): 2057-2064. |
[3] | 蓝梦婕, 蔡剑平, 孙岚. 非独立同分布数据下的自正则化联邦学习优化方法[J]. 《计算机应用》唯一官方网站, 2023, 43(7): 2073-2081. |
[4] | 陈宛桢, 张恩, 秦磊勇, 洪双喜. 边缘计算下基于区块链的隐私保护联邦学习算法[J]. 《计算机应用》唯一官方网站, 2023, 43(7): 2209-2216. |
[5] | 陈璐瑀, 马小峰, 何敬, 龚生智, 高建. 基于TrustZone的区块链智能合约隐私授权方法[J]. 《计算机应用》唯一官方网站, 2023, 43(6): 1969-1978. |
[6] | 曹萌, 余孙婕, 曾辉, 史红周. 基于区块链的医疗数据分级访问控制与共享系统[J]. 《计算机应用》唯一官方网站, 2023, 43(5): 1518-1526. |
[7] | 翟冉, 陈学斌, 张国鹏, 裴浪涛, 马征. 基于不同敏感度的改进K-匿名隐私保护算法[J]. 《计算机应用》唯一官方网站, 2023, 43(5): 1497-1503. |
[8] | 尹春勇, 屈锐. 基于个性化差分隐私的联邦学习算法[J]. 《计算机应用》唯一官方网站, 2023, 43(4): 1160-1168. |
[9] | 王亦涵, 唐晨, 张兰. 大宗商品防欺诈抗篡改线上交易机制[J]. 《计算机应用》唯一官方网站, 2023, 43(4): 1309-1317. |
[10] | 童俊成, 赵波. 区块链智能合约漏洞检测与自动化修复综述[J]. 《计算机应用》唯一官方网站, 2023, 43(3): 785-793. |
[11] | 王腾, 霍峥, 黄亚鑫, 范艺琳. 联邦学习中的隐私保护技术研究综述[J]. 《计算机应用》唯一官方网站, 2023, 43(2): 437-449. |
[12] | 孙栋, 王彪, 徐云. 基于RDMA的区块传输机制设计与实现[J]. 《计算机应用》唯一官方网站, 2023, 43(2): 484-489. |
[13] | 尹春勇, 李荧. 基于BCU-Tree与字典的高效用挖掘快速脱敏算法[J]. 《计算机应用》唯一官方网站, 2023, 43(2): 413-422. |
[14] | 唐淑敏, 金瑜. 区块链中基于中国剩余定理投票方案的共识机制[J]. 《计算机应用》唯一官方网站, 2023, 43(2): 458-466. |
[15] | 谢晴晴, 杨念民, 冯霞. 区块链交易隐私保护技术综述[J]. 《计算机应用》唯一官方网站, 2023, 43(10): 2996-3007. |
阅读次数 | ||||||
全文 |
|
|||||
摘要 |
|
|||||