Chinese Journal of Network and Information Security ›› 2021, Vol. 7 ›› Issue (1): 65-75.doi: 10.11959/j.issn.2096-109x.2021007

• Topic Ⅱ: Blockchain Security • Previous Articles     Next Articles

Embedding of national cryptographic algorithm in Hyperledger Fabric

Qi CAO1,2, Shuhua RUAN1,2, Xingshu CHEN1,2, Xiao LAN1,2, Hongxia ZHANG1,2, Hongjian JIN1,2   

  1. 1 School of Cyber Science and Engineering, Sichuan University, Chengdu 610065, China
    2 Cybersecurity Research Institute, Sichuan University, Chengdu 610065, China
  • Revised:2020-09-18 Online:2021-02-15 Published:2021-02-01
  • Supported by:
    The Fundamental Research Funds for the Central Universities(61802270);The National Natural Science Foundation of China(SCU2018D018);The National Natural Science Foundation of China(2019SCU12069)

Abstract:

Hyperledger Fabric is an extensible alliance blockchain platform and provides support for enterprise-level commercial blockchain projects.The cryptographic algorithm is the core technologies of the platform, ensuring the security and non-tampering of the data on the chain.But the original Fabric platform lacks the national cryptographic algorithm support.The embedding and support of the national cryptographic algorithm of the Fabric platform was designed and implemented.Firstly, the interaction logic of between components and the invocation scenario of each type of cryptographic algorithm in the Fabric platform were analyzed, an idea of embedding national cryptographic algorithm support for the platform was proposed.Secondly, the modules and interfaces for SM2, SM3 and SM4 were added to BCCSP of the Fabric platform based on the open source code of national cryptographic algorithm implementation.Thirdly, the interface of cryptographic algorithm invoked by the upper layer of each component is associated to the interface of corresponding national cryptographic algorithms, which realized the invocation support of national cryptographic algorithm for the upper layer applications.Finally, the correctness and effectiveness of the embedded national cryptographic algorithm were verified by creating a fabric-gm test instance.And compared with the performances of the test instance built by the mirror of the native Fabric platform.The experimental results show that the embedded national cryptographic algorithm interfaces are corrected and the generated national cryptographic certificates are effective.Moreover, compared with the native Fabric platform, the network start up time increases by about 3%.In the millisecond unit, the transaction time cost increases by about one time, the dynamic certificate generation time increases by about 9%, and all the performance are within the acceptable range.

Key words: blockchain, Hyperledger Fabric, SM2, SM3, SM4

CLC Number: 

No Suggested Reading articles found!