Next Article in Journal
Energy-Efficiency Passive Strategies for Mediterranean Climate: An Overview
Previous Article in Journal
Geomechanically Sustainable Gas Hydrate Production Using a 3D Geological Model in the Ulleung Basin of the Korean East Sea
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Proxy Re-Encryption-Based Traceability and Sharing Mechanism of the Power Material Data in Blockchain Environment

1
State Grid Jiangsu Electric Power Co., Ltd., Material Branch, Nanjing 210036, China
2
College of Electrical Engineering, Zhejiang University, Hangzhou 310027, China
*
Author to whom correspondence should be addressed.
Energies 2022, 15(7), 2570; https://doi.org/10.3390/en15072570
Submission received: 17 January 2022 / Revised: 29 March 2022 / Accepted: 30 March 2022 / Published: 1 April 2022

Abstract

:
The need to accelerate the innovation and application of the supply chain has been suggested by the State Council of China. To solve the problem of data isolation caused by privacy protection in the power material supply chain, a data traceability and sharing mechanism based on blockchain is designed in this paper. Firstly, the existing problems of the power material supply chain are introduced, and the applicability of blockchain in the power material supply chain in view of these problems is analyzed. Secondly, blockchain-based power material supply deployment and application structures are proposed. Then, considering the problem of data isolation in the material inspection and distribution links between suppliers and the material company, a data traceability mechanism based on blockchain is designed to provide evidence for the data authenticity and a proxy re-encryption method is used to ensure security and privacy in data sharing. Finally, the effectiveness of the proposed data traceability and sharing mechanism is verified using the Hyperledger Fabric platform for power material case studies. The simulation results show that the combination of proxy re-encryption and blockchain technology in the power material supply chain can confirm the validity of the historical data and keep the private data of the material company confidential, so as to realize the traceability and sharing of the power material supply data.

1. Introduction

With the development of modern information technology such as big data, cloud computing, Internet of Things (IoT), mobile Internet, artificial intelligence, and blockchain, the supply chain is facing new challenges and development opportunities. On the one hand, due to the rapid growth of data volume and the continuous improvement of data utilization requirements, higher requirements for the storage, processing, and sharing of information have been put forward by the modern smart supply chain. On the other hand, the application of modern information technology has achieved initial success, making the integration of the supply chain and modern information technology possible. In 2017, the necessity of accelerating the innovation and application of the supply chain and promoting supply-side structural reform was proposed by the State Council of China. As a decentralized distributed ledger technology, blockchain has authenticity, non-tampering, and traceability characteristics, which can meet the requirements of the supply chain for information storage and sharing.
Blockchain has been applied to different aspects of the power field, e.g., power trading [1,2], microgrid [3], smart grid [4], and demand response [5]. In terms of the supply chain, the opportunities and challenges that blockchain may face in the application process are analyzed in [6,7]. In [8], a supply chain framework based on blockchain technology is proposed, and the information tracking and multilateral cooperation among supply chain members are realized by using a distributed ledger and smart contract. The research on the global supply chain operation risk of aviation logistics is realized based on the combination of blockchain and the mean-variance method in [9]. The positive impact of blockchain in promoting cooperation and data sharing among supply chain participants is analyzed in [10,11]. The application focus of blockchain is shifted from traceability to supervision performance in [12], and a blockchain-based food supply chain credit evaluation system is proposed. In [13], the feasibility of blockchain technology towards the power material supply chain has been proved. The practical application of blockchain has also achieved initial success in the field of the supply chain. In 2017, a food safety alliance was jointly established by Walmart, International Business Machines Corporation (IBM), JD, and Tsinghua University to track the food supply chain by using blockchain. In 2018, a blockchain-based shipping and supply chain company was created by IBM and Maersk, which can digitize the end-to-end supply chain process based on Hyperledger Fabric, to improve the information transparency in the supply chain and achieve highly secure information sharing.
It can be seen that a suitable solution has not been provided by the existing research on blockchain to solve the problem of data isolation in the power material supply chain. The proxy re-encryption (PRE) algorithm realizes the data sharing by entrusting semi-trusted proxy to perform ciphertext conversion, which can be applied to solve the problem of data isolation. In [14], a PRE-based data-sharing scheme using blockchain nodes as trusted third parties is proposed to solve the privacy-protection problem caused by data sharing in cloud storage. The data security problems faced by vehicle communication data in the process of sharing are solved by combining PRE with smart contracts in [15].
Since there are various subjects involved in the inspection and distribution of the power material supply chain, and there are some private data that are not permitted to be disclosed to other subjects, it can represent the general problems existing in the power material supply chain. Therefore, the material inspection and distribution parts are taken as an example to study the application mode of blockchain and PRE technology in the power material supply chain, which can not only track and confirm the historical power material supply chain data but also realize the data sharing and keep the private data of the material company confidential. The novel contributions of the paper are introduced as follows:
  • The power material supply deployment and application structures based on blockchain technology are established based on the applicability analysis of blockchain technology in the power material supply chain, which realizes the data exchange and business transmission between different units in the power material supply chain.
  • The traceability and sharing mechanism of the power material data are designed based on the proxy re-encryption method and blockchain technology, which provides a meaningful reference for the problem of sharing private data on the blockchain.
The rest of the paper is structured as follows: In Section 2, the applicability of blockchain in the power material supply is analyzed based on the development reality of the power material supply chain. In Section 3, the blockchain-based structures of the power material supply are proposed. In Section 4, a data traceability mechanism and a proxy re-encryption method are designed to realize the credible data sharing in the inspection and distribution of the power material supply chain. The proposed data-sharing and traceability mechanism are simulated and verified on the Hyperledger Fabric platform in Section 5 and the conclusion in Section 6.

2. Power Material Supply Chain and Blockchain Technology

