A one-way cross-chain method for alliance chains and private chains with weak connections in supply chains
By adopting a one-way cross-chain method of alliance chains and private chains in the supply chain, and using key generation and contract technology, trust and supervision problems in the supply chain are solved, safe transmission and immutability of data are realized, and data is broken Isolated islands improve the information security of the supply chain.
Patent Information
- Application Number
- CN202211220002.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-08
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-10-08
AI Technical Summary
In traditional supply chains, upstream and downstream enterprises in the supply chain need to be highly confidential and have limited network interconnection, resulting in a lack of effective trust mechanisms and dynamic supervision, and the problem of slow response of counterfeit and inferior products.
Adopt a one-way cross-chain method for weak connections in the supply chain. By building alliance chains, private chains and cross-chain gateways, using key generation, smart contracts, cross-chain contracts and decryption contracts to realize data digital signature, encryption and decryption ensures the security and immutability of data in the cross-chain process.
When the supply chain network is restricted, data traceability, immutability and reliability are achieved, data silos between supply chains are broken, and information security and trust between enterprises are ensured.
Smart Images

Figure CN115633032B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the cross-chain field of blockchain, and specifically relates to a one-way cross-chain method for alliance chains and private chains with weak connections in supply chains. Background Art
[0002] As the research on blockchain technology deepens, alliance chains and private chains have emerged in the blockchain field. Alliance chains are between public chains and private chains and have the characteristics of partial decentralization. Alliance chains are jointly initiated by several institutions and maintained by allies. They are only open to members of a specific group and limited third parties. The participants of the alliance chain are screened in advance or directly designated. Some nodes are designated as accounting nodes within the alliance chain. The generation of each block is jointly determined by the designated sorting nodes. Users can participate in transactions but do not directly participate in the accounting process. Alliance chains are suitable for cooperation between enterprises. Private chains are blockchain systems open to individual individuals or organizations. They are only used within private organizations and information is not disclosed. If a private chain requires authorization from a centralized system manager, the centralized manager will manage and restrict it. According to the specific situation, it will decide who to open how much information and data to. The write permissions of each node in the private chain system are determined and allocated by the centralized manager, which is suitable for internal use in enterprises. In the traditional supply chain, firstly, the process management of the supply chain manufacturers is not strict, which brings safety risks to production; secondly, the review and proofreading are often carried out only after the counterfeit products are used, and the response to the appearance of counterfeit products is slow, lacking an effective dynamic supervision mechanism; finally, there is a lack of effective mutual trust mechanism between different enterprises. At present, blockchain technology is often used to solve the above problems in the supply chain scenario.
[0003] When blockchain technology is directly applied to supply chain scenarios, it will face the situation where network interconnection is limited due to the need for high confidentiality among upstream and downstream companies in the supply chain. Summary of the invention
[0004] In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a one-way cross-chain method of alliance chain and private chain applied to weakly connected supply chains, which not only realizes the supervision of internal enterprise data, but also enables the supply chain to obtain real data such as raw materials, products, quality inspection reports, etc. provided according to their respective division of labor in a weakly connected manner under network restrictions, thereby realizing data traceability, non-tamperability and reliability, etc., and breaking the data silos between supply chains.
[0005] A one-way cross-chain method for alliance chains and private chains with weak connections in a supply chain, the method comprising:
[0006] S1: Build alliance chain, private chain and cross-chain gateway; the alliance chain includes at least two alliance chain member nodes; the private chain includes private chain data collection node, private chain cross-chain information storage node and data collection node;
[0007] S2: Initialize the alliance chain and private chain respectively. The initialization includes the key generation centers of the alliance chain and private chain generating corresponding public and private key pairs, and deploying smart contracts, cross-chain contracts, and decryption contracts;
[0008] S3: The private chain data collection node collects data, uses the key to digitally sign and encrypt the data, and uploads the signed and encrypted data to the chain;
[0009] S4: Obtain the height information of each block in the private chain network, and use the election algorithm to screen each node in the private chain network according to the height information to obtain the private chain cross-chain node;
[0010] S5: The private chain cross-chain node uses the cross-chain contract to process the cross-chain data, form a cross-chain transaction package, sign the cross-chain transaction package, and forward the signed cross-chain transaction package to the cross-chain gateway;
[0011] S6: The gateway firewall in the cross-chain gateway verifies the signature of the cross-chain transaction package. If the verification is successful, the cross-chain reply package is extracted from the cross-chain transaction package and forwarded to the alliance chain network; if the verification fails, the cross-chain reply is rejected;
[0012] S7: The alliance chain member node obtains the current block containing the cross-chain transaction from the blockchain, calculates the parameter C1^SKc of the cross-chain transaction according to the information C1 in the cross-chain reply package of the current block, and sends a transaction containing C1^SKc to the alliance chain network; C1 is the first ciphertext, and SKc is the private key of the alliance chain member node;
[0013] S8: The remaining alliance chain member nodes call the decryption contract to decrypt and verify the cross-chain transaction; verify the digital signature, and if the verification is successful, the decrypted data will be uploaded to the chain, otherwise the cross-chain fails.
[0014] Preferably, the process of using a key to digitally sign and encrypt data includes: the private chain initializes the generated private key SK Ti And contains the public key PK Ti The certificate is assigned to the terminal data collection device, and the assigned terminal data collection device is used as a private chain data collection node; the private chain data collection node uses the key to collect the data d ij Encryption, get en(d ij )={C1,C2}, where en() indicates data encryption, d ij Represents the data collected by the terminal data collection device, C1 is the first ciphertext, C2 is the second ciphertext; the private chain data collection node uses the private key SK Ti Real-time data collection ij ) to digitally sign and obtain sij , that is, s i =Sign SKTi (en(d ij )), send the signed and encrypted data packet to the blockchain.
[0015] Preferably, the process of using the election algorithm to screen each node in the private chain network includes: the number of private chain nodes is Num, the private chain block height is h, and each time the private chain block height increases by Num, the cross-chain node election algorithm is executed; the specific steps include:
[0016] Step 1: Randomly initialize and arrange the private chain nodes;
[0017] Step 2: Calculate the bytes of the key stream based on the randomly initialized private chain nodes;
[0018] Step 3: Perform XOR operation on key and the public key PK of each node, and take the node corresponding to the public key corresponding to the maximum value after XOR as the cross-chain node.
[0019] Furthermore, the process of randomly initializing and arranging the private chain nodes includes:
[0020] Step 11: Determine the key length n of the private chain, and initialize two arrays a and b of the same size; where the elements in array a are a[i]=i (i=0,1,…,m), m is the size of array a and b, and m=2 n ;
[0021] Step 12: Select a subsequence of length Num from the element with subscript h in array a and repeatedly fill it into array b until the elements in array b are filled;
[0022] Step 13: Set parameter j, set parameter j=0;
[0023] Step 14: Update parameter j according to the elements in array a, i.e., j=j+a[i]+h+b[i]+Num(modm);
[0024] Step 15: Exchange the element a[i] in array a with the element a[j] until all elements in array a are exchanged, and the random initialization arrangement of the private chain nodes is completed.
[0025] Furthermore, the process of calculating the bytes of the key stream based on the randomly initialized private chain nodes includes:
[0026] Step 21: Update parameter i, i=i+1(modm);
[0027] Step 22: Update parameter j according to the updated i, and the updating formula is j=j+a[i](modm);
[0028] Step 23: Exchange the updated data in a[i] and a[j] in the array;
[0029] Step 24: Calculate the intermediate parameter t according to the exchanged data, and the calculation formula is t=a[i]+a[j]+h+Num(mod m);
[0030] Step 25: Calculate the bytes of the key stream key according to the intermediate parameters, that is, K = a[t];
[0031] Step 26: Repeat steps 21 to 25 until the key stream key is equal in length to the public key of each node.
[0032] Preferably, the cross-chain contract includes: reading block information from the private chain, obtaining the (en(d ij )||s ij );Build a cross-chain reply package P according to a specific block transaction structure cross , the cross-chain reply package P cross Return to the cross-chain node; the cross-chain node responds to the cross-chain reply packet P cross Sign and get the cross-chain transaction package P tx =(P cross ||S cross ), where S cross For cross-chain node pair P cross The signature of the forwarded cross-chain transaction package P tx Gateway firewall to the cross-chain gateway.
[0033] Preferably, the process of the alliance chain member node calling the smart contract to encrypt the new block includes: the alliance chain member node monitors the alliance chain network in real time, and when a new block appears in the alliance chain, obtains the information C recorded in the block ij , by C ij The C1 in and its own key SKc generate the intermediate parameter C1^SKc, and then upload C1^SKc to the alliance chain account book.
[0034] Preferably, the decryption contract includes: obtaining data C from the consortium chain account book ij With C1^SKc, call the decryption algorithm to get (d ij ||s ij ), for signature s i If the verification is successful, the data (d ij ||s ij ) is updated on the alliance chain ledger.
[0035] Beneficial effects of the present invention:
[0036] The present invention designs a one-way cross-chain method of alliance chain and private chain for weak connections applied to the supply chain, so that when the internal information of upstream and downstream enterprises in the supply chain is highly confidential and the network interconnection is limited, the blockchain technology and related cryptographic algorithms can be used to solve the trust problem between traditional supply chain enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The embodiment of the present invention provides a general flow chart of a cross-chain data security sharing method based on a consortium chain;
[0038] Figure 2 It is the overall architecture of a cross-chain data security sharing method based on alliance chain provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] A one-way cross-chain method between alliance chains and private chains with weak connections in the supply chain, such as Figure 2 As shown, the method includes: each enterprise in the supply chain builds a private chain in the internal network, and the upstream and downstream enterprises in the supply chain build a consortium chain network and physically isolate it from their respective internal private chain networks. The private chain data collection node adds its own digital signature to the data that needs to be chained, the private chain cross-chain information storage node obtains data and its digital signature from the distributed ledger, encrypts the data and its digital signature using asymmetric cryptography, stores it on the private chain and transmits it to the data collection node, the data collection node chain chains the ciphertext to the consortium chain, the consortium chain members call the smart contract and chain the intermediate parameters, the consortium chain node members call the decryption contract, the consortium chain network decrypts the ciphertext according to the smart contract to obtain the data and its digital signature, and after verifying the digital signature, the data is chained to complete the entire data single-item cross-chain. Digitally signing the data prevents the ciphertext from being replaced by the data collection node during the off-chain transmission process, effectively ensuring that nodes at all levels of the supply chain achieve one-way data cross-chain under weak connections.
[0041] A specific implementation method of a one-way cross-chain method between a consortium chain and a private chain with weak connections in a supply chain, such as Figure 1 As shown, the method includes:
[0042] S1: Build alliance chain, private chain and cross-chain gateway; the alliance chain includes at least two alliance chain member nodes; the private chain includes private chain data collection node, private chain cross-chain information storage node and data collection node;
[0043] S2: Initialize the alliance chain and private chain respectively. The initialization includes the key generation centers of the alliance chain and private chain generating corresponding public and private key pairs, and deploying smart contracts, cross-chain contracts, and decryption contracts;
[0044] S3: The private chain data collection node collects data, uses the key to digitally sign and encrypt the data, and uploads the signed and encrypted data to the chain;
[0045] S4: Obtain the height information of each block in the private chain network, and use the election algorithm to screen each node in the private chain network according to the height information to obtain the private chain cross-chain node;
[0046] S5: The private chain cross-chain node uses the cross-chain contract to process the cross-chain data, form a cross-chain transaction package, sign the cross-chain transaction package, and forward the signed cross-chain transaction package to the cross-chain gateway;
[0047] S6: The gateway firewall in the cross-chain gateway verifies the signature of the cross-chain transaction package. If the verification is successful, the cross-chain reply package is extracted from the cross-chain transaction package and forwarded to the alliance chain network; if the verification fails, the cross-chain reply is rejected;
[0048] S7: The alliance chain member node obtains the current block containing the cross-chain transaction from the blockchain, calculates the parameter C1^SKc of the cross-chain transaction according to the information C1 in the cross-chain reply package in the current block, and sends a transaction containing C1^SKc to the alliance chain network; C1 is the first ciphertext, and SKc is the private key of the alliance chain member node;
[0049] S8: The remaining alliance chain member nodes call the decryption contract to decrypt and verify the cross-chain transaction; verify the digital signature, and if the verification is successful, the decrypted data will be uploaded to the chain, otherwise the cross-chain fails.
[0050] The process of verifying the signature of the cross-chain transaction package by the gateway firewall in the cross-chain gateway includes: the gateway firewall in the cross-chain gateway filters the cross-chain transaction package by verifying the digital signature of the cross-chain node, and extracts the cross-chain reply package in the package from the obtained cross-chain transaction package; a one-way network gate device is set between the cross-chain gateway and the alliance chain network, and the cross-chain reply package is forwarded to the alliance chain through the one-way network gate device to realize data security one-way communication.
[0051] In this embodiment, the process of using the election algorithm to screen each node in the private chain network includes: the number of private chain nodes is Num, the private chain block height is h, and each time the private chain block height increases by Num, the cross-chain node election algorithm is executed; the specific steps include:
[0052] Step 1: Randomly initialize and arrange the private chain nodes;
[0053] Step 11: Determine the key length n of the private chain, and initialize two arrays a and b of the same size; where the elements in array a are a[i]=i (i=0,1,…,m), m is the size of array a and b, and m=2 n ; Set the private chain key length n to 16, then m is 65535.
[0054] Step 12: Select a subsequence of length Num from the element with subscript h in array a and repeatedly fill it into array b until the elements in array b are filled;
[0055] Step 13: Randomly initialize parameter j, setting parameter j=0;
[0056] Step 14: Update parameter j according to the elements in array a, i.e., j=j+a[i]+h+b[i]+Num(modm);
[0057] Step 15: Exchange the element a[i] in array a with the element a[j] until all elements in array a are exchanged, and the random initialization arrangement of the private chain nodes is completed.
[0058] Step 2: Calculate the bytes of the key stream based on the randomly initialized private chain nodes;
[0059] Step 21: Update parameter i, i=i+1(modm);
[0060] Step 22: Update parameter j according to the updated i, and the updating formula is j=j+a[i](modm);
[0061] Step 23: Exchange the updated data in a[i] and a[j] in the array;
[0062] Step 24: Calculate the intermediate parameter t according to the exchanged data, and the calculation formula is t=a[i]+a[j]+h+Num(mod m);
[0063] Step 25: Calculate the bytes of the key stream key according to the intermediate parameters, that is, K = a[t];
[0064] Step 26: Repeat steps 21 to 25 until the key stream key is equal in length to the public key of each node.
[0065] Step 3: Perform XOR operation on key and the public key PK of each node, and take the node corresponding to the public key corresponding to the maximum value after XOR as the cross-chain node.
[0066] Since the cross-chain node is responsible for sending all data collection information of the private chain to the alliance chain, in order to reduce the chance of the adversary tracking and attacking the cross-chain node, the private chain network needs to frequently replace the cross-chain node. The number of transactions processed per second by the private chain is very high. When the cross-chain nodes need to be replaced frequently, using a symmetric encryption scheme to generate a one-time key stream composed of pseudo-random numbers can save a lot of performance overhead. Even a large number of one-time key streams can be prepared in advance for use in electing cross-chain nodes. The above algorithm adds pseudo-randomness to the election of cross-chain nodes and reduces the possibility of adversary attacks while maintaining high efficiency.
[0067] This embodiment provides a one-way cross-chain method for weakly connected alliance chains and private chains for supply chains. This embodiment involves blockchain cross-chain technology, encryption algorithms, and signature algorithms, where blockchain is a chain data structure that combines data blockchains in a sequential manner in chronological order, and cryptographically ensures that data cannot be tampered with or forged. Digital signatures prevent ciphertext from being replaced by data collection nodes during off-chain transmission, and encryption algorithms ensure that data will not be leaked during transmission, effectively ensuring that nodes at all levels of the supply chain achieve one-way data cross-chain under weak connections.
[0068] In this embodiment, the private chain terminal data collection node T i Generate a digital signature s for the collected data d and ij ||s ij ) The process of chaining includes: Ti And the certificate contains the public key PK Ti Assigned to the terminal data collection device, so that the terminal data collection device acts as a private chain data collection node T i , private chain data collection node T i Using the private key SK Ti The real-time collected data ij Digitally sign to get ij That is: i =Sign SkTi (d ij ), (d ij ||s ij ) is linked to the private chain, where i is the number of the terminal data collection node, j is the number of the terminal data collection node T i The data collected for the jth time.
[0069] In this embodiment, the private chain cross-chain information storage node calls the cross-chain contract, including: the private chain cross-chain information storage node writes, deploys and calls the cross-chain contract; each node performs a cross-chain operation according to the cross-chain contract, including: the private chain node designs, deploys and calls the cross-chain contract, and the content of the cross-chain contract is: read the block information from the private chain, and obtain the (en(d ij )||s ij );Build a cross-chain reply package P according to a specific block transaction structure cross , the cross-chain reply package P cross Return to the cross-chain node; the cross-chain node responds to the cross-chain reply packet P cross Sign to get the cross-chain transaction package P tx =(P cross ||S cross ), S cross For cross-chain node pair P cross The cross-chain transaction package P tx Forwarded to the gateway firewall of the cross-chain gateway. Among them, the cross-chain reply packet P cross The structure is: {random number nonce, source address from, destination address to, data value data: {encrypted private chain node collection data (en(d ij )}, each node in the private chain signs the data it collects ij ,timestamp timestep,P cross The hash value of the package}.
[0070] In this embodiment, the process of the alliance chain member node calling the smart contract and uploading the intermediate parameters includes: all the node members of the alliance chain monitor the alliance chain network, and once a new block appears in the alliance chain network, they obtain the information C recorded in the block body. ij , by C ij The C1 in and its own key SKc generate the intermediate parameter C1^SKc, and then upload C1^SKc to the alliance chain account book.
[0071] The decryption contract is called by the alliance chain node members. The alliance chain network decrypts the ciphertext according to the smart contract to obtain the data and its digital signature. After verifying the digital signature, the data is uploaded to the chain. The detailed process is as follows: The alliance chain designs, deploys and calls the decryption contract to enable all nodes to update the ledger. The new (d ij ||s ij ), the member nodes of the alliance chain network execute the decryption contract to decrypt the ciphertext to obtain the data and its digital signature. After verifying the digital signature, the process of uploading the data to the chain includes: the alliance chain node designs, deploys and calls the decryption contract. The decryption contract is as follows: Get data C from the alliance chain ledger ijWith C1^SKc, call the decryption algorithm to get (d ij ||s ij ), for signature s i If the verification is successful, the data (d ij ||s ij ) is updated on the alliance chain ledger.
[0072] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A one-way cross-chain method for alliance chains and private chains with weak connections in the supply chain, characterized in that: include: S1: Build alliance chains, private chains and cross-chain gateways; The alliance chain includes at least two alliance chain member nodes; the private chain includes a private chain data collection node, a private chain cross-chain information storage node and a data collection node; S2: Initialize the alliance chain and private chain respectively. The initialization includes the key generation centers of the alliance chain and private chain generating corresponding public and private key pairs, and deploying smart contracts, cross-chain contracts, and decryption contracts; S3: The private chain data collection node collects data, uses the key to digitally sign and encrypt the data, and uploads the signed and encrypted data to the chain; S4: Obtain the height information of each block in the private chain network, and use the election algorithm to screen each node in the private chain network according to the height information to obtain the private chain cross-chain node; The process of using the election algorithm to screen each node in the private chain network includes: the number of private chain nodes is Num, the private chain block height is h, and each time the private chain block height increases by Num, the cross-chain node election algorithm is executed; the specific steps include: Step 1: Randomly initialize and arrange the private chain nodes; Step 11: Determine the key length n of the private chain, and initialize two arrays a and b of the same size; where the elements in array a are a[i]=i (i=0,1,…,m), m is the size of array a and b, and m=2 n ; Step 12: Select a subsequence of length Num from the element with subscript h in array a and repeatedly fill it into array b until the elements in array b are filled; Step 13: Set parameter j, set parameter j=0; Step 14: Update the parameter j according to the elements in array a, the block height h, and the number of nodes Num, that is, j=j+a[i]+h+b[i]+Num(modm); Step 15: Exchange the element a[i] in array a with the element in a[j] until all elements in array a are exchanged, and the random initialization arrangement of the private chain nodes is completed; Step 2: Calculate the bytes of the key stream based on the randomly initialized private chain nodes; Step 21: Update parameter i, i=i+1(modm); Step 22: Update parameter j according to the updated i, and the updating formula is j=j+a[i](modm); Step 23: Exchange the updated data in a[i] and a[j] in the array; Step 24: Calculate the intermediate parameter t according to the exchanged data, and the calculation formula is t=a[i]+a[j]+h+Num(modm); Step 25: Calculate the bytes of the key stream key according to the intermediate parameters, that is, K = a[t]; Step 26: Repeat steps 21 to 25 until the key stream key is equal in length to the public key of each node; Step 3: Perform XOR operation on the key and the public key PK of each node, and take the node corresponding to the public key corresponding to the maximum value after XOR as the cross-chain node; S5: The private chain cross-chain node uses the cross-chain contract to process the cross-chain data, form a cross-chain transaction package, sign the cross-chain transaction package, and forward the signed cross-chain transaction package to the cross-chain gateway; S6: The gateway firewall in the cross-chain gateway verifies the signature of the cross-chain transaction package. If the verification is successful, the cross-chain reply package is extracted from the cross-chain transaction package and forwarded to the alliance chain network; if the verification fails, the cross-chain reply is rejected; S7: The alliance chain member node obtains the current block containing the cross-chain transaction from the blockchain, calculates the parameter C1^SKc of the cross-chain transaction according to the information C1 in the cross-chain reply package of the current block, and sends a transaction containing C1^SKc to the alliance chain network; C1 is the first ciphertext, and SKc is the private key of the alliance chain member node; S8: The remaining alliance chain member nodes call the decryption contract to decrypt and verify the cross-chain transaction; verify the digital signature, and if the verification is successful, the decrypted data will be uploaded to the chain, otherwise the cross-chain fails.
2. According to claim 1, a one-way cross-chain method for alliance chain and private chain with weak connection in supply chain, characterized in that: The process of digitally signing and encrypting data using a key includes: the private chain will initialize the generated private key SK Ti And contains the public key PK Ti The certificate is assigned to the terminal data collection device, and the assigned terminal data collection device is used as a private chain data collection node; the private chain data collection node uses the key to collect the data d ij Encryption, get en(d ij )={C1,C2}, where en() indicates data encryption, d ij Represents the data collected by the terminal data collection device, C1 is the first ciphertext, C2 is the second ciphertext; the private chain data collection node uses the private key SK Ti Real-time data collection ij ) to digitally sign and obtain s ij , that is, s i =Sign SKTi (en(d ij )), send the signed and encrypted data packet to the blockchain.
3. According to claim 1, a one-way cross-chain method for alliance chain and private chain with weak connection in supply chain, characterized in that: The cross-chain contract includes: reading block information from the private chain, obtaining the (en(d ij )||s ij );Build a cross-chain reply package P according to a specific block transaction structure cross , the cross-chain reply package P cross Return to the cross-chain node; the cross-chain node responds to the cross-chain reply packet P cross Sign and get the cross-chain transaction package P tx =(P cross ||S cross ), where S cross For cross-chain node pair P cross The cross-chain transaction package P tx Forwarded to the gateway firewall of the cross-chain gateway.
4. According to claim 3, a one-way cross-chain method for alliance chain and private chain with weak connection in supply chain is characterized in that: Cross-chain reply package P cross The structure is: {random number nonce, source address from, destination address to, data value data: {encrypted private chain node collection data (en(d ij )}, each node in the private chain signs the data it collects ij ,timestamp timestep,P cross The hash value of the package}.
5. According to claim 1, a one-way cross-chain method for alliance chain and private chain with weak connection in supply chain, characterized in that: The process of verifying the signature of the cross-chain transaction package by the gateway firewall in the cross-chain gateway includes: the gateway firewall in the cross-chain gateway filters the cross-chain transaction package by verifying the digital signature of the cross-chain node, and extracts the cross-chain reply package in the package from the obtained cross-chain transaction package; a one-way network gate device is set between the cross-chain gateway and the alliance chain network, and the cross-chain reply package is forwarded to the alliance chain through the one-way network gate device to realize data security one-way communication.
6. According to claim 1, a one-way cross-chain method for alliance chain and private chain with weak connection in supply chain, characterized in that: The process of the alliance chain member node calling the smart contract to encrypt the new block includes: the alliance chain member node monitors the alliance chain network in real time, and when a new block appears in the alliance chain, it obtains the information recorded in the block C ij , by C ij The C1 in and its own key SKc generate the intermediate parameter C1^SKc, and then upload C1^SKc to the alliance chain account book.
7. According to claim 1, a one-way cross-chain method for alliance chain and private chain with weak connection in supply chain, characterized in that: The decryption contract includes: obtaining data C from the consortium chain ledger ij With C1^SKc, call the decryption algorithm to get (d ij ||s ij ), for signature s i If the verification is successful, the data (d ij ||s ij ) is updated on the alliance chain ledger.
