Supply chain information data security sharing method and system based on blockchain

By collaboratively storing the information interaction data of supply chain participants on the blockchain, and using genetic algorithms and smart contracts to optimize node storage solutions, the problems of insufficient storage scalability and transaction processing speed of the blockchain are solved, and high efficiency is achieved. , secure supply chain information data sharing.

CN118611858BActive Publication Date: 2024-10-29湖北省楚天云有限公司 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411084929.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-29
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Blockchain has performance bottlenecks when storing supply chain information, especially insufficient storage scalability and transaction processing speed, making it difficult for the system to maintain efficiency and reliability in large-scale applications.

Method used

By collaboratively storing the information interaction data of supply chain participants as a blockchain ledger, an optimization model is constructed based on minimizing the overall node usage, and the genetic algorithm is used to solve the block storage solution for each node, combined with smart contracts based on Trust value is used for data sharing to achieve efficient, safe and scalable data sharing.

Benefits of technology

It improves the efficiency and scalability of the information interaction platform, reduces node resource occupancy, realizes safe, trustworthy, and traceable data sharing of supply chain information, and solves the problems of storage scalability and transaction processing speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611858B_ABST
    Figure CN118611858B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for secure sharing of supply chain information data based on blockchain, the method comprising: obtaining all data of information interaction between multiple supply chain participants, using it as a blockchain ledger, and collaboratively storing it on a blockchain with each supply chain participant as a cluster; determining an objective function based on minimizing the overall node utilization rate, and constructing an optimization model based on the objective function; solving the optimization model through a genetic algorithm to obtain a block storage scheme for each node in each cluster; constructing a smart contract based on the interactive information and trust value of each supply chain participant; each node shares data according to the smart contract and its own storage scheme. The present invention combines resource occupancy rate with node credibility for optimization modeling, blocks the multi-party interaction records on the supply chain and records them on the blockchain, and realizes a highly efficient, highly secure, and scalable method for secure sharing of supply chain information data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data security, and in particular to a method and system for securely sharing supply chain information data based on blockchain. Background Art

[0002] Blockchain is a decentralized infrastructure and distributed computing paradigm that achieves tamper-proof data records through a node consensus algorithm in a peer-to-peer (P2P) network. Its unique data structure enables all participants in the system to share an immutable single data source, thereby eliminating the inconsistency of multi-party data storage. The core function of blockchain is to enable nodes that are not fully trusted to reach a consensus without a third party, so it is regarded as a distributed database. Its immutability, decentralization and transparency make it more reliable, economical and efficient than traditional databases.

[0003] Supply chain refers to a series of related activities and participants that work together to deliver products or services from raw material procurement, production and manufacturing to the final delivery to customers, including multiple links and participants, such as suppliers, manufacturers, distributors, retailers and end users. In the traditional supply chain operation process, problems such as lack of trust, data security and operational risks have become bottlenecks that generally restrict its development. With the promotion of technologies such as the Internet of Things, big data, and cloud computing, especially the application of blockchain technology, these problems have been effectively solved. Blockchain technology solves the problem of insufficient trust between enterprises and reduces the risk of supply chain information data interaction by using distributed ledgers to store supply chain information. Applying blockchain in the supply chain, that is, using distributed ledgers to store supply chain information, has become a key direction for solving security issues, and how to more effectively use blockchain to store more supply chain information has become an important task at present.

[0004] Whether it is a public chain or a private chain, one of the key issues affecting the performance of blockchain is storage, especially storage scalability. Blockchain is a typical replicated state machine system, where each node maintains a complete copy of the data in the system. In this way, each participant can directly obtain the state of the system, thereby increasing the reliability of the system. However, the storage of data copies throughout the system poses a huge challenge to users. By the beginning of 2024, the storage usage of the largest blockchain system has grown to 546GB and is still growing. It should be noted that the transaction processing speed on this chain is only 7 transactions per second, while VISA can usually reach 2,000 transactions per second, and the peak can even reach 10,000 transactions. If the transaction processing speed reaches 2,000 tps, the growth rate of the blockchain scale will reach about 15TB per year, which makes it very difficult for most devices to become a full node. In addition, due to the inherent additional characteristics of blockchain, the storage problem is a key issue in improving the scalability of the system. Therefore, in response to the above problems, it is necessary to design a highly efficient, highly secure, and scalable supply chain information data security sharing method to block the enterprise information interaction records on the supply chain and record them on the blockchain to achieve a secure, reliable, and traceable data sharing solution. Summary of the invention