Supply chain, as a network structure formed by upstream or downstream companies, can provide products or services to users during the production and circulation process. Under the background of the continuous acceleration of supply chain innovation and application and the rapid development of modern information technology, the supply chain has developed into a new stage of smart supply chain deeply integrated with the Internet and IoT. For example, based on the actual demand and future development of the power material supply chain, a modern smart supply chain platform was built, as shown in Figure 1, by the State Grid Corporation of China. Intelligent procurement, digital logistics, and panoramic quality control have been realized on the platform by making full use of modern information technology, which promotes deep internal cross-professional collaboration and efficient external collaboration in the supply chain [16].
To simplify the database deployment structure and reduce the cost of data operation, a centralized data processing method has been adopted by the modern smart supply chain platform. However, the timeliness and reliability of the data interactions between suppliers, warehousing systems and logistics systems, and the supply chain platform have been greatly influenced by the centralized data processing method, which inevitably leads to a series of problems, such as a low efficiency of information flow, insufficient traceability of data and unguaranteed authenticity of information.
Taking State Grid Jiangsu Electric Power Company Material Branch in China as an example, the problems of the power material supply chain can be divided into the following three points: Firstly, the data exchange between suppliers and material companies may take even more than 5 days, which seriously affects the efficiency of the power material supply chain. Most of the information in the power material supply chain is physically isolated and difficult to exchange, which increases the need for manual operations. In terms of the overall data exchange of the power material supply chain, it is difficult for all entities to use the power material management platform system conveniently, which reduces the participation of all entities and cannot provide the original data and circulation channels for the data exchange of the supply chain. Additionally, the difficulty of information traceability is increased due to the high complexity of the power material information, various sources of the information, and the large period of the power material supply. Secondly, it often takes up to 4–6 months from the beginning of bidding to the effectiveness of the purchase agreement with strong uncertainty. The operation of the power material supply chain depends on the circulation of extensive contracts and documents due to the lack of informatization in some business links. Additionally, the processing of contracts and documents relies on logistics transshipment, and also requires a lot of manual approval and signatures due to the necessity of internal approval management, which makes the speed of the overall circulation slow. Thirdly, the risk of single-point failure in the information storage cannot be avoided absolutely because of the centralized information storage method. In addition, due to the design vulnerability of the management authority, the information in the power material platform system may also be tampered with, reducing the credibility of the information in the system.
Each node on the blockchain stores all transaction data in the chain and utilizes consensus mechanisms to ensure the consistency and authenticity of the data. In addition, technologies such as peer-to-peer network protocols, the asymmetric encryption algorithm, and smart contracts are also adopted in blockchain to realize the distributed application of blockchain in various fields. In order to demonstrate the practical significance of this paper in the power material supply and provide a basis for the data traceability and sharing mechanism in the following, the applicability of blockchain in the power material supply is analyzed based on the deficiencies of the existing material supply chain platform and the technical characteristics of blockchain in the following three aspects. In addition, the integrated applications of blockchain and the power material supply chain are also introduced, which can successfully solve the problems encountered in the existing power material supply chain [17].
  • Data traceability and authenticity guarantee: Consensus mechanisms are used by the nodes to generate blocks with timestamps, which ensures the immutability and traceability of the data on the chain. The accurate traceability of the data in various links such as material processing and distribution is still difficult to achieve in the current material supply chain. Additionally, there is also the problem that the material inspection reports cannot be completely trusted by suppliers. Therefore, the power material supply can be combined with blockchain to realize the decentralized processing of the data in the supply chain. By storing the power material supply data recorded by suppliers, warehousing systems, and logistics systems on the blockchain through consensus mechanisms, the whole process of the material information can be traced back, which improves the interaction efficiency of information flow between the material company and suppliers and strengthens the interaction between different subjects in the power material supply chain.
  • Process simplification: A smart contract on the blockchain is a computer transaction protocol with the characteristics of being intermediary free, self-verification, and automatic execution. Based on the trusted and tamper-proof data on blockchain, the pre-defined rules and terms can be automatically implemented by the smart contract to realize the efficiency and irreversibility of transactions. At present, there are still many cumbersome and complicated procedures in the power material supply chain that require offline executions and layered approvals, which greatly reduce the efficiency of information flow and business execution. The business process can be stored by the smart contract on the blockchain in the form of contract terms. Additionally, the relevant procedures can be automatically executed by calling the corresponding smart contract, which reduces the consumption of human and material resources, the uncertainty in the business process, and improves the business execution efficiency on the power material supply chain. Moreover, the smart contract is deployed on the blockchain, which realizes its openness, transparency, and traceability in the process of deployment, invocation, and execution, and ensures the legal compliance of procedures in the power material supply.
  • Protection of data privacy and system security: Asymmetric encryption, used in the blockchain to ensure data privacy, uses a public key and private key to encrypt and verify the data on the blockchain, which can ensure the confidentiality of the transactions on the blockchain. At present, there is still a large vacancy in the application of cryptography algorithms in the power material smart supply chain. Therefore, asymmetric encryption algorithms can be used to avoid the risk of privacy disclosure caused by the single point failure or the design vulnerability of management authority in multiple links such as demand declaration, bidding, procurement, inspection, and distribution.

3. Structure of the Power Material Supply Chain Based on Blockchain

