CN112581141A - Transaction processing method, device and system based on block chain - Google Patents

Transaction processing method, device and system based on block chain Download PDF

Info

Publication number
CN112581141A
CN112581141A CN202110195866.2A CN202110195866A CN112581141A CN 112581141 A CN112581141 A CN 112581141A CN 202110195866 A CN202110195866 A CN 202110195866A CN 112581141 A CN112581141 A CN 112581141A
Authority
CN
China
Prior art keywords
information
target product
transaction
digital identity
graphic code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110195866.2A
Other languages
Chinese (zh)
Inventor
刘佳伟
金戈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Ant Blockchain Technology Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd, Ant Blockchain Technology Shanghai Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202110195866.2A priority Critical patent/CN112581141A/en
Publication of CN112581141A publication Critical patent/CN112581141A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4012Verifying personal identification numbers [PIN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

An embodiment of the specification provides a transaction processing method, a device and a system based on a block chain, wherein the method comprises the following steps: acquiring digital identity information corresponding to a target product to be traded from a blockchain system; generating graphic code information corresponding to resource transfer processing required to be executed by the transaction target product based on the acquired digital identity information; sending the generated graphic code information to transaction equipment corresponding to a transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the received graphic code information; the digital identity information is created by the blockchain system based on the related information of the target product, and the related information of the target product at least comprises the identification information of the target product and the transaction related information of the target product.

Description

Transaction processing method, device and system based on block chain
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a method, an apparatus, and a system for processing transactions based on blockchains.
Background
Blockchain (Blockchain) technology was originally a special distributed digital library technology designed for bitcoins. The block chain system is suitable for storing simple, sequential and verifiable data in the system, and the cryptology and the consensus algorithm are used for ensuring the data to be not tampered and not forged. Essentially, the blockchain is a shared database, and because the blockchain has characteristics of decentralization, information non-tampering, autonomy and the like, people pay more and more attention to and use the blockchain.
Disclosure of Invention
The embodiment of the specification provides a transaction processing method based on a block chain, and the method is applied to a payment server side. The method specifically comprises the following steps: and acquiring digital identity information corresponding to the target product to be traded from the blockchain system. Wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction-related information of the target product. And generating graphic code information corresponding to the resource transfer processing required to be executed for trading the target product based on the digital identity information. And sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
The embodiment of the specification also provides a transaction processing method based on the block chain, and the method is applied to transaction equipment. The method specifically comprises the following steps: and issuing related information of a target product to be traded to a blockchain system so that the blockchain system creates digital identity information corresponding to the target product based on the related information. Wherein the related information comprises identification information of the target product and transaction related information.
And acquiring the graphic code information corresponding to the resource transfer processing required to be executed by trading the target product from the payment server. The graphic code information is generated by the payment server based on the digital identity information. And displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
The embodiment of the specification further provides a transaction processing method based on the block chain, which is applied to the block chain system. The method comprises the following steps: and receiving the related information of the target product to be traded, which is sent by the trading device. Wherein the related information comprises identification information of the target product and transaction related information. And creating digital identity information corresponding to the target product based on the related information of the target product. And sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
The embodiment of the specification further provides a transaction processing device based on the block chain, and the transaction processing device is applied to a payment server side. The device includes: and the acquisition module acquires the digital identity information corresponding to the target product to be traded from the blockchain system. Wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction-related information of the target product. And the first generation module is used for generating graphic code information corresponding to the resource transfer processing required to be executed by trading the target product based on the digital identity information. And the sending module is used for sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment can display the corresponding graphic code based on the graphic code information.
An embodiment of the present specification further provides a transaction processing apparatus based on a blockchain, which is applied to a transaction device, and the apparatus includes: the release module is used for releasing the related information of the target product to be traded to the blockchain system so that the blockchain system creates the digital identity information corresponding to the target product based on the related information. Wherein the related information comprises identification information of the target product and transaction related information. And the acquisition module acquires graphic code information corresponding to resource transfer processing required to be executed for trading the target product from the payment server. The graphic code information is generated by the payment server based on the digital identity information. And the execution module is used for displaying the corresponding graphic code based on the graphic code information so as to enable the trading user to execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
The embodiment of the specification further provides a transaction processing device based on the block chain, which is applied to the block chain system. The device includes: and the receiving module is used for receiving the related information of the target product to be traded, which is sent by the trading equipment. Wherein the related information comprises identification information of the target product and transaction related information. And the creating module is used for creating the digital identity information corresponding to the target product based on the related information of the target product. The sending module is used for sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed by trading the target product based on the digital identity information, and sends the graphic code information to trading equipment, and the trading equipment displays a corresponding graphic code based on the graphic code information.
An embodiment of the present specification further provides a transaction processing system based on a blockchain, including: the system comprises a transaction device, a payment server and a blockchain system. The trading equipment is used for issuing the related information of the target product to be traded to the blockchain system. And the system is also used for receiving the graphic code information returned by the payment server and displaying the corresponding graphic code based on the graphic code information. Wherein the related information comprises identification information of the target product and transaction related information. The block chain system is used for receiving the related information of the target product, creating digital identity information corresponding to the target product based on the related information of the target product, and sending the digital identity information to the payment server. And the payment server is used for generating graphic code information corresponding to resource transfer processing required to be executed by trading the target product based on the digital identity information and sending the graphic code information to trading equipment.
An embodiment of the present specification further provides a transaction processing device based on a blockchain, which is applied to a payment server, and the device includes: a processor, and a memory arranged to store computer executable instructions. The executable instructions, when executed, cause the processor to: and acquiring digital identity information corresponding to the target product to be traded from the blockchain system. Wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction-related information of the target product. And generating graphic code information corresponding to the resource transfer processing required to be executed for trading the target product based on the digital identity information. And sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
An embodiment of the present specification further provides a transaction processing device based on a blockchain, which is applied to a transaction device, and the device includes: a processor, and a memory arranged to store computer executable instructions. The executable instructions, when executed, cause the processor to: and issuing related information of a target product to be traded to a blockchain system so that the blockchain system creates digital identity information corresponding to the target product based on the related information. Wherein the related information comprises identification information of the target product and transaction related information. And acquiring the graphic code information corresponding to the resource transfer processing required to be executed by trading the target product from the payment server. The graphic code information is generated by the payment server based on the digital identity information. And displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
The embodiment of the specification also provides transaction processing equipment based on the block chain, which is applied to the block chain system. The apparatus comprises: a processor and a memory arranged to store computer executable instructions that, when executed, cause the processor to: and receiving the related information of the target product to be traded, which is sent by the trading device. Wherein the related information comprises identification information of the target product and transaction related information. And creating digital identity information corresponding to the target product based on the related information of the target product. And sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
Embodiments of the present specification also provide a storage medium for storing computer-executable instructions, which when executed implement the following processes: and acquiring digital identity information corresponding to the target product to be traded from the blockchain system. Wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction-related information of the target product. And generating graphic code information corresponding to the resource transfer processing required to be executed for trading the target product based on the digital identity information. And sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
Embodiments of the present specification also provide a storage medium for storing computer-executable instructions, which when executed implement the following processes: and issuing related information of a target product to be traded to a blockchain system so that the blockchain system creates digital identity information corresponding to the target product based on the related information. Wherein the related information comprises identification information of the target product and transaction related information. And acquiring the graphic code information corresponding to the resource transfer processing required to be executed by trading the target product from the payment server. The graphic code information is generated by the payment server based on the digital identity information. And displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
Embodiments of the present specification also provide a storage medium for storing computer-executable instructions, which when executed implement the following processes: and receiving the related information of the target product to be traded, which is sent by the trading device. Wherein the related information comprises identification information of the target product and transaction related information. And creating digital identity information corresponding to the target product based on the related information of the target product.
And sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts;
fig. 1 is a schematic view of a first application scenario of a transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a second application scenario of the transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a third application scenario of the transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 4 is a first flowchart of a transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 5 is a second flowchart of a transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 6 is a third flowchart of a transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 7 is a schematic interaction flow diagram of a method for processing transactions based on blockchains according to an embodiment of the present disclosure;
fig. 8 is a schematic interaction flow diagram of a second transaction processing method based on a blockchain according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating a first module composition of a blockchain-based transaction processing apparatus according to an embodiment of the present disclosure;
fig. 10 is a schematic diagram illustrating a second module composition of a blockchain-based transaction processing apparatus according to an embodiment of the present disclosure;
fig. 11 is a schematic diagram illustrating a third module composition of a blockchain-based transaction processing apparatus according to an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of a transaction processing system based on a blockchain according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of a transaction processing device based on a blockchain according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in this document, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of this document, and not all embodiments of this document. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in this description shall fall within the scope of protection of this document.
At present, with the rapid development of computer and internet technologies, more and more services can be developed online, such as online transactions or offline transactions for online payment; generally, in some offline transaction scenarios, more and more users complete transactions by way of online payment in order to improve the convenience of the transactions. However, for most product transactions, whether it is a merchant, distributor or manufacturer, statistics or records of the products being transacted are required. Therefore, in such application scenarios, a technical solution is urgently needed to be provided to ensure the security and credibility of the counted transaction data.
In view of the above, embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for processing transactions based on a blockchain, which will be described in detail below.
Fig. 1 is a schematic view of a first application scenario of a transaction processing method based on a blockchain provided in an embodiment of the present specification, and as shown in fig. 1, the application scenario includes a first terminal, a second terminal, a blockchain system, and a payment server. The first terminal is a terminal device used by the user for payment, such as an intelligent device with code scanning and payment functions, such as a mobile phone and a tablet personal computer, which are held by the user; the second terminal is a transaction terminal, and specifically, the second terminal may be an intelligent device such as a mobile phone, a tablet computer, or a computer, for example, a terminal device used by a merchant. Optionally, in some embodiments, in order to implement the transaction operation, the second terminal may install a service client on the second terminal, for example, the service client may be a stand-alone application program, an applet embedded in some stand-alone application programs, or a web page, and the like. In the application scenario shown in fig. 1, the second terminal is a terminal accessing the blockchain system.
Specifically, when transaction processing is performed, the second terminal issues related information (such as product identification information, such as a product name, a bar code, a production lot number, and the like, of a currently transacted transaction product and related transaction information, such as transaction time, transaction geographic location, and the like, of the currently transacted transaction product) to the blockchain system, so that the blockchain system creates digital identity information corresponding to the transaction product based on the related information of the transaction product; one specific form of the digital Identity information may be Decentralized Identity (DID). And the blockchain system sends the digital identity information corresponding to the created transaction product to a payment server, and the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the transaction product according to the digital identity information corresponding to the transaction product, wherein the graphic code is used for realizing resource transfer of resources corresponding to the transaction product. The payment server side sends the generated graphic code information to a second terminal, and the second terminal generates a corresponding graphic code according to the graphic code information and displays the graphic code; and then the first terminal sends an operation request of resource transfer of the resource corresponding to the current transaction operation to the payment server by scanning the graphic code displayed by the second terminal, the payment server completes the corresponding resource transfer, and the payment server uploads the transaction record information of the current transaction to the blockchain system for storage after completing the resource transfer.
Optionally, in implementation, the second terminal may directly access the blockchain system, or may access the blockchain system through a service end corresponding to a service program installed on the second terminal, that is, access the blockchain system through a corresponding service end. Therefore, fig. 2 is a schematic view of a second application scenario of the transaction processing method based on the blockchain provided in the embodiment of the present specification, and as shown in fig. 2, the application scenario includes a first terminal, a second terminal, a business server, a blockchain system, and a payment server. For specific description of the first terminal and the second terminal, reference may be made to the application scenario shown in fig. 1, which is not described herein again.
Specifically, when the transaction processing is performed through the application scenario shown in fig. 2, the second terminal sends the related information (specific content may refer to description in fig. 1) of the currently transacted transaction product to the service end, and the service end issues the received related information of the transaction product to the blockchain system, so that the blockchain system creates the digital identity information corresponding to the transaction product based on the related information of the transaction product; the blockchain system sends the created digital identity information to a payment server, and the payment server generates graphic code information of resource transfer processing required to be executed by trading the trading product according to the digital identity information corresponding to the trading product; the payment server side sends the generated graphic code information to a second terminal, and the second terminal generates a corresponding graphic code according to the graphic code information and displays the graphic code; and then the first terminal sends an operation request of resource transfer of the resource corresponding to the current transaction operation to the payment server by scanning the graphic code displayed by the second terminal, the payment server completes the corresponding resource transfer, and the payment server uploads the transaction record information of the current transaction to the blockchain system for storage after completing the resource transfer.
Optionally, in a specific implementation manner, after generating the graphic code information corresponding to the current transaction, the payment server sends the generated graphic code information to the service server, after receiving the graphic code information sent by the payment server, the service server sends the graphic code information to the second terminal, and the second terminal generates the corresponding graphic code according to the graphic code information and displays the graphic code; and then the first terminal sends an operation request of resource transfer of the resource corresponding to the current transaction operation to the payment server by scanning the graphic code displayed by the second terminal, the payment server completes the corresponding resource transfer, and the payment server uploads the relevant information of the current transaction to the block chain system for storage after completing the resource transfer.
The application scenario corresponding to this case is shown in fig. 3. For other descriptions in the application scenario shown in fig. 3, reference may be made to the application scenario shown in fig. 2, which is not described herein again.
Of course, the foregoing is only a schematic diagram exemplifying several specific application scenarios of the block chain-based transaction processing method provided in the embodiment of the present specification, and the application scenarios of the method are not listed in the embodiment of the present specification.
Fig. 4 is a first flowchart of a blockchain-based transaction processing method provided in an embodiment of the present disclosure, where the method may be applied to a payment server, that is, an execution subject of the method is the payment server, and specifically, the execution subject of the method may be a blockchain-based transaction processing apparatus installed on the payment server. As shown in fig. 4, the method for processing transactions based on blockchains provided in the embodiments of the present disclosure includes at least the following steps:
102, acquiring digital identity information corresponding to a target product to be traded from a blockchain system; the digital identity information is created by the blockchain system based on the related information of the target product, and the related information comprises the identification information of the target product and the transaction related information of the target product.
The target product may include one or more products, and the number of the various products may be one or more; the identification information of the target product may include any one or more of the following: the name of the target product, the bar code information of the target product, the production batch information of the target product and the like; the transaction-related information for the target product may include any one or more of the following: transaction timestamp information of the target product, transaction geographic position information of the target product, equipment identification information of the transaction terminal and the like. The identification information of the transaction terminal may be a Media Access Control Address (MAC) Address, an Internet Protocol Address (IP), an International Mobile Equipment Identity (IMEI), and the like of the transaction terminal.
And 104, generating graphic code information corresponding to the resource transfer processing required to be executed by the transaction target product based on the digital identity information.
The resource may be money, currency, points, gold coins, etc. Specifically, when the payment server generates the graphic code information, the parameters used by the payment server at least need information such as account information of the resource receiver and the amount of the target resource to be transferred, in addition to the digital identity information of the target product.
And 106, sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
In a specific implementation, the transfer party of the target product may be a merchant, and correspondingly, the transaction device may be a transaction terminal used by the merchant.
In the transaction processing method based on the blockchain provided in the embodiment of the present specification, when a transaction operation of a target product is performed, digital identity information corresponding to the target product is generated based on the blockchain system, and the digital identity information of the target product is carried in graphic code information as one of generation parameters of a resource transfer graphic code, so that a payment operation and a transaction operation of the transaction of the target product are associated through the digital identity information of the target product, which is convenient for statistics of the transaction product; in addition, in the embodiment of the specification, the transaction operation and the payment operation are associated by using the digital identity information of the target product, so that uniqueness is realized, the authenticity of the statistical data is ensured, and the reliability of the data is improved.
Optionally, a main application scenario of the method provided by the embodiment of the present specification may be an offline transaction scenario, such as a transaction scenario of performing a target product in a store, and the like. Therefore, in one embodiment, when the target product is traded, the merchant inputs the relevant information of the traded target product into the trading terminal, and the relevant information is sent to the blockchain system through the trading terminal; after receiving the related information of the target product for transaction sent by the transaction terminal, the blockchain system creates the digital identity information corresponding to the target product based on the related information.
In addition, although the main application scenario of the method provided by the embodiment of the present specification is referred to as an offline transaction scenario, a specific application scenario of the embodiment of the present specification is not limited to the offline transaction scenario.
Optionally, in step 106 of the embodiment of the present description, the graphic code information is sent to the transaction device corresponding to the transfer party of the target product, so that the transaction device displays the corresponding graphic code based on the graphic code information, specifically, the transaction device itself displays the graphic code, or the transaction device sends the graphic code information to the graphic code display device (that is, a display device for displaying the graphic code is separately provided), and the graphic code display device displays the graphic code. Generally, the display screen of the transaction device is generally oriented to the sales personnel, so that the graphic code can be conveniently displayed to the transaction user by arranging a single graphic code display device (oriented to the transaction user). Therefore, the specific implementation process of step 106 may include:
sending the graphic code information to the transaction equipment so that the transaction equipment generates and displays a corresponding graphic code based on the graphic code information;
alternatively, the first and second electrodes may be,
and sending the graphic code information to transaction equipment so that the transaction equipment sends the graphic code information to graphic code display equipment, and the graphic code display equipment generates and displays the corresponding graphic code based on the graphic code information.
Optionally, in this specification embodiment, the type of the target product per transaction may be one or more, and the number of the target product per transaction may be one or more; in specific implementation, regardless of the specific value of the type and quantity of the target product in each transaction, only one piece of digital identity information is generated, where the digital identity information includes information of each product included in the target product, such as a product name of each product, a product type of each product, a transaction quantity of each product, and a transaction resource quantity corresponding to each product.
Therefore, in the embodiment of the present specification, the number of the target products is one or more, and the target products correspond to one piece of digital identity information;
correspondingly, in specific implementation, the digital identity information includes related information of the target product, or the digital identity information includes encoded information corresponding to the target product; wherein the coded information is generated based on the related information of the target product, and the related information of the target product further comprises one or more of the following information: the product type of each product in the target product, the transaction quantity corresponding to each product and the transaction resource quantity corresponding to each product.
Specifically, if the target product of the current transaction only contains one product, digital identity information corresponding to the product is created based on the related information corresponding to the product; if the target product of the current transaction contains a plurality of products, a piece of digital identity information containing the relevant information of the plurality of products is created based on the relevant information corresponding to the plurality of products.
When the digital identity information corresponding to the target product is created, the carried identification information of the target product may only include name information of the target product, and may also carry other information, such as a production batch, a barcode, a production date, and the like; the specific information content included in the digital identity information may be limited according to the actual application scenario, which is not limited in the embodiments of the present specification.
For example, in one specific transaction, the currently traded product includes product 1, product 2, and product 3; the transaction terminal uploads the identification information of the product 1, the identification information of the product 2, the identification information of the product 3 and the transaction related information of the current transaction to the blockchain system, and the blockchain system creates a piece of digital identity information according to the identification information of the product 1, the identification information of the product 2, the identification information of the product 3 and the transaction related information of the current transaction, and the digital identity information is used as the digital identity information corresponding to the transaction product of the current transaction; specifically, the digital identity information carries identification information of three products and transaction related information.
That is, in the embodiment of the present specification, the related information of the target product may be directly added to the digital identity information, or the related information of the target product may be encoded according to a set rule, for example, binary encoding or hash operation is performed, and the encoded information obtained after processing is added to the digital identity information, so as to reduce the size of data added to the digital identity information.
In a specific implementation, the set rule may be used to determine how to perform information processing on the information related to the target product and add the information to the digital identity information according to the product quantity and/or the product type of the target product to be traded. For example, in a specific embodiment, in consideration of the space condition of the digital identity information itself and the computing resource condition consumed by the processing process of generating the digital identity information, the setting rule may be that when the number of products included in the target product is greater than or equal to a first value and the product type of the product included in the target product is greater than or equal to a second value, corresponding encoding information is generated based on the related information of the target product and added to the digital identity information; and in other cases, the related information of the target product is directly added into the digital identity information.
In the embodiment of the present specification, when the number and the type of the products included in the target product to be traded are small, the data size of the related information corresponding to the target product is also small, and in this case, in order to reduce the calculation amount when creating the digital identity information of the target product, the related information of the target product may be directly added to the digital identity information; when the number and the types of the products included in the target product to be traded are large, the data volume of the related information corresponding to the target product is also large, and in this case, the space problem of the digital identity information is considered, so that the related information of the target product can be compressed, such as encoding or encryption, and the obtained encoded information or ciphertext information is added to the digital identity information, thereby reducing the data volume added to the digital identity information.
Of course, in some embodiments, the priority of each piece of information in the related information of the target product may also be set, so that when the related information contains more information, several pieces of information may be selected from the related information in the order of priority from high to low as padding information to be added to the digital identity information. In one embodiment, the related information of the target product name includes product identification, product production batch, product bar code, product transaction quantity, transaction resource amount corresponding to the product, product type, transaction location and transaction time; in order to generate unique digital identity information and information such as product quantity reflecting current transaction, specific transaction products and the like, one possible arrangement mode from high to low according to priority is as follows: product identification, product transaction quantity, transaction time, product type, transaction resource amount corresponding to the product, product bar code, transaction place and product production batch; of course, the description is only exemplary and should not be construed as limiting the embodiments of the present disclosure.
Optionally, in an embodiment, a specific representation of the digital identity information of the created target product may be a DID. The created DID may contain two parts of a DID identifier and a DID Document (DID Document) which are stored in a Key-Value form. The DID is identified as a character string with a specific format, one DID corresponds to a target product corresponding to a transaction operation and is used for representing a digital identity of the target product corresponding to the transaction operation, and specifically, the DID character string can comprise a prefix, a DID method and a DID method specific character string; the DID method specification string is generated based on the related information of the target product, and is processed as the DID method specification string after the information processing of the set rule is performed on the related information of the target product. Specifically, the DID identifier may also be understood as a Uniform Resource Locator (URL) capable of addressing a DID document, and a specific usage manner for the DID is described by the DID document corresponding to the DID. The DID document may include a descriptive field information to which information generated based on the related information of the target product may be added. Namely, after the information processing of the set rule is carried out on the relevant information of the target product, the processed information is added into the DID document. Optionally, when creating the DID corresponding to the target product through the blockchain system, the generated DID and DID documents may be directly registered on the blockchain system without applying to a centralized registration authority, and by utilizing the characteristics of non-falsification, hash encryption and the like of the distributed network technology such as blockchain, the digital identity may be really owned and controlled by the user, and no intermediary (even a DID technology provider) contacts the identity and data of the owning control user.
Specifically, in the embodiment of the present specification, a DID is created based on relevant information of a target product to be traded, that is, relevant information of the target product is added to the DID, so that the created DID carries relevant information of the target product currently traded, that is, an association between the DID and the target product is established, that is, the DID is used as an association bridge between the target product and resource transfer, an association relationship between trading and resource transfer of the target product is established, which facilitates subsequent transaction tracing and product information statistics, and meanwhile, reliability of data for statistics can be improved; in addition, since the related information of the target product for each transaction is not the same, by adding the related information of the target product to the DID, the uniqueness of the created DID can also be guaranteed.
In the method provided by the embodiment of the description, the association between the payment flow in the off-line transaction flow and the target product of the transaction is realized by creating the digital identity information corresponding to the target product to be transacted and taking the digital identity information as one of the generation parameters of the resource transfer graphic code to be carried in the graphic code, and the digital identity information is taken as a link to be associated, so that the credibility is higher, namely the credibility of the transaction data can be improved.
Optionally, in a specific implementation manner, after sending the graphic code information to the transaction device corresponding to the transfer party of the target product, so that the transaction device displays the corresponding graphic code based on the graphic code information, the method provided in the embodiment of the present specification further includes the following steps:
receiving a resource transfer request sent by a transaction user; the resource transfer request carries a target resource amount corresponding to a target product and resource receiving account information; and executing the operation of transferring the resource of the target resource amount to the resource receiving account information.
The graphic code mentioned in the embodiments of the present specification may be a two-dimensional code, a barcode, or another graphic code capable of realizing resource transfer, and the embodiments of the present specification do not limit the specific presentation form of the graphic code.
After the transaction equipment executes the operation of displaying the graphic code corresponding to the graphic code information, the user uses the terminal equipment of the user to scan the graphic code and analyzes the graphic code to obtain the graphic code information corresponding to the graphic code. Optionally, in a specific embodiment, the parsed graphic code information at least includes any one or a combination of more of the following information: the digital identity information corresponding to the target product, the access address information of the payment server, the resource receiving account information and the target resource amount to be transferred.
When a trading user scans and analyzes the graphic code information corresponding to the graphic code through the held terminal equipment, a resource transfer request is generated based on the graphic code information and the resource transfer-out account information, the resource transfer request is sent to a payment server based on the access address information of the payment server, and after the payment server receives the resource transfer request sent by the trading user, the resource of the target resource amount is transferred from the resource transfer-out account information to the resource receiving account information, so that the resource transfer of the resource corresponding to the trading operation is realized.
Optionally, in an embodiment, the transaction user may scan the graphic code through a payment client corresponding to the payment server.
In particular, in the embodiments of the present specification, traceability of the current transaction is facilitated, and authenticity and tamper-proof of the traced information are ensured. Therefore, after the payment server performs the resource operation of transferring the target resource amount to the resource receiving account, the method provided by the embodiment of the present specification further includes the following steps:
writing the transaction record information corresponding to the digital identity information into a block chain system so that a business party carries out transaction data statistics on the product to be counted based on a plurality of pieces of transaction record information corresponding to the product to be counted; the transaction record information comprises related information of the target product and related information of resource transfer.
Specifically, the related information of the target product may include a name of the target product, barcode information, production lot number information, transaction time, geographic location information of the transaction, information of a transaction merchant, and identification information (such as a MAC address, an IP address, an IMEI identification code, and the like) of the transaction terminal; the resource transfer related information may include information such as a resource transfer amount, resource receiving account information, resource transferring time information, and a resource transfer service serial number.
Optionally, in this embodiment of the present specification, since the digital identity information of the target product is generated based on the related information of the target product, the related information of the target product may be acquired based on the digital identity information; and because the resource transfer operation is completed at the payment server, the resource transfer related information can be directly acquired from the payment server, and therefore, the transaction record information of the transaction operation is generated based on the related information of the target product acquired from the digital identity information and the resource transfer related information.
Therefore, in one embodiment, before writing the transaction record information corresponding to the digital identity information into the blockchain system, the method provided by the embodiment of the present specification further includes the following steps:
determining related information of the target product based on the digital identity information; generating transaction record information based on the determined related information of the target product and the resource transfer related information.
Specifically, the determining the related information of the target product based on the digital identity information specifically includes: extracting relevant information of a target product from the digital identity information; or extracting the coding information corresponding to the target product from the digital identity information, and restoring the relevant information corresponding to the target product based on the coding information.
In specific implementation, if the related information of the target product is directly added to the digital identity information, the related information of the target product can be directly obtained from the digital identity information correspondingly; and if the information added into the digital identity information is the coding information corresponding to the target product, extracting the coding information from the digital identity information, and restoring the relevant information corresponding to the target product based on the coding information.
In the embodiment of the present specification, since the transaction record information stored in the blockchain system is the trusted data, statistics of the transaction data of the product may be performed based on the transaction record information stored in the blockchain, for example, statistics of sales of a certain product in a certain period of time, comparison of sales of a certain product in different regions in a certain period of time, and the like may be performed.
Optionally, when the transaction data of a certain product in the specified time period needs to be counted, the transaction record information in the specified time period may be acquired from the blockchain, then the transaction record information corresponding to the product to be counted is screened out from the acquired transaction record information, and then, corresponding counting operation is performed based on the screened transaction record information corresponding to the product to be counted.
For ease of understanding, the following description will be given by way of example.
For example, in one embodiment, the total transaction amount and total transaction amount of product A in the period from 00: 12/11/12/2019 to 00: 12/11/2020/1/11 need to be counted; in specific implementation, the business party acquires the transaction record information from the blockchain system in the period from 12 hours and 00 hours at 12 days and 11 days and 12 hours at 12 days and 1 month and 2020, wherein a specific form of the acquired transaction record information is as follows:
DID 1: transaction record information 1; DID 2: transaction record information 2; DID 3: transaction record information 3; DID 4: transaction record information 4; DID 5: transaction record information 5; DID 6: transaction information record 6, DID 7: transaction record information 7; DID 8: transaction record information 8.
Since the name of the transaction product information of the transaction operation is stored in each transaction record information, the transaction record information containing the product a can be screened out from all the acquired transaction record information based on the name of the product a. Assume that the screened transaction record information is as follows:
DID 1: transaction record information 1; DID 3: transaction record information 3; DID 6: transaction record information 6; DID 8: transaction record information 8;
finally, counting the total transaction amount of the product A based on the transaction amount of the product A in each piece of screened transaction record information; and counting the total transaction amount of the product A based on the transaction amount of the product A in each piece of screened transaction record information.
Of course, the above description is only an exemplary illustration of a specific implementation manner of the product statistics performed by the business side, and does not limit the embodiments of the present specification.
Optionally, in this embodiment of the present specification, when the transaction record information is written into the blockchain system for storage, all information contents of the transaction record information may be written into the blockchain system for storage, or only the identification information corresponding to the transaction record information may be written into the blockchain system, and specific information contents of the transaction record information are stored into other storage areas. That is, in the embodiment of the present specification, the writing of the transaction record information corresponding to the digital identity information into the blockchain system may be specifically implemented through the following processes:
writing the digital identity information and the transaction record information into a block chain system correspondingly;
alternatively, the first and second electrodes may be,
and generating a hash value corresponding to the transaction record information, and writing the digital identity information and the hash value into a block chain system.
For ease of understanding, the following description will be presented in detail.
Optionally, in a specific implementation manner, when the payment server executes an operation of writing the transaction record information corresponding to the transaction operation into the blockchain system, in order to ensure authenticity, traceability and security of the transaction record information, all information contents of the transaction record information may be written into the blockchain system; specifically, in order to facilitate the follow-up tracing and statistics of the transaction situation of the target product, the digital identity information of the target product and the transaction record information may be stored in the blockchain system correspondingly.
For example, in one embodiment, the transaction record information of the transaction operation is stored in the blockchain system in the form shown in table 1.
TABLE 1
Digital identity information Transaction record information
DID1 Transaction record information 1
DID2 Transaction record information 2
DID3 Transaction record information 3
Table 1 is only an exemplary example of a possible storage form of the transaction record information in the blockchain system, and does not limit the embodiment of the present disclosure.
In the specific implementation, if all the information content of the transaction record information corresponding to each transaction operation is written into the block chain system for storage, the storage cost may be higher; therefore, in an alternative embodiment, in order to reduce the storage cost of the transaction record information, the unique representation information generated based on the transaction record information can be stored in the blockchain system, and the specific information content of the transaction record information can be stored in other low-cost storage media.
Therefore, in a specific embodiment, the transaction record information to be stored may be subjected to a hash operation at the payment server by using a hash algorithm to obtain a hash value corresponding to the transaction record information, the digital identity information of the target product and the hash value are written into the blockchain system, and the hash value and the transaction record information corresponding to the hash value are written into another storage medium.
For example, in one embodiment, the transaction record information of the transaction operation is stored in the blockchain system in the form shown in table 2.
As shown in table 2, the mapping relationship between the hash value of the transaction record information stored in the blockchain system for each transaction operation and the DID of the transaction product corresponding to the transaction operation is stored. In this way, when the transaction record information corresponding to a certain transaction operation needs to be queried, the hash value corresponding to the transaction can be determined in the blockchain system based on the DID of the transaction product, and then the transaction record information corresponding to the transaction hash can be queried from other storage media based on the hash value.
TABLE 2
Digital identity information Hash value
DID1 Hash value 1
DID2 Hash value 2
DID3 Hash value 3
Table 2 above is merely an exemplary list of possible storage forms of the transaction record information in the blockchain system, and does not limit the embodiments of the present disclosure.
The block chain-based transaction processing method provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Based on the same idea, the embodiment of the present specification further provides a transaction processing method based on a blockchain, which is applied to a transaction device, that is, the execution subject of the method is the transaction device, and specifically, the method may be a transaction processing apparatus based on a blockchain installed on the transaction device. Fig. 5 is a second flowchart of a method for processing transactions based on blockchains according to an embodiment of the present disclosure, as shown in fig. 5, the method at least includes the following steps:
step 202, issuing related information of a target product to be traded to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the related information; the related information comprises identification information of the target product and transaction related information.
Step 204, obtaining graphic code information corresponding to resource transfer processing required to be executed by the transaction target product from the payment server; the graphic code information is generated by the payment server based on the digital identity information.
And step 206, displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
Optionally, in this embodiment of the present disclosure, the transaction device may be a direct access blockchain system, or may access the blockchain system through a service server; correspondingly, if the transaction device is directly connected to the blockchain system, in step 202, the related information of the target product is directly issued to the blockchain system through the transaction device;
if the transaction device does not access the blockchain system, but the service server accesses the blockchain system, in step 202, the step of issuing the related information of the target product to be traded to the blockchain system specifically includes:
and sending the related information to a transaction server so that the transaction server can issue the related information to a blockchain system, and the blockchain system creates digital identity information corresponding to the target product based on the related information.
Optionally, in the step 206, displaying the corresponding graphic code based on the graphic code information specifically includes:
generating a corresponding graphic code based on the graphic code information, and displaying the graphic code;
alternatively, the first and second electrodes may be,
and sending the graphic code information to a graphic code display device, and generating and displaying the corresponding graphic code by the graphic code display device based on the graphic code information.
Optionally, in an embodiment of the present specification, the number of the target products is one or more, and the target products correspond to one piece of digital identity information;
the digital identity information comprises related information of a target product, or the digital identity information comprises coding information corresponding to the target product; wherein the coded information is generated based on the related information of the target product, and the related information of the target product further comprises one or more of the following information: the product type of each product in the target product, the transaction quantity corresponding to each product and the transaction resource quantity corresponding to each product.
The specific implementation process of the above steps in this embodiment may refer to the embodiment shown in fig. 4, which is not described herein again.
The block chain-based transaction processing method provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Based on the same idea, the embodiments of the present disclosure provide a method for processing transactions based on a blockchain, which is applied to a blockchain system, that is, the method is mainly executed by the blockchain system, and specifically, may be a blockchain-based transaction processing apparatus installed on a node device corresponding to the blockchain system. Fig. 6 is a schematic flow chart of a block chain-based transaction processing method provided in an embodiment of the present disclosure, and as shown in fig. 6, the method at least includes the following steps:
step 302, receiving related information of a target product to be traded, which is sent by trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
step 304, creating digital identity information corresponding to the target product based on the related information of the target product;
step 306, sending the digital identity information to the payment server, so that the payment server generates graphic code information corresponding to the resource transfer processing that needs to be executed by transacting the target product based on the digital identity information, and sends the graphic code information to the transaction device, and the transaction device executes an operation of displaying a corresponding graphic code based on the graphic code information.
Optionally, the number of the target products is one or more, and the product types of the target products are one or more.
Specifically, in a specific embodiment, in step 304, the creating digital identity information corresponding to the target product based on the related information of the target product specifically includes:
determining the product quantity and the product type number of products contained in the target product;
when the number of the products is larger than or equal to a first numerical value and the number of the product types is larger than or equal to a second numerical value, generating coding information corresponding to the target product based on the relevant information of the target product, and adding the coding information to the digital identity information to generate the digital identity information; otherwise, adding the related information of the target product into the digital identity information to generate the digital identity information;
wherein the related information of the target product further comprises one or more of the following information: the product type of each product in the target product, the corresponding transaction quantity of each product and the corresponding transaction resource quantity of each product.
Optionally, in a specific embodiment, the creating digital identity information corresponding to the target product based on the related information of the target product specifically includes:
determining the priority corresponding to each information in the related information according to a preset rule; and selecting a preset number of pieces of information from the related information according to the sequence of the priority from top to bottom, and adding the selected information to the digital identity information to generate the digital identity information.
Optionally, the method provided in the embodiments of the present specification further includes the following steps:
and receiving transaction record information corresponding to the digital identity information uploaded by the payment server, and storing the digital identity information and the transaction record information correspondingly.
Optionally, the method provided in the embodiment of the present specification further includes the following steps:
and receiving the digital identity information uploaded by the payment server and the hash value of the transaction record information corresponding to the digital identity information, and storing the digital identity information and the hash value correspondingly.
The specific implementation process of the above steps in this embodiment may refer to the embodiments shown in fig. 4 and fig. 5, and is not described herein again.
For the convenience of understanding the method provided by the embodiments of the present specification, the method provided by the embodiments of the present specification will be described below as a method of performing interaction between various devices.
Optionally, in a specific implementation manner, an application scenario of the method according to the embodiment of the present specification includes a first terminal (user payment terminal), a second terminal (transaction terminal), a blockchain system, and a payment server, and based on the application scenario, an interaction flow of the blockchain-based transaction processing method provided in the embodiment of the present specification is as shown in fig. 7, that is, fig. 7 shows a first interaction flow diagram of the blockchain-based transaction processing method provided in the embodiment of the present specification, and as shown in fig. 7, the method at least includes the following steps:
step 402, the second terminal issues the related information of the target product to be traded to the blockchain system.
The related information of the target product comprises identification information of the target product and transaction related information of the target product.
In step 404, the blockchain system creates digital identity information corresponding to the target product based on the related information of the target product.
In step 406, the blockchain system sends the created digital identity information to the payment server.
And step 408, the payment server generates graphic code information of the resource transfer processing required to be executed by the transaction target product based on the digital identity information and other parameters.
And step 410, the payment server sends the generated graphic code information to the second terminal.
In step 412, the second terminal generates and displays a corresponding graphic code based on the graphic code information.
And step 414, the first terminal scans and analyzes the graphic code displayed by the second terminal, and sends a resource transfer request to the payment server based on the graphic code information obtained by analysis.
The resource transfer request carries a target resource amount corresponding to the transaction operation and resource receiving account information.
In step 416, the payment server performs an operation of transferring the resource of the target resource amount to the resource receiving account.
In step 418, the payment server writes the digital identity information of the target product and the transaction record information of the transaction operation into the blockchain system correspondingly.
Optionally, in another specific implementation, an application scenario of the method according to the embodiment of the present specification includes a first terminal (user payment terminal), a second terminal (transaction terminal), a service end, a blockchain system, and a payment service end, based on the application scenario, an interaction flow of the method for processing transactions based on blockchain provided by the embodiment of the present specification is as shown in fig. 8, that is, fig. 8 shows a second interaction flow diagram of the method for processing transactions based on blockchain provided by the embodiment of the present specification, and as shown in fig. 8, the method at least includes the following steps:
and 502, the second terminal sends the relevant information of the target product to be traded to the service end.
The related information of the target product comprises identification information of the target product and transaction related information of the target product.
Step 504, the service end issues the received related information of the target product to the blockchain system.
In step 506, the blockchain system creates digital identity information corresponding to the target product based on the related information of the target product.
In step 508, the blockchain system sends the created digital identity information to the payment server.
And step 510, the payment server generates graphic code information of the resource transfer processing required to be executed by the transaction target product based on the digital identity information and other parameters.
And step 512, the payment server sends the generated graphic code information to the second terminal.
And 514, the second terminal generates and displays the corresponding graphic code based on the graphic code information.
And 516, the first terminal scans and analyzes the graphic code displayed by the second terminal, and sends a resource transfer request to the payment server based on the graphic code information obtained by analysis.
The resource transfer request carries a target resource amount corresponding to the transaction operation and resource receiving account information.
In step 518, the payment server performs an operation of transferring the resource of the target resource amount to the resource receiving account.
In step 520, the payment server writes the digital identity information of the target product and the transaction record information of the transaction operation into the blockchain system correspondingly.
Corresponding to the method provided by the embodiment shown in fig. 4, based on the same idea, the embodiment of the present specification further provides a transaction processing apparatus based on a blockchain, which is used for executing the method provided by the embodiment shown in fig. 4 of the present specification. Fig. 9 is a schematic diagram illustrating a first module composition of a transaction processing apparatus based on a blockchain according to an embodiment of the present disclosure, where the apparatus is applied to a payment server, and specifically includes:
an obtaining module 602, configured to obtain digital identity information corresponding to a target product to be traded from a blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
a first generating module 604, configured to generate, based on the digital identity information, graphic code information corresponding to resource transfer processing that needs to be executed to trade the target product;
a sending module 606, configured to send the graphic code information to a transaction device corresponding to a transfer party of the target product, so that the transaction device displays a corresponding graphic code based on the graphic code information.
The transaction processing apparatus based on the blockchain provided in the embodiment shown in fig. 8 can implement all the method steps of the method embodiment shown in fig. 4, and details thereof are not repeated here.
The block chain-based transaction processing device provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Corresponding to the method provided by the embodiment shown in fig. 5, based on the same idea, the embodiment of the present specification further provides a transaction processing apparatus based on a blockchain, which is used for executing the method provided by the embodiment shown in fig. 5 of the present specification. Fig. 10 is a schematic diagram illustrating a second module composition of a block chain-based transaction processing apparatus provided in an embodiment of the present disclosure, where the apparatus is applied to a transaction device, and specifically includes:
a publishing module 702, configured to publish relevant information of a target product to be traded to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the relevant information; wherein the related information comprises identification information of the target product and transaction related information;
an obtaining module 704, configured to obtain, from a payment server, graphic code information corresponding to resource transfer processing that needs to be executed to trade the target product; the graphic code information is generated by the payment server based on the digital identity information;
and the execution module 706 is configured to display a corresponding graphical code based on the graphical code information, so that the trading user executes a resource transfer operation of a trading resource corresponding to the target product based on the graphical code.
The transaction processing apparatus based on the blockchain provided in the embodiment shown in fig. 10 can implement all the method steps of the method embodiment shown in fig. 5, and will not be described herein again.
The block chain-based transaction processing device provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Corresponding to the method provided by the embodiment shown in fig. 6, based on the same idea, the embodiment of the present specification further provides a transaction processing apparatus based on a blockchain, which is used for executing the method provided by the embodiment shown in fig. 5 of the present specification. Fig. 11 is a schematic diagram illustrating a second module composition of a transaction processing apparatus based on a blockchain according to an embodiment of the present disclosure, where the apparatus is applied to a blockchain system, and specifically includes:
a receiving module 802, configured to receive relevant information of a target product to be traded, where the relevant information is sent by a trading device; wherein the related information comprises identification information of the target product and transaction related information;
a creating module 804, configured to create digital identity information corresponding to the target product based on the relevant information of the target product;
a sending module 806, configured to send the digital identity information to a payment server, so that the payment server generates, based on the digital identity information, graphic code information corresponding to resource transfer processing that needs to be executed to trade the target product, and sends the graphic code information to a trading device, where the trading device displays a corresponding graphic code based on the graphic code information.
The transaction processing apparatus based on the blockchain provided in the embodiment shown in fig. 11 can implement all the method steps of the method embodiment shown in fig. 6, and details thereof are not repeated here.
The block chain-based transaction processing device provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Embodiments of the present specification also provide a blockchain-based transaction processing system, as shown in fig. 12, the system includes a transaction device 902, a payment server 904, and a blockchain system 906;
the trading equipment 902 is used for issuing relevant information of a target product to be traded to the blockchain system; the system is also used for receiving the graphic code information returned by the payment server and displaying the corresponding graphic code based on the graphic code information; wherein the related information comprises identification information of the target product and transaction related information;
the block chain system 904 is configured to receive the related information of the target product, create digital identity information corresponding to the target product based on the related information of the target product, and send the digital identity information to the payment server;
the payment server 906 is configured to generate, based on the digital identity information, graphic code information corresponding to resource transfer processing that needs to be executed to trade the target product, and send the graphic code information to a trading device, so that the trading device executes an operation of displaying a corresponding graphic code based on the graphic code information.
The transaction processing system based on the blockchain provided in the embodiment shown in fig. 12 can implement all the method steps of the method embodiments shown in fig. 4 to fig. 6, and details thereof are not repeated here.
The block chain-based transaction processing system provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Further, based on the method shown in fig. 4, an embodiment of the present specification further provides a transaction processing device based on a blockchain, which is applied to a payment server, and the structure of the transaction processing device is shown in fig. 13.
A blockchain-based transaction processing device may vary significantly from configuration to configuration or from performance to performance and may include one or more processors 1001 and memory 1002, where one or more stored applications or data may be stored in memory 1002. Memory 1002 may be, among other things, transient storage or persistent storage. The application stored in memory 1002 may include one or more modules (not shown), each of which may include a series of computer-executable instruction information for a blockchain based transaction processing device. Still further, the processor 1001 may be configured to communicate with the memory 1002 to execute a series of computer executable instruction information in the memory 1002 on a blockchain based transaction processing device. The blockchain-based transaction processing apparatus may also include one or more power supplies 1003, one or more wired or wireless network interfaces 1004, one or more input-output interfaces 1005, one or more keyboards 1006, and the like.
In one particular embodiment, a blockchain based transaction processing apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a sequence of computer executable instruction information for the blockchain based transaction processing apparatus, and the one or more programs configured to be executed by the one or more processors include computer executable instruction information for:
acquiring digital identity information corresponding to a target product to be traded from a blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
generating graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information;
and sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
The transaction processing device based on the blockchain provided in the embodiment of the present disclosure may implement all the method steps of the method embodiment shown in fig. 4, and details thereof are not described here.
The block chain-based transaction processing device provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Further, based on the method shown in fig. 5, an embodiment of the present specification further provides a transaction processing device based on a blockchain, which is applied to a transaction device, and the structure of the transaction processing device is shown in fig. 13.
In one particular embodiment, a blockchain based transaction processing apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a sequence of computer executable instruction information for the blockchain based transaction processing apparatus, and the one or more programs configured to be executed by the one or more processors include computer executable instruction information for:
the method comprises the steps that related information of a target product to be traded is issued to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the related information; wherein the related information comprises identification information of the target product and transaction related information;
acquiring graphic code information corresponding to resource transfer processing required to be executed for trading the target product from a payment server; the graphic code information is generated by the payment server based on the digital identity information;
and displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
The blockchain-based transaction processing device provided in the embodiment of the present disclosure may implement all the method steps of the method embodiment shown in fig. 5, and is not described herein again.
The block chain-based transaction processing device provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Further, based on the method shown in fig. 6, an embodiment of the present specification further provides a transaction processing device based on a blockchain, which is applied to a blockchain system, and the structure of the transaction processing device is shown in fig. 13.
In one particular embodiment, a blockchain based transaction processing apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a sequence of computer executable instruction information for the blockchain based transaction processing apparatus, and the one or more programs configured to be executed by the one or more processors include computer executable instruction information for:
receiving related information of a target product to be traded, which is sent by trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
creating digital identity information corresponding to the target product based on the related information of the target product;
and sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
The blockchain-based transaction processing device provided in the embodiment of the present disclosure may implement all the method steps of the method embodiment shown in fig. 6, and details thereof are not described here.
The block chain-based transaction processing device provided by the embodiment of the specification has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Further, based on the method shown in fig. 4, in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and when executed by a processor, the storage medium stores computer-executable instruction information that implements the following processes:
acquiring digital identity information corresponding to a target product to be traded from a blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
generating graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information;
and sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
The computer-executable instruction information stored in the storage medium provided in the embodiments of the present description may implement all the method steps of the method embodiment shown in fig. 4 when being executed by the processor, and will not be described herein again.
The storage medium provided by the embodiments of the present specification stores computer executable instruction information, which when executed by a processor, has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Further, based on the method shown in fig. 5, in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and when executed by a processor, the storage medium stores computer-executable instruction information that implements the following processes:
the method comprises the steps that related information of a target product to be traded is issued to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the related information; wherein the related information comprises identification information of the target product and transaction related information;
acquiring graphic code information corresponding to resource transfer processing required to be executed for trading the target product from a payment server; the graphic code information is generated by the payment server based on the digital identity information;
and displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
The computer-executable instruction information stored in the storage medium provided in the embodiments of the present description may implement all the method steps of the method embodiment shown in fig. 5 when being executed by the processor, and will not be described herein again.
The storage medium provided by the embodiments of the present specification stores computer executable instruction information, which when executed by a processor, has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
Further, based on the method shown in fig. 6, in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and when executed by a processor, the storage medium stores computer-executable instruction information that implements the following processes:
receiving related information of a target product to be traded, which is sent by trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
creating digital identity information corresponding to the target product based on the related information of the target product;
and sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
The computer-executable instruction information stored in the storage medium provided in the embodiments of the present description may implement all the method steps of the method embodiment shown in fig. 6 when being executed by the processor, and will not be described herein again.
The storage medium provided by the embodiments of the present specification stores computer executable instruction information, which when executed by a processor, has at least the following beneficial effects: when the target product is transacted, the digital identity information corresponding to the target product is generated, and the digital identity information of the target product is taken as one of the generation parameters of the resource transfer graphic code and carried in the graphic code information, so that the payment operation and the transaction operation of the transaction of the target product are associated through the digital identity information of the target product, and the subsequent statistics of the related information of the transacted product is facilitated; in addition, in the embodiment of the specification, the digital identity information of the target product is used for associating the transaction operation with the payment operation, namely the digital identity information is applied to the target product and is used as a link for associating the product transaction with the payment, and the digital identity information has uniqueness, so that the authenticity and the reliability of the counted data are ensured; in addition, in the embodiment of the present specification, the digital identity information of the target product is generated in the blockchain system, that is, the blockchain system is introduced in the product transaction link, so as to further ensure the authenticity and non-tamper property of the generated transaction-related information, that is, further improve the reliability of the transaction data.
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 in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in 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), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. 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 making 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, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. 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: ARC 625D, 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 regarded as being both a software module for performing 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 units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to 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 instruction information. These computer program instruction information 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 instruction information executed by the processor of the computer or other programmable data processing apparatus produce means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instruction information 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 instruction information stored in the computer-readable memory produce an article of manufacture including instruction information means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instruction information 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 instruction information executed on the computer or other programmable apparatus provides 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 non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instruction information, 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 phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instruction information, 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. The application may 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 only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (25)

