Full-period automatic supply chain method and system based on block chain smart contract
The automation of transactions and information management in the supply chain system is realized through blockchain smart contracts, which solves the problems of information sharing and coordination, reduces management costs and risks, and improves the efficiency and transparency of the supply chain.
Patent Information
- Application Number
- CN202410691351.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-24
AI Technical Summary
The lack of an open information sharing platform in the traditional supply chain system leads to information asymmetry and difficulty in coordination, which affects efficiency. It is also difficult to track product information, and it is difficult to ensure the security of data sharing and storage, resulting in high management costs and risks.
Adopting a full-cycle automated supply chain method based on blockchain smart contracts, we design the supply chain system architecture, deploy the transaction alliance chain, set node permissions and transaction processes, establish an information management platform, optimize data security and privacy protection, and build a currency system. , to achieve automation and reliability of transactions and information management.
It improves the efficiency and transparency of the supply chain, reduces manual intervention and error rates, ensures product quality and safety, reduces management costs and risks, and manages currency circulation and node permissions through smart contracts to prevent malicious operations and information leakage.
Smart Images

Figure CN118691176A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of supply chain management technology, and in particular to a full-cycle automated supply chain method and system based on blockchain smart contracts. Background Art
[0002] The supply chain is a dynamic, core enterprise-centered functional network chain, which covers logistics, capital flow and information flow from raw material suppliers, manufacturers, distributors to end consumers and other supply chain members. This complex network includes multiple links such as product production, processing, transportation, storage, etc., thus forming a complete chain from production to sales. Enterprises play the dual role of producers and consumers at different stages of the supply chain, and promote the operation of the supply chain network by participating in different links. The core concept of the supply chain is to integrate the information flow, capital flow and logistics between enterprises, emphasize information sharing, risk sharing, communication and cooperation, so as to strengthen the collaboration between various links and maximize the overall benefits. With the development of the global market and the rise of the digital economy, the importance of the supply chain has become increasingly prominent and has become a key factor in corporate competition. The rapid changes in the market environment have made the interactions between supply chain enterprises more frequent and complex. The traditional centralized supply chain model has gradually become unable to meet the growing needs of enterprises. Therefore, the informatization of the entire supply chain has become an inevitable trend. Through the application of digitalization and information technology, enterprises can respond to market changes more flexibly, improve the efficiency and transparency of the supply chain, and achieve better business performance and competitive advantages.
[0003] Blockchain technology is a revolutionary innovation, a decentralized, tamper-proof distributed ledger system based on multiple technologies. Its unique features include a reliable database, a secure and trusted transaction environment, a collectively maintained consensus mechanism, a transparent transaction operation method, and an unalterable data record. First applied to Bitcoin, the distributed storage and tamper-proof capabilities of blockchain technology effectively protect data integrity and ensure that the credibility and sharing of data are maximized. With the continuous development of blockchain technology, it has shown broad application prospects in data interaction and storage. As a typical representative, the Ethereum platform not only integrates Turing-complete programming languages and smart contracts into the blockchain, but also provides users with the convenience of developing and deploying decentralized applications. Through smart contracts, users can achieve more complex and intelligent functions, not only limited to the financial field, but also extended to non-financial fields such as medical care, logistics, and supply chain management. The widespread application of smart contracts has greatly expanded the application scope of blockchain technology, bringing more innovation opportunities and development space to various industries.
[0004] In order to use blockchain technology to achieve automation, efficiency and intelligence of the entire supply chain, there are still some problems that need to be solved in the existing supply chain system:
[0005] Enterprises usually establish dedicated data platforms to manage their relevant information, but in traditional supply chains, there is a lack of open sharing platforms between enterprises, resulting in information asymmetry;
[0006] Due to the poor flow of supply chain information, enterprises are unable to grasp the relevant situation in the supply chain in a timely manner, and it is difficult to form a good cooperation mechanism. At the same time, since there are many enterprises designing the supply chain and the core enterprise has less control, there is a lack of coordination between supply chain enterprises, and it is impossible to form a good complementary mechanism, which affects efficiency;
[0007] Product information tracking is challenging and requires full life cycle tracking. Data sharing in traditional supply chains is difficult, and the security of information transmission and storage cannot be guaranteed, making it difficult and costly to establish a traceability system. Summary of the invention
[0008] In view of the above problems existing in the existing supply chain system, the present invention is proposed.
[0009] Therefore, the problem to be solved by the present invention is how to provide a method and system for further reducing the management cost and risk of the supply chain.
[0010] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0011] On the first aspect, an embodiment of the present invention provides a full-cycle automated supply chain method based on blockchain smart contracts, which includes designing a supply chain system architecture; deploying a transaction alliance chain, setting node permissions and transaction processes; establishing an information management platform, establishing an information upload and acquisition mechanism, and performing data security optimization and privacy protection; and implementing supply chain system construction by considering the monetary system, node permissions and interaction rules.
[0012] As a preferred solution of the full-cycle automated supply chain method based on blockchain smart contracts described in the present invention, wherein: the supply chain system includes a transaction chain platform and an information chain platform; the transaction chain platform adopts a consortium chain model to establish a trust network, and realizes the automation and transparency of transactions through smart contracts; the smart contract of the information chain platform needs to ensure the consistency and reliability of uploaded information.
[0013] As a preferred solution of the full-cycle automated supply chain method based on blockchain smart contracts described in the present invention, the deployment of the transaction alliance chain, setting of node permissions and transaction processes includes the following steps: determining the permissions and roles of the nodes; setting up node supervision and audit mechanisms.
[0014] As a preferred solution of the full-cycle automated supply chain method based on blockchain smart contracts described in the present invention, the node supervision and audit mechanism includes: the core enterprise as the main node has the highest authority, which is expressed as:
[0015]
[0016] Suppliers, distributors and other members obtain permissions by applying for them, which are expressed as:
[0017]
[0018] Consumers have lower authority as free nodes, which can be expressed as:
[0019]
[0020] The mathematical formula of the node role R(N) is expressed as:
[0021] R (Core business) = main node
[0022] R(Supplier)=node 1 ,R(Distributor)=node 2 , R(Consumer)=node 3
[0023] Among them, R (Supplier) represents the role of the supplier, node 1 is the node level of the supplier in the blockchain network; R (Distributor) represents the role of the distributor; node 2 Indicates the node level of the distributor; R (Consumer) indicates the role of the consumer; node 3 It is the node level of the consumer in the blockchain system; N represents the node, P(N) represents the authority of node N; R(N) represents the role of node N.
[0024] As a preferred solution of the full-cycle automated supply chain method based on blockchain smart contracts described in the present invention, the data security optimization and privacy protection include: defining the attributes of each role in the supply chain, and the central authority CA issues a private key SK to each user according to his role and attributes. The issuance of the private key SK is expressed as:
[0025] SK user =GenSK CA (attributes user )
[0026] Among them, attributes useris the user's attribute set; GenSK is a function used to generate the user's private key, which is executed by the central authority CA; the data owner uses the public key PK to encrypt the data according to the data's access control policy, and the encryption process is expressed as:
[0027] C=Enc PK,policy (m)
[0028] Among them, C is the encrypted data, PK is the public key, policy is the encryption policy, and m is the original data; Enc is the function used to encrypt the data; when the user needs to access the data, the private key is used to try to decrypt the data. The decryption process is expressed as:
[0029] m=Dec sk (C)
[0030] Where Dec is a function used to decrypt data, and SK is the user's private key; if the user's attributes match the encryption policy policy, the original data m is decrypted.
[0031] As a preferred solution of the full-cycle automated supply chain method based on blockchain smart contracts described in the present invention, the implementation of supply chain system construction includes the following steps: establishing a currency system; setting node permissions; following the supply chain system interaction rules; deploying smart contracts to achieve automation and reliability of transaction and information management.
[0032] As a preferred solution of the full-cycle automated supply chain method based on blockchain smart contracts described in the present invention, the establishment of a currency system includes: using the following mathematical formula to describe the total supply M of digital currency and its issuance mechanism:
[0033]
[0034] Among them, C i is the total supply of the i-th digital currency; the setting of the issuance mechanism parameters is expressed by the following formula:
[0035]
[0036] Among them, R is the inflation rate and ΔM is the number of newly issued digital currencies per unit time.
[0037] On the second aspect, in order to further solve the problems existing in the existing supply chain system, the embodiment of the present invention provides a full-cycle automated supply chain system based on blockchain smart contracts, which includes: a supply chain management module, which is used to design and manage the processes and information of the entire supply chain; an alliance chain node permission module, which is used to set node permissions to ensure that only authorized nodes can participate in transactions; an information management and security module, which is used to manage the uploading, acquisition, security optimization and privacy protection of information; a currency system and permission management module, which is used to manage the circulation of currency, node permissions and the implementation of interaction rules.
[0038] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program is executed by the processor, it implements any step of the full-cycle automated supply chain method based on blockchain smart contracts as described in the first aspect of the present invention.
[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the full-cycle automated supply chain method based on blockchain smart contracts as described in the first aspect of the present invention.
[0040] The beneficial effect of the present invention is that, through the application of blockchain technology, the present invention realizes the construction of a transaction chain platform and an information chain platform, making each link of the supply chain system more efficient and transparent. The transaction chain platform realizes the automation and confirmation of transactions through smart contracts, reduces the time and error rate of manual intervention, and thus improves the speed and accuracy of transactions. The information chain platform realizes the sharing and tracing of supply chain information, so that consumers and enterprises can more intuitively understand the source and flow of products, and ensure product quality and safety. Therefore, the present invention can improve the efficiency and transparency of the supply chain. Through the application of smart contracts, the system realizes the establishment of a monetary system and the management of node permissions, making the transaction process safer and more reliable. Enterprises can use digital currency for transactions, reducing the intermediary links required by the traditional financial system and reducing transaction costs. At the same time, the setting and verification mechanism of node permissions can effectively prevent malicious operations and information leakage, and reduce the risk of the supply chain. The interactive rules of the system and the design of smart contracts also improve the stability and reliability of the system, and reduce potential errors and disputes; therefore, the present invention can further reduce the management cost and risk of the supply chain. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0042] Figure 1 This is a structural diagram of the full-cycle automated supply chain system based on blockchain smart contracts in Example 1.
[0043] Figure 2 This is a comparison diagram of the effects of the present invention and the prior art in Example 2. DETAILED DESCRIPTION
[0044] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0045] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0046] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0047] Example 1
[0048] Reference Figure 1 , which is the first embodiment of the present invention, and provides a full-cycle automated supply chain method based on blockchain smart contracts, comprising the following steps:
[0049] S1: Design supply chain system architecture.
[0050] When implementing the supply chain system architecture design, we first need to have a deep understanding of the operation mechanism of the supply chain system and the needs of each link. By analyzing the actual situation of the supply chain, we can design the architecture of the transaction chain platform and the information chain platform according to the characteristics of blockchain technology.
[0051] In terms of the transaction chain platform, the alliance chain model can be used to establish a trust network, and smart contracts can be used to automate and make transactions transparent. At the same time, an authority mechanism can be set up to ensure the security and legality of transactions.
[0052] The design of smart contracts on the transaction chain platform needs to consider the specific process and conditions of the transaction, as well as the impact of the contract execution results on all parties.
[0053] The smart contract execution process can be expressed by a mathematical formula as T→smart contract execution, where T represents the transaction condition.
[0054] In terms of the information chain platform, the smart contract needs to ensure the consistency and reliability of the uploaded information. The process of information uploading can be expressed as (I,P 0 )→Information upload smart contract execution, where I represents product information, P 0 Indicates the uploader.
[0055] In the design of the permission mechanism, it can be set according to different roles and needs. i , P i )→Permission setting method.
[0056] Among them, the supply chain system is divided into two parts: the transaction chain platform and the information chain platform, ensuring the smooth operation of the transaction chain platform and the information chain platform, thereby ensuring the efficiency of the supply chain system.
[0057] S2: Deploy the transaction alliance chain, set node permissions and transaction processes.
[0058] Specifically, deploy the transaction alliance chain, set node permissions and transaction processes, and ensure the security and reliability of transactions.
[0059] S2.1: When implementing a blockchain-based transaction consortium chain, it is necessary to first determine the permissions and roles of the nodes.
[0060] As the main node, the core enterprise has the highest authority and is responsible for managing and controlling the entire supply chain system.
[0061] Members such as suppliers and distributors apply for permissions to participate in trading activities on the transaction chain platform.
[0062] As free nodes, consumers can query product information and participate in transactions, but their authority is relatively low. When establishing a consortium chain, it is necessary to choose a suitable consensus mechanism and node management method.
[0063] Consensus algorithms such as Proof of Stake or Delegated Proof of Stake can be used to ensure the reliability and security of transactions.
[0064] In the present invention, the concept of layered verification is introduced by using the Hierarchical Verification Consensus (HVC) algorithm, which divides the network nodes into different levels, and each level is responsible for transaction verification at different stages, thereby reducing the workload of each node and speeding up the transaction confirmation speed.
[0065] Based on the node's hardware performance, network bandwidth and historical performance, the nodes are divided into three levels: high-performance nodes (Master Nodes), medium-performance nodes (Validator Nodes) and general performance nodes (Observer Nodes).
[0066] The transaction processing process is mainly divided into three steps:
[0067] Initial verification: All new transactions are first verified by Observer Nodes for format and signature.
[0068] Deep Verification: Transactions that pass the initial verification will be submitted to Validator Nodes, which perform more in-depth verification, such as double-spending checks.
[0069] Final confirmation: Transactions verified by Validator Nodes are submitted to Master Nodes, which are responsible for packaging transactions into blocks and making final consensus decisions.
[0070] In addition, the present invention uses an improved Byzantine Fault Tolerance (BFT) algorithm to design a consensus mechanism. As long as more than 2 / 3 of the Master Nodes reach a consensus, the transaction is considered to be finally confirmed.
[0071] Master Nodes use cryptographic signatures to prove their approval of the block.
[0072] S2.2: Set up node supervision and auditing mechanisms to prevent intrusion and attacks from malicious nodes.
[0073] First, we use the symbol N to represent a node, P(N) to represent the authority of node N, and R(N) to represent the role of node N. P(N) and R(N) can be different values or states, representing the authority and role level of the node in the system.
[0074] The core business has the highest authority P (Core business) as the master node, which can be expressed as:
[0075]
[0076] Suppliers and distributors obtain permissions by applying for them, which can be expressed as:
[0077]
[0078] As a free node, consumers have relatively low authority, which can be expressed as:
[0079]
[0080] The role of a node R(N) can be expressed by a mathematical formula:
[0081] R (Core business) = main node
[0082] R(Supplier)=node 1 ,R(Distributor)=node 2 , R(Consumer)=node 3 .
[0083] Among them, R (Supplier) represents the role of the supplier. In the supply chain, the supplier is responsible for providing raw materials or primary products; node 1 Refers to the node level of the supplier in the blockchain network; R (Distributor): represents the role of the distributor, who plays an intermediary role in the supply chain to receive goods from suppliers and further transport the products to consumers or retailers; node 2 Indicates that distributors have a higher node level than suppliers, which may mean that they have more responsibility or power in data verification or transaction processing; R (Consumer) represents the role of consumers, who are the end users of the supply chain and purchase and use products; node 3 Indicates that the consumer has the highest node level in this blockchain system. This level may mean that the consumer has more important influence or voting rights in certain types of blockchain operations or decisions.
[0084] When choosing a consensus mechanism and node management method, you can use consensus algorithms such as proof of stake or delegated proof of stake, and set up node supervision and audit mechanisms to ensure the security and reliability of the system.
[0085] S3: Establish an information management platform, establish information uploading and acquisition mechanisms, and perform data security optimization and privacy protection.
[0086] Furthermore, deploy an information alliance chain and establish an information upload and acquisition mechanism to ensure the transparency and traceability of supply chain information.
[0087] S3.1: When implementing a blockchain-based information alliance chain, it is necessary to establish a unified information management platform to ensure the integrity and consistency of information.
[0088] Each supply chain member obtains upload and query permissions by applying for them. Uploading product information and querying supply chain information can be expressed as:
[0089]
[0090] In the process of establishing the information chain platform, it is necessary to consider the efficiency and security of data storage and access. Distributed storage and encryption algorithms can be used to protect the security and privacy of data, which can be expressed as: data storage and access efficiency = U (distributed storage, encryption algorithm).
[0091] At the same time, smart contracts are set up to manage the data upload and query process to ensure the authenticity and credibility of the information. The management process of smart contracts can be expressed as: smart contract = W (data upload, data query), where U and W are distributed hash tables and data verification contracts, respectively, which are used to describe the efficiency, security, and smart contract management process of data storage and access.
[0092] These functions or algorithms can be implemented in appropriate ways according to specific system requirements and designs.
[0093] S3.2: Encrypt data and privacy in the supply chain information chain platform.
[0094] In order to optimize data security and privacy protection in the supply chain information chain platform, an algorithm design combining distributed storage and advanced encryption technology is adopted, named Distributed Permission-Encrypted Storage (DPES), which is mainly divided into the following steps:
[0095] Define the attributes of each role in the supply chain, such as Supplier, Distributor, Consumer, etc. The Central Authority (CA) issues a private key (SK) to each user based on their role and attributes. The issuance of the private key can be expressed by a mathematical formula:
[0096] SK user =GenSK CA (attributes user )
[0097] Among them, attributes user is a set of user attributes; GenSK is a function used to generate a user's private key, which is executed by the central authority CA.
[0098] The data owner uses the public key (PK) to encrypt the data according to the data access control policy. For example, if only distributors and consumers are allowed to access certain data, the encryption policy can be defined as: "Distributor OR Consumer"; the encryption process can be expressed as:
[0099] C=Enc PK,policy (m)
[0100] Among them, C is the encrypted data, PK is the public key, policy is the encryption policy, and m is the original data; Enc is the function used to encrypt data, ensuring that only users who meet specific attributes or policies can decrypt the data; Dec is the function used to decrypt data, and users use their private keys to decrypt the encrypted data.
[0101] Furthermore, the Enc encryption function is specifically expressed as follows:
[0102]
[0103] Where m is the original data, e is a bilinear pairing, g represents the encryption generator, x represents the attribute in the access policy y, α is a random value in the master key, used to shield the plaintext m, s is a random value selected during encryption, y is the encryption policy (access policy), which consists of a set of attributes, and q is the value of a polynomial associated with the attribute x; C x is the part of the ciphertext corresponding to attribute x.
[0104] When users need to access data, they use their own private key to try to decrypt the data. The decryption process can be expressed as:
[0105] m=Dec sk (C)
[0106] Among them, Dec is the function used to decrypt data, SK is the user's private key, including the user's attributes; if the user's attributes match the encryption policy policy, this operation will successfully decrypt the original data m.
[0107] The specific expression of Dec function is as follows:
[0108]
[0109] Among them, C 0 =m·e(g, g) αs , which is part of the ciphertext, including the masked plaintext m and a random mask; operate on each attribute in the intersection of the user attribute set S and the access policy γ; D y is the part of the user's private key that corresponds to attribute y; is from the ciphertext C 1 The calculated value; Calculate the bilinear pairing of the user's private key and the ciphertext as the decryption credential; e(D, C 1 ) represents the result of decrypting the ciphertext with the private key; D is the key part of the master key, which can reconstruct the information in the ciphertext; H is the source group function of a Hash bilinear pairing, which is mainly used to map attribute values into algebraic structures.
[0110] S4: Implement supply chain system construction by considering the monetary system, node permissions and interaction rules.
[0111] When implementing the construction of a supply chain system, it is necessary to fully consider the design of the monetary system, node permissions, and supply chain system interaction rules; the establishment of a monetary system requires determining the scale and mechanism of digital currency issuance based on actual needs to ensure smooth and stable transactions; the setting of node permissions requires reasonable allocation of permissions based on the roles and responsibilities of each member to prevent abuse and erroneous operations; the formulation of supply chain system interaction rules needs to consider various transaction and information exchange scenarios to ensure the stability and security of the system.
[0112] S4.1: Establish a monetary system to ensure smooth supply chain transactions.
[0113] The design of the monetary system usually involves the scale and mechanism of digital currency issuance. The following mathematical formula can be used to describe the total supply M of digital currency and its issuance mechanism:
[0114]
[0115] Among them, C i is the total supply of the i-th digital currency. The issuance mechanism involves the setting of parameters such as inflation rate and rewards, which can be expressed by the following formula:
[0116]
[0117] Among them, R is the inflation rate and ΔM is the number of newly issued digital currencies per unit time.
[0118] S4.2: Set node permissions to prevent abuse and incorrect operations.
[0119] Specifically, node permission settings involve the allocation of roles and responsibilities to each member. The following formula can be used to describe the setting of node permissions:
[0120] P i =f(role i , permissions i )
[0121] Among them, P i is the permission of node i, and f is a permission allocation function that determines the corresponding permission according to the role and responsibility of the node.
[0122] Specific:
[0123]
[0124] Among them, permissions i(r) represents the set of permissions associated with role r. This formula means that the node permission P is the union of all roles and their corresponding permissions.
[0125] S4.3: Follow the supply chain system interaction rules to ensure stable operation of the system.
[0126] Specifically, when formulating the interaction rules of the supply chain system, it is necessary to consider various transaction and information exchange scenarios. The following formula can be used to describe the formulation of the interaction rules of the supply chain system:
[0127] Let S be the set of all possible scenarios i. For each scenario i∈S, define a set of rules:
[0128]
[0129] Among them, R i is the system interaction rule under scenario i, and g is a rule-making function, which formulates corresponding interaction rules according to different transaction scenarios.
[0130] S4.4: Deploy smart contracts to automate and ensure reliability of transactions and information management.
[0131] This embodiment also provides a full-cycle automated supply chain system based on blockchain smart contracts, including: a supply chain management module, which is used to design and manage the processes and information of the entire supply chain; an alliance chain node permission module, which is used to set node permissions to ensure that only authorized nodes can participate in transactions; an information management and security module, which is used to manage the uploading, acquisition, security optimization and privacy protection of information; a currency system and permission management module, which is used to manage the circulation of currency, node permissions and the implementation of interaction rules.
[0132] This embodiment also provides a computer device, which is suitable for the full-cycle automated supply chain method based on blockchain smart contracts, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute computer-executable instructions to implement the full-cycle automated supply chain method based on blockchain smart contracts as proposed in the above embodiment.
[0133] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0134] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for realizing a full-cycle automated supply chain based on a blockchain smart contract as proposed in the above embodiment is implemented; the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk.
[0135] In summary, the present invention realizes the construction of the transaction chain platform and the information chain platform through the application of blockchain technology, making each link of the supply chain system more efficient and transparent. The transaction chain platform realizes the automation and confirmation of transactions through smart contracts, reduces the time and error rate of manual intervention, and thus improves the speed and accuracy of transactions. The information chain platform realizes the sharing and tracing of supply chain information, so that consumers and enterprises can more intuitively understand the source and flow of products, and ensure product quality and safety. Therefore, the present invention can improve the efficiency and transparency of the supply chain. Through the application of smart contracts, the system realizes the establishment of a monetary system and the management of node permissions, making the transaction process safer and more reliable. Enterprises can use digital currency for transactions, reducing the intermediary links required by the traditional financial system and reducing transaction costs. At the same time, the setting and verification mechanism of node permissions can effectively prevent malicious operations and information leakage, and reduce the risk of the supply chain. The interactive rules of the system and the design of smart contracts also improve the stability and reliability of the system, and reduce potential errors and disputes; therefore, the present invention can further reduce the management cost and risk of the supply chain.
[0136] Example 2
[0137] Reference Figure 2 This is the second embodiment of the present invention. In order to further verify the advancement of the present invention, comparative data between the full-cycle automated supply chain method based on blockchain smart contracts and the prior art are given.
[0138] After performance test comparison, the present invention compares the system with related methods from five aspects: blockchain contribution, information traceability, search, third-party access and access control. Figure 2 As shown, methods 1 to 4 are respectively: Method 1: Blockchain security and privacy; Method 2: Smart contract architecture; Method 3: Application of blockchain and smart contracts in the insurance field; Method 4: Role-based access control model.
[0139] From the comparison of the tables, it can be seen that although other solutions can also achieve certain effects, they are not comprehensive. The present invention can show certain effects in five aspects: contribution of blockchain, information traceability, search, third-party access and access control. It can be seen that the solution of the present invention has certain advantages as a whole.
[0140] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A full-cycle automated supply chain approach based on blockchain smart contracts, characterized by: include: Design supply chain system architecture; Deploy the transaction alliance chain, set node permissions and transaction processes; Establish an information management platform, establish a mechanism for uploading and obtaining information, and optimize data security and privacy protection; Consider the monetary system, node permissions and interaction rules to implement supply chain system construction.
2. The full-cycle automated supply chain method based on blockchain smart contracts as claimed in claim 1, characterized in that: The supply chain system includes a transaction chain platform and an information chain platform; The transaction chain platform adopts the alliance chain model to establish a trust network and realizes the automation and transparency of transactions through smart contracts; The smart contract of the information chain platform needs to ensure the consistency and reliability of uploaded information.
3. The full-cycle automated supply chain method based on blockchain smart contracts as claimed in claim 2, characterized in that: The deployment of the transaction alliance chain, setting of node permissions and transaction process includes the following steps: Determine the permissions and roles of nodes; Set up node supervision and auditing mechanisms.
4. The full-cycle automated supply chain method based on blockchain smart contracts as claimed in claim 3, characterized in that: The node supervision and auditing mechanism includes: The core enterprise has the highest authority as the master node, which is expressed as: Suppliers, distributors and other members obtain permissions by applying for them, which are expressed as: Consumers have lower authority as free nodes, which can be expressed as: The mathematical formula of the node role R(N) is expressed as: R (Core business) = main node R(Supplier)=node 1 ,R(Distributor)=node 2 ,R(Consumer)=node 3 Among them, R (Supplier) represents the role of the supplier, node 1 is the node level of the supplier in the blockchain network; R (Distributor) represents the role of the distributor; node 2 Indicates the node level of the distributor; R (Consumer) indicates the role of the consumer; node 3 It is the node level of the consumer in the blockchain system; N represents the node, P(N) represents the authority of node N; R(N) represents the role of node N.
5. The full-cycle automated supply chain method based on blockchain smart contracts as claimed in claim 4, characterized in that: The data security optimization and privacy protection include: Define the attributes of each role in the supply chain. The central authority CA issues a private key SK to each user based on their role and attributes. The issuance of the private key SK is expressed as: SK user =GenSK CA (attributes user ) Among them, attributes user is a set of attributes of the user; GenSK is a function used to generate a user's private key, which is executed by the central authority CA; The data owner uses the public key PK to encrypt the data according to the data access control policy. The encryption process is expressed as: C=Enc PK,policy (m) Among them, C is the encrypted data, PK is the public key, policy is the encryption policy, m is the original data; Enc is the function used to encrypt the data; When the user needs to access the data, he uses the private key to try to decrypt the data. The decryption process is expressed as: m=Dec sk (C) Where Dec is a function used to decrypt data, and SK is the user's private key; if the user's attributes match the encryption policy policy, the original data m is decrypted.
6. The full-cycle automated supply chain method based on blockchain smart contracts as claimed in claim 5, characterized in that: The implementation of supply chain system construction includes the following steps: Establishing a monetary system; Set node permissions; Follow the supply chain system interaction rules; Deploy smart contracts to automate and ensure reliability of transactions and information management.
7. The full-cycle automated supply chain method based on blockchain smart contracts as claimed in claim 6, characterized in that: The establishment of a monetary system includes: The following mathematical formula is used to describe the total supply M of digital currency and its issuance mechanism: Among them, C i is the total supply of the i-th digital currency; The setting of the issuance mechanism parameters is expressed by the following formula: Among them, R is the inflation rate and ΔM is the number of newly issued digital currencies per unit time.
8. A full-cycle automated supply chain system based on blockchain smart contracts, based on the full-cycle automated supply chain method based on blockchain smart contracts according to any one of claims 1 to 7, characterized in that: include: Supply Chain Management module, used to design and manage the processes and information of the entire supply chain; The consortium chain node permission module is used to set node permissions to ensure that only authorized nodes participate in transactions; Information management and security module, used to manage information uploading, acquisition, security optimization and privacy protection; The currency system and authority management module is used to manage currency circulation, node authority, and the implementation of interaction rules.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the full-cycle automated supply chain method based on blockchain smart contracts described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the full-cycle automated supply chain method based on blockchain smart contracts described in any one of claims 1 to 7 are implemented.
