CN110599143B - Data processing method, related device and medium - Google Patents

Data processing method, related device and medium Download PDF

Info

Publication number
CN110599143B
CN110599143B CN201910879399.8A CN201910879399A CN110599143B CN 110599143 B CN110599143 B CN 110599143B CN 201910879399 A CN201910879399 A CN 201910879399A CN 110599143 B CN110599143 B CN 110599143B
Authority
CN
China
Prior art keywords
client
blockchain network
transaction
transaction data
electronic resource
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.)
Active
Application number
CN201910879399.8A
Other languages
Chinese (zh)
Other versions
CN110599143A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910879399.8A priority Critical patent/CN110599143B/en
Publication of CN110599143A publication Critical patent/CN110599143A/en
Application granted granted Critical
Publication of CN110599143B publication Critical patent/CN110599143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/08Payment architectures
    • G06Q20/085Payment architectures involving remote charge determination or related payment systems
    • G06Q20/0855Payment architectures involving remote charge determination or related payment systems involving a third party
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • 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)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (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

The embodiment of the invention discloses a data processing method, related equipment and a medium, wherein the data processing method comprises the following steps: the first client uploads the first transaction data to the blockchain network; the second client checks the first transaction data in the blockchain network, and sends the electronic resource and the drawing condition of the electronic resource to the hosting system, so that the hosting system generates and uploads payment information to the blockchain network according to the electronic resource and the drawing condition; the method comprises the steps that a first client side checks and verifies payment information in a block chain network, and after the payment information is successfully verified, unlocking parameters are published in the block chain network; after the unlocking parameters are disclosed, the first client draws the electronic resource from the hosting system; the second client unlocks the digital asset using the unlocking parameter. The embodiment of the invention can provide a fair trading mode, so that the digital assets can be better traded between the first client and the second client.

Description

Data processing method, related device and medium
The present application is a divisional application of a chinese patent application filed on 31/7/2019 under the name of "data processing method, related device and medium", with the application number of 2019107163036, and the entire contents of the application are incorporated herein by reference.
Technical Field
The present invention relates to the field of internet technologies, and in particular, to the field of data processing technologies, and in particular, to a data processing method, a data processing apparatus, a client, and a computer storage medium.
Background
Digital assets refer to non-monetary assets owned or controlled by a business or person, in the form of electronic data, held in daily activities for sale or in the process of production. At present, when a buyer and a seller want to trade digital assets, intervention of a third-party trading platform is usually needed; the third party transaction platform serves as a mediator and an arbitration mechanism to transmit transaction information between the buyer and the seller, so that the closed flow loop of the digital asset transaction is realized. The inventor finds in practice that the existing digital asset transaction is uniformly controlled by a third-party transaction platform, and the problem of opaque transaction exists, which easily causes unfair transaction between buyers and sellers. It can be seen that there is currently a lack of a fair trading method to ensure that trading of digital assets between buyers and sellers is performed in an efficient and fair manner.
Disclosure of Invention
The embodiment of the invention provides a data processing method, related equipment and a medium, which can provide a fair trading mode to ensure that digital assets can be better traded between a first client and a second client.
In one aspect, an embodiment of the present invention provides a data processing method, where the data processing method is applied to a first client, and the data processing method includes:
uploading first transaction data to a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
checking payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the drawing condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and disclosing the unlocking parameters in the block chain network, and drawing the electronic resources from the hosting system.
On the other hand, an embodiment of the present invention provides a data processing method, where the data processing method is applied to a second client, and the data processing method includes:
checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of the first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
sending the electronic resource and the drawing condition of the electronic resource to a hosting system, and enabling the hosting system to generate and upload payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and if the unlocking parameter is disclosed in the blockchain network by the first client, unlocking the digital asset by using the unlocking parameter.
In another aspect, an embodiment of the present invention provides a data processing apparatus, where the data processing apparatus runs in a first client, and the data processing apparatus includes:
the system comprises a first processing unit, a second processing unit and a third processing unit, wherein the first processing unit is used for uploading first transaction data to a blockchain network, the first transaction data are used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
the first viewing unit is used for viewing payment information uploaded by a hosting system in the blockchain network, and the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the payment condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
the first processing unit is configured to disclose the unlocking parameter in the blockchain network, and draw the electronic resource from the hosting system.
In another aspect, an embodiment of the present invention provides a data processing apparatus, where the data processing apparatus runs in a second client, and the data processing apparatus includes:
the second checking unit is used for checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data indicates that the blockchain network transfers the digital asset of the first client to a second client according to the first transaction data, and the digital asset is controlled to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
the second processing unit is used for sending the electronic resources and the drawing conditions of the electronic resources to the hosting system, so that the hosting system generates and uploads payment information to the block chain network according to the electronic resources and the drawing conditions; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
the second processing unit is configured to unlock the digital asset using the unlocking parameter if the unlocking parameter is disclosed by the first client in the blockchain network.
In another aspect, an embodiment of the present invention provides a client, where the client includes an input device and an output device, and the client further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
uploading first transaction data to a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
checking payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the drawing condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and disclosing the unlocking parameters in the block chain network, and drawing the electronic resources from the hosting system.
Alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the steps of:
checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of the first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
sending the electronic resource and the drawing condition of the electronic resource to a hosting system, and enabling the hosting system to generate and upload payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and if the unlocking parameter is disclosed in the blockchain network by the first client, unlocking the digital asset by using the unlocking parameter.
In yet another aspect, an embodiment of the present invention provides a computer storage medium, where one or more first instructions are stored, and the one or more first instructions are adapted to be loaded by a processor and perform the following steps:
uploading first transaction data to a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
checking payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the drawing condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and disclosing the unlocking parameters in the block chain network, and drawing the electronic resources from the hosting system.
Alternatively, the computer storage medium stores one or more second instructions adapted to be loaded by a processor and to perform the steps of:
checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of the first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
sending the electronic resource and the drawing condition of the electronic resource to a hosting system, and enabling the hosting system to generate and upload payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and if the unlocking parameter is disclosed in the blockchain network by the first client, unlocking the digital asset by using the unlocking parameter.
In another aspect, an embodiment of the present invention further provides a data processing system, where the data processing system includes a blockchain link point system for operating a blockchain network, a first client, a second client, and a hosting system; wherein the content of the first and second substances,
the first client uploads first transaction data to the blockchain network, the first transaction data is used for enabling the blockchain network to transfer the digital assets of the first client to a second client, and before unlocking parameters of the digital assets are not disclosed, the digital assets are controlled to be in a locked state at the second client;
the second client checks the first transaction data in the blockchain network, and sends the electronic resource and the drawing condition of the electronic resource to the hosting system based on the first transaction data; the obtaining condition comprises that if the unlocking parameter is disclosed, the first client side is qualified for obtaining the electronic resource;
the hosting system generates and uploads payment information to a block chain network according to the electronic resource and the drawing condition sent by the second client; the payment information comprises the value of the electronic resource and the drawing condition;
the first client checks the payment information in the blockchain network, uploads the unlocking parameters to the blockchain network to disclose the unlocking parameters, and draws the electronic resources from the hosting system;
the second client unlocks the digital asset using the unlocking parameter after the unlocking parameter is disclosed in the blockchain network by the first client.
In the embodiment of the invention, the first client can upload the first transaction data to the blockchain network, the first transaction data enables the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locking state at the second client before the unlocking parameter of the digital asset is not disclosed. The second client may view the first transaction data in the blockchain network, and send the electronic resource and the payout condition for purchasing the digital asset to the escrow system, so that the escrow system generates and uploads payment information to the blockchain network according to the electronic resource and the payout condition, and the payout condition includes that the first client is qualified to payout the electronic resource if the unlocking parameter is disclosed. Therefore, the first transaction data and the drawing condition are mutually restricted through the unlocking parameters; if the unlocking parameter is disclosed, the second client can use the digital asset and the first client can draw the electronic resource; otherwise, the second client cannot use the digital asset and the first client cannot draw the electronic resource. By simultaneously restricting the use of digital assets and the expenditure of electronic resources through unlocking parameters, the fairness of transactions can be ensured. Moreover, transaction information such as transaction data, payment information and the like is uploaded to the blockchain network, so that the transaction information can be viewed by the first client, the second client and the hosting system, and the transaction is guaranteed to be public and transparent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a transaction process for a digital asset provided by an embodiment of the invention;
FIG. 2a is a schematic diagram of a data processing scheme for a digital asset provided by an embodiment of the present invention;
FIG. 2b is an architecture diagram of a data processing system according to an embodiment of the present invention;
FIG. 2c is a block diagram illustrating an exemplary architecture of portions of a data processing system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the present invention;
fig. 4a is a schematic flowchart of uploading a public key according to an embodiment of the present invention;
fig. 4b is a schematic flow chart of uploading payment information according to an embodiment of the present invention;
fig. 4c is a schematic flowchart of a process for disclosing unlocking parameters according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a data processing method according to another embodiment of the present invention;
fig. 6 is a schematic flow chart of uploading transaction data according to an embodiment of the present invention;
fig. 7a is an application scenario diagram of a data processing method according to an embodiment of the present invention;
fig. 7b is a diagram of another application scenario of a data processing method according to an embodiment of the present invention;
fig. 7c is a diagram of another application scenario of a data processing method according to an embodiment of the present invention;
FIG. 8 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 9 is a block diagram of another data processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a client according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Related art of embodiments of the present invention mention: the current digital asset transaction is generally uniformly controlled by a third-party transaction platform, and the problem of opaque transaction exists, so that the transaction of a buyer and a seller is unfair. The digital assets traded by the buyer and the seller are taken as bills, the third party trading platform is taken as an electronic bank behavior example, and the bills are securities issued by the voter according to law and paid a certain amount to the payee or the voter unconditionally by the voter or by the voter; the specific process of accepting the draft through the electronic bank can be seen together as shown in fig. 1: after the buyer and the seller reach the transaction intention, the buyer (the cash-accredited institution) pays to the supervision account of the electronic bank; after the electronic bank receives the funds paid by the buyer, the current transaction link of the transaction order can be updated to 'waiting for the seller to endorse'. Accordingly, after the seller (the ticketing company) sees that the transaction order is in a 'waiting seller endorsement' link, the seller can endorse the transaction order in an ECDS (electronic commercial exchange system), and the endorsement refers to signing on the bill. The ECDS system can inform the buyer to receive the ticket after the seller completes the endorsement; after the buyer finishes signing, the electronic bank carries out pneumatic control inquiry to verify the delivery state of the bills marked by the buyer and the seller in the ECDS system, wherein the marked bills contain the right and obligation relation between the buyer and the seller. When the verification result is that the buyer has signed the bill of the endorsement of the seller, the transaction is judged to be successful, and at the moment, the electronic bank will automatically withdraw the funds paid by the buyer to the bank account selected when the seller initiates price inquiry.
According to the transaction process, in the whole transaction process of accepting the draft by the electronic bank, the electronic bank serves as a mediator and an arbitration mechanism to transmit transaction information, so that the closed flow loop of fund payment and bill transaction is realized. Research shows that the current trading mode has the following problems: the third-party transaction platform is generally established by an electronic bank or other third-party Internet companies, belongs to a centralized architecture and has a low credit level; if the credit level of the third-party transaction platform is low, transaction loss of the buyer and the seller can be caused, and the transaction reliability is low; secondly, the transaction system is relatively closed, and the introduction of buyers and sellers, electronic banks and the like has limitations and is not beneficial to market expansion; there is no fair trading method to ensure that trading is performed in an efficient and fair way between two mutually untrusted parties.
To solve the above problem, an embodiment of the present invention provides a data processing scheme based on a block chain, as shown in fig. 2 a; the block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission (P2P transmission), consensus mechanism, encryption algorithm and the like, and is essentially a decentralized database; the blockchain can be composed of a plurality of serial transaction records (also called blocks) which are connected in series by cryptography and protect the contents, and the distributed accounts connected in series by the blockchain can effectively record the transactions by multiple parties and can permanently check the transactions (can not be tampered). The consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in the block chain network; that is, the consensus mechanism is a mathematical algorithm commonly recognized by network nodes in the blockchain. The data processing scheme can utilize the de-intermediation characteristic of the block chain, and the whole transaction process is prevented from being controlled by a centralized transaction platform (a third-party transaction platform); the method can realize off-chain payment and on-chain transaction flow closed loop based on a fair transaction mode on the premise of no centralized transaction platform. The off-chain payment refers to payment by adopting electronic resources outside the block chain, wherein the electronic resources refer to funds for purchasing digital assets and can at least comprise legal coins, electronic currencies and the like; the legal currency is a currency which is given to the legal currency for forced circulation, such as RMB, USD and the like; the electronic money is money stored in an electronic form in an electronic wallet (e.g., QQ wallet, wechat wallet, etc.) held by the user. An on-chain transaction refers to a transaction of a digital asset in a blockchain network, where the digital asset may include, but is not limited to: electronic tickets, digital currency (an unregulated, digitized currency), gaming resources (e.g., gaming chips, gaming equipment, etc.), and so forth.
The above mentioned data processing scheme may be applied in a data processing system as shown in fig. 2b, which may comprise a block link point system for running a block chain network, a first client, a second client and a hosting system. In a specific implementation, the specific structure of each part in the data processing system can be referred to as shown in fig. 2 c:
the blockchain node system can receive transaction data submitted by each client and execute the transaction data, and submit information such as the transaction data and execution results to a shared account book (or called as a distributed account book, a shared account book and the like) through a consensus mechanism, P2P transmission and other modes; it may specifically include: transaction uplink interface, transaction execution module, intelligent contract execution module, Hash calculation and check module, block packaging module, consensus and submission module, P2P communication module, etc. The transaction uplink interface refers to an external service interface provided when the blockchain network is operated, and can be used for receiving transaction data uploaded by any blockchain client or transaction information such as payment information uploaded by a hosting system. The transaction execution module is responsible for executing transactions, such as: verifying the state of the transaction, and controlling the delayed execution of the transaction; only transactions that pass verification and get execution status can be added to the transaction candidate list of the packed block. The intelligent contract execution module is a part of transaction execution and is responsible for executing intelligent contracts specified by transactions, wherein the intelligent contracts are computer protocols aiming at propagating, verifying or executing the contracts in an information-based manner; in the invention, the intelligent contract execution module is used for checking the execution condition of the transaction, such as Hash value check and the like. The Hash calculation and check module is responsible for calculating a Hash value according to a given parameter and checking the matching condition of a given input according to the given Hash value. The block packing module is responsible for starting the block packing function at regular time, packing and writing the candidate transactions meeting the conditions into a new block, and submitting the new block to the consensus module for block consensus. The consensus and submission module is responsible for carrying out consensus on the packed blocks by adopting a consensus algorithm so as to meet the block consistency requirement; will be submitted to write in the shared account through the identified blocks; the consensus algorithm herein may include POW (Proof Of Work) algorithm, POS (Proof Of merit) algorithm, PBFT (Practical Byzantine Fault Tolerance) algorithm, Fabric consensus, and the like. The P2P communication module is responsible for communication among the block link nodes, and transfers information such as node connection, transaction, block and the like.
The first client is a client used by the seller, and the second client is a client used by the buyer; the first client and the second client may each be any one of: a terminal, a separate Application, an API (Application Programming Interface) or an SDK (Software Development Kit); the first client and the second client may each include: the system comprises a parameter generation module, a Hash calculation and verification module, a signature and signature verification module, a transaction packaging module, a block chain communication module and the like. The parameter generation module is responsible for generating parameters; the signature and signature verification module is responsible for signing transaction data by adopting a digital signature algorithm and can verify the matching condition of a public key and a signature; the digital signature algorithm herein may include, but is not limited to: RSA (a signature algorithm), DSA (a signature algorithm), ECDSA (a signature algorithm), etc. And the transaction packaging module is responsible for packaging transaction data according to a data structure specified by the block chain network. The block chain communication module is responsible for communicating with a block chain network, uploading packaged transaction data to the block chain network, monitoring generation of a new block in the block chain network and the like. The escrow system refers to a financial institution or a banking terminal system, and is responsible for payment management of off-chain funds (i.e., electronic resources), and the like, and may specifically include: a Hash calculation and verification module, a payment interface, a payment management module, a escrow account, etc. The payment interface is an externally open payment interface and can be used for fund payment. And the payment management module is responsible for managing the funds of the escrow account, is connected with the block chain network, verifies the payment condition according to the unlocking parameters disclosed in the shared account book and determines whether to pay the funds from the escrow account to the seller account.
In the process of implementing the data processing scheme specifically, after the business party achieves the transaction intention through the first client and the second client, the first client can upload first transaction data to the blockchain network, the first transaction data is used for enabling the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locked state at the second client before the unlocking parameter of the digital asset is not disclosed. Correspondingly, the second client can check the first transaction data in the blockchain network and send the electronic resource and the drawing condition of the electronic resource to the hosting system based on the first transaction data; the collection condition includes that if the unlocking parameter is disclosed, the first client side is qualified for collecting the electronic resource. After the hosting system receives the electronic resource and the collection condition sent by the second client, the hosting system can generate and upload payment information to the blockchain network according to the electronic resource and the collection condition sent by the second client; the payment information includes a value of the electronic resource and a payout condition. The first client can check payment information in the blockchain network, upload the unlocking parameters to the blockchain network to disclose the unlocking parameters and draw the electronic resources from the hosting system; accordingly, the second client may unlock the digital asset using the unlocking parameter after the unlocking parameter is disclosed by the first client in the blockchain network.
It can be seen that the data processing scheme proposed by the embodiment of the present invention has at least the following advantages: the method comprises the following steps of changing a traditional transaction mode, and designing pre-transaction (such as first transaction data) and a payment condition of electronic resources through an intelligent contract; and the automatic execution of the whole process can be realized by means of the hosting system and the block chain network. The characteristics of de-intermediation and open transparency of the block chain are utilized, so that the transaction is transparent and fair, and the transaction reliability is improved; independent of the intermediate platform, the implementation cost and execution risk of the scheme can be reduced to lower values. The method can organically combine the off-chain payment and the on-chain transaction efficiently and fairly, so that the buyer can use the electronic resources outside the block chain to buy the digital assets in the block chain, and the richness and openness of the transaction are improved; both buyers and sellers and the hosting system can be better introduced, and the expansion of the trading market is facilitated. A non-supervision fair transaction mode can be realized by the hosting system, so that the seller can transfer the digital assets in the block chain network to a second client (buyer) through the first client, and the buyer can pay the electronic resources for purchasing the digital assets to the hosting system through the second client; by unlocking the parameters, it can be ensured that the first client (seller) receives the electronic resource under the chain and the second client can synchronously receive the digital asset on the chain; on the contrary, neither buyer nor seller will lose their own assets.
Based on the above description, the embodiment of the present invention proposes a data processing method, which can be executed by the first client and the second client in the above-mentioned data processing system together. Referring to fig. 3, the data processing method may include the following steps S301 to S306:
s301, the first client uploads the first transaction data to the blockchain network.
Before executing step S301, the first client may first create a first key pair by using an asymmetric encryption algorithm; asymmetric encryption algorithms herein may include, but are not limited to: the Elgamal algorithm (an asymmetric encryption algorithm), the Rabin algorithm (an asymmetric encryption algorithm), the Diffie-Hellman algorithm (an asymmetric encryption algorithm), the ECC algorithm (elliptic curve encryption algorithm). Wherein the first key pair comprises a first public key and a first private key; the first public key is used for identifying a first transaction address of the first client, and the first private key is used for signing transaction data by the first client. After creating the first key pair, the first client may upload the first public key of the first key pair to the blockchain network, so that the blockchain network takes the first public key of the first key pair as a first transaction address of the first client, the first transaction address being used for storing the digital asset; and the first private key is kept by the first client. It should be noted that, transaction addresses in the blockchain network are unique, and one transaction address corresponds to one client (i.e., user); that is, the first public key may mark the user identity of the first user indicated by the first client. In another embodiment, the first client may also upload account information (e.g., a personal account number, a personal account name, etc.) of a first personal account for storing the electronic resource to the blockchain network, so that the blockchain network associates the first personal account with the first public key to use the first personal account as a down-link address for the first client to manage and pay for the electronic resource; the specific implementation process can be seen in fig. 4 a.
After the first public key is uploaded to the blockchain network by the first client, the first client indicates that the first client completes identity registration in the blockchain network, and at the moment, the first client has the qualification of performing asset transaction and information viewing in the blockchain network. Thus, the first client may upload the first transaction data to the blockchain network. To avoid a situation where the second client uses the digital asset after receiving the digital asset and does not pay for the electronic resource to the first client, thereby causing the first client to lose the digital asset, the first client may restrict the use of the digital asset in the first transaction data: the second client is not eligible to use the digital asset until the unlocking parameter is disclosed. It can be seen that the first transaction data can be used to cause the blockchain network to transfer the digital asset of the first client to the second client and to control the digital asset to be in a locked state at the second client until the unlocking parameter of the digital asset is not disclosed. After receiving first transaction data uploaded by a first client, the blockchain network can transfer the digital asset of the first client to a second client according to the first transaction data, and lock the digital asset at the second client before an unlocking parameter is not disclosed, so that the second client cannot use the digital asset, and the rights and interests of the first client are guaranteed.
S302, the second client checks the first transaction data uploaded by the first client in the blockchain network.
The second client may also create the second key pair by using an asymmetric encryption algorithm before executing step S302. Wherein the second key pair comprises a second public key and a second private key; the second public key is used for identifying a second transaction address of the second client, and the second private key is used for signing transaction data by the second client. After creating the second key pair, the second client may upload the second public key of the second key pair to the blockchain network, so that the blockchain network uses the second public key of the second key pair as a second transaction address of the second client, the second transaction address being used for storing the digital asset; and the second private key is kept by the second client. As can be seen from the foregoing, the transaction addresses in the blockchain network are unique, and one transaction address corresponds to one client (i.e., user); thus, the second public key may mark the user identity of the second user as indicated by the second client. In another embodiment, the second client may also upload account information (e.g., a personal account number, a personal account name, etc.) of a second personal account for storing the electronic resource to the blockchain network, so that the blockchain network associates the second personal account with the second public key to use the second personal account as a down-link address for the second client to manage and pay for the electronic resource.
After the second client uploads the second public key to the blockchain network, the second client is indicated to finish identity registration in the blockchain network, and at the moment, the second client is qualified for asset transaction and information viewing in the blockchain network. Thus, the second client may view the first transaction data uploaded at the first client in the blockchain network. The second client, after reviewing and verifying the first transaction data, may decide whether to initiate an off-chain payment, i.e., whether to pay for the electronic resource used to purchase the digital asset. If the second client wants to use the digital assets transferred by the first client, the down-link payment can be started, and the second client can execute the step S303; if the second client does not want to use the digital asset, then the offline payment may not be initiated, at which point the process ends.
And S303, the second client sends the electronic resource and the electronic resource drawing condition to the hosting system.
The situation that the second client loses the electronic resources due to the fact that the first client does not disclose the unlocking parameters after the second client pays the electronic resources to the first client is avoided; the second client may generate a condition for drawing the electronic resource, where the condition includes that the first client qualifies to draw the electronic resource if the unlocking parameter is disclosed. Then, the second client may send the electronic resource and the drawing condition of the electronic resource to the hosting system together, so that the hosting system generates and uploads the payment information to the blockchain network according to the electronic resource and the drawing condition, and the specific implementation process of the method may also be referred to as fig. 4 b. Correspondingly, the hosting system can receive the electronic resource and the drawing condition sent by the second client, store the received electronic resource into the hosting account, generate payment information according to the electronic resource and the drawing condition, and upload the payment information to the blockchain network so that the first client, the second client or other node devices in the blockchain network can view the payment information in the blockchain network. In one embodiment, the payment information may include a value of the electronic resource and a condition for drawing; in another embodiment, the payment information may also include a second personal account for the second client to pay for the electronic resource.
And S304, the first client checks the payment information uploaded by the hosting system in the blockchain network.
As can be seen from the foregoing, the payment information is generated by the hosting system according to the electronic resource and the payment condition of the electronic resource sent by the second client based on the first transaction data. Because the escrow system is used for credit endorsement, the first client does not need to check the actual amount of the electronic resource in the escrow account of the escrow system, and only needs to check and verify the payment information in the blockchain network. After checking and verifying the payment information, if the first client wants to draw the electronic resource paid by the second client, step S305 may be executed; otherwise, the first client may choose not to disclose the unlocking parameter, and the process ends at this time.
S305, the first client opens the unlocking parameters in the blockchain network and draws the electronic resources from the hosting system.
The first client may upload the unlocking parameter to the blockchain network to disclose the unlocking parameter; accordingly, after receiving the unlocking parameter, the blockchain network may submit the unlocking parameter to the shared account book, so that each device (including the first client, the second client, and the hosting system) in the blockchain network can view the unlocking parameter. The unlocking parameter, once disclosed, means that the electronic resource in the escrow account will not be revocable into the second client; and the first client side is qualified for drawing the electronic resource. The first client may draw the electronic resource from the escrow account.
S306, if the unlocking parameter is disclosed by the first client in the blockchain network, the second client uses the unlocking parameter to unlock the digital asset.
As can be seen from the foregoing, the second client is qualified to use the digital asset after the unlocking parameter is disclosed. Thus, if the unlocking parameter is disclosed by the first client in the blockchain network, the second client may unlock the digital asset using the unlocking parameter to facilitate subsequent use of the digital asset. It should be noted that, the implementation process of steps S304-S306 can also be referred to as shown in fig. 4 c.
In the embodiment of the invention, the first client can upload the first transaction data to the blockchain network, the first transaction data enables the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locking state at the second client before the unlocking parameter of the digital asset is not disclosed. The second client may view the first transaction data in the blockchain network, and send the electronic resource and the payout condition for purchasing the digital asset to the escrow system, so that the escrow system generates and uploads payment information to the blockchain network according to the electronic resource and the payout condition, and the payout condition includes that the first client is qualified to payout the electronic resource if the unlocking parameter is disclosed. Therefore, the first transaction data and the drawing condition are mutually restricted through the unlocking parameters; if the unlocking parameter is disclosed, the second client can use the digital asset and the first client can draw the electronic resource; otherwise, the second client cannot use the digital asset and the first client cannot draw the electronic resource. By simultaneously restricting the use of digital assets and the expenditure of electronic resources through unlocking parameters, the fairness of transactions can be ensured. Moreover, transaction information such as transaction data, payment information and the like is uploaded to the blockchain network, so that the transaction information can be viewed by the first client, the second client and the hosting system, and the transaction is guaranteed to be public and transparent.
Fig. 5 is a schematic flow chart of another data processing method according to an embodiment of the present invention. The method may be performed jointly by a first client and a second client in the above mentioned data processing system. Referring to fig. 5, the data processing method may include the following steps S501 to S512:
s501, the first client creates unlocking parameters of the digital assets.
The unlocking parameter may be a randomly generated random number or a preset number set by the first user; for convenience of illustration, the unlocking parameter is denoted by x in the following embodiments of the present invention. Once the unlocking parameters are disclosed, the unlocking parameters become the basis for completing the down-chain payment and the up-chain transaction; that is, once the unlocking parameters are disclosed, the first client may draw on the electronic resource, and the second client may also unlock and use the digital asset. After the first client creates the unlocking parameter, the first transaction data may be generated according to the digital asset and the unlocking parameter, i.e., step S502 is performed.
S502, the first client generates first transaction data according to the digital assets and the unlocking parameters.
Wherein the first transaction data includes asset transfer data and asset control data; the asset transfer data is used to instruct transfer of the digital asset of the first client from a first transaction address of the first client to a second transaction address of the second client, and the asset control data is used to instruct control of the digital asset in a locked state at the second client if the unlocking parameters are not disclosed.
In an embodiment, the first client may further perform a Hash operation on the unlocking parameter by using a Hash algorithm to obtain a target Hash value h (x); the Hash algorithm herein includes, but is not limited to: the MD4 algorithm, the MD5 algorithm, the SHA-1 algorithm, the SHA-256 algorithm, etc. Correspondingly, the first transaction data can be generated according to the digital assets, the unlocking parameters and the target hash value. In yet another embodiment, the format of the first transaction data may be as follows:
Pay w units asset to<B’s public key>if(x for H(x)known and signed by B)
wherein w units represents the digital asset, B represents the second client, and Pay w units asset to < B's public key > represents paying the digital asset to the second transaction address; if (x for H (x) unknown and signed by B) means: if x (i.e., the unlock parameter) used to calculate the target hash value is disclosed and the first transaction data is signed by B (the second client), then the first transaction data may be spent by B (the second client) when the second client qualifies to use the digital asset.
S503, the first client creates second transaction data according to the first transaction data.
Since the first transaction data may instruct the blockchain network to transfer the digital asset from the first client to the second client, there may be a case where the second client does not pay for the electronic resource until after receiving the digital asset, resulting in the digital asset always being in the second client, causing the first client to lose the digital asset. Thus, to avoid this, embodiments of the invention may support that after a certain fixed period of time has elapsed, the first client may request the digital asset from the second client back if the second client has not paid for the electronic resource yet. Specifically, the first client may create second transaction data according to the first transaction data, and further guarantee the rights and interests of the first client through the second transaction data; the second transaction data is used to indicate that after a preset locking duration, if the second client is still not qualified to unlock the digital asset, the digital asset is transferred from the second client back to the first client. In one embodiment, the format of the second transaction data may be as follows:
Pay w units asset from Tx1 to A,locked n+m hours
wherein Tx1 represents the first transaction data and a represents the first client; n + m hours represents a preset locking duration, and both n and m are natural numbers greater than zero; the locked n + m hours represents that the second transaction data are locked by n + m hours, namely the second transaction data are locked for a fixed time n + m hours after being uploaded to the block chain network; after the expiration of the time, if the first transaction data has not yet been spent, indicating that the unlocking parameters have not yet been disclosed, i.e., the second client has not yet been qualified to unlock the digital asset, the second transaction data will be automatically executed, and the blockchain network will retransfer the digital asset in the first transaction data that has been transferred to the second client back to the first client.
S504, the first client sends the second transaction data to the second client, so that the second client signs the second transaction data.
Since the second transaction data, if executed, needs to be retransferred back to the first client to the digital asset that has been sent to the second client, the second client is required to sign the second transaction data to indicate that the second client accepts the second transaction data. Therefore, after creating the second transaction data, the first client may sign the second transaction data using the first private key, and then send the transaction data carrying the signature information of the first client to the second client. Accordingly, the second client may receive the second transaction data sent by the first client.
And S505, if the second client receives the second transaction data, signing the second transaction data.
After receiving the second transaction data sent by the first client, the second client can check the first public key of the first client in the blockchain network, and verify the second transaction data by adopting the first public key so as to judge whether the second transaction data is created and sent by the first client. If the verification is successful, the second transaction data is created and sent by the first client; at this time, the second client may determine whether to accept the second transaction data, and if so, may sign the second transaction data using the second private key.
And S506, the second client returns the signed second transaction data to the first client.
After signing the second transaction data, the second client may return the signed second transaction data to the first client, so that the first client uploads the signed second transaction data to the blockchain network. Accordingly, the first client may receive the signed second transaction data returned by the second client. And uploading the signed second transaction data to the blockchain network. In an embodiment, before the first client uploads the signed second transaction data to the blockchain network, the first client may also check a second public key of the second client in the blockchain network, and verify the signed second transaction data by using the second public key to determine whether the signed second transaction data is sent by the second client. If the verification is successful, the step of uploading the signed second transaction data to the blockchain network can be executed.
And S507, the first client uploads the first transaction data to the blockchain network.
In a specific implementation, the first client may first sign the first transaction data by using the first private key, and then upload the signed first transaction data to the blockchain network; that is, the first transaction data mentioned in step S507 carries the signature information of the first client. After receiving first transaction data uploaded by a first client, the blockchain network may perform identity verification on the first transaction data by using a first public key to determine whether the first transaction data is uploaded by the first client; if the verification is successful, the first transaction data is uploaded by the first client, the blockchain network can execute the first transaction data according to the intelligent contract and the consensus mechanism, namely the digital asset of the first client can be transferred to the second client, and before the unlocking parameter is not disclosed, the digital asset is locked at the second client so that the second client cannot use the digital asset, and therefore the rights and interests of the first client are guaranteed. After the execution completes the first transaction data, the blockchain network may also write the execution result and the first transaction data into the shared book. It should be noted that, the specific implementation process of steps S501 to S507 can also be referred to as shown in fig. 6.
And S508, the second client checks the first transaction data uploaded by the first client in the blockchain network.
And S509, the second client sends the electronic resource and the electronic resource obtaining condition to the hosting system.
As can be seen from the foregoing, in order to avoid the loss of the electronic resource, the second client may generate a condition for drawing the electronic resource, where the condition includes that the first client qualifies to draw the electronic resource if the unlocking parameter is disclosed. In another embodiment, because the first client creates the second transaction data, if the first client does not disclose the unlocking parameters after receiving the electronic resource, the first client may also request the digital asset through the second transaction data after presetting the locking duration, which may result in the second client not obtaining the digital asset, but also losing the electronic resource. Therefore, in order to avoid this situation, the second client may also agree a preset hosting duration in the fetching condition, so as to further guarantee the rights and interests of the second client. In this embodiment, the fetching condition may further include a preset hosting duration; if the unlocking parameter is disclosed within the preset hosting duration, the first client side is qualified for drawing the electronic resource; that is, if the unlocking parameter is not yet disclosed within the preset hosting duration, the first client does not qualify to fetch the electronic resource, in which case the hosting system may return the electronic resource to the second client. And the preset locking duration is greater than the preset hosting duration. The format of the fetching condition can be as follows:
if (x for H (x) knock) A can draw the electronic resource
After the second client generates the collection condition, the electronic resource and the collection condition of the electronic resource can be sent to the hosting system together, so that the hosting system generates and uploads payment information to the blockchain network according to the electronic resource and the collection condition; the payment information comprises a value of the electronic resource and a collection condition, wherein the collection condition comprises that if the unlocking parameter is disclosed, the first client side is qualified for collecting the electronic resource.
And S510, the first client checks the payment information uploaded by the hosting system in the blockchain network.
And S511, the first client discloses the unlocking parameters in the blockchain network, and draws the electronic resources from the hosting system.
The first client qualifies for electronic resources after the unlocking parameters are disclosed in the blockchain network. Thus, the first client may draw the electronic resource from the hosting system. In one embodiment, the first client may actively draw the electronic resource from the hosting system; accordingly, a specific embodiment of drawing the electronic resource from the hosting system may be: a draw request for the electronic resource is sent to the hosting system to obtain the electronic resource from the hosting system. As can be seen from the foregoing, the first transaction data further includes a target hash value, and the target hash value is obtained by performing a hash operation using the unlocking parameter. Therefore, the hosting system can also verify the unlocking parameters according to the target hash value, and if the verification is successful, the electronic resource is sent to the first client; correspondingly, an embodiment of the first client actively fetching the electronic resource from the hosting system may also be: sending a request for drawing the electronic resource to a hosting system, enabling the hosting system to check the authenticity of the published unlocking parameter in the blockchain network according to the target hash value, and returning the electronic resource after the checking is successful; and receiving the electronic resource returned by the hosting system. The specific implementation manner of performing authenticity check on the unlocking parameter according to the target hash value may be: performing Hash operation on the unlocking parameters by adopting a Hash algorithm, if the Hash value obtained by the operation is the same as the target Hash value, successfully verifying, namely that the unlocking parameters are correct, and at the moment, approving can be carried out to pass the obtaining condition so as to send the electronic resources to the first client; otherwise, the check fails.
In another embodiment, the hosting system may actively send the electronic resource to the first client, that is, after the unlocking parameter is disclosed in the blockchain network, the hosting system may obtain account information of the first personal account associated with the first public key from the blockchain network, and then send the electronic resource to the first personal account of the first client; correspondingly, the first client can receive the electronic resource sent by the management supporting system. Or, the first transaction data further includes a target hash value; the trusteeship system can also verify the unlocking parameters according to the target hash value; after the verification is successful, the electronic resource is sent to the first client; correspondingly, the first client can receive the electronic resource sent by the hosting system, and the electronic resource is sent after the unlocking parameter is disclosed by the first client in the block chain network, and the hosting system actively checks the authenticity of the unlocking parameter according to the target hash value and the checking is successful.
S512, if the unlocking parameter is disclosed by the first client in the blockchain network, the second client unlocks the digital asset by using the unlocking parameter.
If the unlock parameter is disclosed by the first client in the blockchain network, it indicates that the second client qualifies for using the digital asset. Thus, the second client may unlock the digital asset using the unlocking parameter; in particular, the second client may sign the first transaction data using the second private key to unlock the digital asset, thereby spending the first transaction data, i.e., using the digital asset.
In the embodiment of the invention, the first client can upload the first transaction data to the blockchain network, the first transaction data enables the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locking state at the second client before the unlocking parameter of the digital asset is not disclosed. The second client may view the first transaction data in the blockchain network, and send the electronic resource and the payout condition for purchasing the digital asset to the escrow system, so that the escrow system generates and uploads payment information to the blockchain network according to the electronic resource and the payout condition, and the payout condition includes that the first client is qualified to payout the electronic resource if the unlocking parameter is disclosed. Therefore, the first transaction data and the drawing condition are mutually restricted through the unlocking parameters; if the unlocking parameter is disclosed, the second client can use the digital asset and the first client can draw the electronic resource; otherwise, the second client cannot use the digital asset and the first client cannot draw the electronic resource. By simultaneously restricting the use of digital assets and the expenditure of electronic resources through unlocking parameters, the fairness of transactions can be ensured. Moreover, transaction information such as transaction data, payment information and the like is uploaded to the blockchain network, so that the transaction information can be viewed by the first client, the second client and the hosting system, and the transaction is guaranteed to be public and transparent.
It should be noted that the embodiment of the present invention may also apply the above-mentioned data processing method to different application scenarios according to actual business requirements, for example, a transaction scenario of a game resource, a transaction scenario of an electronic bill, a transaction scenario of digital currency, and so on. For convenience of description, the embodiment of the present invention describes a specific application of the data processing method in a transaction scenario in which the data processing method is applied to a game resource (for example, a token), in which a digital asset in a blockchain network is a game resource. Specifically, user a may agree to a transaction intention with user B if he wants to purchase coins from user B. The user B can create the unlocking parameter, the first transaction data and the second transaction data through the first client, and send the second transaction data to the second client so that the user A signs the second transaction data through the second client. The first client receives the signed second transaction data returned by the second client, and the first transaction data and the signed second transaction data can be uploaded to the block chain network; the first transaction data instructs the blockchain network to transfer 5 tokens in the first client from the first transaction address of the first client to the second transaction address of the second client, and to control the 5 tokens to be in a locked state at the second client before the unlocking parameter is not disclosed, as shown in fig. 7 a; the second transaction data indicates that after 5 hours have elapsed (i.e., the predetermined lock duration), if the second client is still not eligible to unlock the electronic resource, the 5 tokens are transferred from the second client back to the first client. It should be noted that the number of the game coins may be previously negotiated by the user a and the user B, or may be set by the user B.
After the first client uploads the first transaction data and the second transaction data, the user A can check the first transaction data in the blockchain network through the second client and decide whether to pay for the electronic resources to purchase the 5 game coins; if the purchase is decided, the legal coins (namely the electronic resources) for purchasing the 5 game coins and the drawing condition are sent to the hosting system; the withdrawal condition indicates that the first client is qualified to withdraw the legal instrument if the unlocking parameter is disclosed within 4 hours (i.e., the preset escrow time). It should be noted that the specific amount of the legal tender may be negotiated by the user a and the user B in advance, or may be set by the user a. Accordingly, the escrow system may store the legal tender into an escrow account, generate payment information according to the drawing condition and the specific amount of the legal tender, and upload the payment information to the blockchain network, as shown in fig. 7 b.
After the payment information is uploaded by the hosting system, user B may view the payment information in the blockchain network through the first client; if the user B wants to draw the legal instrument, the unlocking parameters can be disclosed in the blockchain network through the first client within 4 hours, so that the legal instrument can be drawn from the escrow system through the first client. User a may also unlock the 5 tokens at this time via the second client using the disclosed unlocking parameters, so that the 5 tokens may be used, as shown in fig. 7 c. Therefore, the embodiment of the invention can ensure that the user A can receive and use the expected digital assets (namely 5 game coins) and the user B can also receive the corresponding electronic resources (namely the French coins).
Based on the description of the above method embodiment, an embodiment of the present invention further provides a data processing apparatus, where the data processing apparatus is operable in a first client, and the data processing apparatus may be a computer program (including a program code) that is operable in the first client; referring to fig. 8, the data processing apparatus may operate as follows:
the system comprises a first processing unit 101, a blockchain network and a second processing unit, wherein the first processing unit is used for uploading first transaction data to the blockchain network, the first transaction data is used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
a first viewing unit 102, configured to view, in the blockchain network, payment information uploaded by a hosting system, where the payment information is generated by the hosting system according to an electronic resource sent by the second client based on the first transaction data and a payment condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
the first processing unit 101 is configured to disclose the unlocking parameter in the blockchain network, and draw the electronic resource from the hosting system.
In one embodiment, before uploading the first transaction data to the blockchain network, the first processing unit 101 may be further configured to:
creating an unlocking parameter for the digital asset;
generating first transaction data according to the digital asset and the unlocking parameters;
wherein the first transaction data comprises asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of the second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if the unlocking parameter is not disclosed.
In yet another embodiment, the first processing unit 101 is further configured to:
creating a first key pair by adopting an asymmetric encryption algorithm, wherein the first key pair comprises a first public key and a first private key, the first public key is used for identifying a first transaction address of the first client, and the first private key is used for signing transaction data by the first client;
uploading a first public key of the first key pair to the blockchain network, so that the blockchain network uses the first public key of the first key pair as a first transaction address of the first client, wherein the first transaction address is used for storing digital assets.
In another embodiment, the first transaction data further includes a target hash value, and the target hash value is obtained by performing a hash operation using the unlocking parameter; accordingly, when the first processing unit 101 is configured to draw the electronic resource from the hosting system, it may specifically be configured to:
sending a drawing request aiming at the electronic resource to the hosting system, enabling the hosting system to carry out authenticity verification on the unlocking parameter disclosed in the block chain network according to the target hash value, and returning the electronic resource after the verification is successful;
receiving the electronic resource returned by the hosting system.
In another embodiment, the first transaction data further includes a target hash value, and the target hash value is obtained by performing a hash operation using the unlocking parameter; accordingly, when the first processing unit 101 is configured to draw the electronic resource from the hosting system, it may specifically be configured to:
and receiving the electronic resource sent by the hosting system, wherein the electronic resource is sent after the unlocking parameter is disclosed in the blockchain network by the first client, the hosting system actively checks the authenticity of the unlocking parameter according to the target hash value, and the electronic resource is sent after the checking is successful.
In yet another embodiment, before uploading the first transaction data to the blockchain network, the first processing unit 101 may be further configured to:
creating second transaction data according to the first transaction data; the second transaction data is used for indicating that after a preset locking duration, if the second client side does not have the qualification for unlocking the digital asset, the digital asset is transferred back from the second client side to the first client side;
sending the second transaction data to the second client so that the second client signs the second transaction data;
and receiving the signed second transaction data returned by the second client, and uploading the signed second transaction data to the blockchain network.
In another embodiment, the fetching condition further includes a preset hosting duration; if the unlocking parameter is disclosed within the preset hosting duration, the first client side is qualified for drawing the electronic resource; and the preset locking duration is greater than the preset hosting duration.
According to an embodiment of the present invention, some steps involved in the data processing methods shown in fig. 3 and 5 may be performed by each unit in the data processing apparatus shown in fig. 8. For example, steps S301 and S305 shown in fig. 3 may be executed by the first processing unit 101 shown in fig. 8, and step S304 may be executed by the first viewing unit 102 shown in fig. 8; as another example, steps S501 to S504, S507, and S511 shown in fig. 5 may be performed by the first processing unit 101 shown in fig. 8, and step S510 may be performed by the first viewing unit 102 shown in fig. 8. According to another embodiment of the present invention, the units in the data processing apparatus shown in fig. 8 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) therein may be further split into multiple units with smaller functions to form the same operation, without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the data processing apparatus may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, the data processing apparatus device shown in fig. 8 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the respective methods shown in fig. 3 and 5 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and a storage element, and implementing the data processing method of the embodiment of the present invention. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
In the embodiment of the invention, the first client can upload the first transaction data to the blockchain network, the first transaction data enables the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locking state at the second client before the unlocking parameter of the digital asset is not disclosed. The second client may view the first transaction data in the blockchain network, and send the electronic resource and the payout condition for purchasing the digital asset to the escrow system, so that the escrow system generates and uploads payment information to the blockchain network according to the electronic resource and the payout condition, and the payout condition includes that the first client is qualified to payout the electronic resource if the unlocking parameter is disclosed. Therefore, the first transaction data and the drawing condition are mutually restricted through the unlocking parameters; if the unlocking parameter is disclosed, the second client can use the digital asset and the first client can draw the electronic resource; otherwise, the second client cannot use the digital asset and the first client cannot draw the electronic resource. By simultaneously restricting the use of digital assets and the expenditure of electronic resources through unlocking parameters, the fairness of transactions can be ensured. Moreover, transaction information such as transaction data, payment information and the like is uploaded to the blockchain network, so that the transaction information can be viewed by the first client, the second client and the hosting system, and the transaction is guaranteed to be public and transparent.
Based on the description of the above method embodiment, an embodiment of the present invention further provides a data processing apparatus, where the data processing apparatus is operable in the second client, and the data processing apparatus may be a computer program (including a program code) that is operable in the second client; referring to fig. 9, the data processing apparatus may operate as follows:
a second viewing unit 201, configured to view first transaction data uploaded by a first client in a blockchain network, where the first transaction data indicates that the blockchain network transfers a digital asset of the first client to a second client according to the first transaction data, and controls the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
the second processing unit 202 is configured to send the electronic resource and the drawing condition of the electronic resource to a hosting system, so that the hosting system generates and uploads payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
the second processing unit 202 is configured to unlock the digital asset using the unlocking parameter if the unlocking parameter is disclosed by the first client in the blockchain network.
In one embodiment, the second processing unit 202 is further configured to:
creating a second key pair by adopting an asymmetric encryption algorithm, wherein the second key pair comprises a second public key and a second private key, the second public key is used for identifying a second transaction address of the second client, and the second private key is used for signing transaction data by the second client;
uploading a second public key of the second key pair to the blockchain network, so that the blockchain network takes the second public key of the second key pair as a second transaction address of the second client, wherein the second transaction address is used for storing digital assets.
In yet another embodiment, the second processing unit 202 is further configured to:
receiving second transaction data sent by the first client, wherein the second transaction data is used for indicating that after a preset locking duration, if the second client does not have the qualification of unlocking the digital asset, the digital asset is transferred back to the first client from the second client;
if the second transaction data is accepted, signing the second transaction data;
and returning the signed second transaction data to the first client, so that the first client uploads the signed second transaction data to the blockchain network.
In another embodiment, the fetching condition further includes a preset hosting duration; if the unlocking parameter is disclosed within the preset hosting duration, the first client side is qualified for drawing the electronic resource; and the preset locking duration is greater than the preset hosting duration.
According to an embodiment of the present invention, some steps involved in the data processing methods shown in fig. 3 and 5 may be performed by each unit in the data processing apparatus shown in fig. 9. For example, step S302 shown in fig. 3 may be performed by the second viewing unit 201 shown in fig. 9, and steps S303 and S306 may be performed by the second processing unit 202 shown in fig. 9; as another example, steps S505-S506, S509, and S512 shown in fig. 5 may be performed by the second processing unit 202 shown in fig. 9, and step S508 may be performed by the second viewing unit 201 shown in fig. 9. According to another embodiment of the present invention, the units in the data processing apparatus shown in fig. 9 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) therein may be further split into multiple units with smaller functions to form the same operation, without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the data processing apparatus may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present invention, the data processing apparatus device shown in fig. 9 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the respective methods shown in fig. 3 and 5 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and a storage element, and implementing the data processing method of the embodiment of the present invention. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
In the embodiment of the invention, the first client can upload the first transaction data to the blockchain network, the first transaction data enables the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locking state at the second client before the unlocking parameter of the digital asset is not disclosed. The second client may view the first transaction data in the blockchain network, and send the electronic resource and the payout condition for purchasing the digital asset to the escrow system, so that the escrow system generates and uploads payment information to the blockchain network according to the electronic resource and the payout condition, and the payout condition includes that the first client is qualified to payout the electronic resource if the unlocking parameter is disclosed. Therefore, the first transaction data and the drawing condition are mutually restricted through the unlocking parameters; if the unlocking parameter is disclosed, the second client can use the digital asset and the first client can draw the electronic resource; otherwise, the second client cannot use the digital asset and the first client cannot draw the electronic resource. By simultaneously restricting the use of digital assets and the expenditure of electronic resources through unlocking parameters, the fairness of transactions can be ensured. Moreover, transaction information such as transaction data, payment information and the like is uploaded to the blockchain network, so that the transaction information can be viewed by the first client, the second client and the hosting system, and the transaction is guaranteed to be public and transparent.
Based on the description of the method embodiment and the apparatus item embodiment, the embodiment of the present invention further provides a client; the client may be the first client mentioned above, or may be the second client mentioned above. Referring to fig. 10, the client may include at least a processor 301, an input device 302, an output device 303, and a computer storage medium 304; the processor 301, the input device 302, the output device 303, and the computer storage medium 304 may be connected by a bus or other connection means. A computer storage medium 304 may be stored in the memory of the client, said computer storage medium 304 being adapted to store a computer program comprising program instructions, said processor 301 being adapted to execute said program instructions stored by said computer storage medium 303. The processor 301 (or CPU) is a computing core and a control core of the client, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement the corresponding method flow or the corresponding function in the data Processing method embodiment.
In one embodiment, when the client is a first client, the processor 301 according to an embodiment of the present invention may be configured to perform a series of data processing, including: uploading first transaction data to a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed; checking payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the drawing condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed; and disclosing the unlocking parameters in the block chain network, and drawing the electronic resource from the hosting system, and the like.
In another embodiment, when the client is a second client, the processor 301 according to the embodiment of the present invention may be configured to perform a series of data processing, including: checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of the first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed; sending the electronic resource and the drawing condition of the electronic resource to a hosting system, and enabling the hosting system to generate and upload payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed; unlocking the digital asset using the unlocking parameter if the unlocking parameter is disclosed by the first client in the blockchain network, and so on.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the client and used for storing programs and data. It is understood that the computer storage medium herein may include both a built-in storage medium in the client and, of course, an extended storage medium supported by the client. The computer storage media provides storage space that stores the operating system of the client. Also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space for loading and execution by the processor. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more first instructions stored in a computer storage medium may be loaded and executed by a processor to perform the corresponding steps performed by the first client in the data processing embodiments described above; in a specific implementation, one or more first instructions in a computer storage medium are loaded by a processor and perform the following steps:
uploading first transaction data to a blockchain network, wherein the first transaction data is used for enabling the blockchain network to transfer a digital asset of a first client to a second client, and controlling the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
checking payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the drawing condition of the electronic resource; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and disclosing the unlocking parameters in the block chain network, and drawing the electronic resources from the hosting system.
In one embodiment, the one or more first instructions may be further loaded and specifically executed by the processor prior to uploading the first transaction data to the blockchain network:
creating an unlocking parameter for the digital asset;
generating first transaction data according to the digital asset and the unlocking parameters;
wherein the first transaction data comprises asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of the second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if the unlocking parameter is not disclosed.
In yet another embodiment, the one or more first instructions are further loadable and executable by a processor to:
creating a first key pair by adopting an asymmetric encryption algorithm, wherein the first key pair comprises a first public key and a first private key, the first public key is used for identifying a first transaction address of the first client, and the first private key is used for signing transaction data by the first client;
uploading a first public key of the first key pair to the blockchain network, so that the blockchain network uses the first public key of the first key pair as a first transaction address of the first client, wherein the first transaction address is used for storing digital assets.
In another embodiment, the first transaction data further includes a target hash value, and the target hash value is obtained by performing a hash operation using the unlocking parameter; accordingly, upon fetching the electronic resource from the hosting system, the one or more first instructions may be loaded and specifically executed by a processor:
sending a drawing request aiming at the electronic resource to the hosting system, enabling the hosting system to carry out authenticity verification on the unlocking parameter disclosed in the block chain network according to the target hash value, and returning the electronic resource after the verification is successful;
receiving the electronic resource returned by the hosting system.
In another embodiment, the first transaction data further includes a target hash value, and the target hash value is obtained by performing a hash operation using the unlocking parameter; accordingly, upon fetching the electronic resource from the hosting system, the one or more first instructions may be loaded and specifically executed by a processor:
and receiving the electronic resource sent by the hosting system, wherein the electronic resource is sent after the unlocking parameter is disclosed in the blockchain network by the first client, the hosting system actively checks the authenticity of the unlocking parameter according to the target hash value, and the electronic resource is sent after the checking is successful.
In yet another embodiment, the one or more first instructions may be further loaded and executed by the processor prior to uploading the first transaction data to the blockchain network:
creating second transaction data according to the first transaction data; the second transaction data is used for indicating that after a preset locking duration, if the second client side does not have the qualification for unlocking the digital asset, the digital asset is transferred back from the second client side to the first client side;
sending the second transaction data to the second client so that the second client signs the second transaction data;
and receiving the signed second transaction data returned by the second client, and uploading the signed second transaction data to the blockchain network.
In another embodiment, the fetching condition further includes a preset hosting duration; if the unlocking parameter is disclosed within the preset hosting duration, the first client side is qualified for drawing the electronic resource; and the preset locking duration is greater than the preset hosting duration.
In yet another embodiment, one or more second instructions stored in the computer storage medium may be loaded and executed by the processor to perform the corresponding steps performed by the second client in the data processing embodiments described above; in a specific implementation, one or more second instructions in the computer storage medium are loaded by the processor and perform the following steps:
checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data indicates that the blockchain network transfers a digital asset of the first client to a second client according to the first transaction data, and controls the digital asset to be in a locked state at the second client before an unlocking parameter of the digital asset is not disclosed;
sending the electronic resource and the drawing condition of the electronic resource to a hosting system, and enabling the hosting system to generate and upload payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, wherein the collection condition comprises that the first client side is qualified for collecting the electronic resource if the unlocking parameter is disclosed;
and if the unlocking parameter is disclosed in the blockchain network by the first client, unlocking the digital asset by using the unlocking parameter.
In one embodiment, the one or more second instructions are further loadable and executable by a processor to:
creating a second key pair by adopting an asymmetric encryption algorithm, wherein the second key pair comprises a second public key and a second private key, the second public key is used for identifying a second transaction address of the second client, and the second private key is used for signing transaction data by the second client;
uploading a second public key of the second key pair to the blockchain network, so that the blockchain network takes the second public key of the second key pair as a second transaction address of the second client, wherein the second transaction address is used for storing digital assets.
In yet another embodiment, the one or more second instructions may be further loaded and executed by the processor to:
receiving second transaction data sent by the first client, wherein the second transaction data is used for indicating that after a preset locking duration, if the second client does not have the qualification of unlocking the digital asset, the digital asset is transferred back to the first client from the second client;
if the second transaction data is accepted, signing the second transaction data;
and returning the signed second transaction data to the first client, so that the first client uploads the signed second transaction data to the blockchain network.
In another embodiment, the fetching condition further includes a preset hosting duration; if the unlocking parameter is disclosed within the preset hosting duration, the first client side is qualified for drawing the electronic resource; and the preset locking duration is greater than the preset hosting duration.
In the embodiment of the invention, the first client can upload the first transaction data to the blockchain network, the first transaction data enables the blockchain network to transfer the digital asset of the first client to the second client, and the digital asset is controlled to be in a locking state at the second client before the unlocking parameter of the digital asset is not disclosed. The second client may view the first transaction data in the blockchain network, and send the electronic resource and the payout condition for purchasing the digital asset to the escrow system, so that the escrow system generates and uploads payment information to the blockchain network according to the electronic resource and the payout condition, and the payout condition includes that the first client is qualified to payout the electronic resource if the unlocking parameter is disclosed. Therefore, the first transaction data and the drawing condition are mutually restricted through the unlocking parameters; if the unlocking parameter is disclosed, the second client can use the digital asset and the first client can draw the electronic resource; otherwise, the second client cannot use the digital asset and the first client cannot draw the electronic resource. By simultaneously restricting the use of digital assets and the expenditure of electronic resources through unlocking parameters, the fairness of transactions can be ensured. Moreover, transaction information such as transaction data, payment information and the like is uploaded to the blockchain network, so that the transaction information can be viewed by the first client, the second client and the hosting system, and the transaction is guaranteed to be public and transparent.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (13)

