Commodity transaction system and method based on block chain
Build a decentralized commodity trading network through blockchain technology, use smart contracts and encryption technology to solve the problems of centralization, low efficiency and insufficient privacy protection of the existing trading system, and achieve an efficient, safe and transparent transaction process.
Patent Information
- Application Number
- CN202410816680.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-11
AI Technical Summary
The existing commodity trading system relies on centralized institutions and has problems such as high cost, low efficiency, vulnerability to attacks, and insufficient privacy protection.
Blockchain technology is used to build a decentralized commodity trading network, the transaction process is automatically executed through smart contracts, encryption technology and anonymization technology are used to protect transaction information, and sharding technology and side chain technology are combined to improve transaction efficiency and security.
It achieves efficient, safe and transparent commodity transactions, reduces transaction costs, reduces the risk of human intervention, and enhances the privacy and data consistency of transaction information.
Smart Images

Figure CN118761771A_ABST
Abstract
Description
Technical Field
[0001] The present invention discloses a system and a method, which relate to the field of blockchain technology and data management, and specifically a commodity trading system and a method based on blockchain. Background Art
[0002] The existing commodity trading system usually relies on centralized third-party institutions for transaction confirmation and settlement. This approach has problems such as high cost, low efficiency, and vulnerability to attacks. In recent years, with the development of blockchain technology, its advantages in decentralized transactions, immutable data, and transparent disclosure have gradually emerged, providing a new solution for the commodity trading system. However, the current commodity trading system based on blockchain still has some technical bottlenecks and security risks, such as low transaction efficiency and insufficient privacy protection. Summary of the invention
[0003] In view of the problems of the prior art, the present invention provides a commodity trading system and method based on blockchain, which can realize efficient, safe and transparent commodity trading.
[0004] The specific scheme proposed by the present invention is:
[0005] The present invention provides a commodity trading method based on blockchain, comprising:
[0006] Step 1: Build a commodity trading network based on blockchain. The nodes of the commodity trading network include seller nodes, buyer nodes and verification nodes. Each node stores complete transaction records. The nodes verify the validity of new blocks through consensus algorithms such as PoW, PoS or DPoS. The new blocks that pass the verification are added to the blockchain.
[0007] Step 2: Deploy smart contracts on the commodity trading network of the blockchain, define transaction rules, conditions and results based on smart contracts, and automatically trigger smart contracts when the conditions defined in the smart contracts are met, execute the transaction process, and generate transaction information.
[0008] Step 3: Use encryption technology to protect transaction information, and use anonymization technology to protect the privacy information of both parties to the transaction.
[0009] Furthermore, in the step 1 of the commodity trading method based on blockchain, the sharding technology is used to divide the commodity trading network of the blockchain into multiple sub-networks, process transactions in parallel, and introduce the sidechain technology Sidechain to transfer a large number of small transactions to the sidechain for processing, thereby reducing the congestion of the main chain and transaction costs.
[0010] Furthermore, in the step 2 of the commodity trading method based on blockchain, deploying a smart contract on the commodity trading network includes: designing a smart contract, wherein the process of designing a smart contract is as follows:
[0011] Clarify requirements and goals, choose the appropriate development language,
[0012] Write contract code to ensure that the logic is correct, safe and reliable.
[0013] Test and debug smart contracts to fix potential problems.
[0014] Select a suitable blockchain network, deploy and publish smart contracts for users to use.
[0015] Furthermore, in the aforementioned commodity trading method based on blockchain, the smart contract is automatically triggered in step 2 to execute the transaction process, including:
[0016] According to the smart contract deployed on the blockchain,
[0017] By using the application to interact with the smart contract, the user initiates a transaction request and triggers the conditions defined in the smart contract.
[0018] Automatically verify and execute transactions based on the preset logic of smart contracts without the need for third-party intervention.
[0019] Record transaction information on the blockchain to ensure consistency and immutability.
[0020] Furthermore, in step 3 of the blockchain-based commodity trading method, a secure encryption algorithm RSA or AES is used to convert the transaction information into ciphertext, ensuring that the transaction information is not easily stolen during transmission and storage, and digital summary technology is used to detect whether the transaction information has been tampered with, thereby ensuring the authenticity and integrity of the transaction information.
[0021] The present invention also provides a commodity trading system based on blockchain, including a network management module, a smart contract management module, an execution module and an encryption module.
[0022] The network management module builds a commodity trading network based on blockchain. The nodes of the commodity trading network include seller nodes, buyer nodes and verification nodes. Each node stores complete transaction records. The nodes verify the validity of new blocks through consensus algorithms such as PoW, PoS or DPoS. The new blocks that pass the verification are added to the blockchain.
[0023] The smart contract management module deploys smart contracts on the commodity trading network of the blockchain, defines transaction rules, conditions and results based on smart contracts, and automatically triggers the smart contract when the conditions defined in the smart contract are met. The execution module executes the transaction process and generates transaction information.
[0024] The encryption module uses encryption technology to protect transaction information, and anonymization technology to protect the privacy information of both parties to the transaction.
[0025] Furthermore, the network management module of the blockchain-based commodity trading system adopts Sharding technology to divide the commodity trading network of the blockchain into multiple sub-networks, process transactions in parallel, and introduces Sidechain technology to transfer a large number of small transactions to the side chain for processing, thereby reducing congestion and transaction costs of the main chain.
[0026] Furthermore, the smart contract management module of the commodity trading system based on blockchain deploys the smart contract on the commodity trading network, including: designing the smart contract, wherein the process of designing the smart contract is as follows:
[0027] Clarify requirements and goals, choose the appropriate development language,
[0028] Write contract code to ensure that the logic is correct, safe and reliable.
[0029] Test and debug smart contracts to fix potential problems.
[0030] Select a suitable blockchain network, deploy and publish smart contracts for users to use.
[0031] Furthermore, the automatic triggering of smart contracts in the commodity trading system based on blockchain, and the execution module executing the transaction process, include:
[0032] According to the smart contract deployed on the blockchain,
[0033] By using the application to interact with the smart contract, the user initiates a transaction request and triggers the conditions defined in the smart contract.
[0034] Automatically verify and execute transactions based on the preset logic of smart contracts without the need for third-party intervention.
[0035] Record transaction information on the blockchain to ensure consistency and immutability.
[0036] Furthermore, the encryption module of the blockchain-based commodity trading system uses a secure encryption algorithm RSA or AES to convert transaction information into ciphertext, ensuring that the transaction information is not easily stolen during transmission and storage, and uses digital summary technology to detect whether the transaction information has been tampered with, ensuring the authenticity and integrity of the transaction information.
[0037] The benefits of the present invention are:
[0038] 1. Decentralize transactions through blockchain technology, reduce transaction costs and improve transaction efficiency.
[0039] 2. Use smart contracts to automatically execute the transaction process, reduce human intervention, and reduce transaction risks.
[0040] 3. Encryption technology and anonymization technology protect the privacy and security of transaction information.
[0041] 4. Efficient data synchronization mechanism ensures data synchronization and consistency between nodes, improving reliability and stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0043] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0044] Example 1
[0045] The present invention provides a commodity trading method based on blockchain, comprising:
[0046] Step 1: Build a commodity trading network based on blockchain. The nodes of the commodity trading network include seller nodes, buyer nodes and verification nodes. Each node stores complete transaction records. The nodes verify the validity of new blocks through consensus algorithms such as PoW, PoS or DPoS. The new blocks that pass the verification are added to the blockchain. In the blockchain, transactions are packaged into blocks and linked to form a chain through hash functions. When a new block is created, the nodes in the network verify its validity through consensus algorithms such as PoW, PoS or DPoS. Once most nodes confirm the new block, it will be added to the chain to form an unalterable historical record. This mechanism of distributed verification and majority node confirmation ensures the consistency and unalterability of transaction records.
[0047] In step 1, sharding technology can be further adopted to divide the commodity trading network of blockchain into multiple sub-networks, process transactions in parallel, and introduce sidechain technology to transfer a large number of small transactions to the sidechain for processing, thereby reducing congestion and transaction fees on the main chain.
[0048] Step 2: Deploy smart contracts on the commodity trading network of the blockchain, define transaction rules, conditions and results based on the smart contracts, and automatically trigger the smart contracts when the conditions defined in the smart contracts are met, execute the transaction process, and generate transaction information.
[0049] Wherein, deploying the smart contract on the commodity trading network in step 2 may further include: designing the smart contract, wherein the process of designing the smart contract is as follows:
[0050] Clarify requirements and goals, choose the appropriate development language,
[0051] Write contract code to ensure that the logic is correct, safe and reliable.
[0052] Test and debug smart contracts to fix potential problems.
[0053] Select a suitable blockchain network, deploy and publish smart contracts for users to use.
[0054] In step 2, the smart contract is automatically triggered to execute the transaction process, which may further include:
[0055] According to the smart contract deployed on the blockchain,
[0056] By using the application to interact with the smart contract, the user initiates a transaction request and triggers the conditions defined in the smart contract.
[0057] Automatically verify and execute transactions based on the preset logic of smart contracts without the need for third-party intervention.
[0058] Record transaction information on the blockchain to ensure consistency and immutability.
[0059] Step 3: Use encryption technology to protect transaction information, and use anonymization technology to protect the privacy information of both parties to the transaction.
[0060] In step 3, a secure encryption algorithm such as RSA or AES can be further used to convert the transaction information into ciphertext to ensure that the transaction information is not easily stolen during transmission and storage, and digital summary technology can be used to detect whether the transaction information has been tampered with to ensure the authenticity and integrity of the transaction information.
[0061] The method of the present invention can enhance consumer trust: blockchain technology, with its decentralized and tamper-proof characteristics, ensures the authenticity and transparency of transaction information. The company adopts a blockchain-based commodity trading system, which can convey to consumers the company's emphasis on transaction integrity and transparency, thereby enhancing consumers' trust in the company.
[0062] Example 2
[0063] The present invention also provides a commodity trading system based on blockchain, including a network management module, a smart contract management module, an execution module and an encryption module.
[0064] The network management module builds a commodity trading network based on blockchain. The nodes of the commodity trading network include seller nodes, buyer nodes and verification nodes. Each node stores complete transaction records. The nodes verify the validity of new blocks through consensus algorithms such as PoW, PoS or DPoS. The new blocks that pass the verification are added to the blockchain.
[0065] The smart contract management module deploys smart contracts on the commodity trading network of the blockchain, defines transaction rules, conditions and results based on smart contracts, and automatically triggers the smart contract when the conditions defined in the smart contract are met. The execution module executes the transaction process and generates transaction information.
[0066] The encryption module uses encryption technology to protect transaction information, and anonymization technology to protect the privacy information of both parties to the transaction.
[0067] As the information interaction, execution process and other contents between the modules in the above-mentioned system are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0068] Likewise, the device of the present invention may be beneficial in that:
[0069] 1. Decentralize transactions through blockchain technology, reduce transaction costs and improve transaction efficiency.
[0070] 2. Use smart contracts to automatically execute the transaction process, reduce human intervention, and reduce transaction risks.
[0071] 3. Encryption technology and anonymization technology protect the privacy and security of transaction information.
[0072] 4. Efficient data synchronization mechanism ensures data synchronization and consistency between nodes, improving reliability and stability.
[0073] It should be noted that not all steps and modules in the above-mentioned processes and system structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0074] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A commodity trading method based on blockchain, characterized by include: Step 1: Build a commodity trading network based on blockchain. The nodes of the commodity trading network include seller nodes, buyer nodes and verification nodes. Each node stores complete transaction records. The nodes verify the validity of new blocks through consensus algorithms such as PoW, PoS or DPoS. The new blocks that pass the verification are added to the blockchain. Step 2: Deploy smart contracts on the commodity trading network of the blockchain, define transaction rules, conditions and results based on smart contracts, and automatically trigger smart contracts when the conditions defined in the smart contracts are met, execute the transaction process, and generate transaction information. Step 3: Use encryption technology to protect transaction information, and use anonymization technology to protect the privacy information of both parties to the transaction.
2. According to claim 1, a commodity trading method based on blockchain is characterized in that Sharding technology is used in step 1 to divide the commodity trading network of blockchain into multiple sub-networks, process transactions in parallel, and introduce sidechain technology Sidechain to transfer a large number of small transactions to the sidechain for processing, thereby reducing congestion and transaction costs of the main chain.
3. The commodity trading method based on blockchain according to claim 1 is characterized in that In step 2, the smart contract is deployed on the commodity trading network, including: designing the smart contract, wherein the process of designing the smart contract is as follows: Clarify requirements and goals, choose the appropriate development language, Write contract code to ensure that the logic is correct, safe and reliable. Test and debug smart contracts to fix potential problems. Select a suitable blockchain network, deploy and publish smart contracts for users to use.
4. A commodity trading method based on blockchain according to claim 1, characterized in that In step 2, the smart contract is automatically triggered to execute the transaction process, including: According to the smart contract deployed on the blockchain, By using the application to interact with the smart contract, the user initiates a transaction request and triggers the conditions defined in the smart contract. Automatically verify and execute transactions based on the preset logic of smart contracts without the need for third-party intervention. Record transaction information on the blockchain to ensure consistency and immutability.
5. A commodity trading method based on blockchain according to claim 1, characterized in that In step 3, a secure encryption algorithm such as RSA or AES is used to convert the transaction information into ciphertext to ensure that the transaction information is not easily stolen during transmission and storage. Digital summary technology is also used to detect whether the transaction information has been tampered with to ensure the authenticity and integrity of the transaction information.
6. A commodity trading system based on blockchain, characterized by Including network management module, smart contract management module, execution module and encryption module, The network management module builds a commodity trading network based on blockchain. The nodes of the commodity trading network include seller nodes, buyer nodes and verification nodes. Each node stores complete transaction records. The nodes verify the validity of new blocks through consensus algorithms such as PoW, PoS or DPoS. The new blocks that pass the verification are added to the blockchain. The smart contract management module deploys smart contracts on the commodity trading network of the blockchain, defines transaction rules, conditions and results based on smart contracts, and automatically triggers the smart contract when the conditions defined in the smart contract are met. The execution module executes the transaction process and generates transaction information. The encryption module uses encryption technology to protect transaction information, and anonymization technology to protect the privacy information of both parties to the transaction.
7. A commodity trading system based on blockchain according to claim 6, characterized in that the network The management module adopts Sharding technology to divide the commodity trading network of the blockchain into multiple sub-networks, process transactions in parallel, and introduces Sidechain technology to transfer a large number of small transactions to the side chain for processing, reducing congestion and transaction fees on the main chain.
8. A blockchain-based commodity trading system according to claim 6, characterized in that The smart contract management module deploys smart contracts on the commodity trading network, including: designing smart contracts, where the process of designing smart contracts is as follows: Clarify requirements and goals, choose the appropriate development language, Write contract code to ensure that the logic is correct, safe and reliable. Test and debug smart contracts to fix potential problems. Select a suitable blockchain network, deploy and publish smart contracts for users to use.
9. A blockchain-based commodity trading system according to claim 6, characterized in that Automatically trigger the smart contract and execute the transaction process in the execution module, including: According to the smart contract deployed on the blockchain, By using the application to interact with the smart contract, the user initiates a transaction request and triggers the conditions defined in the smart contract. Automatically verify and execute transactions based on the preset logic of smart contracts without the need for third-party intervention. Record transaction information on the blockchain to ensure consistency and immutability.
10. A commodity trading system based on blockchain according to claim 6, characterized in that The encryption module uses secure encryption algorithms such as RSA or AES to convert transaction information into ciphertext, ensuring that the transaction information is not easily stolen during transmission and storage. It also uses digital summary technology to detect whether the transaction information has been tampered with, ensuring the authenticity and integrity of the transaction information.