[0005] In order to improve the efficiency, security and scalability of the information interaction platform, a first aspect of the present invention provides a method for secure sharing of supply chain information data based on blockchain, including: obtaining all data for information interaction among multiple supply chain participants; using all data as blockchain ledgers, and collaboratively storing them on a blockchain with each supply chain participant as a cluster; determining an objective function based on minimizing the overall node utilization rate, and constructing an optimization model based on the objective function and preset constraints of the blockchain; solving the optimization model through a genetic algorithm to obtain a block storage solution for each node in each cluster; constructing a smart contract based on the interaction information and trust value of each supply chain participant; and each node shares data according to the smart contract and its own storage solution.

[0006] In some embodiments of the present invention, determining the objective function based on minimizing the overall node utilization rate includes: calculating the minimized overall node utilization rate based on the storage space required for each block and the storage resources of each node; calculating the trust value of each node based on the interaction information; and determining the objective function based on the minimized overall node utilization rate and the trust value of each node.

[0007] Furthermore, constructing the optimization model according to the objective function and the preset constraints of the blockchain includes: determining multiple preset constraints of the blockchain according to the required storage space and storage location of each block; and constructing the optimization model based on the objective function and the multiple preset constraints.

[0008] In some embodiments of the present invention, solving the optimization model by a genetic algorithm to obtain a block storage solution for each node in each cluster includes: randomly generating one or more initial populations, where different individuals in each population represent different storage solutions; constructing a fitness function based on the objective function, and screening the optimal individual by the fitness function; performing genetic evolution iterations based on the optimal individual until the number of iterations reaches a threshold or the fitness of the population reaches stability, thereby obtaining a block storage solution for each node in each cluster.

[0009] In some embodiments of the present invention, the construction of a smart contract based on the interaction information and trust value of each supply chain participant includes: calculating the trust value obtained by each supply chain participant by weighted average based on the interaction frequency, historical trust value and information data volume; each supply chain participant defines the interaction object and shared data based on the trust value.

[0010] Furthermore, the trust value obtained by each supply chain participant is calculated through the following steps:

[0011] D = αf + βs + γD_,

[0012] α+β+γ=1,

[0013] Where D is the current trust value calculated, f is the interaction frequency, s is the amount of information data, D_ is the historical trust value, α, β, γ are the weight values ​​of interaction frequency, information data volume and historical trust value respectively.

[0014] The second aspect of the present invention provides a supply chain information data security sharing system based on blockchain, including: an acquisition module for acquiring all data for information interaction among multiple supply chain participants; all data are used as blockchain ledgers, and are collaboratively stored on a blockchain with each supply chain participant as a cluster; a construction module for determining an objective function based on minimizing the overall node utilization rate, and constructing an optimization model based on the objective function and preset constraints of the blockchain; a solution module for solving the optimization model through a genetic algorithm to obtain a block storage solution for each node in each cluster; a sharing module for constructing a smart contract based on the interaction information and trust value of each supply chain participant; each node shares data according to the smart contract and its own storage solution.

[0015] Furthermore, the construction module includes: a first calculation unit, used to calculate the minimum overall node utilization rate based on the storage space required for each block and the storage resources of each node; a second calculation unit, used to calculate the trust value of each node based on the interaction information; and a determination unit, used to determine the objective function based on the minimum overall node utilization rate and the trust value of each node.

[0016] The third aspect of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the blockchain-based supply chain information data security sharing method provided in the first aspect of the present invention.

[0017] A fourth aspect of the present invention provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the blockchain-based supply chain information data security sharing method provided in the first aspect of the present invention is implemented.

[0018] The beneficial effects of the present invention are:

[0019] The present invention relates to a method and system for secure sharing of supply chain information data based on blockchain, the method comprising: obtaining all data of information interaction between multiple supply chain participants, using the data as a blockchain ledger, and collaboratively storing the data on a blockchain with each supply chain participant as a cluster; determining an objective function based on minimizing the overall node utilization rate, and constructing an optimization model based on the objective function; solving the optimization model through a genetic algorithm to obtain a block storage solution for each node in each cluster; constructing a smart contract based on the interactive information and trust value of each supply chain participant; and each node shares data based on the smart contract and its own storage solution.

[0020] It can be seen that the present invention first regards the supply chain participants as a cluster to collaboratively store all data of information interaction; all data are used as a classified ledger through blockchain, and are packaged into blocks for distributed storage on multiple nodes or clusters; then a multi-objective optimization model is constructed by combining resource occupancy and node credibility, and the storage solution for each cluster or node is obtained by solving it through a genetic algorithm. Finally, data sharing is achieved through a smart contract based on trust calculation, thereby achieving high efficiency, high security and scalability in sharing supply chain information data. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A basic flow chart of a blockchain-based supply chain information data security sharing method in some embodiments of the present invention;

[0022] Figure 2A schematic diagram of a specific process of a method for securely sharing supply chain information data based on blockchain in some embodiments of the present invention;

[0023] Figure 3 It is a schematic diagram of the structure of a supply chain information data security sharing device based on blockchain in some embodiments of the present invention;

[0024] Figure 4 It is a schematic diagram of the structure of an electronic device in some embodiments of the present invention. DETAILED DESCRIPTION

[0025] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0026] refer to Figure 1 and Figure 2 In the first aspect of the present invention, a method for secure sharing of supply chain information data based on blockchain is provided, comprising: S100. Acquiring all data for information interaction between multiple supply chain participants; Using all data as blockchain ledgers, and collaboratively storing them on a blockchain with each supply chain participant as a cluster; S200. Determining an objective function based on minimizing the overall node utilization rate, and constructing an optimization model based on the objective function and preset constraints of the blockchain; S300. Solving the optimization model through a genetic algorithm to obtain a block storage solution for each node in each cluster; S400. Constructing a smart contract based on the interactive information and trust value of each supply chain participant; Each node shares data based on the smart contract and its own storage solution.

[0027] In step S100 of some embodiments of the present invention, all data for information exchange between multiple supply chain participants are obtained; all data are used as blockchain ledgers, and are collaboratively stored on a blockchain with each supply chain participant as a cluster. Specifically, all data for information exchange between supply chain participants include orders, transactions, logistics information, quality inspection reports, etc. in the supply chain. Therefore, the participants in the supply chain can be used as nodes participating in the storage of the blockchain ledger. The blockchain ledger is a form of division in the blockchain ledger, and does not represent a limitation based on the ledger, such as a transaction ledger, a logistics information ledger, an order ledger, etc. constructed based on the above different data types. Supply chain participants include transaction parties, platform providers, risk managers, and liquidity providers according to their functions, and the entities involved include banks, logistics, commerce, insurance, agents, consulting agencies and other related entities.

[0028] It should be noted that the nodes and clusters in this application should not be understood as specific limitations on the nodes and clusters in the technical solution in the blockchain or the storage method of the blockchain by the supply chain participants, because those skilled in the art can divide a cluster into multiple nodes or multiple clusters through distributed computing, or merge multiple nodes into one cluster or multiple clusters through hardware virtualization technology. The storage form, computing method and communication mechanism of each node in the blockchain are determined by the consensus protocol.

[0029] It can be understood that in the supply chain scenario, multiple nodes of the participants are collaboratively stored in at least one blockchain ledger, and the shared data is defined through smart contracts. Based on the trust model in the smart contract, the trustworthiness of the participants is judged to conduct secure data sharing. Genetic algorithms (genetic algorithms) or other intelligent algorithms based on multi-objective optimization problems are used to solve optimization problems with the goals of minimizing node resource occupancy and maximizing the trust value of the participants.

[0030] In view of this, in step S200 of some embodiments of the present invention, determining the objective function based on minimizing the overall node usage rate includes:

[0031] S201. Based on the storage space required for each block and the storage resources of each node, calculate the minimum overall node utilization:

[0032]

[0033] H represents the fitness function, that is, the optimization objective function; Representative Block The storage location of The node Storage Blocks , The node Do not store blocks ;

[0034] S202. Calculate the trust value of each node based on the interaction information; determine the objective function according to the minimization of the overall node utilization rate and the trust value of each node.

[0035] Specifically, with the goal of minimizing the sum of the node utilization and the inverse of the trust value, the optimization model of the optimization problem is established by comprehensively considering constraints such as node resources and block storage quantity.

[0036] Further, based on steps S201 and S202, in step S203, constructing an optimization model according to the objective function and the preset constraints of the blockchain includes:

[0037] S2031. Determine multiple preset constraints of the blockchain according to the required storage space and storage location of each block;

[0038] S2032. Construct an optimization model based on the objective function and multiple preset constraints.

[0039] Specifically, the optimization objective function and constraints are as follows:

[0040]

[0041] Among them, H represents the fitness function, that is, the optimization objective function; x ij represents the storage location of block i, x ij=1 Then node j stores block i, x ij=0 Then node j does not store block i; s i is the size of the storage space required for block i; m is the total number of blocks to be allocated; n is the total number of nodes in the node cluster; l j The storage resource of the node; D k is the trust value of participant k; Represents the total number of participants.

[0042] In step S300 of some embodiments of the present invention, solving the optimization model by a genetic algorithm to obtain a block storage solution for each node in each cluster includes:

[0043] S301. Randomly generate one or more initial populations, and different individuals in each population represent different storage schemes; specifically, initialize the population: randomly generate an initial population, and each individual represents a node storage scheme. Each individual, that is, the node storage scheme, contains information about which blocks each node stores.

[0044] S302. Constructing a fitness function based on the objective function, and selecting the best individual through the fitness function;

[0045] Specifically, fitness is evaluated as follows: for each individual, the sum of the sum of its node utilization and the inverse of the trust value is calculated as the fitness function. The optimization goal of this function is to minimize the sum of the sum of the sum of the node utilization and the inverse of the trust value.

[0046] Next is the selection operation: according to the calculated value of the fitness function, a certain number of individuals are selected as parents to generate the next generation of individuals. The roulette algorithm is used for the selection operation, and the specific operations are as follows:

[0047] Calculate the total fitness: First, calculate the sum of the fitness of all individuals in the population, that is, the total fitness value.

[0048] Calculate the selection probability: For each individual, calculate its probability of being selected. The usual method is to divide the fitness value of each individual by the total fitness to obtain the selection probability of each individual. In this way, individuals with higher fitness will have a greater probability of being selected.

[0049] Construct a selection roulette: Based on the selection probability of each individual, construct a roulette wheel, where the proportion of each individual on the roulette wheel is proportional to its selection probability. You can imagine the roulette wheel as a disk, where each sector on the disk corresponds to an individual, and the size of the sector is proportional to the individual's selection probability.

[0050] Select the parent generation: Spin a pointer on the wheel, and select the individual corresponding to the sector where the pointer stops as the parent generation. The selection operation can be performed multiple times until a sufficient number of parents are selected.

[0051] Crossover operation: Perform a crossover operation on the selected parent individuals to generate new individuals. The crossover operation can be achieved by exchanging the block information stored by the nodes to generate a new storage solution.

[0052] Mutation operation: Perform mutation operation on newly generated individuals to introduce randomness to increase the diversity of the population. Mutation operation can randomly change the block information stored in the individual.

[0053] Evaluate fitness: Evaluate the fitness of the newly generated individuals and calculate the sum of their node utilization and the inverse of their trust value.

[0054] S303. Perform genetic evolution iteration based on the optimal individual until the number of iterations reaches a threshold or the fitness of the population reaches stability, and obtain a block storage solution for each node in each cluster.

[0055] Specifically, based on one or more individuals selected by S301 and / or S302 above, a new generation of individuals is selected according to the value of the fitness function and used for the next round of crossover and mutation operations. The crossover, mutation, evaluation and selection operations are repeated until the specified number of iterations is reached or a satisfactory result is achieved. Convergence test: During the iteration process, the population can be subjected to a convergence test, and the iteration is stopped when the fitness of the population reaches a stable state. Output result: The final converged individual, that is, the optimal node storage solution, is output as the final result.

[0056] In step S400 of some embodiments of the present invention, building a smart contract based on the interaction information and trust value of each supply chain participant includes:

[0057] S401. Based on the interaction frequency, historical trust value and information data volume, the trust value obtained by each supply chain participant is calculated by weighted average;

[0058] S402. Each supply chain participant defines interaction objects and shared data based on the trust value.

[0059] Furthermore, the trust value obtained by each supply chain participant is calculated through the following steps:

[0060] D = αf + βs + γD_,

[0061] α+β+γ=1,

[0062] Where D is the current trust value calculated, f is the interaction frequency, s is the amount of information data, D_ is the historical trust value, α, β, γ are the weight values ​​of interaction frequency, information data volume and historical trust value respectively.

[0063] It should be noted that the blockchain stores all interactive data generated by the interaction of supply chain participants; all participants in the supply chain store the entire blockchain ledger as a whole. Each participant in the supply chain is a cluster, and each cluster contains multiple nodes. Each participant can define the data that can be shared with the interactive object through the smart contract on the blockchain, and decide whether to share data with the interactive object based on the trust value.

[0064] refer to Figure 2 In a specific embodiment of the present invention, it specifically includes:

[0065] S1, all nodes of supply chain participants collaborate to store blockchain ledgers;

[0066] S2, based on the node resource requirements, takes minimizing the overall node utilization as the optimization goal to establish the optimization objective function and takes the blockchain storage resources as the constraint;

[0067] S3, using a genetic algorithm to solve the optimization problem described in S2, iterating in the search space to obtain an approximate optimal solution under the constraints of the problem.

[0068] S4, each supply chain participant acts as a cluster. The participant can obtain the trust value calculated by the trust model of other participants through smart contracts, and select those that meet the conditions for data sharing.

[0069] Example 2

[0070] refer to Figure 3In a second aspect of the present invention, a supply chain information data security sharing system 1 based on blockchain is provided, comprising: an acquisition module 11, for acquiring all data for information interaction between multiple supply chain participants; all data are used as blockchain ledgers, and are collaboratively stored on a blockchain with each supply chain participant as a cluster; a construction module 12, for determining an objective function based on minimizing the overall node utilization rate, and constructing an optimization model based on the objective function and preset constraints of the blockchain; a solution module 13, for solving the optimization model through a genetic algorithm to obtain a block storage solution for each node in each cluster; a sharing module 14, for constructing a smart contract based on the interactive information and trust value of each supply chain participant; each node shares data according to the smart contract and its own storage solution.

[0071] Furthermore, the construction module 12 includes: a first calculation unit, used to calculate the minimum overall node utilization rate based on the storage space required for each block and the storage resources of each node; a second calculation unit, used to calculate the trust value of each node based on the interaction information; and a determination unit, used to determine the objective function based on the minimum overall node utilization rate and the trust value of each node.

[0072] Example 3

[0073] refer to Figure 4 According to the third aspect of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the blockchain-based supply chain information data security sharing method according to the first aspect of the present invention.

[0074] The electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0075] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0076] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method of the embodiment of the present disclosure are executed. It should be noted that the computer-readable medium described in the embodiment of the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus, or a device. In an embodiment of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus, or a device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0077] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more computer programs. When the one or more programs are executed by the electronic device, the electronic device:

[0078] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, Python, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0079] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for secure sharing of supply chain information data based on blockchain, characterized in that: include: Obtain all data on information exchange between multiple supply chain participants; All data is stored collaboratively as a blockchain ledger on a blockchain with each supply chain participant as a cluster; The objective function is determined based on minimizing the overall node utilization rate, and an optimization model is constructed according to the objective function and the preset constraints of the blockchain; the objective function and the constraints are expressed as: in, H represents the optimization objective function; x ij For Block i The storage location of x ij=1 The node j Storage Blocks i , x ij=0 The node j Do not store blocks ; s i For Block The amount of storage space required; m is the total number of blocks to be allocated; n is the total number of nodes in the node cluster; l j Storage resources for nodes; D k is the trust value of participant k; is the total number of participants; Solving the optimization model by genetic algorithm to obtain a block storage solution for each node in each cluster; Smart contracts are built based on the interactive information and trust value of each supply chain participant; each node shares data based on the smart contract and its own storage solution.

2. The blockchain-based supply chain information data security sharing method according to claim 1 is characterized in that: Determining the objective function based on minimizing the overall node utilization rate includes: Based on the storage space required for each block and the storage resources of each node, calculate the minimum overall node utilization; Calculate the trust value of each node based on the interaction information; The objective function is determined according to the minimization of the overall node utilization rate and the trust value of each node.

3. The blockchain-based supply chain information data security sharing method according to claim 2 is characterized in that: The constructing of the optimization model according to the objective function and the preset constraints of the blockchain includes: Determining a plurality of preset constraints of the blockchain based on the required storage space and storage location of each block; Based on the objective function and a plurality of preset constraints, an optimization model is constructed.

4. The blockchain-based supply chain information data security sharing method according to claim 1 is characterized in that: The optimization model is solved by a genetic algorithm to obtain a block storage solution for each node in each cluster, including: One or more initial populations are randomly generated, and different individuals in each population represent different storage schemes; Constructing a fitness function based on the objective function, and screening the best individual through the fitness function; Genetic evolution is iterated based on the optimal individual until the number of iterations reaches a threshold or the fitness of the population reaches stability, and the block storage solution for each node in each cluster is obtained.

5. The method for secure sharing of supply chain information data based on blockchain according to claim 1 is characterized in that: The smart contract is constructed based on the interactive information and trust value of each supply chain participant, including: Based on the interaction frequency, historical trust value and information data volume, the trust value obtained by each supply chain participant is calculated by weighted average; Each supply chain participant defines interaction objects and shared data based on the trust value.

6. The method for secure sharing of supply chain information data based on blockchain according to claim 5 is characterized in that: The trust value obtained by each supply chain participant is calculated through the following steps: D = αf + βs + γD_, α+β+γ=1, in D To calculate the current trust value, f is the interaction frequency, s is the amount of information data, D_ is the historical trust value, α、β、 γ are the weights of interaction frequency, information data volume and historical trust value respectively.

7. A supply chain information data security sharing method system based on blockchain, characterized in that: include: The acquisition module is used to obtain all data of information exchange between multiple supply chain participants; All data is stored collaboratively as a blockchain ledger on a blockchain with each supply chain participant as a cluster; A construction module is used to determine an objective function based on minimizing the overall node utilization rate, and to construct an optimization model according to the objective function and preset constraints of the blockchain; the objective function and constraints are expressed as: in, H represents the optimization objective function; x ij For Block i The storage location of x ij=1 The node j Storage Blocks i , x ij=0 The node j Do not store blocks ; s i For Block The amount of storage space required; m is the total number of blocks to be allocated; n is the total number of nodes in the node cluster; l j Storage resources for nodes; D k is the trust value of participant k; is the total number of participants; A solution module, used for solving the optimization model by using a genetic algorithm to obtain a block storage solution for each node in each cluster; The sharing module is used to build smart contracts based on the interaction information and trust value of each supply chain participant; each node shares data according to the smart contract and its own storage solution.

8. The blockchain-based supply chain information data security sharing method system according to claim 7 is characterized in that: The building blocks include: A first calculation unit, configured to calculate a minimum overall node utilization rate based on a storage space required for each block and a storage resource of each node; A second calculation unit, used to calculate the trust value of each node based on the interaction information; The determination unit is used to determine the objective function according to the minimization of the overall node utilization rate and the trust value of each node.

9. An electronic device, comprising: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the blockchain-based supply chain information data security sharing method as described in any one of claims 1 to 6.

10. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the blockchain-based supply chain information data security sharing method is implemented.

Citation Information

Patent Citations

  • Data storage method, system and device based on block chain

    CN111866085A

  • Catering supply chain safety management system and method based on block chain

    CN117993724A