1. A transaction processing method based on a blockchain is applied to a payment server side, and the method comprises the following steps:
acquiring digital identity information corresponding to a target product to be traded from a blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
generating graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information;
and sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
2. The method of claim 1, wherein the number of the target products is one or more, and the target products correspond to digital identity information;
the digital identity information comprises related information of the target product, or the digital identity information comprises coding information corresponding to the target product; wherein the encoded information is generated based on the information related to the target product, and the information related to the target product further includes one or more of the following information: the product type of each product in the target product, the transaction quantity corresponding to each product and the transaction resource quantity corresponding to each product.
3. The method according to claim 1, wherein after the sending of the graphic code information to the transaction device corresponding to the transfer party of the target product so that the transaction device displays the corresponding graphic code based on the graphic code information, the method further comprises:
receiving a resource transfer request sent by a transaction user; the resource transfer request carries a target resource amount corresponding to the target product and resource receiving account information;
and executing the operation of transferring the resource with the target resource amount to the resource receiving account.
4. The method of claim 3, after performing the operation of transferring the resource of the target resource amount to the resource receiving account information, the method further comprising:
writing the transaction record information corresponding to the digital identity information into the block chain system so that a service party carries out transaction data statistics on the product to be counted based on a plurality of pieces of transaction record information corresponding to the product to be counted; wherein the transaction record information comprises the related information of the target product and the related information of resource transfer.
5. The method of claim 4, wherein before writing the transaction record information corresponding to the digital identity information into the blockchain system, the method further comprises:
determining relevant information of the target product based on the digital identity information;
generating the transaction record information based on the determined related information of the target product and the resource transfer related information.
6. The method of claim 5, the determining the information related to the target product based on the digital identity information, comprising:
extracting relevant information of the target product from the digital identity information;
alternatively, the first and second electrodes may be,
and extracting the coding information corresponding to the target product from the digital identity information, and restoring the relevant information corresponding to the target product based on the coding information.
7. The method of claim 4, wherein writing the transaction record information corresponding to the digital identity information into the blockchain system comprises:
writing the digital identity information and the transaction record information into the blockchain system correspondingly;
alternatively, the first and second electrodes may be,
and generating a hash value corresponding to the transaction record information, and writing the digital identity information and the hash value into the blockchain system correspondingly.
8. A transaction processing method based on a blockchain is applied to transaction equipment, and the method comprises the following steps:
the method comprises the steps that related information of a target product to be traded is issued to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the related information; wherein the related information comprises identification information of the target product and transaction related information;
acquiring graphic code information corresponding to resource transfer processing required to be executed for trading the target product from a payment server; the graphic code information is generated by the payment server based on the digital identity information;
and displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
9. The method of claim 8, wherein the publishing information about the target product to be traded to the blockchain system comprises:
and sending the relevant information to a transaction server so that the transaction server can issue the relevant information to the blockchain system, and the blockchain system creates digital identity information corresponding to the target product based on the relevant information.
10. The method of claim 8, wherein the number of the target products is one or more, and the target products correspond to digital identity information;
the digital identity information comprises related information of the target product, or the digital identity information comprises coding information corresponding to the target product; wherein the encoded information is generated based on the information related to the target product, and the information related to the target product further includes one or more of the following information: the product type of each product in the target product, the transaction quantity corresponding to each product and the transaction resource quantity corresponding to each product.
11. A transaction processing method based on a blockchain is applied to a blockchain system, and the method comprises the following steps:
receiving related information of a target product to be traded, which is sent by trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
creating digital identity information corresponding to the target product based on the related information of the target product;
and sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
12. The method of claim 11, wherein the creating digital identity information corresponding to the target product based on the related information of the target product comprises:
determining the product quantity and the product type number of the products contained in the target product;
when the product quantity is larger than or equal to a first numerical value and the product type number is larger than or equal to a second numerical value, generating coding information corresponding to the target product based on the relevant information of the target product, and adding the coding information to the digital identity information to generate the digital identity information;
otherwise, adding the related information of the target product to the digital identity information to generate the digital identity information;
wherein the related information of the target product further comprises one or more of the following information: the product type of each product in the target product, the transaction quantity corresponding to each product and the transaction resource quantity corresponding to each product.
13. The method of claim 12, wherein the creating digital identity information corresponding to the target product based on the related information of the target product comprises:
determining the priority corresponding to each piece of information in the related information according to a preset rule;
and selecting a preset number of pieces of information from the related information according to the sequence of the priority from high to low, and adding the selected information to the digital identity information to generate the digital identity information.
14. The method of claim 11, the method further comprising:
and receiving transaction record information corresponding to the digital identity information uploaded by the payment server, and storing the digital identity information and the transaction record information correspondingly.
15. A blockchain-based transaction processing apparatus applied to a payment server, the apparatus comprising:
the acquisition module acquires digital identity information corresponding to a target product to be traded from the blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
the first generation module is used for generating graphic code information corresponding to resource transfer processing required to be executed by trading the target product based on the digital identity information;
and the sending module is used for sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment can display the corresponding graphic code based on the graphic code information.
16. The apparatus of claim 15, wherein the number of the target products is one or more, and the target products correspond to a digital identity information;
the digital identity information comprises related information of the target product, or the digital identity information comprises coding information corresponding to the target product; wherein the encoded information is generated based on the information related to the target product, and the information related to the target product further includes one or more of the following information: the product type of each product in the target product, the transaction quantity corresponding to each product and the transaction resource quantity corresponding to each product.
17. A transaction processing device based on a blockchain is applied to transaction equipment, and the device comprises:
the issuing module issues related information of a target product to be traded to a blockchain system so that the blockchain system creates digital identity information corresponding to the target product based on the related information; wherein the related information comprises identification information of the target product and transaction related information;
the acquisition module is used for acquiring graphic code information corresponding to resource transfer processing required to be executed for trading the target product from a payment server; the graphic code information is generated by the payment server based on the digital identity information;
and the execution module is used for displaying the corresponding graphic code based on the graphic code information so as to enable the trading user to execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
18. A transaction processing device based on a blockchain, which is applied to a blockchain system, the device comprises:
the receiving module is used for receiving the related information of the target product to be traded, which is sent by the trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
the creating module is used for creating digital identity information corresponding to the target product based on the related information of the target product;
the sending module is used for sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed by trading the target product based on the digital identity information, and sends the graphic code information to trading equipment, and the trading equipment displays a corresponding graphic code based on the graphic code information.
19. A blockchain based transaction processing system, the system comprising: the system comprises a transaction device, a payment server and a blockchain system;
the trading equipment is used for issuing related information of a target product to be traded to the blockchain system; the system is also used for receiving the graphic code information returned by the payment server and displaying the corresponding graphic code based on the graphic code information; wherein the related information comprises identification information of the target product and transaction related information;
the block chain system is used for receiving the related information of the target product, creating digital identity information corresponding to the target product based on the related information of the target product, and sending the digital identity information to the payment server;
and the payment server is used for generating graphic code information corresponding to resource transfer processing required to be executed by trading the target product based on the digital identity information and sending the graphic code information to trading equipment.
20. A blockchain-based transaction processing device applied to a payment server, the device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring digital identity information corresponding to a target product to be traded from a blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
generating graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information;
and sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
21. A blockchain-based transaction processing device for use in a transaction device, the device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
the method comprises the steps that related information of a target product to be traded is issued to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the related information; wherein the related information comprises identification information of the target product and transaction related information;
acquiring graphic code information corresponding to resource transfer processing required to be executed for trading the target product from a payment server; the graphic code information is generated by the payment server based on the digital identity information;
and displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
22. A blockchain-based transaction processing apparatus applied to a blockchain system, the apparatus comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving related information of a target product to be traded, which is sent by trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
creating digital identity information corresponding to the target product based on the related information of the target product;
and sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
23. A storage medium storing computer-executable instructions that, when executed, implement the following:
acquiring digital identity information corresponding to a target product to be traded from a blockchain system; wherein the digital identity information is created by the blockchain system based on relevant information of the target product, the relevant information including identification information of the target product and transaction relevant information of the target product;
generating graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information;
and sending the graphic code information to the transaction equipment corresponding to the transfer party of the target product so that the transaction equipment displays the corresponding graphic code based on the graphic code information.
24. A storage medium storing computer-executable instructions that, when executed, implement the following:
the method comprises the steps that related information of a target product to be traded is issued to a blockchain system, so that the blockchain system creates digital identity information corresponding to the target product based on the related information; wherein the related information comprises identification information of the target product and transaction related information;
acquiring graphic code information corresponding to resource transfer processing required to be executed for trading the target product from a payment server; the graphic code information is generated by the payment server based on the digital identity information;
and displaying the corresponding graphic code based on the graphic code information so that the trading user can execute the resource transfer operation of the trading resource corresponding to the target product based on the graphic code.
25. A storage medium storing computer-executable instructions that, when executed, implement the following:
receiving related information of a target product to be traded, which is sent by trading equipment; wherein the related information comprises identification information of the target product and transaction related information;
creating digital identity information corresponding to the target product based on the related information of the target product;
and sending the digital identity information to a payment server so that the payment server generates graphic code information corresponding to resource transfer processing required to be executed for trading the target product based on the digital identity information, and sending the graphic code information to trading equipment, wherein the trading equipment displays a corresponding graphic code based on the graphic code information.
CN202110195866.2A 2021-02-22 2021-02-22 Transaction processing method, device and system based on block chain Pending CN112581141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110195866.2A CN112581141A (en) 2021-02-22 2021-02-22 Transaction processing method, device and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110195866.2A CN112581141A (en) 2021-02-22 2021-02-22 Transaction processing method, device and system based on block chain