At present, more comprehensive and specific requirements are put forward to improve the automation of the power material supply process and reduce the security risk of the power material supply information, which accelerates the innovation and development of the power material supply chain. The combination of blockchain and the power material supply chain, as mentioned above, can not only ensure the data privacy of different supply chain entities through asymmetric encryption technology but also simplify the supply chain business process and realize the traceability of data on the chain by using a smart contract. Therefore, a power material deployment structure and application structure based on blockchain are proposed in this section, which provides a channel for data exchange and business management between different entities in the power material supply chain.
Considering the requirements of data interaction between different subjects on the power material supply chain and the modern smart supply chain platform, the power material supply deployment structure is built with the consortium blockchain in this paper, as shown in Figure 2 [18]. The warehousing system, logistics system, financial institution, and suppliers of power material supply chain are selected as the nodes on the blockchain to participate in the data interaction and consensus in the process of power material supply. As the subnodes of the State Grid node, each business platform participates in the consensus process on the chain and realizes the data exchange with multiple nodes on the blockchain [19].
The data center in the power material supply chain is replaced by the application of blockchain, which can not only realize the storage and traceability of normalized business data but also complete the reception and forwarding of time-sensitive business data based on the distributed ledger. For the front-end application of the power material supply chain, the generation of real-time business data and feedback of business links can also be accomplished by the blockchain, which ameliorates the method of data generation and the speed of data feedback with the front-end function of the power material supply chain being immutable. As a node in the consortium blockchain, the enterprise supply chain center (ESC) can accelerate the transmission efficiency of business instructions based on real-time data sharing on the blockchain. Moreover, the smart contract on the blockchain can also be used by the ESC to execute relevant business processes, which can avoid the complex steps of offline execution and realize the automatic promotion of the whole process of the power material supply business [20].
For each participant of the power material supply chain, access to the blockchain means that the data can be put on the chain in real time, and the authenticity and effectiveness of the data are verified jointly. Therefore, the reliability of the quality information, logistics information, and storage information in the power material supply chain is guaranteed, and the problems of information inequality and data lag in the power material supply chain are solved.
To realize the application of blockchain in the field of the power material supply chain, a blockchain-based application structure of the power material supply chain is constructed, as shown in Figure 3. The structure mainly includes five parts, the subject of responsibility, channel layer, application layer, service layer, and data layer, which will be introduced in the following section.
  • The subject of responsibility in the power material supply chain: There are frequent and complex information interactions among the subjects in the power material supply chain, such as the material company, suppliers, testing organization, and judiciary. Therefore, on the power material supply consortium blockchain, the control and management of nodes and transaction data are usually completed by multiple responsible subjects, which not only ensures the data on the chain are non-tampering, but also reduces the operation cost of the blockchain.
  • The channel layer for information interaction: As the main support for external data access and data circulation, the channel layer, with intranet PC, extranet PC, mobile APP, a large screen display, and data interface included, can realize data exchange between different business platforms and between three-party units and the material company. Among them, the intranet PC can realize the data access of various departments in the power material company on the blockchain and provide channels for data interaction between multiple management platforms. The external PC is applied to provide data interfaces connected to the blockchain for suppliers, testing organization, supervision company, and judiciary. Additionally, the mobile app can provide convenient operation and management methods for handheld applications. Additionally, the data interface is designed to summarize the various information in the data layer for blockchain services and integrated support services.
  • Application layer for function design: The application layer mainly includes six modules: electricity logistics services platform, enterprise resource planning, handheld application, e-commercial platform, enterprise supply chain center, and electrical equipment intelligent IoT platform, which can realize the application mode design and function customization of blockchain in the power material supply chain. After receiving the instructions from the power material company or other entities in the power material supply chain, the application layer will use different blockchain services or integrated support services according to the preset process, and the results obtained after the program execution will be fed back to the user.
  • Service layer for supporting various applications. Through the hash pointer and consensus mechanism, all transaction information is stored in the database of each participating node in a chain structure by the blockchain service. Additionally, the transactions on the blockchain are also executed by the blockchain service according to the preset logic through the smart contract composed of an automatic script code, which realizes the trust-free, traceability, and non-tampering characteristics of data. An integration support service is an auxiliary service necessary for business integrity and process automation, and is paperless, which provides the services and functions required for the normal operation of the structure together with the blockchain service. The service layer receives instructions from the application layer, obtains real-time data from the data layer, and executes specific services according to requirements, and then the execution results will be fed back to the service layer.
  • The data layer for dealing with power material data and blockchain data: With business data, contract data, monitoring data, cross-chain data included, the data layer is the basis for the operation of the blockchain and the realization of various application services, which can be used to meet various data requirements of the service layer.
Through the connection between the channel layer, application layer, service layer, and data layer in the blockchain-based application structure, the integration of business information and management methods and the requirements for data traceability and reliability in the power material supply chain are realized.
As mentioned above, the existing modern smart power supply chain platform still has deficiencies in data traceability and authenticity, process simplification, and the protection of data privacy and system security. Therefore, blockchain is applied to solve the deficiencies above. However, the research of blockchain technology applied in the field of power material supply chain mostly focuses on the theoretical stages such as prospect, application, and management analysis, lacking visual structure support. In addition, the blockchain structure applied in other fields cannot be perfectly integrated with the power material supply chain. Therefore, this paper combines blockchain technology with the power material supply chain and designs the deployment architecture and application architecture of the power material supply chain based on blockchain technology, which can enhance the privacy of node data, simplify the business process, and realize the traceability of the power material supply data compared with the existing power material supply technology. Additionally, the deployment structure and application structure constructed in this paper have taken the suppliers, logistics, warehousing, finance, and other units involved in the process of the power material supply into consideration compared with the existing application research of blockchain technology. The structures can not only meet the different application needs of the power material supply chain but also provide relevant services for data exchange with external and cross chains.

4. Traceability and Sharing Mechanism of the Power Material Data Based on PRE in the Blockchain Environment

4.1. Preliminary Definitions of Blockchain and PRE

