目的 通过引入数字签名技术,旨在提升农产品溯源系统中的数据真实性和完整性,解决当前食品溯源中的密钥管理和数据安全问题,确保农产品信息的不可篡改性和可验证性。方法 本文设计一种基于SM2的协作签名算法的数字签名体系。该体系结合数字签名与防伪码技术,提高溯源信息私钥的安全性。通过设计两方协同签名方案,与现有溯源系统进行无缝对接,分别进行了数字签名生成与验证测试实验,确保签名的有效性与安全性。结果 实验表明,经过400次完整性功能测试,签名生成率和验证通过率均达到100%。通过安全性测试分析,该协作签名方案在合理开销下显著提升了数字签名的安全性,有效防止了数据篡改,保障了信息的完整性和可靠性。结论 基于SM2的协作签名方案能够有效提升食品溯源系统中的数据安全性,确保数据的不可篡改性与可信度,具有较高的实用价值,特别适用于农产品领域的信息化建设,具备较低的安全开销,具有广泛的推广价值。
Abstract
The work aims to improve the authenticity and integrity of data in agricultural product traceability system by introducing digital signature technology, to solve the key management and data security problems in food traceability and ensure the non-tampering and verifiability of agricultural product information. A digital signature system based on SM2 collaborative signature algorithm was designed. This system combined digital signature and anti-counterfeiting code technology to improve the security of private key of traceability information. By designing the two-party collaborative signature scheme and combining it seamlessly with the existing traceability system, digital signature generation and verification experiments were carried out respectively to ensure the validity and security of the signature. The experimental results showed that after 400 integrity function tests, the signature generation rate and verification pass rate both reached 100%. Through security test analysis, this collaborative signature scheme significantly improved the security of digital signature at reasonable cost, effectively prevented data tampering, and ensured the integrity and reliability of information. The SM2-based collaborative signature scheme can effectively improve data security in food traceability system, ensure data tamper-proof and credibility and has high practical value, especially suitable for information construction in agricultural products field, low security cost, and wide promotion value.
关键词
数字签名 /
追溯码 /
两方协同
Key words
digital signature /
traceability code /
two-party collaborative
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 杨振, 伍琴兰. 基于区块链技术的农产品质量可追溯体系研究[J]. 中国农业资源与区划, 2024, 45(12): 138.
YANG Z, WU Q L.Research on Traceability System of Agricultural Products Quality Based on Blockchain Technology[J]. Chinese Journal of Agricultural Resources and Regional Planning, 2024, 45(12): 138.
[2] 王华, 李卫卫, 吴怀广, 等. 基于二维码的禽类肉产品安全溯源系统设计与实现[J]. 计算机应用与软件, 2020, 37(10): 1-5.
WANG H, LI W W, WU H G, et al.Design and Implementation of Safety Traceability System for Poultry Meat Products Based on Qr Code[J]. Computer Applications and Software, 2020, 37(10): 1-5.
[3] 何静, 陈晓娜. 基于区块链的可信主侧多链绿色食品追溯平台构建研究[J]. 食品工业科技, 2023, 44(14): 411-418.
HE J, CHEN X N.Research on the Construction of Trusted Main-Side Multi-Chain Green Food Traceability Platform Based on Blockchain[J]. Science and Technology of Food Industry, 2023, 44(14): 411-418.
[4] 马莉媛, 黄勃. 采用SGX的云端SM2两方协作签名算法[J]. 重庆邮电大学学报(自然科学版), 2022, 34(6): 1065-1070.
MA L Y, HUANG B.SGX-Based Cloud SM2 Two-Party Collaborative Signature Algorithm[J]. Journal of Chongqing University of Posts and Telecommunications (Natural Science Edition), 2022, 34(6): 1065-1070.
[5] 杨龙海, 王学渊, 蒋和松. 改进SM2签名方法的区块链数字签名方案[J]. 计算机应用, 2021, 41(7): 1983-1988.
YANG L H, WANG X Y, JIANG H S.Blockchain Digital Signature Scheme with Improved SM2 Signature Method[J]. Journal of Computer Applications, 2021, 41(7): 1983-1988.
[6] 常江, 李险峰. SM2算法模逆加速器的设计[J]. 电子技术应用, 2015, 41(2): 131-134.
CHANG J, LI X F.The Design of SM2 Modular Inverse Algorithm Accelerator[J]. Application of Electronic Technique, 2015, 41(2): 131-134.
[7] 饶金涛, 崔喆. 基于SM2门限盲签名电子选举方案[J]. 计算机应用, 2024, 44(2): 512-518.
RAO J T, CUI Z.Electronic Voting Scheme Based on SM2 Threshold Blind Signature[J]. Journal of Computer Applications, 2024, 44(2): 512-518.
[8] 孙舟, 祝秀山, 刘祥路, 等. 基于门限签名的分布式预言机链下共识方案[J]. 计算机工程与设计, 2023, 44(1): 37-44.
SUN Z, ZHU X S, LIU X L, et al.Off-Chain Consensus Scheme of Distributed Oracles Based on Threshold Signature[J]. Computer Engineering and Design, 2023, 44(1): 37-44.
[9] 尚铭, 马原, 林璟锵, 等. SM2椭圆曲线门限密码算法[J]. 密码学报, 2014, 1(2): 155-166.
SHANG M, MA Y, LIN J Q, et al.A Threshold Scheme for SM2 Elliptic Curve Cryptographic Algorithm[J]. Journal of Cryptologic Research, 2014, 1(2): 155-166.
[10] ZHANG Y D, HE D B, ZHANG M W, et al.A Provable-Secure and Practical Two-Party Distributed Signing Protocol for SM2 Signature Algorithm[J]. Frontiers of Computer Science, 2019, 14(3): 143803.
[11] 彭金辉, 雷宗华, 张志鸿. ECDSA协同签名方案设计与实现[J]. 信息安全研究, 2023, 9(11): 1120-1130.
PENG J H, LEI Z H, ZHANG Z H.Design and Implementation of ECDSA Collaborative Signature Scheme[J]. Journal of Information Security Research, 2023, 9(11): 1120-1130.
[12] LIU S G, LIU R, RAO S Y.Secure and Efficient Two-Party Collaborative SM9 Signature Scheme Suitable for Smart Home[J]. Journal of King Saud University Computer and Information Sciences, 2022, 34(7): 4022-4030.
[13] 唐泽严, 李文军, 黄晓芳. 基于可验证SM2门限算法的移动终端签名系统的设计与实现[J]. 计算机测量与控制, 2019, 27(3): 225-230.
TANG Z Y, LI W J, HUANG X F.Design and Achieve of Mobile Terminal Signature System Based on Verifiable SM2 Threshold Scheme[J]. Computer Measurement & Control, 2019, 27(3): 225-230.
[14] OUYANG S S, LIU X, LIU L, et al.An Efficient and Provably Secure SM2 Key-Insulated Signature Scheme for Industrial Internet of Things[J]. Computer Modeling in Engineering & Sciences, 2024, 138(1): 903-915.
[15] 李莉, 白鹭, 涂航, 等. 基于SM2签名的批验签高效实现方案[J]. 信息网络安全, 2022, 22(5): 1-10.
LI L, BAI L, TU H, et al.Efficient Implementation Scheme of Batch Verification Based on SM2 Signatures[J]. Netinfo Security, 2022, 22(5): 1-10.
[16] LINDELL Y.Fast Secure Two-Party ECDSA Signing[J]. Journal of Cryptology, 2021, 34(4): 44.
基金
黑龙江省自然科学基金项目(LH2021C016); 中央高校业务经费(2572016CB11)