Publications (1)

Publication Number Publication Date
CN112581141A true CN112581141A (en) 2021-03-30

Family

ID=75113937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110195866.2A Pending CN112581141A (en) 2021-02-22 2021-02-22 Transaction processing method, device and system based on block chain

Country Status (1)

Country Link
CN (1) CN112581141A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076527A (en) * 2021-04-19 2021-07-06 支付宝(杭州)信息技术有限公司 Block chain-based digital asset processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer
CN110570282A (en) * 2019-09-10 2019-12-13 腾讯科技(深圳)有限公司 cross-region resource transfer method, device, equipment and storage medium
CN112200552A (en) * 2020-06-24 2021-01-08 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009441A (en) * 2017-11-23 2018-05-08 阿里巴巴集团控股有限公司 Resource transfers and the method and apparatus of fund transfer
CN110570282A (en) * 2019-09-10 2019-12-13 腾讯科技(深圳)有限公司 cross-region resource transfer method, device, equipment and storage medium
CN111080275A (en) * 2019-09-10 2020-04-28 腾讯科技(深圳)有限公司 Cross-region resource transfer method, device, equipment and storage medium
CN112200552A (en) * 2020-06-24 2021-01-08 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贵阳市地方志编纂委员会办公室: "《贵阳年鉴 2018 总第28期》", 31 October 2018 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076527A (en) * 2021-04-19 2021-07-06 支付宝(杭州)信息技术有限公司 Block chain-based digital asset processing method and device

Similar Documents

Publication Publication Date Title
CN109614823B (en) Data processing method, device and equipment
CN110377851B (en) Method and device for realizing multi-stage linkage drop-down frame and computer equipment
CN108196952B (en) Resource allocation method, device and equipment
CN112241506B (en) User behavior backtracking method, device, equipment and system
CN110648138B (en) Transaction query and transaction data processing method, device and equipment based on block chain
CN112581131A (en) Asset transfer method, device, equipment and system
CN108599973B (en) Log association method, device and equipment
CN111899008B (en) Resource transfer method, device, equipment and system
CN110674188A (en) Feature extraction method, device and equipment
CN112035504B (en) Block chain-based item code generation method, and item weight transfer method and device
JP6859503B2 (en) Information processing method and device of public information and information disclosure system
CN111738737A (en) Method, device and equipment for generating digital property right certificate
CN110992162A (en) Resource processing method, device, equipment and system
CN112015626A (en) User behavior recording method, device and equipment
CN110377268A (en) Serial number generation method, device and storage medium
CN113076527A (en) Block chain-based digital asset processing method and device
CN111402058B (en) Data processing method, device, equipment and medium
CN112016028A (en) Information recording method and device, and information storage method, device and system
CN112581141A (en) Transaction processing method, device and system based on block chain
CN110992039B (en) Transaction processing method, device and equipment
CN114548963B (en) Payment interaction processing method and device
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN113111078B (en) Resource data processing method and device, computer equipment and storage medium
EDGARD et al. DESIGN OF NFT SMART CONTRACT SYSTEM USING ETHEREUM NETWORK BLOCKHCAIN TECHNOLOGY
CN111506644A (en) Application data processing method and device and electronic equipment

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40048840

Country of ref document: HK