Blockchain is a distributed public ledger jointly maintained by the nodes of the whole network in a decentralized manner. Each node on the blockchain stores all the information of the whole blockchain, which is jointly managed, maintained, and supervised by all nodes of the blockchain. Additionally, each block on the blockchain saves the latest transaction data and the hash value of the previous block, which can be used to ensure the connection between blocks. Therefore, any change to the data will greatly change the hash value, so as to ensure the non-tampering and traceability of the data on the chain. Blockchain is a decentralized network without any authoritative third party to supervise and control it, which completes the corresponding functions through technologies such as consensus mechanisms, asymmetric encryption, and smart contracts. A consensus mechanism can ensure the consistency of data stored by different nodes on the blockchain, asymmetric encryption can be used to protect the private data of the nodes, and a smart contract is equivalent to a computable transaction protocol that implements the terms of the contract.
Proxy re-encryption is a concept proposed by Blaze et al. in 1998 [21]. The PRE entrusts a semi-trusted proxy to convert the ciphertext encrypted by A into ciphertext decryptable for B [22]. In this process, any plaintext information cannot be obtained by the semi-trusted proxy other than B, which can realize data sharing under the condition of ensuring privacy. Proxy re-encryption can take many forms, which can be divided into unidirectional proxy re-encryption and bidirectional proxy re-encryption according to the different directions of ciphertext conversion. Additionally, according to the different times of re-encryption key conversion, PRE can be divided into single-hop ciphertext conversion and multi-hop ciphertext conversion. The proxy re-encryption scheme based on the single-hop and unidirectional is applied in this paper, which includes the following algorithms:
  • Key generation algorithm: K e y G e n ( p a r ) ( p k , s k ) . Input the system public parameter par, and the algorithm will output (pk, sk) as a user’s public–private key pair.
  • Encryption algorithm: E n c r y p t ( p a r , m , p k i ) C i . Input the system public parameter par, plaintext m, and the delegator’s public key pki, the algorithm will output the ciphertext Ci encrypted by the public key pki.
  • Conversion key generation algorithm: R e K e y G e n ( p a r , s k i , p k j ) r k i j . Input the private key ski of the delegator and the public key pkj of the delegatee, the algorithm will output the conversion key rkij, which is used for one-way re-encryption from delegator to delegate.
  • Re-encryption algorithm: R e E n c r y p t ( r k i j , C i ) C j . Input the proxy re-encryption key rkij and the delegator’s ciphertext, and the proxy re-encryption algorithm will output the re-encrypted ciphertext Cj for the delegate.
  • Decryption algorithm: D e c r y t ( p a r , s k j , C j ) m . Input the delegate’s private key skj and the ciphertext Cj corresponding to the delegate, and the algorithm will output the corresponding plaintext m.
The algorithm of the proxy re-encryption scheme also needs to meet the consistency, which means that the following equation should be met for any set of public parameters par, any plaintext m, and any user public–private key pair (pk, sk):
D e c r y t ( p a r , s k i , E n c r y p t ( p a r , m , p k i ) ) = m
D e c r y t ( p a r , s k j , R e E n c r y p t ( R e K e y G e n ( p a r , s k i , p k j ) , C i ) ) = m

4.2. Power Material Data Traceability and Sharing Mechanism