1. A data processing method is characterized in that the data processing method is applied to a data processing system; the data processing system includes: the system comprises a block chain link point system, a first client, a second client and a hosting system, wherein the block chain link point system, the first client, the second client and the hosting system are used for operating a block chain network; the method comprises the following steps:
the first client side adopts an asymmetric encryption algorithm to create a first key pair, the first key pair comprises a first public key and a first private key, the first public key is used for identifying a first transaction address of the first client side, and the first private key is used for the first client side to sign transaction data; uploading a first public key in the first key pair to the blockchain network, so that the blockchain network takes the first public key in the first key pair as a first transaction address of the first client, wherein the first transaction address is used for storing digital assets;
the second client side adopts an asymmetric encryption algorithm to create a second key pair, the second key pair comprises a second public key and a second private key, the second public key is used for identifying a second transaction address of the second client side, and the second private key is used for the second client side to sign transaction data; uploading a second public key in the second key pair to the blockchain network, so that the blockchain network takes the second public key in the second key pair as a second transaction address of the second client, wherein the second transaction address is used for storing digital assets;
the first client uploads first transaction data to a blockchain network, wherein the first transaction data comprises asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of the second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if an unlocking parameter is not disclosed; the unlocking parameters comprise random numbers generated by the first client randomly or preset numbers set by a first user indicated by the first client;
the second client checks the first transaction data in the blockchain network, and sends the electronic resource and the drawing condition of the electronic resource to the hosting system, so that the hosting system generates and uploads payment information to the blockchain network according to the electronic resource and the drawing condition; the payment information comprises a value of the electronic resource and the drawing condition, wherein the drawing condition comprises that if the unlocking parameter is disclosed within a preset hosting duration, the first client side is qualified to draw the electronic resource;
the first client checks and verifies the payment information in the block chain network, and after the payment information is verified successfully, the unlocking parameter is published in the block chain network;
after the unlocking parameter is disclosed, the first client draws the electronic resource from the hosting system; the second client unlocks the digital asset using the unlocking parameter.
2. The method of claim 1, wherein the first client uploading first transaction data to the blockchain network comprises:
the first client signs the first transaction data by adopting the first public key;
the first client submits the signed first transaction data to the blockchain node system, so that the blockchain node system performs identity verification on the first transaction data by using the first public key, and writes the first transaction data into a shared account book of the blockchain network after verification is successful, so as to disclose the first transaction data in the blockchain network.
3. The method of claim 1, wherein the method further comprises:
the first client uploads account information of a first personal account for storing electronic resources to the blockchain network, so that the blockchain network associates the first personal account with the first public key to use the first personal account as a down-link address for the first client to manage and pay for the electronic resources;
the second client uploads account information of a second personal account for storing the electronic resource to the blockchain network, so that the blockchain network associates the second personal account with the second public key, and the second personal account is used as a down-link address for managing and paying the electronic resource by the second client.
4. The method of claim 3, wherein the first transaction data further comprises a target hash value, the target hash value hashed using the unlocking parameter;
the first client draws the electronic resource from the hosting system, and the method comprises the following steps:
the first client sends a drawing request aiming at the electronic resource to the hosting system;
the hosting system responds to the fetching request and carries out hash operation on the unlocking parameters by adopting a hash algorithm; if the hash value obtained by the operation is the same as the target hash value, acquiring account information of the first personal account associated with the first public key from the blockchain network, and sending the electronic resource to the first personal account of the first client;
and the first client receives the electronic resource returned by the hosting system.
5. The method of claim 1, wherein prior to the first client uploading the first transaction data to the blockchain network, the method further comprises:
the first client creates second transaction data according to the first transaction data and sends the second transaction data to the second client; the second transaction data is used for indicating that after a preset locking duration, if the second client side does not have the qualification for unlocking the digital asset, the digital asset is transferred back from the second client side to the first client side;
the second client receives second transaction data sent by the first client, signs the second transaction data by adopting the second public key, and returns the signed second transaction data to the first client;
and the first client receives the signed second transaction data returned by the second client, and uploads the signed second transaction data to the blockchain network.
6. The method of claim 5, wherein after the first client receives the signed second transaction data returned by the second client, the method further comprises:
the first client checks a second public key of the second client in the block chain network, and verifies the signed second transaction data by adopting the second public key;
and if the verification is successful, the first client side executes the step of uploading the signed second transaction data to the block chain network.
7. The method of claim 1, wherein said exposing the unlocking parameter at the blockchain network after the payment information is successfully verified comprises:
after the payment information is successfully verified, the first client submits the unlocking parameter to the block chain node system, so that the block chain node system submits the unlocking parameter to a shared account book of the block chain network to disclose the unlocking parameter.
8. The method of any one of claims 1-7, wherein the digital assets include any one of: electronic tickets, digital currency, or gaming resources; the gaming resource comprises a gaming chip or gaming equipment;
the electronic resource refers to funds for purchasing the digital asset, and the electronic resource includes french currency or electronic money.
9. A data processing apparatus, wherein the data processing apparatus operates on a first client, the data processing apparatus comprising:
the first processing unit is used for creating a first key pair by adopting an asymmetric encryption algorithm, wherein the first key pair comprises a first public key and a first private key, the first public key is used for identifying a first transaction address of the first client, and the first private key is used for signing transaction data by the first client; uploading a first public key in the first key pair to a blockchain network, so that the blockchain network takes the first public key in the first key pair as a first transaction address of the first client, wherein the first transaction address is used for storing digital assets;
the first processing unit is used for uploading first transaction data to a block chain network, wherein the first transaction data comprises asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of a second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if an unlocking parameter is not disclosed; the unlocking parameters comprise random numbers generated by the first client randomly or preset numbers set by a first user indicated by the first client;
the first checking unit is used for checking and verifying payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to the electronic resource sent by the second client based on the first transaction data and the payment condition of the electronic resource; the payment information comprises a value of the electronic resource and the drawing condition, wherein the drawing condition comprises that if the unlocking parameter is disclosed within a preset hosting duration, the first client side is qualified to draw the electronic resource;
the first processing unit is configured to, after the payment information is successfully verified, disclose the unlocking parameter in the blockchain network, and draw the electronic resource from the hosting system.
10. A data processing apparatus, wherein the data processing apparatus operates on a second client, the data processing apparatus comprising:
the second processing unit is used for creating a second key pair by adopting an asymmetric encryption algorithm, the second key pair comprises a second public key and a second private key, the second public key is used for identifying a second transaction address of the second client, and the second private key is used for signing transaction data by the second client; uploading a second public key in the second key pair to a blockchain network, so that the blockchain network takes the second public key in the second key pair as a second transaction address of the second client, wherein the second transaction address is used for storing digital assets;
the second viewing unit is used for viewing first transaction data uploaded by a first client in the blockchain network, wherein the first transaction data comprises asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of the second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if an unlocking parameter is not disclosed; the unlocking parameters comprise random numbers generated by the first client randomly or preset numbers set by a first user indicated by the first client;
the second processing unit is used for sending the electronic resource and the drawing condition of the electronic resource to a hosting system, so that the hosting system generates and uploads payment information to a block chain network according to the electronic resource and the drawing condition; the payment information comprises a value of the electronic resource and the drawing condition, wherein the drawing condition comprises that if the unlocking parameter is disclosed within a preset hosting duration, the first client side is qualified to draw the electronic resource;
the second processing unit is configured to unlock the digital asset using the unlocking parameter if the unlocking parameter is disclosed by the first client in the blockchain network.
11. A first client comprising an input device and an output device, wherein the first client further comprises: a processor adapted to implement one or more instructions; and a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
creating a first key pair by adopting an asymmetric encryption algorithm, wherein the first key pair comprises a first public key and a first private key, the first public key is used for identifying a first transaction address of the first client, and the first private key is used for signing transaction data by the first client; uploading a first public key in the first key pair to a blockchain network, so that the blockchain network takes the first public key in the first key pair as a first transaction address of the first client, wherein the first transaction address is used for storing digital assets;
uploading first transaction data to a blockchain network, the first transaction data including asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of a second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if an unlocking parameter is not disclosed; the unlocking parameters comprise random numbers generated by the first client randomly or preset numbers set by a first user indicated by the first client;
checking and verifying payment information uploaded by a hosting system in the blockchain network, wherein the payment information is generated by the hosting system according to electronic resources sent by the second client based on the first transaction data and the payment conditions of the electronic resources; the payment information comprises a value of the electronic resource and the drawing condition, wherein the drawing condition comprises that if the unlocking parameter is disclosed within a preset hosting duration, the first client side is qualified to draw the electronic resource;
and after the payment information is verified successfully, the unlocking parameter is disclosed in the block chain network, and the electronic resource is taken from the hosting system.
12. A second client comprising an input device and an output device, wherein the second client further comprises: a processor adapted to implement one or more instructions; and a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
creating a second key pair by adopting an asymmetric encryption algorithm, wherein the second key pair comprises a second public key and a second private key, the second public key is used for identifying a second transaction address of the second client, and the second private key is used for signing transaction data by the second client; uploading a second public key in the second key pair to a blockchain network, so that the blockchain network takes the second public key in the second key pair as a second transaction address of the second client, wherein the second transaction address is used for storing digital assets;
checking first transaction data uploaded by a first client in a blockchain network, wherein the first transaction data comprises asset transfer data and asset control data; the asset transfer data is used for indicating that the digital asset of the first client is transferred from a first transaction address of the first client to a second transaction address of the second client, and the asset control data is used for indicating that the digital asset is controlled to be in a locked state at the second client if an unlocking parameter is not disclosed; the unlocking parameters comprise random numbers generated by the first client randomly or preset numbers set by a first user indicated by the first client;
sending the electronic resource and the drawing condition of the electronic resource to a hosting system, and enabling the hosting system to generate and upload payment information to a blockchain network according to the electronic resource and the drawing condition; the payment information comprises the value of the electronic resource and the collection condition, and the collection condition comprises: if the unlocking parameter is disclosed within a preset hosting duration, the first client side is qualified for drawing the electronic resource;
and if the unlocking parameter is disclosed in the blockchain network by the first client, unlocking the digital asset by using the unlocking parameter.
13. A computer storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform a data processing method according to any of claims 1-8.
CN201910879399.8A 2019-07-31 2019-07-31 Data processing method, related device and medium Active CN110599143B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910879399.8A CN110599143B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910879399.8A CN110599143B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium
CN201910716303.6A CN110458543B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910716303.6A Division CN110458543B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium

Publications (2)

Publication Number Publication Date
CN110599143A CN110599143A (en) 2019-12-20
CN110599143B true CN110599143B (en) 2021-05-28

Family

ID=68484840

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910716303.6A Active CN110458543B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium
CN201910879399.8A Active CN110599143B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910716303.6A Active CN110458543B (en) 2019-07-31 2019-07-31 Data processing method, related device and medium

Country Status (1)

Country Link
CN (2) CN110458543B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110910091A (en) * 2019-11-19 2020-03-24 腾讯科技(深圳)有限公司 Data processing method, device and medium
CN111062717B (en) * 2019-12-11 2023-11-03 财付通支付科技有限公司 Data transfer processing method, device and computer readable storage medium
CN110990490B (en) * 2019-12-19 2023-09-01 京东科技信息技术有限公司 Method, device, equipment and medium for checking in blockchain network
CN111292191A (en) * 2020-02-18 2020-06-16 杭州复杂美科技有限公司 Acceptance service alliance method, apparatus and storage medium
CN110992038B (en) * 2020-03-03 2020-08-21 支付宝(杭州)信息技术有限公司 Transaction processing method, device and equipment
CN111340631B (en) 2020-05-15 2020-12-01 支付宝(杭州)信息技术有限公司 Asset transfer method, device, equipment and system
CN111666545A (en) * 2020-07-23 2020-09-15 光载互联(杭州)科技有限公司 Block chain-based digital identity information retrieving system and method
CN111861470A (en) * 2020-07-29 2020-10-30 杭州溪塔科技有限公司 Block chain-based digital asset transfer method, system, electronic device, and medium
CA3091660A1 (en) * 2020-08-31 2021-11-03 Polymath Inc. Method, system, and medium for blockchain-enabled atomic settlement
CN113052576B (en) * 2020-11-05 2024-02-27 北京跨联元焕网络科技有限公司 Hosting method and system for cross-chain exchange
CN112308534A (en) * 2020-11-24 2021-02-02 泰康保险集团股份有限公司 Annuity data processing method, block chain system, medium and electronic device
CN112348717A (en) * 2020-11-25 2021-02-09 山东师范大学 Knowledge uplink and acquisition method and system based on block chain
CN113111386A (en) * 2021-04-30 2021-07-13 永旗(北京)科技有限公司 Privacy protection method for block chain transaction data
EP4358000A1 (en) * 2021-06-16 2024-04-24 Digital Currency Institute, The People's Bank of China Digital currency-based payment method, platform, terminal, and payment system
CN113487313A (en) * 2021-06-22 2021-10-08 安徽中科晶格技术有限公司 Delivery system and method for physical assets
CN114826603B (en) * 2022-03-22 2023-11-14 上海交通大学 Method and system for realizing information security protection in state channel under multi-person chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096118A (en) * 2015-08-21 2015-11-25 廖小谦 Electronic currency transfer payment system and method
CN105373955A (en) * 2015-12-08 2016-03-02 布比(北京)网络技术有限公司 Multi-signature-based digital asset treatment method and device
CN107330681A (en) * 2017-06-27 2017-11-07 中链科技有限公司 A kind of method and apparatus of exchange hour for being used to determine to merchandise outside block chain chain
CN109146687A (en) * 2018-08-15 2019-01-04 杭州复杂美科技有限公司 A kind of assets trustship method based on block chain technology
CN109479004A (en) * 2016-07-29 2019-03-15 区块链控股有限公司 System and method for block chain implementation
TW201928817A (en) * 2017-12-12 2019-07-16 中國信託金融控股股份有限公司 Payment confirmation system including a payment confirmation verification node, a payment received server and a payment confirmation server

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105931052A (en) * 2016-04-21 2016-09-07 四川大学 Virtual currency transaction validation method based on block chain multi-factor cross-validation
CN106504094B (en) * 2016-11-25 2021-06-15 中国银行股份有限公司 Transaction matching method and system of distributed general ledger system based on block chain technology
CN107330787A (en) * 2017-05-24 2017-11-07 智牛股权投资基金(平潭)合伙企业(有限合伙) High frequency transaction payment method, system under a kind of block chain chain of highly effective and safe
CN109447636A (en) * 2018-10-15 2019-03-08 联动优势科技有限公司 A kind of assets transfer method and device
CN109685659B (en) * 2018-12-27 2020-12-08 江苏恒宝智能系统技术有限公司 Method for supporting offline transaction of block chain hard wallet and hard wallet
CN109547219A (en) * 2019-01-18 2019-03-29 杭州秘猿科技有限公司 Information collection and the method and apparatus for being submitted to block chain network
CN110009343B (en) * 2019-02-27 2023-04-18 上海七印信息科技有限公司 Method for pre-locking Token by adopting intelligent contract
CN110060055B (en) * 2019-03-18 2022-04-08 杭州秘猿科技有限公司 Digital asset hosting method and device in block chain and electronic equipment
CN109816532B (en) * 2019-04-10 2021-05-18 北京一三链科技有限公司 Asset digital anchoring system based on block chain technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096118A (en) * 2015-08-21 2015-11-25 廖小谦 Electronic currency transfer payment system and method
CN105373955A (en) * 2015-12-08 2016-03-02 布比(北京)网络技术有限公司 Multi-signature-based digital asset treatment method and device
CN109479004A (en) * 2016-07-29 2019-03-15 区块链控股有限公司 System and method for block chain implementation
CN107330681A (en) * 2017-06-27 2017-11-07 中链科技有限公司 A kind of method and apparatus of exchange hour for being used to determine to merchandise outside block chain chain
TW201928817A (en) * 2017-12-12 2019-07-16 中國信託金融控股股份有限公司 Payment confirmation system including a payment confirmation verification node, a payment received server and a payment confirmation server
CN109146687A (en) * 2018-08-15 2019-01-04 杭州复杂美科技有限公司 A kind of assets trustship method based on block chain technology

Also Published As

Publication number Publication date
CN110458543A (en) 2019-11-15
CN110599143A (en) 2019-12-20
CN110458543B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN110599143B (en) Data processing method, related device and medium
US11637709B2 (en) Split-key wallet access between blockchains
US20210073913A1 (en) System and method of providing a block chain-based recordation process
EP3660721B1 (en) Resource transfer and capital transfer method and apparatus
JP7112690B2 (en) Digital Wealth Management for Decentralized Transaction Consensus Network
CN110838068B (en) Weak-centered fund transaction platform and method thereof
WO2020010700A1 (en) Negotiable instrument transaction method and system, computer device, and storage medium
US20190164150A1 (en) Using Blockchain Ledger for Selectively Allocating Transactions to User Accounts
US20230325923A1 (en) Tokenized commodity for multipart transactions validated by a peer-to-peer network of nodes
US20230410111A1 (en) Cryptocurrency Storage Distribution
US11734760B1 (en) Systems and methods for operating a math-based currency exchange
CN110221919B (en) Virtual resource allocation method and device based on block chain
CN112037068A (en) Resource transfer method, system, device, computer equipment and storage medium
US11669812B2 (en) Contingent payments for virtual currencies
CN112767185B (en) Reverse warranty financing method, device and storage medium based on blockchain
EP3867852A1 (en) Computer-implemented method and system for digital signing of transactions
US20210374843A1 (en) Debt Resource Management in a Distributed Ledger System
CN114008654A (en) Managing a block chain based trusted transaction service
CN114008657A (en) Managing a block chain based trusted transaction service
CN111242785A (en) Bill processing method and device, electronic equipment and storage medium
WO2023201359A2 (en) Method, controller, and computer readable medium for detecting expiration of a unique cryptographic identifier on a distributed transfer network
Lesavre et al. Token Design and Management Overview
IT202100026213A1 (en) System for the creation and transfer of digital FIAT money based on blockchain
TW202119316A (en) Offline payment system and offline payment method
EA040345B1 (en) METHOD FOR SETTLEMENTS FOR TRANSACTIONS BETWEEN LEGAL ENTITIES USING DISTRIBUTED REGISTER TECHNOLOGY

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40015570

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant