Decentralized shopping platform system based on distributed processing
A decentralized shopping platform system addresses transaction verification inefficiencies by using distributed processing and blockchain technology to ensure transaction authenticity and reliability, improving user experience.
Patent Information
- Application Number
- CN202411341589.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-03
AI Technical Summary
Existing e-commerce platforms fail to verify the authenticity of transactions and the decentralized trading platform fails to verify the authenticity of transactions due to the centralized nature of data processing, leading to inefficiencies and potential data tampering.
A decentralized shopping platform system based on distributed processing, utilizing a user module, transaction module, order processing module, and blockchain processing module, with traceability verification and smart contracts to ensure transaction authenticity and efficiency.
The system ensures transaction authenticity and reliability while reducing processing time, enhancing user experience by leveraging distributed verification and blockchain technology.
Smart Images

Figure CN119250823A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of e-commerce, and more specifically, relates to a decentralized shopping platform system based on distributed processing. Background Art
[0002] The e-commerce industry has shown strong growth in the past few years. The traditional e-commerce marketing model adopts a centralized organizational structure, which leads to information opacity. The centralized organizational structure also causes the platform to have excessive authority, allowing product data and transaction data to be tampered with and falsified.
[0003] On the other hand, e-commerce platforms usually process a large number of orders, user information, product data, transaction records, etc. The amount of this data is huge. If the data is encrypted alone to improve data security and confidentiality, the amount of data processing during the transaction will increase, causing the system processing speed to slow down, which makes it impossible to guarantee the timely processing of e-commerce platform data. Summary of the invention
[0004] In response to the above defects or improvement needs of the prior art, the present invention provides a decentralized shopping platform system based on distributed processing, which aims to verify the authenticity of transactions through product traceability verification, and shorten the increase in data processing time caused by traceability verification through distributed verification, thereby solving the technical problems that the existing trading platform forges transaction records and transaction evaluations, and the decentralized trading platform fails to verify and process the explosively growing transaction data in a timely manner, affecting the user experience.
[0005] To achieve the above-mentioned purpose, according to one aspect of the present invention, a decentralized shopping platform system based on distributed processing is provided, including a user module, a transaction module, an order processing module, an evaluation module, and a blockchain processing module;
[0006] The user module is used to generate a virtual account according to the user's registration information and send the virtual account information to the blockchain processing module; the user is a consumer or a merchant;
[0007] The transaction module is used to match transactions and send transaction record information to the order processing module for verification, wherein the transaction record information includes the subject category of the transaction commodity;
[0008] The order processing module is used to perform distributed traceability verification according to the subject category of the transaction commodity, that is, to use traceability information to verify the authenticity of the transaction record information provided by the transaction module, and to provide the verified transaction record information to the blockchain processing module;
[0009] The evaluation module is used to collect the user's evaluation information on the transaction in which the user participates, package and encrypt the user's evaluation on the transaction in which the user participates, and send it to the blockchain processing module for storage;
[0010] The blockchain processing module is used to register user registration information on a private blockchain, verify that the transaction record information and evaluation information are authentic, register on a public blockchain node and synchronize them to the ledgers of each node in the blockchain, and provide user information verification functions.
[0011] Preferably, in the decentralized shopping platform system based on distributed processing, the order processing module includes a distributed message queue and a series of order processing nodes; the distributed message queue adds the transaction record information to the partition queues of each transaction commodity category according to the transaction commodity category of the transaction record information, each partition queue corresponds to an order processing node, and the order processing node performs traceability verification on the transaction record information with the longest waiting time in the corresponding partition queue, and the transaction record information that passes the traceability verification is the real transaction record information; preferably, the distributed message queue is a Kafka message queue.
[0012] Preferably, the traceability verification of the decentralized shopping platform system based on distributed processing specifically includes decrypting the order information through the blockchain processing module, and verifying the product traceability information of the corresponding transaction commodity category with the transaction record information. The transaction record information passes if the verification of the commodity and product traceability information is reasonable. If the verification passes, the transaction record information is judged to be authentic transaction record information, otherwise, the consumer users and merchant users involved in the transaction are warned.
[0013] Preferably, in the decentralized shopping platform system based on distributed processing, the traceability verification can be processed by a smart contract built into the order processing module, and the traceability verification is automatically completed when the transaction meets the preset conditions of the smart contract; the same smart contract is used for order processing nodes of the same transaction commodity category.
[0014] Preferably, in the decentralized shopping platform system based on distributed processing, the product traceability information of the transaction commodity category is endorsed by the product production platform and recorded on the blockchain.
[0015] Preferably, the decentralized shopping platform system based on distributed processing has comparable transaction scales for various transaction commodity categories, i.e., has transaction record information of the same order of magnitude; when the transaction information scale of a certain transaction commodity category exceeds the transaction scale of other transaction commodity categories, a subcategory of the transaction commodity category is used as a new transaction commodity category until the scale of the transaction commodity category is comparable to the transaction scale of other transaction commodity categories.
[0016] Preferably, in the decentralized shopping platform system based on distributed processing, the basic information storage and identity verification of the virtual account can be performed separately, the private blockchain chain nodes store the basic information of the virtual account, and the public blockchain chain nodes can perform identity information verification.
[0017] Preferably, in the decentralized shopping platform system based on distributed processing, the transaction module receives a transaction request from a consumer user and provides it to a corresponding merchant user for confirmation. When the merchant user confirms and agrees to the transaction, a transaction record is formed; the transaction module encrypts the transaction record information of the consumer and the merchant, packages it into an order, and sends it to the order processing module for processing.
[0018] Preferably, in the decentralized shopping platform system based on distributed processing, the encryption method of the transaction record information is to use the user's virtual account information and encrypt it in combination with a timestamp.
[0019] Preferably, the decentralized shopping platform system based on distributed processing also includes a data analysis module; the data analysis module is used to obtain transaction and evaluation data in the blockchain, and to count transactions, evaluations and user behaviors, and provide statistical data to help users make decisions, and the system order processing module optimizes the message queue structure.
[0020] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0021] The decentralized shopping platform system based on distributed processing provided by the present invention performs distributed traceability verification based on the subject category of the traded goods based on a decentralized information storage method, and performs traceability verification on each category in parallel, thereby shortening the overall waiting time for traceability verification, and improving verification efficiency and user experience while ensuring the authenticity and reliability of transaction information. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a development diagram of a decentralized shopping platform system based on distributed processing provided by an embodiment of the present invention;
[0023] Figure 2 It is a schematic diagram of the structure of an order processing module of a decentralized shopping platform based on distributed processing provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0025] The e-commerce transaction process includes that merchants can register as sellers and publish product information; consumers can register as buyers to browse, purchase and generate transaction requests. The transaction request includes transaction information such as product name, model, quantity, price, transaction time, payment method and preferential method. During the transaction process, merchants and consumers generate transactions through two-way confirmation, and virtual currency is used as a settlement method during the transaction. After the transaction is completed, merchants and consumers can evaluate each other. The introduction of decentralized technology in e-commerce can ensure the reliability of transactions, as well as the authenticity, reliability and integrity of transaction evaluations to prevent data falsification; but on the other hand, decentralized technology will also reduce the efficiency of transactions, so technical means are needed to reduce the impact of decentralized technology on efficiency.
[0026] The present invention provides a decentralized shopping platform system based on distributed processing, which improves the reliability of transaction evaluation information on the shopping platform by introducing blockchain technology into the e-commerce platform. At the same time, the use of distributed processing technology speeds up the processing speed of transactions and ensures the efficiency of the transaction system. It specifically includes a user module, a transaction module, an order processing module, an evaluation module, and a blockchain processing module;
[0027] The user module is used to generate a virtual account according to the user's registration information and send the virtual account information to the blockchain processing module; the user is a consumer or a merchant;
[0028] The transaction module is used to match transactions and send transaction record information to the order processing module for verification. The transaction record information includes the subject category of the transaction goods. Specifically, the transaction module receives a transaction request from a consumer user and provides it to the corresponding merchant user for confirmation. When the merchant user confirms and agrees to the transaction, a transaction record is formed. The transaction module encrypts and packages the transaction record information of the consumer and the merchant into an order and sends it to the order processing module for processing.
[0029] Preferably, the encryption method of the transaction record information is to use the user's virtual account information and encrypt it in combination with a timestamp;
[0030] The order processing module is used to perform distributed traceability verification according to the subject category of the transaction goods, that is, to use traceability information to verify the authenticity of the transaction record information provided by the transaction module, and to provide the transaction record information verified to be authentic to the blockchain processing module.
[0031] Specifically, the order processing module includes a distributed message queue and a series of order processing nodes; the distributed message queue adds the transaction record information to the partition queues of each transaction commodity category according to the transaction commodity category of the transaction record information, each partition queue corresponds to an order processing node, and the order processing node performs traceability verification on the transaction record information with the longest waiting time in the corresponding partition queue, and the transaction record information that passes the traceability verification is the real transaction record information;
[0032] The traceability verification specifically includes decrypting the order information through the blockchain processing module, and verifying the product traceability information of the corresponding transaction commodity category with the transaction record information. The transaction record information passes if the commodity and product traceability information verification is reasonable. If the verification passes, the transaction record information is judged to be true transaction record information, otherwise, the consumer users and merchant users involved in the transaction are warned; preferably, the traceability verification can be processed by a smart contract built into the order processing module, and the traceability verification is automatically completed when the transaction meets the preset conditions of the smart contract; the same smart contract is used for order processing nodes of the same transaction commodity category.
[0033] The product traceability information of the trading commodity category is endorsed by the product production platform and recorded on the blockchain.
[0034] Preferably, the transaction scales of various transaction commodity categories are comparable, i.e., they have transaction record information of the same order of magnitude; when the transaction information scale of a certain transaction commodity category exceeds the transaction scale of other transaction commodity categories, a subcategory of the transaction commodity category will be used as a new transaction commodity category until the scale of the transaction commodity category is comparable to the transaction scale of other transaction commodity categories.
[0035] Preferably, the distributed message queue is a Kafka message queue;
[0036] The evaluation module is used to collect the user's evaluation information on the transaction in which he / she participates, package and encrypt the user's evaluation on the transaction in which he / she participates, and send it to the blockchain processing module for storage; for a transaction record information, collect the evaluation of the transaction by the consumer user and the merchant user.
[0037] Preferably, the evaluation information is encrypted using user virtual account information in combination with a timestamp;
[0038] The blockchain processing module is used to register user registration information on the private blockchain, verify the transaction record information and evaluation information that are authentic, register on the public blockchain node and synchronize them to the ledgers of each node of the blockchain, and provide user information verification functions;
[0039] Preferably, the storage of basic information of the virtual account and identity verification can be performed separately, the private blockchain node stores the basic information of the virtual account, and the public blockchain node can perform identity information verification;
[0040] Preferably, the decentralized shopping platform system based on distributed processing also includes a data analysis module. The data analysis module is used to obtain transaction and evaluation data in the blockchain, and to collect statistics on transactions, evaluations and user behaviors, provide statistical data, help users make decisions, and optimize the message queue structure of the system order processing module.
[0041] The following are examples:
[0042] This embodiment is a shopping platform developed based on a decentralized shopping platform system for distributed processing, including a client and an e-commerce platform, which is built through a commercial cloud platform. The structure is as follows: Figure 1 shown.
[0043] (1) Client: The client is an application used to interact with the Hyperledger Fabric network. Users can use the client to make transaction requests, query data, etc. to the Hyperledger Fabric network.
[0044] (2) Back-end server: used to manage data, including saving user data and providing data transmission for clients.
[0045] (3) SDK: SDK is a software development kit that includes components, APIs, and development tools for building the front-end and back-end interfaces of this project.
[0046] (4) Membership management: responsible for managing user IDs and authenticating all participants on the network.
[0047] (5) Sorting service node: The sorting service node of this project uses the Kafka consensus algorithm to sort transactions. After sorting, the transactions are packaged into blocks in order and a block header is generated for the block.
[0048] (6) Peer: The peer node contains the state of the network and a copy of the ledger, and peer nodes are divided into endorsement nodes and submission nodes.
[0049] (7) Endorser: Endorser is an endorsement node responsible for checking and endorsing transaction proposals from clients, that is, simulating transactions and endorsing them.
[0050] (8) Committer: Committer is a committing node used to verify transactions, that is, to verify the endorsement of the endorsing node and the transaction results.
[0051] (9) Ledger: Ledger is the ledger of the blockchain, a data structure used to store transaction records, including world state and transaction logs.
[0052] (10) Chaincode: Chaincode, also known as smart contract, is used to encode the logic of specific types of transaction calls in the network.
[0053] (11) Events: Events refer to operations or status changes that occur in the blockchain network. They are recorded in blocks and their security and reliability are guaranteed through a consensus mechanism.
[0054] Through the client, users can register as merchants or consumers. When users register, a virtual account is generated based on the ID number and registration time, and synchronized to each node in the blockchain. The private chain node records the basic information of the virtual account, and the public chain node can verify the identity information. As the management node of the e-commerce platform, the public chain node has the authority to intervene in the public security information network, calculate the user's real information through the virtual account information, and verify it with the information in the public security information network. If there is a mismatch, the personnel information alarm will be issued to ensure that the transaction requests corresponding to the virtual account added to the e-commerce platform blockchain will be sent to the transaction processing module for processing.
[0055] On the client side, merchants can publish product information; consumers can browse products, view product and merchant reviews, and view transaction data statistics, so as to make purchases and generate transaction requests. The transaction request contains information such as the product name, model, quantity, price, transaction time, payment method, and discount method. Merchants can view consumer reviews and consumption data statistics to decide whether to confirm the consumer's transaction request.
[0056] The specific processing flow of its transaction request is as follows:
[0057] S1: Consumers and merchants package transactions including transaction commodity categories into transaction record information through the transaction module on the client side and send it to the order processing module;
[0058] S2: After receiving the order, the order processing module encapsulates the order into a Kafka message and sends it to the transaction commodity category partition queue corresponding to the Kafka cluster; Figure 2 shown.
[0059] S3: The order processing node corresponding to the transaction commodity category partition queue detects that there is new transaction record information in the queue, obtains the order corresponding to the transaction record information, processes the order, and obtains the order information;
[0060] S4: The order processing module verifies the traceability of the processed order information, obtains product traceability information, such as origin and logistics information, and verifies the authenticity of the order information by mutual verification with the order's delivery information and warehousing information, and verifies the transaction record information; different categories of goods, because the traceability verification methods are not exactly the same, are classified, which can not only increase the speed through distributed computing, but also shorten the total waiting time of task operation. Typically, agricultural products and medicinal materials require origin traceability and combined with production date traceability to verify the authenticity of transaction information, while electronic products can be traced through factory information and warehousing information.
[0061] S5: After verification, the transaction block is written into the ledger.
[0062] S6: After the transaction record information is written into the ledger, the client can query the transaction results.
[0063] After the transaction is completed, merchants and consumers can use the application layer client to evaluate each other. Each transaction will generate a review and upload the review request to the blockchain processing module. Users and merchants can conduct two-way reviews through the application layer client and submit them to the blockchain processing module.
[0064] The specific content of the evaluation includes the merchant's evaluation of the user's payment method, whether the purchase is malicious, etc.; it also includes the consumer's evaluation of the merchant's delivery time, the authenticity of the product and the promotional content, the merchant's customer service attitude, etc.
[0065] The transaction request and evaluation request include transaction information and evaluation information, which are uploaded in an encrypted manner. The specific encryption method is to encrypt files of the payment request and the evaluation request, use user information as a key, encrypt the files, and perform encryption calculations in combination with a timestamp. The user information is virtual account information.
[0066] Transaction requests and evaluation requests will be recorded in the corresponding files. When the blockchain processing module receives these requests, the smart contract will modify the transaction information on the ledgers of each node of the e-commerce platform according to the content of the transaction request, and modify the evaluation information according to the content of the evaluation request. When synchronizing transaction information, the content of each node will remain consistent. The synchronization of evaluation information adopts a hierarchical management method. The information of public chain nodes and private chain nodes will be synchronized with each other. In order to achieve this process, the smart contract will be installed on the client of each node through the application to update and synchronize the ledgers of each node. This can ensure the accuracy and consistency of the ledger.
[0067] All consumption records will be recorded in the ledgers of each node in the e-commerce platform through virtual account queries for query, thus effectively limiting the permissions of merchants, consumers and e-commerce platform managers.
[0068] It will be easily understood by those skilled in the art that 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 and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A decentralized shopping platform system based on distributed processing, characterized in that: Including user module, transaction module, order processing module, evaluation module, and blockchain processing module; The user module is used to generate a virtual account according to the user's registration information and send the virtual account information to the blockchain processing module; the user is a consumer or a merchant; The transaction module is used to match transactions and send transaction record information to the order processing module for verification, wherein the transaction record information includes the subject category of the transaction commodity; The order processing module is used to perform distributed traceability verification according to the subject category of the transaction commodity, that is, to use traceability information to verify the authenticity of the transaction record information provided by the transaction module, and to provide the verified transaction record information to the blockchain processing module; The evaluation module is used to collect the user's evaluation information on the transaction in which the user participates, package and encrypt the user's evaluation on the transaction in which the user participates, and send it to the blockchain processing module for storage; The blockchain processing module is used to register user registration information on a private blockchain, verify that the transaction record information and evaluation information are authentic, register on a public blockchain node and synchronize them to the ledgers of each node in the blockchain, and provide user information verification functions.
2. The decentralized shopping platform system based on distributed processing as claimed in claim 1, characterized in that: The order processing module includes a distributed message queue and a series of order processing nodes; the distributed message queue adds the transaction record information to the partition queues of each transaction commodity category according to the transaction commodity category of the transaction record information, each partition queue corresponds to an order processing node, and the order processing node performs traceability verification on the transaction record information with the longest waiting time in the corresponding partition queue, and the transaction record information that passes the traceability verification is the real transaction record information; preferably, the distributed message queue is a Kafka message queue.
3. The decentralized shopping platform system based on distributed processing as claimed in claim 2, characterized in that: The traceability verification specifically includes decrypting the order information through the blockchain processing module, and verifying the product traceability information of the corresponding transaction commodity category with the transaction record information. The transaction record information is verified to be reasonable if the commodity and product traceability information are verified to be reasonable. If the verification is passed, the transaction record information is judged to be authentic transaction record information, otherwise the consumer users and merchant users involved in the transaction are warned.
4. The decentralized shopping platform system based on distributed processing as claimed in claim 3, characterized in that: The traceability verification can be processed through a smart contract built into the order processing node. The traceability verification is automatically completed when the transaction meets the preset conditions of the smart contract. The same smart contract is used for order processing nodes of the same transaction commodity category.
5. The decentralized shopping platform system based on distributed processing as claimed in claim 3, characterized in that: The product traceability information of the trading commodity category is endorsed by the product production platform and recorded on the blockchain.
6. The decentralized shopping platform system based on distributed processing as claimed in claim 1, characterized in that: The transaction scales of various transaction commodity categories are comparable, that is, they have transaction record information of the same order of magnitude; when the transaction information scale of a certain transaction commodity category exceeds the transaction scale of other transaction commodity categories, the subcategory of the transaction commodity category will be used as a new transaction commodity category until the scale of the transaction commodity category is comparable to the transaction scale of other transaction commodity categories.
7. The decentralized shopping platform system based on distributed processing as claimed in claim 1, characterized in that: The storage of basic information of virtual accounts and identity verification can be performed separately. Private blockchain nodes store the basic information of virtual accounts, and public blockchain nodes can verify identity information.
8. The decentralized shopping platform system based on distributed processing as claimed in claim 1, characterized in that: The transaction module receives a transaction request from a consumer user and provides it to the corresponding merchant user for confirmation. When the merchant user confirms and agrees to the transaction, a transaction record is formed; The transaction module encrypts the transaction record information of consumers and merchants, packages it into an order, and sends it to the order processing module for processing.
9. The decentralized shopping platform system based on distributed processing as claimed in claim 1, characterized in that: The encryption method of the transaction record information is to use the user's virtual account information and encrypt it in combination with a timestamp.
10. The decentralized shopping platform system based on distributed processing as claimed in claim 1, characterized in that: It also includes a data analysis module; the data analysis module is used to obtain transaction and evaluation data in the blockchain, and to count transactions, evaluations and user behaviors, and provide statistical data to help users make decisions, as well as the system order processing module to optimize the message queue structure.