The application of blockchain technology in the power material supply chain mainly focuses on the guarantee of the security, authenticity, and traceability of material information, the flow efficiency of material data on the supply chain, and the intelligent management of business data. As an important business link in the supply chain, power material inspection and distribution involve many subjects, such as the material company, testing organizations, material suppliers, and logistics units. Moreover, there are many information interactions between various subjects, including the original, process, and result information of all links from the standardized intelligent management of warehousing, visual testing to smart material distribution. Therefore, problems such as data loss or data damage are prone to occurring when circulating between different subjects. At present, the storage, inspection, and distribution information of the power material supply chain is mainly stored in the centralized database by manual input, whose reliability and confidentiality cannot be guaranteed. How to realize the efficient allocation of physical resources through the feedback of information system will be the most critical theme in the future [23].
Taking the power material supply chain of the State Grid Corporation of China as an example, the existing material inspection and distribution link are mainly composed of suppliers, warehouses, and inspection organizations of the power material supply chain. Additionally, the data of each link on the supply chain need to be stored in the power material smart supply chain platform and uniformly dispatched by the operation center, which realizes the intellectualization of material inspection and distribution to a certain extent. However, there are still some deficiencies in the existing technology in realizing the traceability of the power material information, which undoubtedly brings many problems to the whole life cycle management of the power material supply. In addition, when the suppliers disagree with the material quality inspection data, effective supporting proof needs to be provided by the material company to the suppliers. However, as the core business information of the material company, the sampling plan, for example, cannot be directly disclosed to suppliers to prevent improper collusion between suppliers and testing organizations. In this case, suppliers find it difficult to trust the inspection quality data provided by the material company, which is not conducive to building an honest and fair competitive environment on the power material supply chain [24].
Considering the characteristics of blockchain in ensuring the authenticity, reliability, and traceability of data, which can resolve the problems of insufficient reliability and lacking traceability of the data in the inspection and distribution links of the existing power material supply chain, a data traceability mechanism for inspection and distribution links of power material based on blockchain is proposed, as shown in Figure 4. Suppliers, material warehouses, and inspection organizations are not only the uploaders of the power material business, data but also the participants of the consensus process on the consortium blockchain, which ensures the authenticity and reliability of the logistics and quality inspection data stored on the blockchain [25,26].
The data block on the blockchain is generally composed of a block header and block body. All transaction information on the block is mainly contained in the block body and the hash value of the transaction information in the block body can be expressed as
H i = f S H A 256 ( T i r ) , i = 1 , 2 , , n
H x y = f S H A 256 ( H x , H y ) , ( x , y ) = ( 1 , 2 ) , ( 3 , 4 ) , , ( n 1 , n )
where T i r represents the transaction information stored in the block; f S H A 256 is the hash function of SHA256; H i denotes the hash value of T i r ; n represents the number of transactions stored in the block.
The block header contains the hash value of the current block, which can be expressed as
H c = f S H A 256 ( N r , T s , M r , B n , H p )
where N r is a random number; T s denotes the timestamp of the current block; M r represents the Merkle tree root of the transaction information stored in the block; B n is the number of the current block; H p denotes the hash value of the previous block; and H c represents the hash value of the current block.
In Figure 4, all blocks on the blockchain are linked into a complete one-way chain in chronological order, which can be represented as:
H c = f S H A 256 ( , H p ) = f S H A 256 ( , H c ) = f S H A 256 ( , f S H A 256 ( , H p ) ) = f S H A 256 ( , f S H A 256 ( , H c ) )
where H c is the hash value of the latter block; H c is the hash value of the previous block; and H p denotes the hash value of the current block, which equals to H c .
Therefore, all the information stored on the blockchain can be traced back. For material processing, quality inspection, and logistics information in the power material supply chain, a one-way chain with a traceable source and searchable purpose can be formed according to the timestamps of material arrival, inspection, and distribution. Thus, querying logistics information in real time and tracking the source of the power material can be accomplished by the one-way chain for the material company and other participants of the power material supply chain.
The quality report stored on the blockchain contains quality data, quality inspection results, the name of the testing organization, and other inspection data. Some of these data are private data within the material company and cannot be disclosed to the public, and need to be asymmetrically encrypted with public key. These data are stored in the form of ciphertext on the blockchain and can be decrypted only by the corresponding private key, which means that the quality inspection information of the power material is invisible to any other subjects except the material company. In other words, any effective information cannot be obtained through the ciphertext of the quality inspection information, which effectively ensures the privacy and security of the inspection data [27]. At the same time, it is impossible for material suppliers who need to verify the authenticity and reliability of the quality inspection information to obtain reliable data from the blockchain. Therefore, the key to the problem is how to share the quality inspection data without divulging the privacy of the material company and ensure the authenticity of the data in the meanwhile.
A power material privacy data-sharing method based on PRE is designed in this paper, as shown in Figure 5, which is mainly composed of the following six links [28]:
1.
Initialization of public parameter: S e t u p ( 1 k ) p a r
After inputting the safety parameter k, a bilinear mapping is output, which is recorded as ( q , g , G , G T , e ) , where q is the order of the cyclic groups G and G T . e represents the mapping e : G × G G T and g R G is a generator in G . At the same time, H : { 0 , 1 } * q * represents a one-way and anti-collision hash function in cryptography and can map binary strings of any length to q * , which can be instantiated with SHA-256. g 1 , h 1 , h 2 , h 3 , h 4 are generators in G different from the g and the public parameter par, which can be expressed as:
p a r = { g , G , G T , e , g 1 , h 1 , h 2 , h 3 , h 4 , H }
2.
Generation of the public key and private key: K e y G e n ( p a r ) ( p k i , s k i )
p k A = g x A and s k A = x A are the public key and private key of the power material company A, respectively; p k B = g x B and s k B = x B are the public key and private key of the supplier B, respectively, which can be obtained after the input of the public parameter par and the random selection of x A , x B R q * .
3.
Quality inspection data encryption and upchain: E n c r y p t ( p a r , m , p k A ) C A
To encrypt the quality inspection data m based on the public key p k A of the material company A and generate the quality inspection data ciphertext C A , it is necessary to randomly select r R q * and calculate:
C A 1 = g r
C A 2 = m e ( g 1 , p k A ) r
C A 3 = ( h 1 H ( C A 1 ) h 2 H ( C A 1 C A 2 ) h 3 ) r
where C A 1 , C A 2 and C A 3 are the elements of the quality inspection data ciphertext C A . Finally, the ciphertext is represented as:
C A = ( C A 1 , C A 2 , C A 3 )
4.
Calculation of conversion key: R e K e y G e n ( p a r , s k A , p k B ) r k A B
Transmit the public parameter par, the private key s k A of the material company A and the public key p k B of the material supplier B to a semi-trusted proxy, and the conversion key r k A B can be expressed as:
r k A B = ( r k 1 , r k 2 , r k 3 , r k 4 )
r k 1 = g k
r k 2 = g 1 s k A p k B k
r k 3 = e ( p k B , p k B ) k
r k 4 = ( h 2 H ( r k 1 r k 2 r k 3 ) h 4 ) k
where k R q * is randomly selected, and r k 1 , r k 2 , r k 3 and r k 4 are the elements of the conversion key r k A B .
5.
Re-encrypted ciphertext calculation: R e E n c r y p t ( r k A B , C A ) C B
The ciphertext C A is re-encrypted by the semi-trusted proxy to obtain the re-encrypted ciphertext C B , which is represented as:
C B = ( C B 1 , C B 2 , C B 3 , C B 1 , C B 2 , C B 3 )
C B 1 = C A 1
C B 2 = C A 2 e ( C A 1 , r k 2 )
C B 3 = C A 3
C B 1 = r k 1
C B 2 = r k 1 s k A
C B 3 = ( h 1 H ( C B 1 C B 2 C B 3 C B 1 C B 2 ) h 2 ) H ( r k 3 s k A )
where C B 1 , C B 2 , C B 3 , C B 1 , C B 2 and C B 3 are the elements of the re-encrypted ciphertext C B .
6.
Decryption of the re-encrypted ciphertext: D e c r y t ( p a r , s k B , C B ) m
Verify whether the equation
e ( g H ( e ( C B 2 , p k B ) s k B ) , h 1 H ( C B 1 C B 2 C B 3 C B 1 C B 2 ) h 2 ) = e ( g , C B 3 )
is valid. If so, the quality inspection data m can be recovered through the following calculation:
m = C B 2 e ( C B 1 , C B 1 ) s k B
In this process, the quality information obtained by suppliers comes from the blockchain, which ensures the authenticity and non-tampering characteristics of the data. At the same time, the plaintext information of data cannot be obtained by other unrelated suppliers, which realizes the data sharing of the specific supplier [29].

5. Case Study

To verify the traceability of the power material data on the blockchain and the effectiveness of the proposed power material privacy data sharing method based on PRE, the case study was simulated in Windows 10, with the processor of Intel(R) Core(TM) i5-9400F CPU @ 2.90 GHz, and the simulation of the power material data traceability and privacy was conducted using Hyperledger Fabric 2.4.

5.1. Hyperledger Fabric Platform

As one of the mainstream open-source platforms of the consortium chain, Hyperledger Fabric provides a permissioned blockchain for application scenarios of enterprise level. Hyperledger Fabric can solve the trust problem among multiple weak trust enterprises, reduce the trust cost caused by complex and cumbersome business processes, and effectively improve the efficiency of large-scale collaborative activities among enterprises.
Based on the Hyperledger Fabric platform, the power material supply consortium blockchain test system was designed as shown in Figure 6, which can meet the simulation requirements for data management in the power material supply chain. The designed test system mainly includes 5 organizations, 11 nodes, and 2 channels. Among them, the five organizations, consisting of the energy bureau, State Grid Jiangsu electricity power company, State Grid Beijing electricity power company, Nanjing automatic research institute, and industrial and commercial banks of China, realize the control of access rights and user registration by issuing digital certificates. The two channels can be divided into the power channel for dealing with transactions of power and energy and the material channel for power material supply chain business. Additionally, the 11 nodes can be divided into two types. The first type is the orderer node completing the consensus work in the blockchain, and the other type is the peer node joining the channel and saving a copy of the ledger data in the channel.

5.2. Traceability Mechanism of Power Material Supply Data Based on Hyperledger Fabric

Taking the quality inspection and logistics process of transformers as an example, the simulation is carried out on the single machine test system of the power material supply blockchain based on Hyperledger Fabric, so as to verify the applicability of blockchain in the power material inspection and the function of blockchain in ensuring data credibility and process traceability, as shown in Figure 7.
The uploading of the quality inspection and logistics information is mainly accomplished by the material company, supplier, testing organization, and logistics company, respectively, so as to form a one-way chain connected by the blockchain structure to trace the data on the chain. The material ID of different batches of the power material is unique, which means that the material company can query the corresponding logistics information on the blockchain according to the material ID. The logistics information of the power material supply chain within one month provided by State Grid Jiangsu Electric Power Company Material Branch in China is taken as an example of the simulation. The generation time of each block in the blockchain is about ten seconds. In order to facilitate the simulation research, two hours in real time is equivalent to ten seconds in the simulation, and the result is shown in Figure 7. The status of the power material underwent two changes, from arrival and warehousing to inspection and from inspection to the upchain of quality inspection data. The status information of the power material is stored in blocks with the numbers of 94, 106, and 153, and is sequenced by the timestamps. When suppliers doubt the authenticity of the power material quality inspection data, corresponding applications can be submitted to the material company to query the status of the power material quality inspection data on the blockchain. Therefore, the hash value of the previous block on the blockchain with the current state of the power material stored can be used to trace the power material quality inspection data by the material company, which can ensure the authenticity and reliability of the data traceability process. Additionally, the obtained quality inspection data can be shared with the suppliers by the PRE, so as to ensure the privacy of the material company and the effectiveness of the quality inspection data [30].

5.3. Power Material Data Sharing Mechanism Based on PRE

To verify the effect of the proposed PRE mechanism in the process of the power material quality inspection data sharing, a power material data-sharing mechanism based on PRE is designed in six steps, as shown in Figure 8.
When the supplier has doubts about the quality inspection results of the power material, the PRE is used by the material company to provide real and reliable quality inspection information for the supplier with the private data of the material company protected. In the initialization of public parameter stage, the random generators are selected and the public parameter par is calculated by the company A, which will be exposed to the supplier B and the semi-trusted proxy. Then, the public key p k A = 83 e 5 f 74 c and the private key s k A = 25 c d 4212 of the material company A will be sent to the semi-trusted proxy together with the public key p k B = 3614 57 a b and the private key s k B = 2496 22 f 1 of the material supplier B in the stage of generation of public key and private key. Additionally, the public key p k i and private key s k i of the material company A and the supplier B in the power material supply consortium blockchain can be used to verify the authenticity of the identity and data on the blockchain. In the stage of quality inspection data encryption and upchain, the quality inspection data such as material name, inspection conclusion, and inspector are encoded into corresponding data m = b b a 5 3944 . Additionally, the ciphertext C A , stored on the blockchain for the semi-trusted proxy and material supplier to query, is generated using the public key p k A to encrypt the quality inspection data m by material company A. In the calculation of the conversion key stage, the semi-trusted proxy will obtain the re-encrypted key r k A B by executing the key conversion algorithm according to the public parameter par, the private key s k A of material company A and the public key p k B of material supplier B. Then, the semi-trusted proxy will re-encrypt the encrypted ciphertext C A with the re-encryption key r k A B to obtain the re-encrypted ciphertext C B and send it to material supplier B in the re-encrypted ciphertext calculation stage. In the final stage of the decryption of the re-encrypted ciphertext, the effectiveness of the re-encrypted ciphertext C B will be verified first according to the system public parameter par and the private key s k B of material supplier B. If the verification is successful, the quality inspection data m can be calculated according to the corresponding algorithm, which guarantees the authenticity and effectiveness of the data. Additionally, the data m can also be decoded into the original quality inspection data with the material name, inspection conclusion, and inspector inside.
For suppliers or malicious attackers on the network who have obtained the re-encrypted ciphertext C B through improper means, the correct power material quality inspection data cannot be obtained with the re-encrypted ciphertext C B alone. In the re-encrypted ciphertext calculation stage, the re-encrypted ciphertext C B , calculated according to the ciphertext C A and the re-encrypted key r k A B , which can be obtained by executing the key conversion algorithm according to the public parameter par, the private key s k A of material company A and the public key p k B of material supplier, may be exposed to other suppliers or malicious attackers on the network due to network security problems. In the final stage of decryption of the re-encrypted ciphertext, although the public parameter par is known to all the nodes on the blockchain, the accuracy and authenticity of the re-encrypted ciphertext C B cannot be verified with the absence of the private key s k B , and it is also difficult to obtain the correct power material quality inspection data m.
The smart contract in the blockchain, with the algorithm logic of the PRE written inside, can be used as a semi-trusted proxy. When it is necessary to share the power material data, the PRE is automatically executed by calling the relevant smart contract, so as to avoid the possible risk of data leakage caused by the semi-trusted proxy, and further improve the efficiency and reliability of the data sharing in the power material supply chain.
In this section, the simulation of the proposed traceability and sharing mechanism of the power material data on Hyperledger Fabric is accomplished. The simulation shows that the PRE method and blockchain technology applied for realizing the traceability and sharing of the power material data are effective.

6. Conclusions

In this paper, the application mode of blockchain in the field of power material sup-ply is studied. Based on the analysis of the applicability of blockchain, the deployment structure and application structure of the power material supply chain based on blockchain were constructed. Considering the problem of data tracing and isolation in power material inspection and distribution, a data traceability and sharing mechanism based on PRE is proposed, and the effectiveness of the proposed mechanism is verified on the Hyperledger Fabric platform. The practical effect of the proposed solution to solve the problem of data isolation can be summarized as the following points:
  • The blockchain-based power material supply deployment and application structures meet the different application needs of the power material supply chain and provide relevant services for data exchange with external and cross chains.
  • The data traceability mechanism based on blockchain can track the historical power material supply chain data and confirm the authenticity of the data.
  • The combination of proxy re-encryption and blockchain technology in the power material supply chain can realize the data sharing and keep the private data of the mate-rial company confidential. Additionally, the corresponding power material supply data cannot be obtained by the supplier without the conversion key, which requires the permission of the material company.
Nowadays, the research of blockchain in the power material supply chain is increasing, and the data traceability and sharing mechanism proposed in this work is committed to providing a reference for the practical application of blockchain in the supply chain of China. Future research should be focused on the further integration and application of blockchain technology and the power material supply chain, as well as the combination of innovative proxy re-encryption methods and various blockchain projects.

Author Contributions

Conceptualization, J.S. and Y.Y.; methodology, W.T.; software, W.Q.; validation, J.M., Y.W. and Z.L.; formal analysis, L.X.; investigation, J.J.; resources, Y.L.; data curation, W.T.; writing—original draft preparation, G.Z.; writing—review and editing, Z.C.; visualization, G.Z.; supervision, Z.L.; project administration, W.Q.; funding acquisition, J.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Science and Technology Project of State Grid Jiangsu Electric Power Company Material Branch.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

This work was supported by the Science and Technology Project of State Grid Jiangsu Electric Power Co., Ltd., China. (J2021093).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Aitzhan, N.Z.; Svetinovic, D. Security and Privacy in Decentralized Energy Trading Through Multi-Signatures, Blockchain and Anonymous Messaging Streams. IEEE Trans. Dependable Secur. Comput. 2018, 15, 840–852. [Google Scholar] [CrossRef]
  2. Wang, Z.; Zhang, X.; Wang, H. Consensus-Based Decentralized Energy Trading for Distributed Energy Resources. Energy Convers. Econ. 2021, 2, 221–234. [Google Scholar] [CrossRef]
  3. Hassan, M.U.; Rehmani, M.H.; Chen, J. DEAL: Differentially Private Auction for Blockchain-Based Microgrids Energy Trading. IEEE Trans. Serv. Comput. 2020, 13, 263–275. [Google Scholar] [CrossRef]
  4. Gai, K.; Wu, Y.; Zhu, L.; Qiu, M.; Shen, M. Privacy-Preserving Energy Trading Using Consortium Blockchain in Smart Grid. IEEE Trans. Ind. Inform. 2019, 15, 3548–3558. [Google Scholar] [CrossRef]
  5. Pop, C.; Cioara, T.; Antal, M.; Anghel, I.; Salomie, I.; Bertoncini, M. Blockchain Based Decentralized Management of Demand Response Programs in Smart Energy Grids. Sensors 2018, 18, 162. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Chang, Y.; Iakovou, E.; Shi, W. Blockchain in Global Supply Chains and Cross Border Trade: A Critical Synthesis of the State-of-the-Art, Challenges and Opportunities. Int. J. Prod. Res. 2019, 58, 2082–2099. [Google Scholar] [CrossRef] [Green Version]
  7. Choi, T.M. Blockchain-Technology-Supported Platforms for Diamond Authentication and Certification in Luxury Supply Chains. Transp. Res. Part E-Logist. Transp. Rev. 2019, 128, 17–29. [Google Scholar] [CrossRef]
  8. Chang, S.E.; Chen, Y.C.; Lu, M.F. Supply Chain Re-Engineering Using Blockchain Technology: A Case of Smart Contract Based Tracking Process. Technol. Forecast. Soc. Change 2019, 144, 1–11. [Google Scholar] [CrossRef]
  9. Choi, T.M.; Wen, X.; Sun, X.; Chung, S.H. The Mean-Variance Approach for Global Supply Chain Risk Analysis with Air Logistics in the Blockchain Technology Era. Transp. Res. Part E-Logist. Transp. Rev. 2019, 127, 178–191. [Google Scholar] [CrossRef]
  10. Vaio, A.D.; Varriale, L. Blockchain Technology in Supply Chain Management for Sustainable Performance: Evidence from the Airport Industry. Int. J. Inf. Manag. 2019, 52, 102014. [Google Scholar] [CrossRef]
  11. Dubey, R.; Gunasekaran, A.; Bryde, D.J.; Dwivedi, Y.K.; Papadopoulos, T. Credit Evaluation System Based on Blockchain for Multiple Stakeholders in the Food Supply Chain. Int. J. Environ. Res. Public Health 2018, 15, 1627. [Google Scholar]
  12. Mao, D.; Wang, F.; Hao, Z.; Li, H. Blockchain Technology for Enhancing Swift-Trust, Collaboration and Resilience within a Humanitarian Supply Chain Setting. Int. J. Prod. Res. 2020, 58, 3381–3398. [Google Scholar]
  13. Cheng, J.; Qiu, W.; Mei, J.; Xu, C.; Zhou, G.; Ding, H.; Chu, Z.; Liu, B.; Tan, W.; Lin, Z. Evaluation Index System of Blockchain Technology Feasibility Towards Power Material Supply Chain. Energy Rep. 2021, 7, 968–978. [Google Scholar] [CrossRef]
  14. Obour Agyekum, K.O.B.; Xia, Q.; Sifah, E.B.; Gao, J.; Xia, H.; Du, X.; Guizani, M. A Secured Proxy-Based Data Sharing Module in IoT Environments Using Blockchain. Sensors 2019, 19, 1235. [Google Scholar] [CrossRef] [Green Version]
  15. Liu, Q.; Wang, G.; Wu, J. Time-Based Proxy Re-Encryption Scheme for Secure Data Sharing in A Cloud Environment. Inf. Sci. 2014, 258, 355–370. [Google Scholar] [CrossRef]
  16. Kim, S.K.; Huh, J.H. A Study on the Improvement of Smart Grid Security Performance and Blockchain Smart Grid Perspective. Energies 2018, 11, 1973. [Google Scholar] [CrossRef] [Green Version]
  17. Dong, Z.; Luo, F.; Liang, G. Blockchain: A Secure, Decentralized, Trusted Cyber Infrastructure Solution for Future Energy Systems. J. Mod. Power Syst. Clean Energy 2018, 6, 958–967. [Google Scholar] [CrossRef] [Green Version]
  18. Feng, Y.; Fan, J.; Chen, H.; Wang, Q.; Wang, B.; Wang, J. Transnational Power-Transaction Model Considering Transaction Costs Under the Support of Consortium Blockchain. Energy Convers. Econ. 2020, 1, 251–263. [Google Scholar] [CrossRef]
  19. Wang, J.; Wang, Q.; Zhou, N.; Chi, Y. A Novel Electricity Transaction Mode of Microgrids Based on Blockchain and Continuous Double Auction. Energies 2017, 10, 1971. [Google Scholar] [CrossRef] [Green Version]
  20. Zhang, T.; Liu, S.; Qiu, W. KPI-Based Real-Time Situational Awareness for Power Systems with High Proportion of Renewable Energy Sources. CSEE J. Power Energy Syst. 2020, 1–13. [Google Scholar] [CrossRef]
  21. Yang, Y.; Ma, M. Conjunctive Keyword Search with Designated Tester and Timing Enabled Proxy Re-Encryption Function for E-Health Clouds. IEEE Trans. Inf. Forensics Secur. 2016, 11, 746–759. [Google Scholar] [CrossRef]
  22. Blaze, M.; Bleumer, G.; Strauss, M. Divertible Protocols and Atomic Proxy Cryptography. In International Conference on the Theory and Applications of Cryptographic Techniques; Springer: Berlin/Heidelberg, Germary, 1998; Volume 1403, pp. 127–144. [Google Scholar]
  23. Liu, H.; Wang, Q.; Tang, Y. Architecture and Function Analysis of Integrated Energy Service Stations Considering Cyber-Physical Integration. Energy Convers. Econ. 2021, 2, 186–196. [Google Scholar] [CrossRef]
  24. Oliver, D.; Bessie, M.; Lindokhuhle, S. Proposed Framework for Blockchain Technology in a Decentralised Energy Network. Prot. Control. Mod. Power Syst. 2021, 6, 396–406. [Google Scholar]
  25. Piotr, F.B. Digitization, Digital Twins, Blockchain, and Industry 4.0 as Elements of Management Process in Enterprises in the Energy Sector. Energies 2021, 14, 1885. [Google Scholar]
  26. Wang, Y.; Qiu, W.; Dong, L.; Zhou, W.; Pei, Y.; Yang, L.; Nian, H.; Lin, Z. Proxy Signature-Based Management Model of Sharing Energy Storage in Blockchain Enviorment. Appl. Sci. 2020, 10, 7502. [Google Scholar] [CrossRef]
  27. Baek, J.; Vu, Q.H.; Liu, J.K.; Huang, X.; Xiang, Y. A Secure Cloud Computing Based Framework for Big Data Information Management of Smart Grid. IEEE Trans. Cloud Comput. 2021, 3, 233–244. [Google Scholar] [CrossRef]
  28. Shao, J.; Cao, Z.; Liang, X.; Lin, H. Proxy Re-Encryption with Keyword Search. Inf. Sci. 2010, 180, 2576–2587. [Google Scholar] [CrossRef]
  29. Sun, W.; Yu, S.; Lou, W.; Hou, Y.; Li, H. Secure Outsourced Blockchain-Based Medical Data Sharing System Using Proxy Re-Encryption. IEEE Trans. Parallel Distrib. Syst. 2016, 27, 1187–1198. [Google Scholar] [CrossRef]
  30. Beatrice, M.; Simone, Z. Supply Chain Management for Improved Energy Efficiency: Review and Opportunities. Energies 2017, 10, 1618. [Google Scholar]
