CN115796586A - Data processing method and device based on block chain - Google Patents

Data processing method and device based on block chain Download PDF

Info

Publication number
CN115796586A
CN115796586A CN202211516099.1A CN202211516099A CN115796586A CN 115796586 A CN115796586 A CN 115796586A CN 202211516099 A CN202211516099 A CN 202211516099A CN 115796586 A CN115796586 A CN 115796586A
Authority
CN
China
Prior art keywords
request
commodity
processing
data
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211516099.1A
Other languages
Chinese (zh)
Inventor
杨颖凡
邹伟力
傅强
张舜华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211516099.1A priority Critical patent/CN115796586A/en
Publication of CN115796586A publication Critical patent/CN115796586A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a data processing method and a data processing device based on a block chain, which relate to the technical field of block chain access control, wherein the method comprises the following steps: receiving a commodity processing request, wherein the commodity processing request comprises first commodity data; judging whether the commodity processing request is a risk request; if the first block chain network is a risk request, sending a detection request to the first block chain network so that the first block chain network can carry out risk detection on the first commodity data, and storing a detection result of the risk detection in the first block chain network; if the detection result is that the first commodity data passes the first block chain network, sending a first service request to the second block chain network so that the second block chain network performs first processing on the first commodity data, wherein the processing result of the first processing is stored in the second block chain network; and feeding back first information, wherein the first information is used for indicating that the processing is successful. The invention realizes a controllable, credible and decentralized commodity data processing method.

Description

Data processing method and device based on block chain
Technical Field
The present invention relates to the field of block chain access control technologies, and in particular, to a data processing method and apparatus based on a block chain.
Background
An e-commerce platform is a platform for providing online transaction negotiation for enterprises or individuals. The current internet e-commerce platform is a centralized platform, and particularly, a centralized server provided by one enterprise executes operations of putting on shelves, evaluating, placing orders and the like of commodities. However, since the centralized server provided by one enterprise performs operations such as shelving, evaluation, ordering, etc. of the goods, it is difficult for the centralized e-commerce platform to perform compliance detection on the goods data, and there is a compliance problem. In addition, since the centralized server provided by one enterprise performs operations of shelving, evaluation, ordering and the like of the commodities, some private data in the centralized e-commerce platform, such as transaction data, payment data, browsing habits and the like, are mastered by the one enterprise, so that a trust problem exists.
Disclosure of Invention
The embodiment of the invention provides a data processing method based on a block chain, which comprises the following steps:
receiving a commodity processing request, wherein the commodity processing request comprises first commodity data;
judging whether the commodity processing request is a risk request;
if the first commodity data is the risk request, sending a detection request to a first block chain network so that the first block chain network can carry out risk detection on the first commodity data, and storing a detection result of the risk detection in the first block chain network;
if the detection result is that the commodity data passes the detection result, sending a first service request to a second block chain network so that the second block chain network performs first processing on the first commodity data, wherein the processing result of the first processing is stored in the second block chain network;
and feeding back first information, wherein the first information is used for indicating that the processing is successful.
An embodiment of the present invention further provides a data processing apparatus based on a block chain, where the apparatus includes:
a receiving unit configured to receive a commodity processing request, where the commodity processing request includes first commodity data;
the judging unit is used for judging whether the commodity processing request is a risk request;
the first sending unit is used for sending a detection request to the first block chain network if the first block chain network is a risk request so that the first block chain network can carry out risk detection on the first commodity data, and the detection result of the risk detection is stored in the first block chain network;
a second sending unit, configured to send a first service request to a second blockchain network if the detection result is that the first service request passes through the second blockchain network, so that the second blockchain network performs first processing on the first commodity data, where a processing result of the first processing is stored in the second blockchain network;
the first feedback unit is used for feeding back first information, and the first information is used for indicating that the processing is successful.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the data processing method based on the block chain is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the data processing method based on the block chain is implemented.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, the computer program implements the above data processing method based on a block chain.
According to the technical scheme of the embodiment of the invention, a commodity processing request can be received, wherein the commodity processing request comprises first commodity data; judging whether the commodity processing request is a risk request; if the first block chain network is a risk request, sending a detection request to the first block chain network so that the first block chain network can carry out risk detection on the first commodity data, wherein the detection result of the risk detection is stored in the first block chain network; if the detection result is that the first commodity data passes the first service request, the first service request can be sent to a second block chain network so that the second block chain network can perform first processing on the first commodity data, and the processing result of the first processing is stored in the second block chain network; first information indicating that the processing is successful may be fed back. Through carrying out risk detection to first commodity data, can avoid the compliance problem. Trust problems can be avoided through a decentralized function and a consensus mechanism of the blockchain network. In addition, the first block chain network and the second block chain network are combined to form a double-chain structure, so that the controllable, credible and decentralized commodity data processing method is realized. The risk detection and the business processing are respectively executed by different block chain networks, and the scale of a single block chain network is also favorably reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a functional block diagram of a data processing system according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of a data processing system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a data processing method based on block chains according to an embodiment of the present invention;
FIG. 4 is a flowchart of a data processing method based on block chains according to an embodiment of the present invention;
FIG. 5 is a functional block diagram of a data processing apparatus based on a block chain according to an embodiment of the present invention;
fig. 6 is a functional structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. In addition, the technical scheme of the application conforms to relevant regulations of national laws and regulations in terms of data acquisition, storage, use, processing and the like.
With the development of the information age, more and more digital contents are released to the internet by creators, and the knowledge contents are shared and created in a free or paid manner. Digital contents such as pictures, articles, audios and videos are easy to copy and copy, so that the copyright of an author and information abuse are difficult to protect well. The traditional centralized e-commerce platform is difficult to carry out compliance detection on commodity data, is easy to have the problem of commodity piracy infringement and is difficult to trace. In addition, the traditional centralized e-commerce platform is often provided by a business. Some private data, such as transaction data, payment data, browsing habits, etc., are also held by the one enterprise, and thus have trust issues. In addition, the traditional centralized e-commerce platform often records the use habits of users, browsing records and the like as recommended purposes. The functions meet the personalized requirements of users, and meanwhile, the risk of personal information leakage exists.
Web3.0 was proposed by Gavin Wood, a co-founder in etherhouses in 2014, represents the next generation of decentralized internet and confers individual value. Web3.0 focuses on the value of the relationship "who created, who owns" formed by decentralized techniques such as blockchains. Web3.0 is based on blockchain implementation and naturally has the property of decentralization. At the same time, the user has full authority control over the value of the created data. Each step of a person's action on the internet, each trace, is recorded, quantified, and added to the data value chain.
The embodiment of the specification realizes a decentralized e-commerce platform through a blockchain on the basis of a Web3.0 technology. The method solves the problems of compliance, trust and the like of the traditional centralized e-commerce platform.
The block chain is a distributed account book which organizes a plurality of data blocks in a chain structure according to the time sequence and ensures safety, traceability and non-falsification by a cryptographic algorithm. The blockchain may include a public blockchain, a federated blockchain (also referred to as a federation blockchain), a private blockchain, and so forth. The distributed ledger is maintained collectively by a plurality of node devices in a blockchain network. The block chain network is formed by a plurality of node devices through a consensus mechanism. The blockchain network may include, for example, a P2P network (peer-to-peer network) or the like. The consensus mechanism may be implemented based on algorithms such as Proof of Work (POW), proof of rights and interests (POS), proof of equity authority (DPOS), or active Byzantine Fault Tolerance (PBFT). By deploying intelligent contracts (Smart contracts) in a blockchain, the blockchain can be made to function as intelligent contracts. The intelligent contract is a computer program capable of running on a node device of a blockchain network. The deployment of the smart contracts may be effected through transactions. For example, a business person may write an intelligent contract using a computer high-level language. Bytecodes can be obtained by compiling the written intelligent contract. Node devices of the blockchain may construct transactions to deploy the smart contract from the bytecode. The smart contracts may be deployed in blockchains by submitting transactions to deploy the smart contracts to blockchain networks.
Please refer to fig. 1 and fig. 2. The embodiment of the specification provides a data processing system based on a block chain.
The data processing system may include a plurality of terminal devices, a platform device, a first blockchain network, and a second blockchain network. The terminal device may be a user-oriented device, and the user may include a merchant and a consumer. The terminal devices include, but are not limited to, smart phones, tablet computers, personal computers, and the like. The platform device may be understood as a goods shelf that serves as a platform for goods shelf-based transactions between users. The platform device may include a server or the like. The platform device may be set up by a platform party, which may include an enterprise or an individual or the like for providing online transaction negotiation services. The first blockchain network may be used for risk detection, such as compliance detection, and the like. The first blockchain network may store detection results of risk detection. The first blockchain network may include a plurality of first node devices. The first node device may be set up by a regulatory body. The second blockchain network may be used for business processes such as merchandise listing, merchandise review, merchandise inquiry, merchandise ordering, merchandise payment, and the like. The second blockchain network may store processing results of the business processes. The second blockchain network may include a plurality of second node devices. The second node device may be set up by a user. Therefore, a controllable and credible decentralized and distributed electronic commerce system can be realized through the technical architecture of the double-layer blockchain network. In addition, the supervision agency can be set up with a block chain network, and the user can be set up with a block chain network. Through the platform equipment, the block chain network established by the supervision mechanism can be accessed to the block chain network established by the user, and a new block chain network does not need to be established by the supervision mechanism and the user together, so that the cost is saved.
The terminal device may send a commodity processing request to the platform device, where the commodity processing request may include the first commodity data. The platform device may receive a merchandise handling request; whether the commodity processing request is a risk request can be judged; if the request is a risk request, a detection request may be sent to the first blockchain network. The first blockchain network may perform risk detection on the first commodity data. If the detection result is that the first commodity data passes, the platform device may send a first service request to the second blockchain network, where the first service request may include the first commodity data. The second blockchain network may perform a first processing on the first commodity data. The platform device may obtain a processing result of the first processing; the first information may be transmitted to the terminal device. The first information is used to indicate that the processing is successful. If the detection result is that the terminal device fails, the platform device may send the second information to the terminal device. The second information is used to indicate a processing failure. If not, the platform device may send a second service request to the second blockchain network, where the second service request may include the first commodity data. The second blockchain network may perform a second processing on the first commodity data. The platform device may obtain a processing result of the second processing; the third information may be transmitted to the terminal device. The third information may include a processing result of the second processing.
Please refer to fig. 3 and 4. The embodiment of the specification provides a data processing method based on a block chain. The data processing method takes the platform device as an execution subject, and specifically may include the following steps.
Step S11: a commodity processing request is received, the commodity processing request including first commodity data.
In some embodiments, the end device may send a merchandise handling request to the platform device. The item processing request may include first item data. The first article data may include image data, text data, and the like. The first commodity data may include data of commodities to be shelved, evaluation data of the commodities, ordering data of the commodities, query conditions for querying the commodities, and the like. In practical application, the terminal equipment can provide an interactive interface; first commodity data can be obtained based on the interactive interface; upon detecting the send instruction, a merchandise handling request may be sent to the platform device. Wherein the goods may comprise physical goods. The physical goods may include electronic products, clothes, and the like. Of course, the merchandise may also include virtual merchandise. The virtual goods may include coupons, points, red packs, and the like.
Step S12: and judging whether the commodity processing request is a risk request.
In some embodiments, in practical applications, whether the merchandise handling request is a risk request may include the following. Case one. Whether the first commodity data itself is risk data. For example, the first product data may be abnormal product data. The abnormal commodity data may include commodity data having risks of illegal information transaction propagation, yellow-related, terrorism-related, and the like. The abnormal commodity data is not beneficial to the healthy and orderly development of the Internet. And (5) the second case. Whether the first commodity data is generated in an abnormal scene. For example, the first merchandise data may include ordering data for the merchandise. The order data may be generated in the case of a bill-reading scene or in the case of an account theft scene. The first commodity data generated in the abnormal scene can interfere the normal operation of the electronic commerce platform.
In some embodiments, the type of merchandise handling request may be identified; it may be determined whether the merchandise handling request is a risk request based on the type. Specifically, the commodity processing request may include values of one or more fields. For example, the fields may include a first field, a second field, and so on. The first field is used for representing the type of the commodity processing request, and the second field is used for representing the data carried by the commodity processing request. Therefore, the commodity processing request can be analyzed to obtain the value of the field; the type of the commodity processing request can be identified according to the value of the field. The set of types may be preset. The set of types may include one or more request types relating to risk. The types of merchandise handling requests may be matched in a set of types. If the matching is successful, the commodity processing request can be judged to be a risk request. If the matching fails, it may be determined that the merchandise handling request is not a risk request.
Step S13: and sending a detection request to the first blockchain network so as to carry out risk detection on the first commodity data.
In some embodiments, if the commodity processing request is a risk request, a detection request may be sent to the first blockchain network, so that the first blockchain network performs risk detection on the first commodity data. The detection result of the risk detection may be stored in the first blockchain network. The detection result may include pass and fail, etc. On the one hand, the first commodity data are subjected to risk detection, and therefore the problem of compliance can be avoided. On the other hand, when the commodity processing request is judged to be the risk request, the risk detection is carried out on the first commodity data, so that the risk detection can be avoided for all commodity processing requests, the number of risk detections can be reduced, the time is saved, and the processing efficiency of the request is improved.
In some embodiments, a smart contract may be deployed in the first blockchain network. The platform device may send a detection request to a first node device in the first blockchain network. The detection request may include first merchandise data. The platform device may specifically send the detection request to any first node device. The first node device may receive a detection request; a detection transaction may be constructed from the first merchandise data; and calling an intelligent contract deployed in the first block chain network according to the detection transaction so as to carry out risk detection on the first commodity data and obtain a detection result of the first commodity data. The detection result of the first commodity data may be written into the block chain of the first block chain network.
It is noted that in the field of blockchain technology, transactions may include narrow transactions and wide transactions. The transaction in a narrow sense may include a transaction capable of value transfer, such as a money transfer transaction or the like. A broad transaction may include services that enable user intent, such as rental housing, evidence storage, vehicle scheduling, insurance claims, and the like.
Step S14: and if the detection result is that the first commodity data passes the detection result, sending a first service request to a second block chain network so as to perform first processing on the first commodity data.
In some embodiments, the first blockchain network may send the detection result of the first commodity data to the platform device. In practical application, the first node device may send a detection result of the first commodity data to the platform device. The platform device may receive a detection result of the first commodity data. Specifically, the first node device may actively send the detection result of the first commodity data to the platform device. Or, the platform device may also send a detection result query request to the first node device. The first node device may receive a detection result query request; the detection result of the first commodity data can be inquired from the block chain; the detection result of the first commodity data may be transmitted to the platform device.
In some embodiments, if the detection result of the first commodity data is that the first commodity data passes through the second block chain network, the platform device may send a first service request to the second block chain network, so that the second block chain network performs first processing on the first commodity data. The processing result of the first processing may be stored in a second blockchain network. In practical applications, the platform device may send the first service request to the second node device in the second blockchain network. The first service request may include first merchandise data. The platform device may send the first service request to any of the second node devices. The second node device may receive the first service request; a first processing transaction may be constructed from the first merchandise data; a first processing transaction may be performed to perform a first processing on the first merchandise data to obtain a processing result of the first processing. The second node device may directly perform the first processed transaction. Alternatively, the second blockchain network may have an intelligent contract deployed therein. The second node device may invoke an intelligent contract deployed in the second blockchain network to perform first processing on the first commodity data.
Step S15: and feeding back first information, wherein the first information is used for indicating that the processing is successful.
In some embodiments, the second blockchain network may send the processing results of the first processing to the platform device. In practical applications, the second node device may send a processing result of the first processing to the platform device. The platform device may receive a processing result of the first processing. Specifically, the second node device may actively send the processing result of the first processing to the platform device. Or, the platform device may also send a processing result query request to the second node device. The second node device may receive a processing result query request; the processing result of the first processing may be queried from a blockchain; a processing result of the first processing may be transmitted to the platform device.
After obtaining the processing result of the first processing, the platform device may send the first information to the terminal device. The first information is used for indicating that the processing is successful. The terminal device may receive and display the first information. Further, the first information may also include a processing result of the first processing.
In some embodiments, if the detection result is failure, the platform device may send the second information to the terminal device. The second information is used for indicating processing failure. The terminal device may receive and display the second information.
In some embodiments, if the request is not a risk request, the platform device may directly send a second service request to the second blockchain network, so that the second blockchain network performs a second process on the first commodity data. In practical applications, the platform device may send a second service request to a second node device in the second blockchain network. The second service request may include the first merchandise data. The platform device may specifically send the second service request to any second node device. The second node device may receive a second service request; a second processing transaction may be constructed from the first merchandise data; a second processing transaction may be performed to perform a second processing on the first merchandise data to obtain a processing result of the second processing. The second node device may directly perform the second processed transaction. Alternatively, the second blockchain network may have an intelligent contract deployed therein. The second node device may invoke an intelligent contract deployed in the second blockchain network to perform second processing on the first commodity data. The second blockchain network may send a processing result of the second processing to the platform device. In practical applications, the second node device may send a processing result of the second processing to the platform device. The platform device may receive a processing result of the second processing; the third information may be fed back to the terminal device. The third information may include a processing result of the second processing. The terminal device may receive and display the third information.
Several application scenarios of the embodiments of the present specification are presented below.
And (5) applying a scene one.
The terminal device may be a merchant-oriented device. The terminal device may provide a merchandise listing interface. The merchant can input the data of the goods to be shelved in the goods shelving interface. The terminal equipment can receive data of goods to be put on shelves as first goods data; a merchandise listing request may be sent to the platform device, which may include the first merchandise data. The platform device may receive the merchandise listing request. The first commodity data may include a picture of the commodity, a text introduction of the commodity, an identifier of the commodity, a price of the commodity, and the like.
The platform device can judge that the commodity shelf loading request is a risk request; a compliance detection request may be sent to the first blockchain network. A first node device in a first blockchain network may receive a regulatory detection request; a compliance detection transaction may be constructed from the first merchandise data; the compliance detection intelligent contract deployed in the first block chain network can be called according to the compliance detection transaction, compliance detection is carried out on the first commodity data, and a detection result of the first commodity data is obtained. The compliance detection intelligent contract is used for carrying out compliance detection on the first commodity data, for example, detecting whether the first commodity data is abnormal commodity data. The specific detection rule is written into the compliance detection intelligent contract in advance by a service person. For example, the first item may include textual data. The compliance detection intelligent contract can detect whether the text data contains preset abnormal keywords or not. As another example, the first merchandise data may include image data. The compliance detection intelligent contract can detect whether the image data contains preset abnormal content by processing the image data. The first node device may send the detection result of the first commodity data to the platform device. The platform device may receive a detection result of the first commodity data.
If the detection result is that the commodity shelf loading request is passed, the platform equipment can send the commodity shelf loading request to the second block chain network. The item listing request may include first item data. A second node device in the second blockchain network may receive a commodity listing request; a commodity shelving transaction can be constructed according to the first commodity data; the commodity shelf-loading transaction can be executed, and the first commodity data is written into the block chain of the second block chain network, so that the inquiry and the ordering are facilitated. The second node device may send the shelving result of the first commodity data to the platform device. The platform device can receive the shelving result of the first commodity data; the first information may be transmitted to the terminal device. The first information is used for indicating successful shelving. The terminal device may receive the first information. Of course, if the detection result is that the terminal device fails, the platform device may also send the second information to the terminal device. The second information is used for indicating shelf loading failure. The terminal device may receive the second information.
And application scenario two.
The terminal device may be a consumer oriented device. The terminal device may provide a merchandise evaluation interface. The consumer can input the evaluation data of the commodity in the commodity evaluation interface. The terminal equipment can receive evaluation data of the commodity as first commodity data; a merchandise evaluation request may be sent to the platform device, which may include the first merchandise data. The first merchandise data may include a picture, a comment, a consumer identification (e.g., an account), etc. of the merchandise.
The platform device can judge that the commodity evaluation request is a risk request; a compliance detection request may be sent to the first blockchain network. A first node device in a first blockchain network may receive a regulatory detection request; a compliance detection transaction may be constructed from the first merchandise data; the method can call a compliance detection intelligent contract deployed in the first block chain network according to the compliance detection transaction, and perform compliance detection on the first commodity data to obtain a detection result of the first commodity data. The compliance detection intelligent contract is used for performing compliance detection on the first commodity data, for example, detecting whether the first commodity data is abnormal commodity data. The specific detection rule is written into the compliance detection intelligent contract in advance by a service person. For example, the first item may include textual data. The compliance detection intelligent contract can detect whether the text data contains preset abnormal keywords or not. As another example, the first merchandise data may include image data. The compliance detection intelligent contract can detect whether the image data contains preset abnormal content or not by processing the image data. The first node device may send the detection result of the first commodity data to the platform device. The platform device may receive a detection result of the first commodity data.
If the detection result is that the commodity evaluation request passes, the platform device can send the commodity evaluation request to the second blockchain network. The item evaluation request may include first item data. A second node device in the second blockchain network may receive the commodity evaluation request; a commodity evaluation transaction can be constructed according to the first commodity data; a commodity evaluation transaction may be performed to write the first commodity data into a blockchain of the second blockchain network. The second node device may send the evaluation result of the first commodity data to the platform device. The platform device may receive an evaluation result of the first commodity data; the first information may be transmitted to the terminal device. The first information is used for indicating the evaluation success. The terminal device may receive the first information. Of course, if the detection result is that the terminal device fails, the platform device may send the second information to the terminal device. The second information is used for indicating evaluation failure. The terminal device may receive the second information.
And application scenario three.
The terminal device may be a consumer oriented device. The terminal equipment can provide a commodity ordering interface. The consumer can select the commodity to order at the commodity ordering interface. The terminal equipment can obtain ordering data as first commodity data; a merchandise ordering request may be sent to the platform device, which may include the first merchandise data. The first merchandise data may include an identification of the merchandise, an amount placed, an address of a recipient, an identification of a consumer, and the like.
The platform equipment can judge that the commodity ordering request is a risk request; a risk detection request may be sent to the first blockchain network. A first node device in a first blockchain network may receive a risk detection request; a risk detection transaction may be constructed from the first commodity data; the risk detection intelligent contract deployed in the first block chain network can be called according to the risk detection transaction, risk detection is carried out on the first commodity data, and a detection result of the first commodity data is obtained. The risk detection intelligent contract is used for carrying out risk detection on the first commodity data, such as detecting whether a consumer frequently places an order, whether the number of purchases of the consumer is too large, whether the recipient address of the consumer is a common receiving address of the consumer, and the like. The first node device may send a detection result of the first commodity data to the platform device. The platform device may receive a detection result of the first commodity data.
The first node equipment in the first block chain network can directly call a risk detection intelligent contract deployed in the first block chain network according to risk detection transactions, and carry out risk detection on the first commodity data to obtain a detection result of the first commodity data. Or, the first node device may further send a service data acquisition request to the platform device according to the first commodity data. The platform equipment can receive a service data acquisition request; a service data acquisition request may be sent to a second node device in the second blockchain network. The second node device may receive a service data acquisition request; business data can be queried in the blockchain; the service data may be sent to the platform device. The platform device may receive and transmit the traffic data to the first node device. The first node device can call a risk detection intelligent contract deployed in the first block chain network according to the service data and the first commodity data, and carry out risk detection on the first commodity data to obtain a detection result of the first commodity data. For example, the service request may include a customer identification. The second node device may query the blockchain for traffic data based on the customer identification. The business data may include the most recent times the consumer made an order, the consumer's general shipping address, the consumer's historical purchase amount, and the like.
If the detection result is that the order passes, the platform device may send a commodity ordering request to the second block chain network. The item ordering request may include first item data. A second node device in the second blockchain network may receive a commodity ordering request; a commodity ordering transaction can be constructed according to the first commodity data; the ordering intelligent contract deployed in the second block chain network can be called to generate order information according to the first commodity data; the order information may be written into a blockchain of the second blockchain network. The order information includes an order number, an order amount, a receiving address, and the like. The second node device may send order information to the platform device. The platform equipment can receive order information; the first information may be transmitted to the terminal device. The first information is used for indicating the ordering success. The terminal device may receive the first information. Of course, if the detection result is that the terminal device fails, the platform device may send the second information to the terminal device. The second information is used for indicating ordering failure. The terminal device may receive the second information.
Further, the first information may further include order information. The terminal device may provide the order information to the customer. The consumer can pay for the order information in the terminal equipment. After detecting the payment operation, the terminal device may send a payment request to the platform device, where the payment request may include order information. The platform device may receive a payment request; a payment request may be sent to the second blockchain network to perform a payment operation on the order information. The platform device may specifically send a payment request to any second node device. The second node device may receive a payment request; a payment intelligence contract deployed in the second blockchain network may be invoked to perform a payment operation on the order information. The second node device may send the payment result to the platform device. The platform device may receive the payment result; notification information indicating that the payment was successful may be fed back to the terminal device.
And 4, application scene four.
The terminal device may send a commodity inquiry request to the platform device. The goods inquiry request may include an inquiry condition. The platform device may receive a merchandise query request; it can be judged that the merchandise inquiry request is not a risk request; a commodity query request can be sent to the second blockchain network to obtain second commodity data meeting the query condition; the second merchandise data may be fed back to the terminal device. The terminal device may receive the second commodity data; the second merchandise data may be displayed.
The terminal device may be a consumer oriented device. The terminal device may provide a merchandise query interface. The consumer may enter query conditions in the merchandise query interface. The terminal equipment can receive the query condition; a commodity query request may be sent to a second node device in the second blockchain network. The second node device may receive a commodity inquiry request; commodity data meeting the query condition can be queried in a block chain in a second block chain network to serve as second commodity data; the second merchandise data may be transmitted to the platform device. The platform device may receive second merchandise data. Wherein the query condition may include a commodity image. The second node device may query the blockchain for second commodity data matching the commodity image. Alternatively, the query condition may include an identification of the item. The second node device may query the blockchain for second commodity data corresponding to the commodity identification. Alternatively, the query condition may include a keyword. The second node device may query the blockchain for second commodity data that matches the keyword.
And application scene five.
The terminal device may send a page data acquisition request to the platform device. The page data acquisition request may include a page identification. The page identification may include a page address, such as a URL address. The platform equipment can receive a page data acquisition request; a page template corresponding to the page identifier and a commodity identifier corresponding to the page identifier can be obtained; the page data acquisition request can be judged to be not a risk request; a commodity query request can be sent to the second block chain network to obtain second commodity data corresponding to the commodity identification; page data can be generated according to the page template and the second commodity data; the page data may be fed back to the terminal device. The terminal device can receive and display the page data so that the consumer can browse the goods.
The terminal device may be a consumer oriented device. The terminal device may send a page data obtaining request to the platform device, where the page data obtaining request may include a page identifier. The platform equipment can receive a page data acquisition request; one or more commodity identifications corresponding to the page identification can be obtained; a merchandise query request may be sent to a second node device in the second blockchain network, which may include the one or more merchandise identifications. The second node device may receive a commodity inquiry request; second commodity data corresponding to the one or more commodity identifications can be inquired in the blockchain; the second merchandise data may be transmitted to the platform device. The platform device may receive the second merchandise data; generating page data according to the page template corresponding to the page identifier and the second commodity data; the page data may be transmitted to the terminal device. The terminal device may receive and display the page data.
Wherein, the platform device can provide a commodity identification set. The set of item identifications may include one or more item identifications. Each commodity identification can correspond to a page identification. The goods identification may include a number or name of the goods, etc. The platform device may obtain, according to the page data obtaining request, one or more corresponding commodity identifiers from the commodity identifier set. In addition, the platform device may also provide a set of page templates. The set of page templates may include one or more page templates. Each page template may correspond to a page identifier. The platform device may obtain the corresponding page template from the page template set according to the page data identifier obtaining request.
According to the technical scheme of the embodiment of the specification, a commodity processing request can be received, wherein the commodity processing request comprises first commodity data; judging whether the commodity processing request is a risk request; if the first block chain network is a risk request, sending a detection request to the first block chain network so that the first block chain network can carry out risk detection on the first commodity data, wherein the detection result of the risk detection is stored in the first block chain network; if the detection result is that the first commodity data passes the first service request, the first service request can be sent to a second block chain network so that the second block chain network can perform first processing on the first commodity data, and the processing result of the first processing is stored in the second block chain network; first information indicating that the processing is successful may be fed back. Through carrying out risk detection to first commodity data, can avoid the compliance problem. Trust problems can be avoided through a decentralized function and a consensus mechanism of the blockchain network. In addition, the first block chain network and the second block chain network are combined to form a double-chain structure, so that the controllable, credible and decentralized commodity data processing method is realized. The risk detection and the business processing are respectively executed by different block chain networks, which is also beneficial to reducing the scale of a single block chain network, thereby facilitating the construction of the block chain network.
Please refer to fig. 5. The embodiment of the present invention further provides a data processing apparatus based on a block chain, as described in the following embodiments. Because the principle of solving the problem of the device is similar to the data processing method based on the block chain, the implementation of the device can refer to the implementation of the data processing method based on the block chain, and repeated details are not repeated.
A receiving unit 21, configured to receive a commodity processing request, where the commodity processing request includes first commodity data;
a judging unit 22, configured to judge whether the product processing request is a risk request;
a first sending unit 23, configured to send a detection request to the first blockchain network if the first blockchain network is a risk request, so that the first blockchain network performs risk detection on the first commodity data, where a detection result of the risk detection is stored in the first blockchain network;
a second sending unit 24, configured to send a first service request to a second blockchain network if the detection result is that the first service request passes through the second blockchain network, so that the second blockchain network performs a first process on the first commodity data, where a processing result of the first process is stored in the second blockchain network;
a first feedback unit 25, configured to feed back first information, where the first information is used to indicate that the processing is successful.
Please refer to fig. 6. The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the data processing method based on the block chain is implemented.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the data processing method based on the block chain is implemented.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, the computer program implements the above data processing method based on a block chain.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and should not be used to limit the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (16)

1. A data processing method based on a block chain comprises the following steps:
receiving a commodity processing request, wherein the commodity processing request comprises first commodity data;
judging whether the commodity processing request is a risk request;
if the first commodity data is the risk request, sending a detection request to a first block chain network so that the first block chain network can carry out risk detection on the first commodity data, and storing a detection result of the risk detection in the first block chain network;
if the detection result is that the first commodity data passes the first block chain network, sending a first service request to the second block chain network so that the second block chain network performs first processing on the first commodity data, wherein the processing result of the first processing is stored in the second block chain network;
and feeding back first information, wherein the first information is used for indicating that the processing is successful.
2. The method of claim 1, the determining whether the merchandise handling request is a risk request, comprising:
identifying a type of the merchandise handling request;
and judging whether the commodity processing request is a risk request or not according to the type.
3. The method of claim 1, wherein the item processing request comprises an item listing request, the item listing request is a risk request, and the first item data comprises data of an item to be listed;
the sending a detection request to a first blockchain network comprises:
sending a compliance detection request to first node equipment in the first block chain network, so that the first node equipment calls a compliance detection intelligent contract deployed in the first block chain network to perform compliance detection on first commodity data;
the sending the first service request to the second blockchain network includes:
sending a commodity racking request to second node equipment in a second block chain network so that the second node equipment executes commodity racking operation according to the first commodity data;
the first information is used for indicating successful shelving.
4. The method of claim 1, the merchandise processing request comprising a merchandise evaluation request, the merchandise evaluation request being a risk request, the first merchandise data comprising evaluation data for merchandise;
the sending a detection request to a first blockchain network comprises:
sending a compliance detection request to first node equipment in the first block chain network, so that the first node equipment calls a compliance detection intelligent contract deployed in the first block chain network to perform compliance detection on first commodity data;
the sending the first service request to the second blockchain network includes:
sending a commodity evaluation request to second node equipment in a second block chain network so that the second node equipment executes commodity evaluation operation according to the first commodity data;
the first information is used for indicating the evaluation success.
5. The method of claim 1, the merchandise processing request comprising an merchandise ordering request, the merchandise ordering request being a risk request, the first merchandise data comprising ordering data for merchandise;
the sending a detection request to a first blockchain network comprises:
sending a risk detection request to first node equipment in the first block chain network so that the first node equipment calls a risk detection intelligent contract deployed in the first block chain network to carry out risk detection on first commodity data;
the sending the first service request to the second blockchain network includes:
sending a commodity ordering request to second node equipment in the second block chain network, so that the second node equipment calls an ordering intelligent contract deployed in the second block chain network according to the first commodity data and executes commodity ordering operation;
the first information is used for indicating the ordering success.
6. The method of claim 5, the first information comprising order information;
the method further comprises the following steps:
receiving a payment request, wherein the payment request comprises order information;
and sending a payment request to the second blockchain network to execute payment operation on the order information.
7. The method of claim 1, further comprising:
and if the detection result is that the processing fails, feeding back second information, wherein the second information is used for indicating the processing failure.
8. The method of claim 1, further comprising:
if the first commodity data is not the risk request, sending a second service request to a second block chain network so that the second block chain network performs second processing on the first commodity data;
feeding back third information including a processing result of the second processing.
9. The method of claim 8, the merchandise processing request comprising a merchandise inquiry request, the merchandise inquiry request not being a risk request, the first merchandise data comprising an inquiry condition;
the sending the second service request to the second blockchain network includes:
sending a commodity query request to a second block chain network to obtain second commodity data meeting the query conditions;
the third information includes second commodity data.
10. A blockchain-based data processing apparatus comprising:
a receiving unit, configured to receive a commodity processing request, where the commodity processing request includes first commodity data;
the judging unit is used for judging whether the commodity processing request is a risk request;
the first sending unit is used for sending a detection request to the first block chain network if the first block chain network is a risk request so that the first block chain network can carry out risk detection on the first commodity data, and the detection result of the risk detection is stored in the first block chain network;
a second sending unit, configured to send a first service request to a second blockchain network if the detection result indicates that the first service request passes through the second blockchain network, so that the second blockchain network performs first processing on the first commodity data, where a processing result of the first processing is stored in the second blockchain network;
the first feedback unit is used for feeding back first information, and the first information is used for indicating that the processing is successful.
11. The apparatus according to claim 10, the judging unit comprising:
the identification module is used for identifying the type of the commodity processing request;
and the judging module is used for judging whether the commodity processing request is a risk request according to the type.
12. The apparatus of claim 10, the apparatus further comprising:
and the second feedback unit is used for feeding back second information if the detection result is that the processing fails.
13. The apparatus of claim 10, the apparatus further comprising:
a third sending unit, configured to send a second service request to the second blockchain network if the second service request is not a risk request, so that the second blockchain network performs second processing on the first commodity data;
and the third feedback unit is used for feeding back third information, and the third information comprises a processing result of the second processing.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 9 when executing the computer program.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 9.
16. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 9.
CN202211516099.1A 2022-11-29 2022-11-29 Data processing method and device based on block chain Pending CN115796586A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211516099.1A CN115796586A (en) 2022-11-29 2022-11-29 Data processing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211516099.1A CN115796586A (en) 2022-11-29 2022-11-29 Data processing method and device based on block chain

Publications (1)

Publication Number Publication Date
CN115796586A true CN115796586A (en) 2023-03-14

Family

ID=85443424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211516099.1A Pending CN115796586A (en) 2022-11-29 2022-11-29 Data processing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN115796586A (en)

Similar Documents

Publication Publication Date Title
US20080162202A1 (en) Detecting inappropriate activity by analysis of user interactions
CN108985784A (en) Method and apparatus for storing information
WO2021208762A1 (en) Data storage and query
CN109614540A (en) Commodity retrieval, device, computer equipment and storage medium
US10791038B2 (en) Online cloud-based service processing system, online evaluation method and computer program product thereof
JP6859503B2 (en) Information processing method and device of public information and information disclosure system
WO2023122286A1 (en) Blockchain bridge systems, methods, and storage media for trading non‑fungible token
WO2013164718A1 (en) Electronic pedigree generation
D’souza et al. Blockchain and AI in pharmaceutical supply chain
CN111798293A (en) Cloud storage order processing method and device, computer equipment and storage medium
Fadillah E-Commerce: A New Media that Creates New Disasters
Fonseca Cacho et al. Decentralized marketplace using blockchain, cryptocurrency, and swarm technology
CN107180030B (en) Method and device for generating relational data on network
Mishra et al. Business operation using identification of product in context of developing countries emphasizing Nepal
US20090204516A1 (en) Accounting data retrieval method and system
CA3057925A1 (en) Systems and methods for custodial email management and transaction verification
CN115796586A (en) Data processing method and device based on block chain
US20160275535A1 (en) Centralized system for progressive price management
CN109310916B (en) System and method for resolving conflicts in ordering data products
Devi Parameswari et al. Public distribution system based on blockchain using solidity
US8538813B2 (en) Method and system for providing an SMS-based interactive electronic marketing offer search and distribution system
Arnold et al. Semi-Automatic Identification of Counterfeit Offers in Online Shopping Platforms
US20190258827A1 (en) Authentication servers that authenticate items provided by source computer servers
US20210326902A1 (en) System and method for authentication of a product
US11915286B1 (en) Systems and method for attributing transactions from multiple websites to content producers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination