CN115393006A - Information processing method, device and equipment based on block chain and storage medium - Google Patents
Information processing method, device and equipment based on block chain and storage medium Download PDFInfo
- Publication number
- CN115393006A CN115393006A CN202210946073.4A CN202210946073A CN115393006A CN 115393006 A CN115393006 A CN 115393006A CN 202210946073 A CN202210946073 A CN 202210946073A CN 115393006 A CN115393006 A CN 115393006A
- Authority
- CN
- China
- Prior art keywords
- user
- information
- exchange
- item
- article
- 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
Links
- 230000010365 information processing Effects 0.000 title claims description 68
- 238000003672 processing method Methods 0.000 title claims description 37
- 238000012790 confirmation Methods 0.000 claims abstract description 180
- 238000000034 method Methods 0.000 claims abstract description 102
- 230000004044 response Effects 0.000 claims abstract description 41
- 230000000977 initiatory effect Effects 0.000 claims description 9
- 238000004364 calculation method Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 abstract description 9
- 230000008569 process Effects 0.000 description 49
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 16
- 230000000694 effects Effects 0.000 description 15
- 230000009471 action Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 9
- 230000006872 improvement Effects 0.000 description 9
- 230000000875 corresponding effect Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000010428 oil painting Methods 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0609—Buyer or seller confidence or verification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
One or more embodiments of the present specification provide a method, an apparatus, a device, and a storage medium for processing information based on a block chain, where the method includes: the method comprises the steps of obtaining a first commodity exchange request sent by a first user, wherein the first commodity exchange request is used for requesting to exchange a second commodity of a second user by using the first commodity of the first user, calling an intelligent contract to determine a first value of the first commodity and a second value of the second commodity in response to the first commodity exchange request, calling the intelligent contract to generate first commodity exchange information and second commodity exchange information based on the first value and the second value, sending the first commodity exchange information to the first user, sending the second commodity exchange information to the second user, and executing operation of exchanging the second commodity of the second user by using the first commodity of the first user in a block chain system according to first confirmation operation data of the first commodity exchange information of the first user and second confirmation operation data of the second commodity exchange information of the second user.
Description
Technical Field
The present disclosure relates to the field of block chain technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing information based on a block chain.
Background
Currently, people have a demand for commodity exchange. For example, two item owners negotiate an item exchange between themselves. However, in the prior art, the article owner usually exchanges articles online, and the online exchange of articles not only requires both the article owner to go on the spot, which results in low article exchange efficiency, but also cannot solve the trust problem of article owner in exchanging articles, and cannot ensure that after one party hands the articles to the other party, the other party can return the corresponding articles.
Disclosure of Invention
An object of one or more embodiments of the present specification is to provide an information processing method based on a block chain, including: a first item exchange request sent by a first user and aiming at a second user is obtained. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user. In response to the first item exchange request, a first intelligent contract in the blockchain system is invoked to determine a first value of the first item and a second value of the second item. And calling a second intelligent contract in the block chain system, and generating first commodity exchange information aiming at the first user and second commodity exchange information aiming at the second user based on the first value and the second value. The first item exchange information is sent to the first user. And sending the second article exchange information to the second user. And performing the operation of exchanging the second article of the second user by using the first article of the first user in the blockchain system according to the first confirmation operation data of the first user for the first article exchange information and the second confirmation operation data of the second user for the second article exchange information.
An object of one or more embodiments of the present specification is to provide an information processing method based on a block chain, including: a first item exchange request of a first user for a second user is sent to a block link point. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user. And acquiring first commodity exchange information sent to the first user by the blockchain node based on the first commodity exchange request. The first item exchange information is generated based on a first value of the first item and a second value of the second item. And responding to a first confirmation operation executed by the first user for the first article exchange information, and sending first confirmation operation data to the block link point. The first confirmation operation data is used for causing the blockchain node to execute an operation of exchanging a second item of a second user with a first item of a first user in the blockchain system.
An object of one or more embodiments of the present specification is to provide an information processing method based on a block chain, including: and initiating an article issuing transaction to the block link point. The item release transaction carries user information of the second user and item information of a second item to be exchanged of the second user. The item release transaction is used for uplink storage of the user information of the second user and the item information of the second item. And acquiring second commodity exchange information sent by the block chain link point to the second user based on the first commodity exchange request of the first user. A first item exchange request is sent by a first user to a block link point. The first item exchange request is for requesting an exchange of a second item with a first item of a first user. The second item exchange information is generated based on the first value of the first item and the second value of the second item. And responding to a second confirmation operation executed by a second user for the second article exchange information, and sending second confirmation operation data to the block chain node. The second confirmation operation data is used for causing the blockchain node to execute an operation of exchanging a second item of a second user with a first item of a first user in the blockchain system.
An object of one or more embodiments of the present specification is to provide an information processing apparatus based on a block chain, including: the request acquisition unit acquires a first article exchange request which is sent by a first user and aims at a second user. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user. And the value determining unit is used for responding to the first commodity exchange request, calling a first intelligent contract in the blockchain system and determining a first value of the first commodity and a second value of the second commodity. And the information generating unit is used for calling a second intelligent contract in the block chain system and generating first commodity exchange information aiming at the first user and second commodity exchange information aiming at the second user on the basis of the first value and the second value. And an information sending unit for sending the first commodity exchange information to the first user. And sending the second article exchange information to the second user. And the article exchange unit executes the operation of exchanging the second article of the second user by using the first article of the first user in the block chain system according to the first confirmation operation data of the first user aiming at the first article exchange information and the second confirmation operation data of the second user aiming at the second article exchange information.
An object of one or more embodiments of the present specification is to provide an information processing apparatus based on a block chain, including: and the request sending unit is used for sending a first article exchange request of the first user for the second user to the block chain nodes. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user. And the first information receiving unit is used for acquiring first commodity exchange information sent to the first user by the block chain node based on the first commodity exchange request. The first item exchange information is generated based on a first value of the first item and a second value of the second item. And the first data sending unit is used for responding to a first confirmation operation executed by the first user aiming at the first article exchange information and sending first confirmation operation data to the block link point. The first confirmation operation data is used for causing the blockchain node to execute an operation of exchanging a second item of a second user with a first item of a first user in the blockchain system.
An object of one or more embodiments of the present specification is to provide an information processing apparatus based on a block chain, including: and the transaction issuing unit is used for initiating the article issuing transaction to the block nodes. The item release transaction carries user information of the second user and item information of a second item to be exchanged of the second user. The item release transaction is used for uplink storage of the user information of the second user and the item information of the second item. And the second information receiving unit is used for acquiring second commodity exchange information which is sent to the second user by the block link node based on the first commodity exchange request of the first user. A first item exchange request is sent by a first user to a block link point. The first item exchange request is for requesting an exchange of a second item with a first item of a first user. The second item exchange information is generated based on the first value of the first item and the second value of the second item. And the second data sending unit responds to a second confirmation operation executed by a second user for the second article exchange information and sends second confirmation operation data to the block chain node. The second confirmation operation data is used for causing the blockchain node to execute an operation of exchanging a second item of a second user with a first item of a first user in the blockchain system.
An object of one or more embodiments of the present specification is to provide an information processing apparatus including: a processor; and a memory arranged to store computer executable instructions. The computer executable instructions, when executed by a processor, cause the processor to implement the steps of the information processing method provided by any of the above embodiments.
It is an object of one or more embodiments of the present specification to provide a storage medium for storing computer-executable instructions. The computer executable instructions, when executed by a processor, cause the processor to implement the steps of the information processing method provided by any of the above embodiments.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some of the embodiments described in one or more of the specification, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic view of an application scenario of an information processing method based on a block chain according to an embodiment of the present specification;
fig. 2 is a schematic flowchart of an information processing method based on a block chain according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure;
fig. 4 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure;
fig. 5 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure;
fig. 6 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure;
fig. 7 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure;
fig. 8 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an information processing apparatus based on a block chain according to an embodiment of the present specification;
fig. 10 is a schematic structural diagram of an information processing apparatus based on a block chain according to another embodiment of the present specification;
fig. 11 is a schematic structural diagram of an information processing apparatus based on a block chain according to another embodiment of the present specification;
fig. 12 is a schematic structural diagram of an information processing apparatus based on a block chain according to an implementation of the present specification.
Detailed Description
In order to make the technical solutions in one or more embodiments of the present disclosure better understood, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of one or more embodiments of the present disclosure, but not all embodiments. All other embodiments that can be derived by a person skilled in the art from the embodiments given in one or more of the present specification without inventive step shall fall within the scope of protection of this document.
It should be noted that one or more embodiments and features of the embodiments in the present description may be combined with each other without conflict. Reference will now be made in detail to one or more embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings.
One or more embodiments of the present specification provide an information processing method, an apparatus, a device, and a storage medium based on a blockchain, by which, when exchanging items in a blockchain system, first item exchange information is generated and sent to a first user according to a first value of a first item to be exchanged and a second value of a second item to be exchanged, and second item exchange information is generated and sent to a second user according to the first value of the first item to be exchanged and the second value of the second item to be exchanged, so that the first user and the second user can know the first value and the second value, thereby ensuring fairness and justice in an item exchange process, and performing an item exchange operation in the chain blockchain system not only improves item exchange efficiency, but also enables the item exchange process to be traced back, thereby avoiding a situation where any party does not fulfill an exchange responsibility, and ensuring disclosure and credibility in the item exchange process.
Fig. 1 is a schematic view of an application scenario of an information processing method based on a block chain according to an embodiment of this specification, as shown in fig. 1, the scenario includes: a user terminal of a first user, a user terminal of a second user and a blockchain system. The user terminal of the first user may be a terminal device such as a mobile phone, a tablet computer, a desktop computer, and a portable notebook computer, and the user terminal of the second user may be a terminal device such as a mobile phone, a tablet computer, a desktop computer, and a portable notebook computer. The user terminal of the first user may or may not have a client program installed with the blockchain system, and the client program may be an independent Application program (App), or may be an applet embedded in another Application program. The user terminal of the second user may or may not have a client program of the blockchain system installed therein, and the client program may be an independent Application program (App for short) or an applet embedded in another Application program. The blockchain system includes at least one blockchain node (only 1 shown in fig. 1).
In an embodiment, in the scenario shown in fig. 1, a second user may initiate an article publishing transaction to a blockchain link point through a user terminal, where the article publishing transaction carries user information of the second user and article information of a second article to be exchanged of the second user, and the article publishing transaction is used to upload and store the user information of the second user and the article information of the second article to a blockchain system, and specifically, the user information of the second user and the article information of the second article may be stored in the blockchain system in an associated manner, specifically, the user information of the second user and the article information of the second article may be combined in an associated manner to form an article exchange message, and the article exchange message is stored in the blockchain system, and a state of the article exchange message is set to be publicly visible, so as to achieve an effect of publishing the article exchange message in the blockchain system. The first user can acquire user information of the second user and article information of the second article by scanning bar code information of the second user or triggering an article exchange message issued by the second user on a block chain system, and knows that the second user wants to exchange the second article, and then the first user can send a first article exchange request to a block chain node through a user terminal, wherein the first article exchange request carries the user information of the first user, the user information of the second user, the article information of the first article and the article information of the second article, and the first article exchange request is used for requesting to exchange the second article of the second user by using the first article of the first user.
After receiving a first item exchange request sent by a first user, after checking that a second user really issues item information of a second item to be exchanged in a block chain system, responding to the first item exchange request, calling a first intelligent contract in the block chain system, determining a first value of the first item and a second value of the second item, wherein the first value can be a market transaction price of the first item, the second value can be a market transaction price of the second item, the block chain node also calls a second intelligent contract in the block chain system, generating first item exchange information and second item exchange information for the first user and for the second user based on the first value and the second value, including user information and value notification information of the second user in the first item exchange information for the first user, the value notification information is used for notifying the first value and the second value, including the user information and value information of the first user in the second item exchange information for the second user, the value notification information is used for notifying the first value and the second value notification, and the block chain node also sends the first item exchange information to the second user for confirming the second user, and the block chain node also sends the second item exchange information for confirming to confirm the second user.
The first user can execute a first confirmation operation on the first article exchange information through the user terminal to show that the first value and the second value are known, the user information of the second user is known, and the user terminal of the first user agrees to exchange the second article by using the first article, and the user terminal of the first user sends first confirmation operation data to the block chain link point according to the first confirmation operation of the first user. The second user can execute a second confirmation operation on the second article exchange information through the user terminal to show that the first value and the second value are known and the user information of the first user is known and the user terminal of the second user agrees to exchange the second article by using the first article, and the user terminal of the second user sends second confirmation operation data to the block link point according to the second confirmation operation of the second user.
And the block chain node executes the operation of exchanging the second article of the second user by using the first article of the first user in the block chain system according to the first confirmation operation data of the first user for the first article exchange information and the second confirmation operation data of the second user for the second article exchange information.
As can be seen, in this embodiment, when exchanging articles in the block chain system, according to the first value of the first article to be exchanged and the second value of the second article to be exchanged, first article exchange information is generated and sent to the first user, and according to the first value of the first article to be exchanged and the second value of the second article to be exchanged, second article exchange information is generated and sent to the second user, so that the first user and the second user can know the first value and the second value, thereby ensuring fairness and justice of the article exchange process, and performing the article exchange operation in the block chain system not only improves the article exchange efficiency, but also enables the article exchange process to be traced back, thereby avoiding the situation that any party does not fulfill the exchange responsibility, and ensuring disclosure and credibility of the article exchange process.
In one embodiment, in the scenario shown in fig. 1, the block chain node may further calculate a first exchange resource required to be paid by the first user for exchanging the second item with the first item and a second exchange resource required to be paid by the second user for exchanging the first item with the second item, and invoke a second intelligent contract in the block chain system, generate first exchange resource notification information for notifying the first exchange resource, generate second exchange resource notification information for notifying the second exchange resource, send the first exchange resource notification information to the first user, send the second exchange resource notification information to the second user, and after determining that the first user pays the first exchange resource according to the first exchange resource notification information, the second user pays the second exchange resource according to the second exchange resource notification information, perform an operation of exchanging the second item of the second user with the first item of the first user in the block chain system, thereby ensuring that both the first user and the second user pay reasonable resources for the item exchange process.
Fig. 2 is a flowchart illustrating an embodiment of a block chain-based information processing method, which may be applied to a block chain node in fig. 1 and executed by a block chain node, as shown in fig. 2, where the method includes the following steps:
step S202, a first article exchange request aiming at a second user and sent by a first user is obtained; the first item exchange request is for requesting exchange of a second item of a second user with a first item of a first user;
step S204, responding to the first commodity exchange request, calling a first intelligent contract in the block chain system, and determining a first value of the first commodity and a second value of the second commodity;
step S206, a second intelligent contract in the block chain system is called, and first commodity exchange information aiming at the first user and second commodity exchange information aiming at the second user are generated based on the first value and the second value;
step S208, the first commodity exchange information is sent to the first user, and the second commodity exchange information is sent to the second user;
step S210, performing an operation of exchanging a second item of a second user with a first item of a first user in the blockchain system according to first confirmation operation data of the first user for the first item exchange information and second confirmation operation data of the second user for the second item exchange information.
As can be seen, in this embodiment, when exchanging articles in the blockchain system, according to the first value of the first article to be exchanged and the second value of the second article to be exchanged, first article exchange information is generated and sent to the first user, and according to the first value of the first article to be exchanged and the second value of the second article to be exchanged, second article exchange information is generated and sent to the second user, so that the first user and the second user can know the first value and the second value, thereby ensuring fairness and justice in the article exchange process, and performing article exchange operation in the blockchain system not only improves article exchange efficiency, but also enables the article exchange process to be traced back, thereby avoiding the situation that any party does not fulfill exchange responsibility, and ensuring disclosure and credibility in the article exchange process.
In step S202, the block link node obtains a first article exchange request sent by the first user and addressed to the second user. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user.
Specifically, the user terminal of the first user generates a first item exchange request and sends the first item exchange request to the blockchain node, wherein the first item exchange request is used for requesting to exchange a second item of the second user by using a first item of the first user. The first item exchange request carries user information of the first user, item information of the first item, user information of the second user and item information of the second item. The user information of the first user includes, but is not limited to, the real name, job position, salary income, historical item transaction records and the like of the first user, and the user information of the second user includes, but is not limited to, the real name, job position, salary income, historical item transaction records and the like of the second user. The item information of the first item includes, but is not limited to, an item name, an item source, an item description, and the like, and the item information of the second item includes, but is not limited to, an item name, an item source, an item description, and the like. Both the first article and the second article may be digital collections. The digital collection refers to NFT-based digital artwork, NFT (Non-variant Token), refers to Non-homogeneous on-chain assets with value attributes that are distributed based on the blockchain.
In an embodiment, the obtaining of the first item exchange request, which is sent by the first user and is addressed to the second user, specifically includes:
(a1) Acquiring a first article exchange request aiming at a second user, which is sent by a first user in a mode of scanning bar code information of the second user; the bar code information of the second user carries the user information of the second user and the article information of the second article;
or,
(a2) The method comprises the steps of obtaining a first commodity exchange request which is sent by a first user in a mode of triggering a commodity exchange message issued by a second user on a blockchain system and aims at the second user, wherein the commodity exchange message carries user information of the second user and commodity information of a second commodity.
Under the condition shown in the action (a 1), the second user may initiate an article release transaction to the blockchain node through the user terminal, the article release transaction carries user information of the second user and article information of a second article of the second user, the article release transaction is used for uploading the user information of the second user and the article information of the second article to the blockchain system and storing the user information of the second user and the article information of the second article, based on which, the blockchain node responds to the article release transaction, combines the user information of the second user and the article information of the second article in an associated manner to form an article exchange message, stores the article exchange message in the blockchain system, and sets a state of the article exchange message to be publicly visible, so as to achieve an effect of releasing the article exchange message in the blockchain system. After the block chain node stores the article exchange message in the block chain system, bar code information such as a two-dimensional code is further generated for a second user and sent to a user terminal of the second user, the bar code information carries user information of the second user and article information of a second article, the second user can provide the bar code information for the first user, based on the bar code information, the first user scans the bar code information of the second user through the user terminal to obtain the user information of the second user and the article information of the second article, the first user further inputs the user information of the first user and the article information of the first article to the user terminal, therefore, the user terminal of the first user obtains the user information of the first user, the user information of the second user, the article information of the first article and the article information of the second article, a first article exchange request aiming at the second user is generated according to the user information of the first user, the user information of the second user, the article information of the first article and the article information of the second article, and sent to the block chain node.
In the above process, after the blockchain link point stores the commodity exchange message in the blockchain system and sets the state of the commodity exchange message to be publicly visible, any user in the blockchain system can browse the commodity exchange message through the user terminal, so that the first user can also browse the commodity exchange message through the user terminal. In a more specific scheme, the blockchain system may be specifically an article exchange platform, and when the blockchain node stores the article exchange message in the blockchain system and sets the state of the article exchange message to be publicly visible, it is equivalent to that the article exchange message is issued in the article exchange platform, and then any user in the article exchange platform may browse the article exchange message through the user terminal, so that the first user may also browse the article exchange message through the user terminal.
In the process, after scanning bar code information of a second user through any bar code scanner in the user terminal, the first user can automatically jump to a page of a block chain system, namely an article exchange platform, the user terminal obtains user information of the second user and article information of a second article based on code scanning operation and displays the user information and the article information in the page of the article exchange platform, and the user terminal also displays an input frame of the user information of the first user and an input frame of the article information of the first article in the page of the article exchange platform, so that the first user can conveniently input the user information of the first user and the article information of the first article.
Thus, in the case shown in the above action (a 1), the first user can send the first item exchange request to the block link point by scanning the barcode information of the second user.
According to the introduction of the action (a 1), the blockchain link point may combine the user information of the second user and the item information of the second item in association with each other to form an item exchange message, store the item exchange message in the blockchain system, and set the state of the item exchange message to be publicly visible, so as to achieve the effect of issuing the item exchange message in the blockchain system, and thus the first user may browse the item exchange message through the user terminal. Based on this, in the process of the above action (a 2), the first user may further trigger the commodity exchange message through the user terminal to obtain the user information of the second user and the commodity information of the second commodity, after triggering the commodity exchange message, the user terminal of the first user may jump to a specific page, in which the user information of the second user and the commodity information of the second commodity are displayed, and an input frame of the user information of the first user and an input frame of the commodity information of the first commodity are also displayed in the page, so that the first user inputs the user information of the first user and the commodity information of the first commodity, and thus, the user terminal of the first user obtains the user information of the first user, the user information of the second user, the commodity information of the first commodity and the commodity information of the second commodity, and generates a first commodity exchange request for the second user according to the user information of the first user, the user information of the second user, the commodity information of the first commodity and the commodity information of the second commodity, and sends the commodity information of the second commodity to the block chain node.
Thus, with the scenario illustrated by action (a 2) above, the first user may send a first item exchange request to the blockchain node by triggering an item exchange message issued by the second user at the blockchain system.
It should be emphasized here that, after the block chain node stores the commodity-exchange message in the block chain system, if the commodity-exchange message is set to be in the publicly visible state, the effect of publishing the commodity-exchange message in the block chain system can be achieved, so that each user in the block chain system can browse the commodity-exchange message, and after the commodity-exchange message is stored in the block chain system, if the commodity-exchange message is set to be in the non-publicly visible state, the commodity-exchange message can only be stored on the chain, and is not visible to anyone, and each user in the block chain system cannot browse the commodity-exchange message.
In step S204, the block chain node invokes a first intelligent contract in the block chain system to determine a first value of the first item and a second value of the second item in response to the first item exchange request. The first value of the first item may be a market trading price of the first item, and the second value of the second item may be a market trading price of the second item. In one implementation, the blockchain link point may invoke a first intelligent contract pre-deployed in the blockchain system, queried from a database for a first value of the first item and a second value of the second item.
In one implementation, a blockchain node may invoke a first intelligent contract pre-deployed in the blockchain system to obtain an item value of a first target item that belongs to the same type of item as the first item, and evaluate the first value of the first item based on the item value of the first target item, and the blockchain node may invoke the first intelligent contract pre-deployed in the blockchain system to obtain an item value of a second target item that belongs to the same type of item as the second item, and evaluate the second value of the second item based on the item value of the second target item.
In one embodiment, the blockchain link point is further capable of performing, prior to invoking the first intelligent contract in the blockchain system to determine the first value of the first item and the second value of the second item in response to the first item exchange request: and acquiring a second article exchange request which is sent by a second user and aims at the first user, wherein the second article exchange request is used for requesting to exchange the first article of the first user by using the second article of the second user. Correspondingly, responding to the first item exchange request, calling a first intelligent contract in the blockchain system, and determining a first value of the first item and a second value of the second item, specifically: in response to the first commodity-exchange request and the second commodity-exchange request, after determining that the first commodity-exchange request matches the second commodity-exchange request, invoking a first intelligent contract in the blockchain system to determine a first value of the first commodity and a second value of the second commodity.
Specifically, before invoking a first intelligent contract in the blockchain system to determine a first value of a first item and a second value of a second item in response to a first item exchange request, the blockchain link point may further receive a second item exchange request for the first user sent by a second user through the user terminal, the second item exchange request including user information of the first user, user information of the second user, item information of the first item, and item information of the second item, the second item exchange request being for requesting to exchange the first item of the first user with the second item of the second user.
The second user may send a second commodity exchange request to the block chain node by: after the user terminal of the second user issues the article exchange message in the block chain system, the user information of the first user and the article information of the first article are obtained, a second article exchange request aiming at the first user is generated according to the user information of the first user, the user information of the second user, the article information of the first article and the article information of the second article, and the second article exchange request is sent to the block chain node.
After receiving the first commodity exchange request and the second commodity exchange request, the blockchain node compares the first commodity exchange request with the second commodity exchange request, and after determining that the first commodity exchange request is matched with the second commodity exchange request, calls a first intelligent contract in the blockchain system to determine a first value of the first commodity and a second value of the second commodity. The matching of the first article exchange request and the second article exchange request means that the user information of the first user in the first article exchange request and the user information of the first user in the second article exchange request both point to the first user, the user information of the second user in the first article exchange request and the user information of the second user in the second article exchange request both point to the second user, the article information of the first article in the first article exchange request and the article information of the first article in the second article exchange request both point to the first article, and the article information of the second article in the first article exchange request and the article information of the second article in the second article exchange request both point to the second article.
Since the first swap request matches the second swap request, it can be determined that both the first user and the second user have requests to swap items, and therefore the blockchain node invokes a first intelligent contract in the blockchain system to determine a first value of the first item and a second value of the second item.
It can be seen that, with the embodiment, after receiving the first item exchange request and the second item exchange request and determining that the first item exchange request and the second item exchange request match with each other, subsequent actions are performed, so that it can be ensured that both the first user and the second user want to exchange items. Under the condition that a hacker unilaterally and maliciously initiates a large number of article exchange requests to attack the blockchain system, due to the lack of article exchange requests matched with the article exchange requests initiated by the hacker, the hacker can not respond to the behavior of the hacker through the above procedures, and the operation safety of the blockchain system is ensured.
On the other hand, in the above process, the second item exchange request sent by the second user is not acquired, and the first intelligent contract in the blockchain system is directly invoked according to the first item exchange request to determine the first value of the first item and the second value of the second item.
Fig. 3 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure, where the method may be applied to a block chain node in fig. 1, and is executed by the block chain node, as shown in fig. 3, where the method includes the following steps:
step S302, a first article exchange request which is sent by a first user and aims at a second user is obtained; the first item exchange request is for requesting exchange of a second item of a second user with a first item of a first user;
step S304, a second article exchange request which is sent by a second user and aims at a first user is obtained; the second article exchange request is used for requesting to exchange the first article of the first user by using the second article of the second user;
step S306, responding to the first commodity exchange request and the second commodity exchange request, after the first commodity exchange request is matched with the second commodity exchange request, calling a first intelligent contract in the blockchain system, and determining a first value of the first commodity and a second value of the second commodity;
step S308, calling a second intelligent contract in the block chain system, and generating first commodity exchange information aiming at the first user and second commodity exchange information aiming at the second user on the basis of the first value and the second value;
step S310, sending the first commodity exchange information to a first user and sending the second commodity exchange information to a second user;
step S312, according to the first confirmation operation data of the first user for the first commodity exchange information and the second confirmation operation data of the second user for the second commodity exchange information, performing an operation of exchanging the second commodity of the second user with the first commodity of the first user in the blockchain system.
The specific processes of step S304 and step S306 in fig. 3 may refer to the above description, and are not repeated here. The same actions or steps in fig. 3 as in fig. 2 can be referred to the detailed description of fig. 2, and are not repeated here.
In one embodiment, in the process illustrated in fig. 2 and 3, a first intelligent contract in the blockchain system is invoked to determine a first value of a first item, which may be: and calling a first intelligent contract in the block chain system, and inquiring a database to obtain a first value of the first item, or calling the first intelligent contract in the block chain system, obtaining an item value of a first target item belonging to the same kind of item as the first item, and determining the first value of the first item according to the item value of the first target item.
Specifically, a first intelligent contract in the blockchain system may be called, a first value of the first item may be obtained by querying the database, and if the first value of the first item is not stored in the database, the first intelligent contract in the blockchain system may be called, an item value of a first target item belonging to the same kind of item as the first item may be obtained, and the first value of the first item may be determined according to the item value of the first target item. When the number of the first target items is one, the item value of the first target item may be used as the item value of the first item, and when the number of the first target items is plural, the average value of the item values of the respective first target items may be used as the item value of the first item.
The first target item belonging to the same kind of item as the first item may be the same item as the item class to which the first item belongs, and the item class may be determined according to at least one factor such as an author of the item and a style of the item. For example, the first object and the first target object belong to paintings of the same author, or both the first object and the first target object belong to oil paintings.
In one embodiment, in the processes shown in fig. 2 and fig. 3, the first intelligent contract in the blockchain system is invoked to determine the second value of the second item, which may be: and calling a first intelligent contract in the blockchain system, and inquiring the database to obtain a second value of the second item, or calling the first intelligent contract in the blockchain system, obtaining the item value of a second target item belonging to the same kind of item as the second item, and determining the second value of the second item according to the item value of the second target item.
Specifically, a first intelligent contract in the blockchain system may be called, a second value of the second item is obtained by querying the database, if the second value of the second item is not stored in the database, the first intelligent contract in the blockchain system may be called, an item value of a second target item belonging to the same kind as the second item is obtained, and the second value of the second item is determined according to the item value of the second target item. When the number of the second target items is one, the item value of the second target item may be used as the item value of the second item, and when the number of the second target items is multiple, the average value of the item values of the respective second target items may be used as the item value of the second item.
The second target item belonging to the same kind of item as the second item may be the same item as the item class to which the second item belongs, and the item class may be determined according to at least one factor, such as an author of the item and a style of the item. For example, the second object and the second target object belong to a dance video of the same dance team, or the first object and the first target object both belong to a drama video.
In fig. 2, in the step S206, a second intelligent contract in the blockchain system is called, and first commodity exchange information for the first user and second commodity exchange information for the second user are generated based on the first value and the second value. In one embodiment, step S206 specifically includes:
(b1) Calling a second intelligent contract in the blockchain system to generate value notification information for notifying the first value and the second value;
(b2) And calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the value notification information and the user information of the second user, and generating second commodity exchange information aiming at the second user based on the value notification information and the user information of the first user.
Specifically, first, a second intelligent contract in the blockchain system is called, and value notification information for notifying the first value and the second value is generated according to the first value and the second value, wherein the value notification information includes the first value and the second value. And then, calling a second intelligent contract in the block chain system, combining the value notification information and the user information of the second user to obtain first commodity exchange information for the first user, and combining the value notification information and the user information of the first user to obtain second commodity exchange information for the second user.
Therefore, through the first article exchange information, the first user can know the first value of the first article, the second value of the second article and the user information of the second user, so that the first user is assisted to fully know the values of the first article and the second article and the condition of the second user by using the first article exchange information, sufficient article exchange related information is provided for the first user under the principle that article exchange is guaranteed to be public and fair, and the first user is helped to judge whether to exchange articles.
Similarly, the second user can know the first value of the first article, the second value of the second article and the user information of the first user through the second article exchange information, so that the second user is assisted to fully know the values of the first article and the second article and the condition of the first user through the second article exchange information, and under the principle of guaranteeing open and fair article exchange, the second user is helped to judge whether to exchange articles or not.
Of course, in other embodiments, the first item exchange information for the first user may include only value notification information, and the second item exchange information for the second user may include only value notification information. That is, when the second intelligent contract in the blockchain system is invoked to generate the first commodity exchange information for the first user and the second commodity exchange information for the second user based on the first value and the second value, the second intelligent contract in the blockchain system is invoked to generate the value notification information for notifying the first value and the second value; and calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the value notification information, and generating second commodity exchange information aiming at the second user based on the value notification information.
In one embodiment, considering that the blockchain system requires a corresponding effort to perform the commodity exchange operation, and therefore when the first user and the second user exchange commodities, the corresponding resources need to be paid for the blockchain system, in one embodiment, before invoking the second intelligent contract in the blockchain system and generating the first commodity exchange information for the first user and the second commodity exchange information for the second user based on the first value and the second value, the blockchain node may further perform: and calling a third intelligent contract in the block chain system, and calculating a first exchange resource required to be paid by the first user for exchanging the second item by using the first item and a second exchange resource required to be paid by the second user for exchanging the first item by using the second item.
Correspondingly, a second intelligent contract in the block chain system is called, and first commodity exchange information for the first user and second commodity exchange information for the second user are generated based on the first value and the second value, specifically: and calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the first value, the second value and the first exchange resource, and generating second commodity exchange information aiming at the second user based on the first value, the second value and the second exchange resource.
In one embodiment, the third intelligent contract in the blockchain system is invoked to calculate a first exchange resource that needs to be paid by the first user for exchanging the second item with the first item and a second exchange resource that needs to be paid by the second user for exchanging the first item with the second item, specifically: and calling a third intelligent contract in the blockchain system, and determining a first exchange resource required to be paid by the first user for exchanging the second item by using the first item and a second exchange resource required to be paid by the second user for exchanging the first item by using the second item according to the current calculation power of the blockchain system.
The first exchange resource and the second exchange resource may be money, and the amounts of the resources of the first exchange resource and the second exchange resource may be the same or different. When the first exchange resource is determined according to the current computing power, the first exchange resource can be calculated according to the current computing power through a preset formula, and when the second exchange resource is determined according to the current computing power, the second exchange resource can be calculated according to the current computing power through the preset formula. Of course, a corresponding relationship between the default first exchange resource and the calculation power may be preconfigured, a corresponding relationship between the default second exchange resource and the calculation power may be preconfigured, and according to the two corresponding relationships, the first exchange resource that the first user needs to pay by exchanging the first item with the first item and the second exchange resource that the second user needs to pay by exchanging the second item with the first item are obtained by searching. The current computation power of the blockchain system can be represented by the computation speed of the blockchain system.
Based on this, in one embodiment, a second intelligent contract in the blockchain system is invoked, first commodity exchange information for the first user is generated based on the first value, the second value and the first exchange resource, and second commodity exchange information for the second user is generated based on the first value, the second value and the second exchange resource, specifically:
(c1) Calling a second intelligent contract in the blockchain system to generate value notification information for notifying the first value and the second value;
(c2) Calling a second intelligent contract in the block chain system, generating first exchange resource notification information for notifying the first exchange resource, and generating second exchange resource notification information for notifying the second exchange resource;
(c3) And calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the value notification information, the first exchange resource notification information and the user information of the second user, and generating second commodity exchange information aiming at the second user based on the value notification information, the second exchange resource notification information and the user information of the first user.
Specifically, first, a second intelligent contract in the blockchain system is called, and value notification information for notifying the first value and the second value is generated according to the first value and the second value, wherein the value notification information includes the first value and the second value. Then, a second intelligent contract in the blockchain system is called to generate first exchange resource notification information used for notifying the first exchange resource, wherein the first exchange resource notification information comprises the resource amount of the first exchange resource, and a second intelligent contract in the blockchain system is called to generate second exchange resource notification information used for notifying the second exchange resource, and the second exchange resource notification information comprises the resource amount of the second exchange resource. And finally, calling a second intelligent contract in the block chain system, combining the value notification information, the first exchange resource notification information and the user information of the second user to obtain first commodity exchange information for the first user, and combining the value notification information, the second exchange resource notification information and the user information of the first user to obtain second commodity exchange information for the second user.
Therefore, through the first article exchange information, the first user can know the first value of the first article, the second value of the second article, the resource amount of the first exchange resource required to be paid during article exchange and the user information of the second user, so that the first user is assisted to fully know the values of the first article and the second article, the article exchange cost required to be paid and the condition of the second user by using the first article exchange information, sufficient article exchange related information is provided for the first user under the principle of guaranteeing the article exchange to be public and fair, and the first user is assisted to judge whether to exchange articles.
Similarly, the second user can know the first value of the first article, the second value of the second article, the resource amount of the second exchange resource required to be paid during article exchange and the user information of the first user through the second article exchange information, so that the second user is assisted to fully know the values of the first article and the second article, the article exchange cost required to be paid and the condition of the first user through the second article exchange information, sufficient article exchange related information is provided for the second user on the basis of ensuring article exchange openness, and the second user is assisted to judge whether to exchange articles or not.
Of course, in other embodiments, the first item exchange information for the first user may include only the value notification information and the first exchange resource notification information, and the second item exchange information for the second user may include only the value notification information and the second exchange resource notification information. That is, when a second intelligent contract in the blockchain system is invoked to generate first commodity exchange information for a first user based on a first value, a second value and a first exchange resource, the second intelligent contract in the blockchain system is invoked to generate value notification information for notifying the first value and the second value and first exchange resource notification information for notifying the first exchange resource, and when second commodity exchange information for a second user is generated based on the first value, the second value and the second exchange resource, the first commodity exchange information for the first user is generated, and accordingly, when the second intelligent contract in the blockchain system is invoked to generate second commodity exchange information for the second user based on the first value, the second value and the second exchange resource, the second intelligent contract in the blockchain system is invoked to generate value notification information for notifying the first value and the second value and second exchange resource notification information for notifying the second exchange resource, and second commodity exchange information for the second user is generated based on the value notification information and the second exchange resource notification information.
Fig. 4 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure, where the method may be applied to a block chain node in fig. 1, and is executed by the block chain node, as shown in fig. 4, where the method includes the following steps:
step S402, a first article exchange request which is sent by a first user and aims at a second user is obtained; the first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user;
step S404, a second article exchange request aiming at the first user and sent by the second user is obtained; the second article exchange request is used for requesting to exchange the first article of the first user by using the second article of the second user;
step S406, responding to the first commodity exchange request and the second commodity exchange request, and after the first commodity exchange request is matched with the second commodity exchange request, calling a first intelligent contract in the blockchain system to determine a first value of the first commodity and a second value of the second commodity;
step S408, a third intelligent contract in the block chain system is called, and a first exchange resource required to be paid by the first user for exchanging the second article by using the first article and a second exchange resource required to be paid by the second user for exchanging the first article by using the second article are calculated;
step S410, calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at a first user based on the first value, the second value and the first exchange resource, and generating second commodity exchange information aiming at a second user based on the first value, the second value and the second exchange resource;
step S412, the first commodity exchange information is sent to the first user, and the second commodity exchange information is sent to the second user;
step S414, performing an operation of exchanging the second item of the second user with the first item of the first user in the blockchain system according to the first confirmation operation data of the first user for the first item exchange information and the second confirmation operation data of the second user for the second item exchange information.
The specific processes of step S408 and step S410 in fig. 4 can refer to the above description, and are not repeated here. The same actions or steps in fig. 4 as those in fig. 2 or fig. 3 can refer to the detailed description of fig. 2 or fig. 3, and are not repeated here.
In fig. 2, in step S208, the first commodity-exchange information is transmitted to the user terminal of the first user, and the second commodity-exchange information is transmitted to the user terminal of the second user. The first user can confirm the first article exchange information through the user terminal, indicate that the first value of the first article, the second value of the second article, the first exchange resource required to be paid and the second user are known, and agree to exchange articles. The second user can confirm the second article exchange information through the user terminal, show that the first value of the first article, the second value of the second article, the second exchange resource required to be paid and the condition of the first user are known, and show that the article exchange is approved.
During specific implementation, a user terminal of a first user provides a confirmation control while displaying first article exchange information, the first user indicates that article exchange is required to be performed by triggering the confirmation control, the user terminal provides a payment control for the first user according to confirmation operation of the first user, the first user pays a first exchange resource through the control, after payment is successful, the user terminal generates first confirmation operation data according to confirmation operation of the first user on the first article exchange information, the payment success data of the user is carried in the first confirmation operation data, and the first confirmation operation data is sent to a block chain node.
Similarly, the user terminal of the second user provides a confirmation control while displaying the second article exchange information, the second user indicates that article exchange is to be performed by triggering the confirmation control, the user terminal provides a payment control to the second user according to confirmation operation of the second user, the second user pays the second exchange resource through the control, after payment is successful, the user terminal generates second confirmation operation data according to confirmation operation of the second user on the second article exchange information, the payment success data of the user is carried in the second confirmation operation data, and the second confirmation operation data is sent to the block chain node.
In the above process, if the user terminal determines that the first user does not confirm the first article exchange information, or does not pay the first exchange resource successfully after confirmation, the user terminal generates first refusal operation data and sends the first refusal operation data to the blockchain node to notify the blockchain node that the first user refuses article exchange. Similarly, if the second user does not confirm the second article exchange information, or the second exchange resource is not paid successfully after confirmation, the user terminal generates second refusal operation data and sends the second refusal operation data to the block chain node so as to inform the block chain node that the second user refuses article exchange.
Based on this, in step S210, the blockchain link point executes, in the blockchain system, an operation of exchanging the second item of the second user with the first item of the first user according to the first confirmation operation data of the first user for the first item exchange information and the second confirmation operation data of the second user for the second item exchange information, specifically:
and after determining that the first user pays for the first exchange resource according to the first confirmation operation data of the first user for the first commodity exchange information and determining that the second user pays for the second exchange resource according to the second confirmation operation data of the second user for the second commodity exchange information, performing operation of exchanging the second commodity of the second user with the first commodity of the first user in the block chain system.
Specifically, as can be seen from the foregoing description, after the first user confirms the first article exchange information and pays for the first exchange resource, the user terminal generates first confirmation operation data according to the confirmation operation performed by the first user on the first article exchange information, and carries the payment success data of the user in the first confirmation operation data. And after the second user confirms the second article exchange information and pays the second exchange resource, the user terminal generates second confirmation operation data according to the confirmation operation executed by the second user on the second article exchange information, and carries the payment success data of the user in the second confirmation operation data.
Based on this, the blockchain node may determine that the first user pays the first exchange resource according to the first confirmation operation data of the first user for the first commodity exchange information, and determine that the second user pays the second exchange resource according to the second confirmation operation data of the second user for the second commodity exchange information, and then perform an operation of exchanging the second commodity of the second user with the first commodity of the first user in the blockchain system. And when the blockchain node retrieves the payment success data from the second confirmation operation data, determining that the second user pays the second exchange resource.
In this embodiment, at the user terminal, taking the first user as an example, after the first user confirms the first article exchange information and pays for the first exchange resource, the user terminal generates first confirmation operation data according to a confirmation operation performed by the first user on the first article exchange information, and carries the payment success data of the user in the first confirmation operation data. If the user terminal determines that the first user does not confirm the first commodity exchange information or does not pay the first exchange resource successfully after confirmation, the user terminal generates first refusing operation data and sends the first refusing operation data to the block chain node so as to inform the block chain node that the first user refuses commodity exchange. And on the side of the block link point, if the block link point receives the first confirmation operation data and retrieves successful payment data in the first confirmation operation data, determining that the first user pays the first exchange resource, and if the block link point receives the first refusal operation data, determining that the first user refuses the commodity exchange. By means of the mode that whether the first user pays successfully is verified on the user terminal side and the block chain side, article exchange can be guaranteed only after the first user pays successfully through a double verification mode, and reliability of article exchange is guaranteed.
Of course, in other embodiments, the first exchange resource and the second exchange resource may not be calculated, the first user only needs to confirm the first article exchange information, the user terminal of the first user generates the first confirmation operation data and sends the first confirmation operation data to the block chain node, the second user only needs to confirm the second article exchange information, the user terminal of the second user generates the second confirmation operation data and sends the second confirmation operation data to the block chain node, and the block chain node may directly perform article handover without analyzing whether the first user and the second user pay the first exchange resource and the second exchange resource according to the first confirmation operation data and the second confirmation operation data.
In the above embodiment, the blockchain node performs an operation of exchanging the second item of the second user with the first item of the first user in the blockchain system, specifically:
(d1) The blockchain node initiates a first transaction in the blockchain system, wherein the first transaction is used for updating the owner of the first item from the first user to a second user;
(d2) The blockchain node initiates a second transaction in the blockchain system, the second transaction being used to update the owner of the second item from the second user to the first user.
Updating the owner of the first item from the first user to the second user may invoke a fourth smart contract implementation. Updating the owner of the second item from the second user to the first user may invoke a fifth smart contract implementation.
In particular, the first and second items may be digital collections such as video, audio, pictures, and the like. The block chain node updates the owner of an article from the first user to the second user and updates the owner of the second article from the second user to the first user, so that the exchange of the first article and the second article is realized by modifying the owner of the article, and the exchange implementation mode is simple and convenient. The first transaction and the second transaction also need to be processed by common identification of each blockchain node in the blockchain system.
Further, the block link node may further send the exchange success notification message, the access link of the second item, and the access key to the first user after the item exchange, and send the exchange success notification message, the access link of the first item, and the access key to the second user, where the first user may access the second item by using the identity and the access key of the owner of the second item, and the second user may access the first item by using the identity and the access key of the owner of the first item.
Based on the above-introduced specific functions of the ue of the first user, fig. 5 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure, where the method may be applied to the ue of the first user and executed by the ue of the first user, as shown in fig. 5, and the method includes the following steps:
step S502, a first article exchange request of a first user aiming at a second user is sent to a block chain node; the first item exchange request is for requesting exchange of a second item of a second user with a first item of a first user;
step S504, acquiring first commodity exchange information sent by the block chain node to the first user based on the first commodity exchange request; the first commodity exchange information is generated based on a first value of the first commodity and a second value of the second commodity;
step S506, in response to a first confirmation operation performed by the first user with respect to the first article exchange information, sending first confirmation operation data to the blockchain node, where the first confirmation operation data is used for causing the blockchain node to perform an operation of exchanging a second article of the second user with the first article of the first user in the blockchain system.
As can be seen, in this embodiment, when exchanging articles in the blockchain system, according to the first value of the first article to be exchanged and the second value of the second article to be exchanged, the first article exchange information is generated and sent to the first user, so that the first user can know the first value and the second value, thereby ensuring fairness and justice in the article exchange process, and performing the article exchange operation in the blockchain system not only improves the article exchange efficiency, but also enables the article exchange process to be traced back, thereby avoiding a situation that any party does not fulfill the exchange responsibility, and ensuring public credibility in the article exchange process.
In an embodiment, in step S502, the sending a first item exchange request of the first user for the second user to the block link point specifically includes:
responding to the scanning operation of the first user for the bar code information of the second user, acquiring the user information of the second user and the article information of the second article from the bar code information, and acquiring the user information of the first user and the article information of the first article;
and generating a first article exchange request according to the user information of the first user, the article information of the first article, the user information of the second user and the article information of the second article, and sending the first article exchange request to the block chain node.
The first item exchange request includes user information of the first user, item information of the first item, user information of the second user, and item information of the second item. Specifically, a second user can initiate an article release transaction to the blockchain node through the user terminal, the article release transaction carries user information of the second user and article information of a second article of the second user, the article release transaction is used for uploading the user information of the second user and the article information of the second article to the blockchain system and storing the user information and the article information of the second article, based on the fact, the blockchain node responds to the article release transaction, combines the user information of the second user and the article information of the second article in a mutual correlation mode to form an article exchange message, stores the article exchange message in the blockchain system, and sets the state of the article exchange message to be publicly visible, so that the effect of releasing the article exchange message in the blockchain system is achieved. After the block chain node stores the article exchange message in the block chain system, bar code information such as a two-dimensional code is further generated for a second user and sent to a user terminal of the second user, the bar code information carries user information of the second user and article information of a second article, the second user can provide the bar code information for the first user, based on the bar code information, the first user scans the bar code information of the second user through the user terminal to obtain the user information of the second user and the article information of the second article, the first user further inputs the user information of the first user and the article information of the first article to the user terminal, therefore, the user terminal of the first user obtains the user information of the first user, the user information of the second user, the article information of the first article and the article information of the second article, a first article exchange request aiming at the second user is generated according to the user information of the first user, the user information of the second user, the article information of the first article and the article information of the second article, and sent to the block chain node.
In the above process, after the blockchain link point stores the commodity exchange message in the blockchain system and sets the state of the commodity exchange message to be publicly visible, any user in the blockchain system can browse the commodity exchange message through the user terminal, so that the first user can also browse the commodity exchange message through the user terminal. In a more specific scheme, the blockchain system may be specifically an article exchange platform, and when the blockchain node stores the article exchange message in the blockchain system and sets the state of the article exchange message to be publicly visible, it is equivalent to that the article exchange message is issued in the article exchange platform, and then any user in the article exchange platform may browse the article exchange message through the user terminal, so that the first user may also browse the article exchange message through the user terminal.
In the process, after scanning the bar code information of the second user through any bar code scanner in the user terminal, the first user can automatically jump to a page of a block chain system, namely an article exchange platform, the user terminal obtains the user information of the second user and the article information of the second article based on the code scanning operation and displays the user information and the article information of the second article in the page of the article exchange platform, and the user terminal also displays an input frame of the user information of the first user and an input frame of the article information of the first article in the page of the article exchange platform, so that the first user can conveniently input the user information of the first user and the article information of the first article.
In this embodiment, the first user may send the first article exchange request to the block link point by scanning the barcode information of the second user.
In another embodiment, in step S502, the sending a first item exchange request of the first user for the second user to the block link point specifically includes:
in response to a triggering operation of a first user on an article exchange message issued by a second user in a blockchain system, acquiring user information of the second user and article information of a second article from the article exchange message, and acquiring user information of the first user and article information of a first article;
and generating a first article exchange request according to the user information of the first user, the article information of the first article, the user information of the second user and the article information of the second article, and sending the first article exchange request to the block chain node.
As can be seen from the foregoing, the block chain link point may combine the user information of the second user and the article information of the second article in a correlated manner to form an article exchange message, store the article exchange message in the block chain system, and set the state of the article exchange message to be publicly visible, so as to achieve the effect of issuing the article exchange message in the block chain system, and thus the first user may browse the article exchange message through the user terminal. Based on this, the first user may further trigger the commodity exchange message through the user terminal to obtain the user information of the second user and the commodity information of the second commodity, after the commodity exchange message is triggered, the user terminal of the first user may jump to a specific page, in which the user information of the second user and the commodity information of the second commodity are displayed, and an input frame of the user information of the first user and an input frame of the commodity information of the first commodity are also displayed in the page, so that the first user can input the user information of the first user and the commodity information of the first commodity, and thus, the user terminal of the first user obtains the user information of the first user, the user information of the second user, the commodity information of the first commodity and the commodity information of the second commodity, and generates a first commodity exchange request for the second user according to the user information of the first user, the user information of the second user, the commodity information of the first commodity and the commodity information of the second commodity, and sends the first commodity exchange request to the block chain node.
In this embodiment, the first user may send the first item exchange request to the blockchain node by triggering an item exchange message issued by the second user in the blockchain system.
In step S504, the user terminal of the first user obtains the first article exchange information sent by the block link node to the first user based on the first article exchange request. The first item exchange information is generated based on a first value of the first item and a second value of the second item. The specific process of this step can refer to the description above for fig. 2, and is not repeated here.
As can be appreciated from the foregoing description with respect to fig. 2, in one embodiment, the first item exchange information includes value notification information, first exchange resource notification information, and user information of the second user; the value notification information is used for notifying the first value and the second value; the first exchange resource notification information is used for notifying a first exchange resource required to be paid by exchanging the second article by using the first article; based on this, in step S506, in response to the first confirmation operation performed by the first user for the first article exchange information, the first confirmation operation data is sent to the block link point, specifically: in response to a first confirmation operation performed by the first user for the first item exchange information, after determining that the first user pays for the first exchange resource, generating first confirmation operation data and sending the first confirmation operation data to the blockchain node.
Specifically, a user terminal of a first user provides a confirmation control while displaying first article exchange information, the first user indicates that article exchange is to be performed through triggering the confirmation control, the user terminal provides a payment control for the first user according to confirmation operation of the first user, the first user pays a first exchange resource through the control, after payment is successful, the user terminal generates first confirmation operation data according to confirmation operation of the first user on the first article exchange information, the payment success data of the user is carried in the first confirmation operation data, and the first confirmation operation data is sent to a block chain node.
Therefore, in the embodiment, after the first user payment is determined to be successful, the first confirmation operation data can be generated and sent to the block chain node on the user terminal side, so that article exchange is guaranteed after the payment is successful, and high reliability of article exchange is guaranteed.
In fig. 5, the specific process of steps S502 to S506 may also refer to the description of the flow in fig. 2 to 4, and will not be repeated here.
Based on the above-described specific functions of the ue of the second user, fig. 6 is a flowchart illustrating an information processing method based on a block chain according to another embodiment of the present disclosure, where the method may be applied to the ue of the second user and executed by the ue of the second user, as shown in fig. 6, and the method includes the following steps:
step S602, initiating an article release transaction to a block link node; the article release transaction carries user information of a second user and article information of a second article to be exchanged of the second user; the item release transaction is used for uplink storage of the user information of the second user and the item information of the second item;
step S604, second commodity exchange information sent by the block chain node to the second user based on the first commodity exchange request of the first user is obtained; a first item exchange request is sent by a first user to a block link point; the first item exchange request is for requesting an exchange of a second item with a first item of a first user; second item exchange information is generated based on a first value of the first item and a second value of the second item;
step S606, in response to a second confirmation operation performed by the second user for the second article exchange information, sending second confirmation operation data to the blockchain node, where the second confirmation operation data is used for causing the blockchain node to perform, in the blockchain system, an operation of exchanging the second article of the second user with the first article of the first user.
In this embodiment, when exchanging articles in the block chain system, according to the first value of the first article to be exchanged and the second value of the second article to be exchanged, the second article exchange information is generated and sent to the second user, so that the second user can know the first value and the second value, and the fairness and justness of the article exchange process are ensured.
In fig. 6, the specific process of steps S602 to S604 may refer to the description of the flow in fig. 2 to 4, and is not repeated here.
As can be seen from the foregoing description with respect to fig. 2, in one embodiment, the second item exchange information includes value notification information, second exchange resource notification information, and user information of the first user; the value notification information is used for notifying the first value and the second value; the second exchange resource notification information is used for notifying a second exchange resource required to be paid by exchanging the first item with the second item; based on this, in step S606, in response to the second confirmation operation performed by the second user for the second article exchange information, the second confirmation operation data is sent to the block link node, and may be: and in response to a second confirmation operation executed by the second user for the second article exchange information, after determining that the second user pays for the second exchange resource, generating second confirmation operation data and sending the second confirmation operation data to the block chain node.
Specifically, a user terminal of a second user provides a confirmation control while displaying second article exchange information, the second user indicates that article exchange is to be performed by triggering the confirmation control, the user terminal provides a payment control for the second user according to confirmation operation of the second user, the second user pays a second exchange resource through the control, and after payment is successful, the user terminal generates second confirmation operation data according to confirmation operation of the second user on the second article exchange information, carries the payment success data of the user in the second confirmation operation data, and sends the second confirmation operation data to the block chain node.
Therefore, in the embodiment, after the second user payment is determined to be successful, the second confirmation operation data can be generated and sent to the block chain node on the user terminal side, so that the commodity is exchanged after the payment is successful, and the high reliability of commodity exchange is ensured.
In fig. 6, the specific process of steps S602 to S606 may also refer to the description of the flow in fig. 2 to 4, and is not repeated here.
Fig. 7 is a flowchart illustrating a block chain-based information processing method according to another embodiment of the present disclosure, and as shown in fig. 7, the method includes the following steps:
step S701, the user terminal of the second user initiates an item release transaction to the block link node. The item release transaction is for releasing user information of the second user and item information of the second item on the chain.
Step S702, the user terminal of the first user sends a first article exchange request to the block link node. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user.
In step S703, the blockchain node invokes a first intelligent contract in the blockchain system to determine a first value of the first item and a second value of the second item in response to the first item exchange request.
In step S704, the block chain node invokes a second intelligent contract in the block chain system, and generates first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value.
In step S705, the block node sends the first article exchange information to the first user.
In step S706, the block node sends the second item exchange information to the second user.
In step S707, the user terminal of the first user generates first confirmation operation data according to the confirmation operation of the first user on the first article exchange information.
Step S708, the user terminal of the second user generates second confirmation operation data according to the confirmation operation of the second user for the second article exchange information.
Step S709, the user terminal of the first user sends the first confirmation operation data to the block link point.
Step S710, the user terminal of the second user sends second confirmation operation data to the block link point.
In step S711, the blockchain link point performs an operation of exchanging the second item of the second user with the first item of the first user in the blockchain system according to the first confirmation operation data and the second confirmation operation data.
In fig. 7, the first user may or may not pay for the first exchange resource, and the second user is the same. The specific processes of the steps in fig. 7 can refer to the description of the flows in fig. 2 to 4, and are not repeated here.
Fig. 8 is a flowchart illustrating a block chain-based information processing method according to another embodiment of the present disclosure, where as shown in fig. 8, the method includes the following steps:
step S801, the user terminal of the second user initiates an item release transaction to the block link point. The item release transaction is for releasing user information of the second user and item information of the second item on the chain.
Step S802, the user terminal of the first user sends a first article exchange request to the block link node. The first item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user.
In step S803, the user terminal of the second user sends a second article exchange request to the block link node. The second item exchange request is for requesting an exchange of a second item of a second user with a first item of a first user.
In step S804, the blockchain node responds to the first commodity exchange request and the second commodity exchange request, and after determining that the first commodity exchange request matches the second commodity exchange request, invokes a first intelligent contract in the blockchain system to determine a first value of the first commodity and a second value of the second commodity.
Step S805, the block chain node invokes a third intelligent contract in the block chain system, and calculates a first exchange resource that needs to be paid by the first user for exchanging the second item with the first item and a second exchange resource that needs to be paid by the second user for exchanging the first item with the second item.
Step S806, the block chain node calls a second intelligent contract in the block chain system, generates first commodity exchange information for the first user based on the first value, the second value, and the first exchange resource, and generates second commodity exchange information for the second user based on the first value, the second value, and the second exchange resource.
In step S807, the block link sends the first article exchange information to the first user.
Step S808, the block link node sends the second item exchange information to the second user.
Step S809, the user terminal of the first user generates first confirmation operation data according to the confirmation operation of the first user for the first article exchange information and the payment operation for the first exchange resource.
Step S810, the user terminal of the second user generates second confirmation operation data according to the confirmation operation of the second user for the second article exchange information and the payment operation for the second exchange resource.
In step S811, the user terminal of the first user transmits the first confirmation operation data to the block link point.
In step S812, the user terminal of the second user sends second confirmation operation data to the block link point.
In step S813, the blockchain node performs an operation of exchanging the second item of the second user with the first item of the first user in the blockchain system after determining that the first user pays the first exchange resource and the second user pays the second exchange resource according to the first confirmation operation data and the second confirmation operation data.
The specific process of each step in fig. 8 may refer to the description of the flow in fig. 2 to fig. 4, and is not repeated here.
In summary, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
Based on the same idea, the block chain-based information processing method provided in one or more embodiments of the present specification further provides a block chain-based information processing apparatus.
Fig. 9 is a schematic structural diagram of an information processing apparatus based on a block chain according to an embodiment of the present specification, and as shown in fig. 9, the apparatus includes:
a request acquiring unit 91, which acquires a first commodity exchange request for a second user sent by a first user; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
a value determining unit 92, configured to invoke a first intelligent contract in a blockchain system in response to the first item exchange request, and determine a first value of the first item and a second value of the second item;
the information generating unit 93 is configured to invoke a second intelligent contract in the blockchain system, and generate first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value;
an information sending unit 94, configured to send the first commodity exchange information to the first user, and send the second commodity exchange information to the second user;
the article swapping unit 95 performs an operation of swapping a second article of the second user with a first article of the first user in the blockchain system according to first confirmation operation data of the first user for the first article swapping information and second confirmation operation data of the second user for the second article swapping information.
Optionally, the request obtaining unit 91 obtains a first item exchange request, which is sent by a first user by scanning barcode information of a second user and is addressed to the second user; the bar code information carries user information of the second user and article information of the second article; or acquiring a first commodity exchange request aiming at a second user, which is sent by a first user in a mode of triggering a commodity exchange message issued by the second user in a block chain system; wherein the article exchange message carries the user information of the second user and the article information of the second article.
Optionally, the request obtaining unit 91 obtains a second item exchange request sent by the second user for the first user before the first intelligent contract in the blockchain system is invoked to determine the first value of the first item and the second value of the second item in response to the first item exchange request; the second item exchange request is used for requesting to exchange the first item of the first user by using a second item of the second user; accordingly, the value determining unit 92, in response to the first commodity exchange request and the second commodity exchange request, invokes a first intelligent contract in the blockchain system after determining that the first commodity exchange request matches the second commodity exchange request, determining a first value of the first commodity and a second value of the second commodity.
Optionally, the value determining unit 92 invokes a first intelligent contract in the blockchain system, and queries a database to obtain a first value of the first item; or calling a first intelligent contract in the block chain system, acquiring the article value of a first target article belonging to the same kind of article as the first article, and determining the first value of the first article according to the article value of the first target article.
Optionally, the value determining unit 92 calls a first intelligent contract in the blockchain system, and queries a database to obtain a second value of the second item; or calling a first intelligent contract in the block chain system, acquiring the article value of a second target article belonging to the same kind of article as the second article, and determining the second value of the second article according to the article value of the second target article.
Optionally, the information generating unit 93, which invokes a second intelligent contract in the blockchain system, generates value notification information for notifying the first value and the second value; and calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the value notification information and the user information of the second user, and generating second commodity exchange information aiming at the second user based on the value notification information and the user information of the first user.
Optionally, the resource calculating unit is further included, before invoking a second intelligent contract in the blockchain system and generating first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value, invokes a third intelligent contract in the blockchain system, and calculates a first exchange resource required to be paid by the first user for exchanging the second commodity with the first commodity and a second exchange resource required to be paid by the second user for exchanging the first commodity with the second commodity; accordingly, the information generating unit 93 invokes a second intelligent contract in the blockchain system, generates first commodity exchange information for the first user based on the first value, the second value, and the first exchange resource, and generates second commodity exchange information for the second user based on the first value, the second value, and the second exchange resource.
Optionally, the resource calculating unit invokes a third intelligent contract in the blockchain system, and determines, according to the current calculation power of the blockchain system, a first exchange resource that needs to be paid by the first user for exchanging the second item with the first item and a second exchange resource that needs to be paid by the second user for exchanging the first item with the second item.
Optionally, the information generating unit 93, which invokes a second intelligent contract in the blockchain system, generates value notification information for notifying the first value and the second value; calling a second intelligent contract in the block chain system, generating first exchange resource notification information for notifying the first exchange resource, and generating second exchange resource notification information for notifying the second exchange resource; and calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the value notification information, the first exchange resource notification information and the user information of the second user, and generating second commodity exchange information aiming at the second user based on the value notification information, the second exchange resource notification information and the user information of the first user.
Optionally, the article swapping unit 95 determines that the first user pays for the first swap resource according to first confirmation operation data of the first user for the first article swap information, and determines that the second user pays for the second swap resource according to second confirmation operation data of the second user for the second article swap information, and then performs an operation of swapping a second article of the second user with a first article of the first user in a block chain system.
Optionally, the item exchange unit 95 initiates a first transaction in the blockchain system, the first transaction is used for updating the owner of the first item from the first user to the second user; initiating a second transaction in the blockchain system, the second transaction for updating the owner of the second item from the second user to the first user.
The information processing apparatus based on a block chain in this embodiment can implement the processes of the foregoing information processing method based on a block chain, and achieve the same effects and functions, which are not repeated.
Fig. 10 is a schematic structural diagram of an information processing apparatus based on a block chain according to another embodiment of the present specification, and as shown in fig. 10, the apparatus includes:
a request transmitting unit 1001 that transmits a first commodity exchange request of a first user for a second user to a block link node; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
a first information receiving unit 1002, configured to acquire first commodity exchange information sent by the block link point to the first user based on the first commodity exchange request; the first item exchange information is generated based on a first value of the first item and a second value of the second item;
the first data sending unit 1003, in response to a first confirmation operation performed by the first user with respect to the first commodity exchange information, sends, to the blockchain node, first confirmation operation data, where the first confirmation operation data is used to enable the blockchain node to perform an operation of exchanging a second commodity of the second user with the first commodity of the first user in the blockchain system.
Optionally, the request sending unit 1001, in response to a scanning operation of a first user on barcode information of a second user, acquires user information of the second user and article information of the second article from the barcode information, and acquires user information of the first user and article information of the first article; and generating the first article exchange request according to the user information of the first user, the article information of the first article, the user information of the second user and the article information of the second article, and sending the first article exchange request to a block chain node.
Optionally, the request sending unit 1001, in response to a triggering operation of a first user on an item exchange message issued by a second user in a block chain system, acquires user information of the second user and item information of the second item from the item exchange message, and acquires user information of the first user and item information of the first item; and generating the first article exchange request according to the user information of the first user, the article information of the first article, the user information of the second user and the article information of the second article, and sending the first article exchange request to a block chain node.
Optionally, the first commodity exchange information includes value notification information, first exchange resource notification information, and user information of the second user; the value notification message is used to notify the first value and the second value; the first exchange resource notification information is used for notifying a first exchange resource required to be paid by exchanging the second article with the first article; a first data sending unit 1003, configured to, in response to a first confirmation operation performed by the first user for the first commodity exchange information, generate first confirmation operation data after it is determined that the first user pays for the first exchange resource, and send the first confirmation operation data to the blockchain node.
The information processing apparatus based on the blockchain in this embodiment can implement each process of the foregoing information processing method based on the blockchain, and achieve the same effect and function, which is not repeated.
Fig. 11 is a schematic structural diagram of an information processing apparatus based on a block chain according to another embodiment of the present specification, and as shown in fig. 11, the apparatus includes:
a transaction issuing unit 1101 that issues an article issuing transaction to the block link points; the article release transaction carries user information of a second user and article information of a second article to be exchanged of the second user; the item release transaction is used for uplink storage of the user information of the second user and the item information of the second item;
a second information receiving unit 1102, configured to acquire second commodity exchange information sent by the block link point to the second user based on a first commodity exchange request of the first user; the first item exchange request is sent by the first user to the blockchain node; the first item exchange request is for requesting exchange of the second item with a first item of the first user; the second item exchange information is generated based on a first value of the first item and a second value of the second item;
the second data sending unit 1103 sends, in response to a second confirmation operation performed by the second user with respect to the second article exchange information, second confirmation operation data to the blockchain node, where the second confirmation operation data is used to enable the blockchain node to perform, in the blockchain system, an operation of exchanging the second article of the second user with the first article of the first user.
Optionally, the second commodity exchange information includes value notification information, second exchange resource notification information, and user information of the first user; the value notification message is used to notify the first value and the second value; the second exchange resource notification information is used for notifying a second exchange resource required to be paid by the second article for exchanging the first article; the second data sending unit 1102 is configured to, in response to a second confirmation operation performed by the second user for the second article exchange information, generate second confirmation operation data and send the second confirmation operation data to the blockchain node after determining that the second user pays for the second exchange resource.
The information processing apparatus based on a block chain in this embodiment can implement the processes of the foregoing information processing method based on a block chain, and achieve the same effects and functions, which are not repeated.
Based on the same idea, one or more embodiments of the present specification further provide an information processing apparatus based on a block chain, fig. 12 is a schematic structural diagram of the information processing apparatus based on a block chain provided in an implementation of the present specification, and as shown in fig. 12, the information processing apparatus based on a block chain may generate a relatively large difference due to different configurations or performances, and may include one or more processors 1201 and a memory 1202, and one or more stored applications or data may be stored in the memory 1202. Memory 1202 may be, among other things, transient storage or persistent storage. The application program stored in memory 1202 may include one or more modules (not shown), each of which may include a series of computer-executable instructions for a block-chain based information processing device. Still further, the processor 1201 may be configured to communicate with the memory 1202 to execute a series of computer executable instructions in the memory 1202 on a blockchain based information processing device. The blockchain-based information processing apparatus may also include one or more power supplies 1203, one or more wired or wireless network interfaces 1204, one or more input-output interfaces 1205, one or more keyboards 1206.
In one embodiment, a blockchain-based information processing apparatus includes a processor; and a memory arranged to store computer executable instructions which, when executed by the processor, cause the processor to implement the following:
acquiring a first commodity exchange request which is sent by a first user and aims at a second user; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
in response to the first commodity exchange request, invoking a first intelligent contract in a blockchain system to determine a first value of the first commodity and a second value of the second commodity;
invoking a second intelligent contract in a blockchain system, and generating first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value;
sending the first commodity exchange information to the first user, and sending the second commodity exchange information to the second user;
and performing the operation of exchanging the second item of the second user by using the first item of the first user in the blockchain system according to the first confirmation operation data of the first user for the first item exchange information and the second confirmation operation data of the second user for the second item exchange information.
The information processing device based on the block chain in this embodiment can implement each process of the foregoing information processing method based on the block chain applied to the block chain node, and achieve the same effect and function, which is not repeated.
In another embodiment, a blockchain-based information processing apparatus includes a processor; and a memory arranged to store computer executable instructions which, when executed by the processor, cause the processor to implement the following:
sending a first item exchange request of a first user for a second user to a block link point; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
acquiring first commodity exchange information sent by the block chain node to the first user based on the first commodity exchange request; the first item exchange information is generated based on a first value of the first item and a second value of the second item;
in response to a first confirmation operation performed by the first user for the first item exchange information, sending, to the blockchain node, first confirmation operation data for causing the blockchain node to perform an operation of exchanging a second item of the second user with a first item of the first user in a blockchain system.
The information processing device based on the block chain in this embodiment can implement each process of the foregoing information processing method based on the block chain, which is applied to the user terminal of the first user, and achieve the same effect and function, which is not repeated.
In another embodiment, a blockchain-based information processing apparatus includes a processor; and a memory arranged to store computer executable instructions which, when executed by the processor, cause the processor to implement the following:
initiating an item release transaction to a block link point; the article release transaction carries user information of a second user and article information of a second article to be exchanged of the second user; the item release transaction is used for uplink storage of the user information of the second user and the item information of the second item;
acquiring second commodity exchange information sent by the block chain node to the second user based on a first commodity exchange request of the first user; the first item exchange request is sent by the first user to the blockchain node; the first item exchange request is for requesting exchange of the second item with a first item of the first user; the second item exchange information is generated based on a first value of the first item and a second value of the second item;
and in response to a second confirmation operation performed by the second user on the second article exchange information, sending second confirmation operation data to the blockchain node, wherein the second confirmation operation data is used for enabling the blockchain node to perform an operation of exchanging the second article of the second user by using the first article of the first user in the blockchain system.
The information processing device based on the block chain in this embodiment can implement each process of the foregoing information processing method based on the block chain, which is applied to the user terminal of the second user, and achieve the same effect and function, which is not repeated.
An embodiment of the present specification also provides a storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to implement the following:
acquiring a first commodity exchange request which is sent by a first user and aims at a second user; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
invoking a first intelligent contract in a blockchain system in response to the first item exchange request to determine a first value of the first item and a second value of the second item;
invoking a second intelligent contract in a blockchain system, generating first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value;
sending the first commodity exchange information to the first user, and sending the second commodity exchange information to the second user;
and performing the operation of exchanging the second item of the second user by using the first item of the first user in the blockchain system according to the first confirmation operation data of the first user for the first item exchange information and the second confirmation operation data of the second user for the second item exchange information.
The storage medium in this embodiment can implement each process of the foregoing embodiment of the block chain-based information processing method applied to the block chain node, and achieve the same effect and function, which is not repeated.
Another embodiment of the present specification also provides a storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to implement the following flow:
sending a first item exchange request of a first user for a second user to a block link point; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
acquiring first commodity exchange information sent by the block chain node to the first user based on the first commodity exchange request; the first item exchange information is generated based on a first value of the first item and a second value of the second item;
in response to a first confirmation operation performed by the first user with respect to the first item exchange information, sending, to the blockchain node, first confirmation operation data for causing the blockchain node to perform an operation in the blockchain system to exchange a second item of the second user with a first item of the first user.
The storage medium in this embodiment can implement the foregoing processes of the embodiment of the block chain-based information processing method applied to the user terminal of the first user, and achieve the same effects and functions, which are not repeated.
Another embodiment of the present specification also provides a storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to implement the following:
initiating an item release transaction to a block link point; the article release transaction carries user information of a second user and article information of a second article to be exchanged of the second user; the item release transaction is used for uplink storage of the user information of the second user and the item information of the second item;
acquiring second commodity exchange information sent by the block chain node to the second user based on a first commodity exchange request of the first user; the first item exchange request is sent by the first user to the blockchain node; the first item exchange request is for requesting exchange of the second item with a first item of the first user; the second item exchange information is generated based on a first value of the first item and a second value of the second item;
and in response to a second confirmation operation performed by the second user on the second article exchange information, sending second confirmation operation data to the blockchain node, wherein the second confirmation operation data is used for enabling the blockchain node to perform an operation of exchanging the second article of the second user by using the first article of the first user in the blockchain system.
The storage medium in this embodiment can implement the foregoing processes of the embodiment of the block chain-based information processing method applied to the user terminal of the second user, and achieve the same effects and functions, which are not repeated.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 90's of the 20 th century, improvements to a technology could clearly distinguish between improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements to process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD) (e.g., a Field Programmable Gate Array (FPGA)) is an integrated circuit whose Logic functions are determined by a user programming the Device. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as ABEL (Advanced Boolean Expression Language), AHDL (alternate Hardware Description Language), traffic, CUPL (core universal Programming Language), HDCal, jhddl (Java Hardware Description Language), lava, lola, HDL, PALASM, rhyd (Hardware Description Language), and vhigh-Language (Hardware Description Language), which is currently used in most popular applications. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be conceived to be both a software module implementing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations of one or more of the present descriptions.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more of the present description 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 in the medium.
One or more of the present specification has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to one or more embodiments of the specification. 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more of the present description 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 in the medium.
One or more of the present specification can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more of the present specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is merely illustrative of one or more embodiments of the present disclosure and is not intended to limit one or more embodiments of the present disclosure. Various modifications and alterations to one or more of the present descriptions will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more of the present specification should be included in the scope of one or more claims of the present specification.
Claims (22)
1. An information processing method based on a block chain comprises the following steps:
acquiring a first commodity exchange request which is sent by a first user and aims at a second user; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
in response to the first commodity exchange request, invoking a first intelligent contract in a blockchain system to determine a first value of the first commodity and a second value of the second commodity;
invoking a second intelligent contract in a blockchain system, and generating first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value;
sending the first commodity exchange information to the first user, and sending the second commodity exchange information to the second user;
and performing the operation of exchanging the second item of the second user by using the first item of the first user in the blockchain system according to the first confirmation operation data of the first user for the first item exchange information and the second confirmation operation data of the second user for the second item exchange information.
2. The method of claim 1, wherein obtaining the first item exchange request sent by the first user for the second user comprises:
acquiring a first article exchange request which is sent by a first user in a mode of scanning bar code information of a second user and aims at the second user; the bar code information carries user information of the second user and article information of the second article;
or,
acquiring a first commodity exchange request aiming at a second user, which is sent by a first user in a mode of triggering a commodity exchange message issued by the second user in a block chain system; wherein the article exchange message carries the user information of the second user and the article information of the second article.
3. The method of claim 1, wherein prior to invoking a first intelligent contract in a blockchain system to determine a first value of the first item and a second value of the second item in response to the first item exchange request, the method further comprises:
acquiring a second article exchange request which is sent by the second user and aims at the first user; the second item exchange request is used for requesting to exchange the first item of the first user by using a second item of the second user;
invoking a first intelligent contract in a blockchain system in response to the first item exchange request to determine a first value of the first item and a second value of the second item, comprising:
in response to the first commodity exchange request and the second commodity exchange request, after determining that the first commodity exchange request matches the second commodity exchange request, invoking a first intelligent contract in a blockchain system to determine a first value of the first commodity and a second value of the second commodity.
4. The method of claim 1 or 3, wherein invoking a first intelligent contract in a blockchain system to determine a first value of the first item comprises:
calling a first intelligent contract in a block chain system, and inquiring a database to obtain a first value of the first item;
or,
calling a first intelligent contract in a block chain system, acquiring the item value of a first target item belonging to the same type of item as the first item, and determining the first value of the first item according to the item value of the first target item.
5. The method of claim 1 or 3, wherein invoking a first intelligent contract in a blockchain system to determine a second value of the second item comprises:
calling a first intelligent contract in the block chain system, and inquiring a database to obtain a second value of the second article;
or,
and calling a first intelligent contract in the block chain system, acquiring the commodity value of a second target commodity belonging to the same kind of commodity as the second commodity, and determining the second value of the second commodity according to the commodity value of the second target commodity.
6. The method of claim 1, wherein invoking a second intelligent contract in a blockchain system to generate first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value comprises:
calling a second intelligent contract in the block chain system to generate value notification information for notifying the first value and the second value;
invoking a second intelligent contract in a block chain system, generating first commodity exchange information for the first user based on the value notification information and user information of the second user, and generating second commodity exchange information for the second user based on the value notification information and the user information of the first user.
7. The method of claim 1, wherein prior to invoking a second intelligent contract in a blockchain system, generating first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value, the method further comprises:
calling a third intelligent contract in a block chain system, and calculating a first exchange resource required by the first user to exchange the second article by using the first article and a second exchange resource required by the second user to exchange the first article by using the second article;
invoking a second intelligent contract in a blockchain system, generating first commodity exchange information for the first user and second commodity exchange information for the second user based on the first value and the second value, comprising:
invoking a second intelligent contract in a blockchain system, generating first commodity exchange information for the first user based on the first value, the second value and the first exchange resource, and generating second commodity exchange information for the second user based on the first value, the second value and the second exchange resource.
8. The method of claim 7, wherein invoking a third intelligent contract in a blockchain system to calculate a first swap resource for an effort required by the first user to swap the second item with the first item and a second swap resource for an effort required by the second user to swap the first item with the second item comprises:
and calling a third intelligent contract in the blockchain system, and determining a first exchange resource required to be paid by the first user for exchanging the second item by using the first item and a second exchange resource required to be paid by the second user for exchanging the first item by using the second item according to the current calculation power of the blockchain system.
9. The method of claim 7, wherein invoking a second intelligent contract in a blockchain system to generate first commodity exchange information for the first user based on the first value, the second value, and the first exchange resource and to generate second commodity exchange information for the second user based on the first value, the second value, and the second exchange resource comprises:
calling a second intelligent contract in the blockchain system to generate value notification information for notifying the first value and the second value;
calling a second intelligent contract in the block chain system, generating first exchange resource notification information for notifying the first exchange resource, and generating second exchange resource notification information for notifying the second exchange resource;
and calling a second intelligent contract in the block chain system, generating first commodity exchange information aiming at the first user based on the value notification information, the first exchange resource notification information and the user information of the second user, and generating second commodity exchange information aiming at the second user based on the value notification information, the second exchange resource notification information and the user information of the first user.
10. The method of claim 9, wherein exchanging a second item of the second user with a first item of the first user in a blockchain system according to first confirmation operation data of the first user for the first item exchange information and second confirmation operation data of the second user for the second item exchange information comprises:
and after determining that the first user pays for the first exchange resource according to first confirmation operation data of the first user for the first commodity exchange information and determining that the second user pays for the second exchange resource according to second confirmation operation data of the second user for the second commodity exchange information, performing operation of exchanging a second commodity of the second user with the first commodity of the first user in a block chain system.
11. The method of claim 1 or 10, wherein exchanging a second item of the second user with a first item of the first user is performed in a blockchain system, comprising:
initiating a first transaction in a blockchain system, the first transaction to update an owner of the first item from the first user to the second user;
initiating a second transaction in the blockchain system, the second transaction for updating the owner of the second item from the second user to the first user.
12. An information processing method based on a block chain comprises the following steps:
sending a first item exchange request of a first user for a second user to a block link point; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
acquiring first commodity exchange information sent by the block chain node to the first user based on the first commodity exchange request; the first item exchange information is generated based on a first value of the first item and a second value of the second item;
in response to a first confirmation operation performed by the first user with respect to the first item exchange information, sending, to the blockchain node, first confirmation operation data for causing the blockchain node to perform an operation in the blockchain system to exchange a second item of the second user with a first item of the first user.
13. The method of claim 12, wherein sending a first commodity exchange request of a first user for a second user to a blockchain node comprises:
responding to scanning operation of a first user for bar code information of a second user, acquiring user information of the second user and article information of the second article from the bar code information, and acquiring user information of the first user and article information of the first article;
and generating the first article exchange request according to the user information of the first user, the article information of the first article, the user information of the second user and the article information of the second article, and sending the first article exchange request to a block chain node.
14. The method of claim 12, wherein sending a first commodity exchange request of a first user for a second user to a blockchain node comprises:
in response to a triggering operation of a first user on an item exchange message issued by a second user in a blockchain system, acquiring user information of the second user and item information of a second item from the item exchange message, and acquiring user information of the first user and item information of a first item;
and generating the first article exchange request according to the user information of the first user, the article information of the first article, the user information of the second user and the article information of the second article, and sending the first article exchange request to a block chain node.
15. The method of claim 12, wherein the first item exchange information includes value notification information, first exchange resource notification information, and user information of the second user; the value notification information is used for notifying the first value and the second value; the first exchange resource notification information is used for notifying a first exchange resource required to be paid by exchanging the second article with the first article;
in response to a first confirmation operation performed by the first user with respect to the first item exchange information, sending first confirmation operation data to the blockchain node, comprising:
and in response to a first confirmation operation executed by the first user for the first article exchange information, after determining that the first user pays for the first exchange resource, generating first confirmation operation data and sending the first confirmation operation data to the blockchain node.
16. An information processing method based on a block chain comprises the following steps:
initiating an item release transaction to a block link point; the article release transaction carries user information of a second user and article information of a second article to be exchanged of the second user; the item release transaction is used for uplink storage of the user information of the second user and the item information of the second item;
acquiring second commodity exchange information sent by the block chain node to the second user based on a first commodity exchange request of the first user; the first item exchange request is sent by the first user to the blockchain node; the first item exchange request is for requesting exchange of the second item with a first item of the first user; the second item exchange information is generated based on a first value of the first item and a second value of the second item;
and in response to a second confirmation operation performed by the second user on the second article exchange information, sending second confirmation operation data to the blockchain node, wherein the second confirmation operation data is used for enabling the blockchain node to perform an operation of exchanging the second article of the second user by using the first article of the first user in the blockchain system.
17. The method of claim 16, wherein the second commodity exchange information includes value notification information, second exchange resource notification information, and user information of the first user; the value notification message is used to notify the first value and the second value; the second exchange resource notification information is used for notifying a second exchange resource required to be paid by the second article for exchanging the first article;
in response to a second confirmation operation performed by the second user with respect to the second item exchange information, sending second confirmation operation data to the blockchain node, including:
and responding to a second confirmation operation executed by the second user for the second article exchange information, and after determining that the second user pays for the second exchange resource, generating second confirmation operation data and sending the second confirmation operation data to the block chain node.
18. An information processing apparatus based on a block chain, comprising:
the request acquisition unit is used for acquiring a first article exchange request which is sent by a first user and aims at a second user; the first commodity exchange request is used for requesting to exchange a second commodity of the second user by utilizing a first commodity of the first user;
the value determining unit is used for responding to the first commodity exchange request, calling a first intelligent contract in a blockchain system and determining a first value of the first commodity and a second value of the second commodity;
the information generating unit is used for calling a second intelligent contract in the block chain system and generating first commodity exchange information aiming at the first user and second commodity exchange information aiming at the second user on the basis of the first value and the second value;
the information sending unit is used for sending the first commodity exchange information to the first user and sending the second commodity exchange information to the second user;
and the article exchange unit is used for executing the operation of exchanging the second article of the second user by using the first article of the first user in the block chain system according to the first confirmation operation data of the first user aiming at the first article exchange information and the second confirmation operation data of the second user aiming at the second article exchange information.
19. An information processing apparatus based on a block chain, comprising:
a request sending unit, which sends a first item exchange request of a first user aiming at a second user to a block chain node; the first item exchange request is for requesting exchange of a second item of the second user with a first item of the first user;
a first information receiving unit, configured to acquire first commodity exchange information sent by the block link node to the first user based on the first commodity exchange request; the first item exchange information is generated based on a first value of the first item and a second value of the second item;
and a first data sending unit, configured to send, in response to a first confirmation operation performed by the first user for the first item exchange information, first confirmation operation data to the blockchain node, where the first confirmation operation data is used to enable the blockchain node to perform, in a blockchain system, an operation of exchanging a second item of the second user with a first item of the first user.
20. An information processing apparatus based on a block chain, comprising:
the transaction issuing unit is used for issuing article issuing transaction to the block chain nodes; the article release transaction carries user information of a second user and article information of a second article to be exchanged of the second user; the item release transaction is used for uplink storage of the user information of the second user and the item information of the second item;
the second information receiving unit is used for acquiring second commodity exchange information sent by the block link point to the second user based on a first commodity exchange request of the first user; the first item exchange request is sent by the first user to the blockchain node; the first item exchange request is for requesting exchange of the second item with a first item of the first user; the second item exchange information is generated based on a first value of the first item and a second value of the second item;
and a second data sending unit, configured to send, in response to a second confirmation operation performed by the second user for the second article exchange information, second confirmation operation data to the blockchain node, where the second confirmation operation data is used to enable the blockchain node to perform, in a blockchain system, an operation of exchanging the second article of the second user with the first article of the first user.
21. An information processing apparatus comprising:
a processor; and
a memory arranged to store computer executable instructions which, when executed by the processor, cause the processor to carry out the steps of the method of any one of claims 1 to 11 above, or to carry out the steps of the method of any one of claims 12 to 15 above, or to carry out the steps of the method of claim 16 or 17 above.
22. A storage medium storing computer-executable instructions which, when executed by a processor, cause the processor to carry out the steps of the method of any one of claims 1 to 11, or to carry out the steps of the method of any one of claims 12 to 15, or to carry out the steps of the method of claim 16 or 17.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210946073.4A CN115393006A (en) | 2022-08-08 | 2022-08-08 | Information processing method, device and equipment based on block chain and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210946073.4A CN115393006A (en) | 2022-08-08 | 2022-08-08 | Information processing method, device and equipment based on block chain and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115393006A true CN115393006A (en) | 2022-11-25 |
Family
ID=84119590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210946073.4A Pending CN115393006A (en) | 2022-08-08 | 2022-08-08 | Information processing method, device and equipment based on block chain and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115393006A (en) |
-
2022
- 2022-08-08 CN CN202210946073.4A patent/CN115393006A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110555296B (en) | Identity verification method, device and equipment based on block chain | |
CN111741035B (en) | Electronic contract signing method, device and equipment | |
CN111340631B (en) | Asset transfer method, device, equipment and system | |
CN112016921B (en) | Transaction processing method, device and equipment | |
CN111538980B (en) | Account binding method, device and system for application program | |
CN112200585B (en) | Service processing method, device, equipment and system | |
CN111738737B (en) | Method, device and equipment for generating digital property right certificate | |
CN112241506A (en) | User behavior backtracking method, device, equipment and system | |
CN111461623B (en) | Block chain-based warehouse bill creating method, device and equipment | |
CN108074024B (en) | Trusted data transmission method, device and system | |
CN113221165B (en) | User element authentication method and device based on block chain | |
CN113222667B (en) | Equity sharing processing method and device | |
CN110992040A (en) | Transaction processing method, device and equipment | |
CN113643030B (en) | Transaction processing method, device and equipment | |
CN110992164B (en) | Transaction processing method, device, system and equipment based on block chain | |
CN115983845A (en) | Payment method and device based on user identity | |
CN115393006A (en) | Information processing method, device and equipment based on block chain and storage medium | |
CN113672784B (en) | Vehicle information processing method, device and system based on block chain | |
CN113095828A (en) | Data evidence storage method and device based on block chain | |
CN112215602B (en) | Data query method, device and system and electronic equipment | |
CN113610640B (en) | Event wind control method, device, equipment and storage medium based on alliance chain | |
CN115114334A (en) | Method and device for querying data in block chain | |
CN114860809A (en) | Data processing method, device and equipment based on block chain and storage medium | |
CN114896638A (en) | Data processing method and device, electronic equipment and storage medium | |
CN115731040A (en) | Block chain-based collection management method, block chain node and system |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20241015 Address after: Room 1140, 11th Floor, No. 447 Nanquan North Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, 200120 Applicant after: Whale Exploration Technology (Shanghai) Co.,Ltd. Country or region after: China Address before: Room 803, floor 8, No. 618 Wai Road, Huangpu District, Shanghai 200010 Applicant before: Ant blockchain Technology (Shanghai) Co.,Ltd. Country or region before: China |