Figure 1. The architecture of the modern smart supply chain platform.
Figure 1. The architecture of the modern smart supply chain platform.
Energies 15 02570 g001
Figure 2. Power material supply deployment structure based on blockchain.
Figure 2. Power material supply deployment structure based on blockchain.
Energies 15 02570 g002
Figure 3. Blockchain-based application structure of the power material supply chain.
Figure 3. Blockchain-based application structure of the power material supply chain.
Energies 15 02570 g003
Figure 4. Data traceability mechanism for inspection and distribution of power material based on blockchain.
Figure 4. Data traceability mechanism for inspection and distribution of power material based on blockchain.
Energies 15 02570 g004
Figure 5. Power material privacy data-sharing method based on PRE.
Figure 5. Power material privacy data-sharing method based on PRE.
Energies 15 02570 g005
Figure 6. Power material blockchain test system based on Hyperledger Fabric.
Figure 6. Power material blockchain test system based on Hyperledger Fabric.
Energies 15 02570 g006
Figure 7. Power material data traceability process based on Hyperledger Fabric.
Figure 7. Power material data traceability process based on Hyperledger Fabric.
Energies 15 02570 g007
Figure 8. Power material data sharing process based on PRE.
Figure 8. Power material data sharing process based on PRE.
Energies 15 02570 g008
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Song, J.; Yang, Y.; Mei, J.; Zhou, G.; Qiu, W.; Wang, Y.; Xu, L.; Liu, Y.; Jiang, J.; Chu, Z.; et al. Proxy Re-Encryption-Based Traceability and Sharing Mechanism of the Power Material Data in Blockchain Environment. Energies 2022, 15, 2570. https://doi.org/10.3390/en15072570

AMA Style

Song J, Yang Y, Mei J, Zhou G, Qiu W, Wang Y, Xu L, Liu Y, Jiang J, Chu Z, et al. Proxy Re-Encryption-Based Traceability and Sharing Mechanism of the Power Material Data in Blockchain Environment. Energies. 2022; 15(7):2570. https://doi.org/10.3390/en15072570

Chicago/Turabian Style

Song, Jien, Yang Yang, Jie Mei, Gaofeng Zhou, Weiqiang Qiu, Yixing Wang, Lu Xu, Yanran Liu, Jinyu Jiang, Zhenyue Chu, and et al. 2022. "Proxy Re-Encryption-Based Traceability and Sharing Mechanism of the Power Material Data in Blockchain Environment" Energies 15, no. 7: 2570. https://doi.org/10.3390/en15072570

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop