CN111507839A - Data processing method and device based on block chain, storage medium and equipment - Google Patents

Data processing method and device based on block chain, storage medium and equipment Download PDF

Info

Publication number
CN111507839A
CN111507839A CN202010294769.4A CN202010294769A CN111507839A CN 111507839 A CN111507839 A CN 111507839A CN 202010294769 A CN202010294769 A CN 202010294769A CN 111507839 A CN111507839 A CN 111507839A
Authority
CN
China
Prior art keywords
terminal
electronic resource
asset
account address
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010294769.4A
Other languages
Chinese (zh)
Inventor
李茂材
蓝虎
王宗友
时一防
朱耿良
周开班
刘区城
黄焕坤
杨常青
刘攀
张劲松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010294769.4A priority Critical patent/CN111507839A/en
Publication of CN111507839A publication Critical patent/CN111507839A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/3821Electronic credentials
    • 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/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

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

Abstract

The embodiment of the application discloses a method, a device, a storage medium and equipment for data processing based on a block chain, wherein the method comprises the following steps: the method comprises the steps that a first terminal generates transaction data according to business transactions executed between the first terminal and a second terminal, the first terminal and the second terminal are in an off-line state, and a target digital certificate asset corresponding to electronic resources of a first value is obtained; transmitting the target digital certificate asset and the transaction data to a second terminal in an off-line manner, so that when the second terminal is recovered to be in an on-line state, the transaction data and the target digital certificate asset are transmitted to node equipment of a block chain network; the node device for instructing by the transaction data and the target digital certificate asset to transfer the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal; and when the first terminal is recovered to be in an on-line state, acquiring the target digital certificate asset returned by the node equipment. By the method and the device, the success rate of electronic resource transfer can be improved.

Description

Data processing method and device based on block chain, storage medium and equipment
Technical Field
The present application relates to the field of block chain technologies, and in particular, to a data processing method and apparatus, a storage medium, and a device based on a block chain.
Background
With the development of computer networks, more and more users choose to use the internet for electronic resource transfer (which may be referred to as online electronic resource transfer). The on-line electronic resource transfer mode is usually provided by a transfer type application installed in terminal devices of both parties of the transaction, and specifically, the on-line electronic resource transfer mode is realized by transferring electronic resources of both parties of the transaction in the transfer type application respectively.
Currently, when a user a executes an electronic resource transfer service to a user B, the user a may transfer a corresponding amount of electronic resources to a terminal device of the user B through a terminal device held by the user a in an internet manner, so as to complete the electronic resource transfer service with the user B. However, in the process of transferring electronic resources, if the network quality is not good, the electronic resource transfer may fail. Therefore, the current electronic resource transfer method is difficult to ensure the transfer success rate of the electronic resource.
Disclosure of Invention
The technical problem to be solved in the embodiments of the present application is to provide a data processing method, device, storage medium, and apparatus based on a block chain, so as to improve a success rate of electronic resource transfer.
An embodiment of the present application provides a data processing method based on a block chain, including:
a first terminal generates transaction data according to a business transaction executed between the first terminal and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
acquiring a target digital certificate asset corresponding to the electronic resource of the first numerical value;
transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line manner, so that the transaction data and the target digital certificate asset are transmitted to node equipment of a block chain network when the second terminal is restored to an on-line state; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal;
and when the first terminal is recovered to be in an on-line state, acquiring the target digital certificate asset returned by the node equipment.
An embodiment of the present application provides a data processing method based on a block chain, including:
when the second terminal is recovered to be in an online state, acquiring transaction data and a target digital certificate asset from the second terminal; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
transferring the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
and returning the target digital certificate asset to the first terminal.
An aspect of an embodiment of the present application provides a data processing apparatus based on a block chain, including:
the system comprises a generating module, a processing module and a processing module, wherein the generating module is used for generating transaction data according to business transaction executed between the generating module and a second terminal, the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of electronic resources to be transferred from the first terminal to the second terminal;
an acquisition module for acquiring a target digital voucher asset corresponding to the electronic resource of the first value;
a transmission module, configured to transmit the target digital voucher asset and the transaction data to the second terminal offline, so that when the second terminal is restored to an online state, the transaction data and the target digital voucher asset are sent to a node device of a blockchain network; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal;
the obtaining module is further configured to obtain a target digital voucher asset returned by the node device when the first terminal is restored to the online state.
Optionally, the generating module is configured to obtain a service transaction executed with the second terminal, where the service transaction includes a first value of an electronic resource to be transferred from the first terminal to the second terminal; generating a key pair of the first terminal, wherein the key pair of the first terminal comprises a public key and a private key; signing the business transaction by adopting the private key of the first terminal to obtain the business transaction carrying the signature of the first terminal; and determining the service transaction carrying the signature of the first terminal as the transaction data, wherein the signature of the first terminal is used for indicating the node equipment to verify the transaction data, and the verified transaction data and the target digital certificate asset are used for indicating the node equipment to transfer the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal.
An aspect of an embodiment of the present application provides a data processing apparatus based on a block chain, including:
the acquisition module is used for acquiring the transaction data and the target digital certificate asset from the second terminal when the second terminal is recovered to be in an online state; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
a transfer module for transferring the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
and the return module is used for returning the target digital certificate asset to the first terminal.
Optionally, the transaction data carries a signature of the first terminal;
the obtaining module is further configured to obtain a public key of the first terminal;
optionally, the apparatus further comprises:
the signature verification module is used for verifying the signature of the first terminal by adopting the public key of the first terminal; and if the signature of the first terminal passes the verification, the step of transferring the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset is executed.
Optionally, the transfer module is configured to unfreeze the electronic resource in the frozen state in the account address of the first terminal to obtain a target electronic resource, where the target electronic resource has an association relationship with the target digital certificate asset; and transferring the electronic resource with the first numerical value from the target electronic resource to the account address of the second terminal.
Optionally, the transfer module is configured to acquire an electronic resource associated with the freeze indication information in the account address of the first terminal, as the electronic resource in the freeze state; the freezing indication information carries the signature of the node device in the block chain network; the freezing indication information is used for indicating that the electronic resource in the freezing state is refused to be transferred when the digital certificate asset sent by the first terminal is not received and the signature of the node equipment is not checked and passed; acquiring a public key of the node equipment, and verifying the signature of the node equipment by adopting the public key of the node equipment; if the signature of the node equipment passes the verification, recording thawing indication information into the block chain network, determining that the electronic resource in the frozen state is thawed successfully, and determining the electronic resource which is thawed successfully as the target electronic resource; the unfreezing indication information is used for indicating that the node equipment has the transfer authority to the target electronic resource.
Optionally, the obtaining module is further configured to obtain attribute information of the first terminal;
optionally, the apparatus further comprises: the freezing module is used for freezing the target electronic resource in the account address of the first terminal according to the attribute information of the first terminal; generating at least two copies of digital voucher assets according to the target electronic resource, wherein the at least two copies of digital voucher assets comprise the target digital voucher asset; and sending the at least two copies of digital assets to the first terminal so that the first terminal stores the at least two copies of digital assets.
Optionally, the freezing module is specifically configured to determine, according to the attribute information of the first terminal, an upper limit value for freezing the electronic resource belonging to the first terminal, where the upper limit value is used as a second numerical value, and the attribute information of the first terminal includes a credit level of a terminal user corresponding to the first terminal, or a transaction type of a historical service transaction executed by the first terminal; and determining the electronic resource with the second numerical value in the account address of the first terminal as a target electronic resource, and freezing the target electronic resource.
Optionally, the freezing module is specifically configured to generate the freezing indication information, and establish an association relationship between the freezing indication information and the target electronic resource; acquiring a private key of the node equipment, and signing the freezing indication information by adopting the private key of the node equipment to obtain the freezing indication information carrying the signature of the node equipment; and uploading the freezing indication information carrying the signature of the node equipment to the block chain network according to the association relationship.
A return module, configured to freeze an electronic resource corresponding to the target digital voucher asset in an account address of the first terminal, and return the target digital voucher asset to the first terminal; alternatively, the first and second electrodes may be,
and setting the state of the target digital certificate asset to be an invalid state, and returning the target digital certificate asset with the invalid state to the first terminal.
Optionally, the above device may further comprise
A pre-transfer module, configured to pre-transfer, if a value of the electronic resource in the account address of the first terminal is smaller than the first value, the electronic resource of the first value from the account address of the node device to the account address of the second terminal; generating pre-transfer information, and recording the pre-transfer information in the blockchain network, where the pre-transfer information is used to instruct the first terminal to transfer the electronic resource of the first value to the node device.
One aspect of the present application provides a computer device, comprising: a processor, a memory, a network interface;
the processor is connected with a memory and a network interface, wherein the network interface is used for providing a data communication function, the memory is used for storing a computer program, and the processor is used for calling the computer program to execute the following steps:
generating transaction data according to a business transaction executed between the first terminal and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
acquiring a target digital certificate asset corresponding to the electronic resource of the first numerical value;
transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line manner, so that the transaction data and the target digital certificate asset are transmitted to node equipment of a block chain network when the second terminal is restored to an on-line state; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal;
and when the first terminal is recovered to be in an on-line state, acquiring the target digital certificate asset returned by the node equipment.
Optionally, the memory is configured to store a computer program, and the processor is configured to call the computer program to perform the following steps:
when the second terminal is recovered to be in an online state, acquiring transaction data and a target digital certificate asset from the second terminal; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
transferring the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
and returning the target digital certificate asset to the first terminal.
An aspect of the embodiments of the present application provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, perform the following steps:
generating transaction data according to a business transaction executed between the first terminal and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
acquiring a target digital certificate asset corresponding to the electronic resource of the first numerical value;
transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line manner, so that the transaction data and the target digital certificate asset are transmitted to node equipment of a block chain network when the second terminal is restored to an on-line state; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal;
and when the first terminal is recovered to be in an on-line state, acquiring the target digital certificate asset returned by the node equipment.
Optionally, the program instructions, when executed by the processor, perform the following steps:
when the second terminal is recovered to be in an online state, acquiring transaction data and a target digital certificate asset from the second terminal; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
transferring the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
and returning the target digital certificate asset to the first terminal.
In the application, when the first terminal and the second terminal are both in an offline state, the first terminal may generate transaction data according to a business transaction executed between the first terminal and the second terminal, where the transaction data includes a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal, and a target digital certificate asset corresponding to the electronic resource of the first numerical value is acquired. The first terminal transmits the target digital certificate assets and the transaction data to the second terminal in an off-line mode; when the second terminal recovers the on-line state, the node device in the blockchain network can acquire the target digital asset certificate and the transaction data from the second terminal. The node device can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the target digital asset certificate and the transaction data; and returning the target digital asset certificate to the first terminal. It can be seen that when the first terminal and the second terminal are both in an offline state, the first terminal sends the target digital certificate asset and the transaction data to the second terminal in an offline transmission mode, and after the second terminal recovers the online state, the transfer of electronic resources can be completed through the node equipment in the block chain network; the problem of electronic resource transfer failure caused by poor network quality can be effectively avoided, and the transfer success rate of the electronic resources can be improved. In addition, the electronic resource transfer is realized through the node equipment of the block chain network, and the participation of a third party mechanism is not needed, so that the safety and the transparency of the electronic resource transfer can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an architecture diagram of a data processing system provided by an embodiment of the present application;
fig. 2a is a schematic view of an application scenario of a data processing method based on a block chain according to an embodiment of the present application;
fig. 2b is a schematic view of an application scenario of a data processing method based on a block chain according to an embodiment of the present application;
fig. 2c is a schematic view of an application scenario of a data processing method based on a block chain according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an application scenario for generating a digital voucher asset according to an embodiment of the present application;
fig. 5 is a schematic view of an application scenario for freezing a target electronic resource according to an embodiment of the present application;
fig. 6 is a schematic view of an application scenario for thawing a target electronic resource according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
(1) The electronic resource means: resources existing in account addresses, relying on e-commerce and capable of being circulated over the internet, and also referred to as funds exchanged on a chain for purchasing digital assets, which may include at least french coins, electronic money, digital money, virtual money (e.g., game coins), 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; electronic money is money that is stored in electronic form in an electronic wallet held by a 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, gaming resources (e.g., game themes, gaming equipment, etc.), and so forth. The account address here may include, but is not limited to: electronic bank cards, internet banking, internet payment accounts, and the like.
(2) Asymmetric encryption: is a secret key security method. The algorithm requires two keys: public keys (public keys for short) and private keys (private keys for short). The public key and the private key are a pair of keys, and if the public key is used for encrypting data, only the corresponding private key can be used for decrypting the data. This algorithm is called asymmetric encryption algorithm because two different keys are used for encryption and decryption.
(3) Digital signature: the method is a common physical signature similar to that written on paper, is realized by using the technology in the field of asymmetric encryption, and is used for identifying digital information. A set of digital signatures typically defines two complementary operations, one for signing and the other for verification. A digital signature is a digital string that can only be produced by the sender of the message and cannot be forged by others, and is also a valid indicator of the authenticity of the message sent by the sender of the message.
(4) Block chains: the method is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission (P2P transmission), a consensus mechanism, an encryption algorithm and the like, and is essentially a decentralized and highly transparent 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.
(5) Digital voucher assets: may refer to a digital asset carrying a signature indicating that the electronic account of the user has an electronic resource corresponding to the digital asset.
Based on the problem that the success rate of the current electronic resource transfer mode is low, the embodiment of the application provides a data processing method based on a block chain, in the method, when the two transaction parties are in an off-line state due to the conditions of poor network quality and the like, a terminal held by a buyer transmits a target digital certificate asset corresponding to an electronic resource to be transferred and transaction data to a terminal held by the seller through off-line transmission; when the terminal held by the seller is recovered to be in an on-line state, the terminal can be sent to node equipment in the block chain network according to the target digital certificate asset and the transaction data; node devices in the blockchain network may transfer the electronic resource to be transferred from the buyer's account address to the seller's account address based on the target digital voucher asset and the transaction data. The electronic resource transfer can be realized, the problem of electronic resource transfer failure caused by poor network quality can be avoided, and the transfer success rate of the electronic resource can be improved. First, a data processing system applied in the embodiment of the present application is described, as shown in fig. 1, the data processing system may include a block chain network 10 and at least two terminals, and in fig. 1, the data processing system includes two terminals, which are a first terminal 20 and a second terminal 21, respectively.
The blockchain network is an end-to-end decentralized network formed by multiple node devices, and the blockchain network in fig. 1 includes multiple node devices 101. Each node device may receive transaction data while operating normally and maintain a blockchain based on the received transaction data. In order to ensure information intercommunication in the blockchain network, communication connection may exist between each node device in the blockchain network, and data transmission may be performed between the node devices through the communication connection. For example, when any node device in the blockchain network receives transaction data, other node devices in the blockchain network acquire the transaction data according to a consensus algorithm, and store the transaction data as data in the blockchain, so that the data stored in all the node devices in the blockchain network are consistent.
Each node device in the blockchain network has a node identifier corresponding thereto, and each node device in the blockchain network can store node identifiers of other node devices in the blockchain network, so that the generated block is broadcast to other node devices in the blockchain network according to the node identifiers of the other node devices in the blockchain network. Each node device may maintain a node identifier list as shown in the following table, and store the node device name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node device, and table 1 only illustrates the IP address as an example.
Table 1:
node name Node identification
Node device 1 117.114.151.174
Node device 2 117.116.189.145
Node device N 119.123.789.258
In this application, the node device may refer to a background service device for performing operations related to the electronic resource, such as performing operations of electronic resource transfer, freezing the electronic resource, thawing the electronic resource, and user identity authentication; specifically, the node device may refer to a background service device of an application having an electronic resource transfer function, where the application may refer to a payment application, a social application, a web service application, and the like. The node device may be a computer device, and specifically may be an independent server, or a server cluster composed of a plurality of servers, or a cloud computing center, a tablet computer, a notebook computer, a palm computer, an intelligent sound, a Mobile Internet Device (MID), and the like.
The terminal is a user-oriented terminal, and the terminal may refer to a front-end service device for performing an electronic resource transfer related operation, for example, the first terminal 20 may be a terminal oriented to a user (called a transferor) performing the electronic resource transfer operation, that is, the first terminal 20 specifically refers to a terminal used by a buyer for performing the electronic resource transfer operation. Optionally, the first terminal 20 may also be a terminal facing a user performing an electronic resource retrieving operation, that is, the first terminal 20 specifically refers to a terminal used by a seller for performing the electronic resource retrieving operation. Similarly, the second terminal 21 may be a terminal facing a user (called transferor) performing an electronic resource transfer operation, that is, the second terminal 21 specifically refers to a terminal used by a buyer for performing the electronic resource transfer operation. Optionally, the second terminal 21 may also be a terminal facing a user performing an electronic resource retrieving operation, that is, the second terminal 21 specifically refers to a terminal used by a seller for performing the electronic resource retrieving operation. That is, each terminal may be used to perform both the transfer operation of the electronic resource and the pickup operation of the electronic resource. For convenience of description, the first terminal 20 is a terminal used by the buyer for performing the electronic resource transfer operation, and the terminal 21 is a terminal used by the seller for performing the electronic resource pickup operation. Here, the first terminal 20 and the second terminal 21 may be computer devices, including a mobile phone, a tablet computer, a notebook computer, a palm computer, a smart audio, a Point of sale (POS) machine, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch, a smart bracelet, etc.), and the like; the method can also refer to an independent server, a server cluster consisting of a plurality of servers, or a cloud computing center.
In order for the terminal to perform the electronic resource transfer in the offline state, the node device in the blockchain network may issue a digital certificate asset to each terminal, specifically, in fig. 2a, taking issuing a data certificate asset to the first terminal as an example, the node device may obtain attribute information of the first terminal, where the attribute information of the first terminal may include a transaction type of a historical transaction service executed by the first terminal, a credit level of a terminal user corresponding to the first terminal, a numerical value of a remaining electronic resource in an account address of the first terminal, and the like; the historical transaction business may refer to a transaction business which is executed for a relatively high number of times in a last week, a month and a last year, wherein the business transaction may refer to a purchase commodity transaction or a subscription service transaction and the like, the commodity may refer to a physical commodity or a virtual commodity, the physical commodity may include clothes, daily necessities, cosmetics or office supplies and the like, and the virtual commodity may include funds, stocks, web skins, themes, game equipment and the like; the services may refer to video lectures, electronic articles, online tutoring, online consultations, and the like. After the node device obtains the attribute information of the first terminal, the node device may determine, according to the attribute information of the first terminal, an upper limit value for freezing the electronic resource belonging to the account address of the first terminal, as a second numerical value, and freeze the target electronic resource, taking the electronic resource in the account address of the first terminal that is less than or equal to the second numerical value as the target electronic resource. Freezing the target electronic resource here may refer to: the first terminal does not have the transfer authority to the electronic resource, and the node equipment has the transfer authority to the target electronic resource; the upper limit value may be used to indicate a maximum amount of electronic resources that can be paid out when the first terminal is in an offline state. Further, the node device may generate at least two digital voucher assets according to the target electronic resource, and send the at least two digital voucher assets to the first terminal. The at least two-copy digital certificate asset is used for indicating that a target electronic resource in the account address of the first terminal is in a frozen state, namely the at least two-copy digital certificate asset is used for indicating that the value of the electronic resource left in the account address of the first terminal is greater than or equal to a second value, and a peer relationship exists between the total value of the at least two-copy digital certificate asset and the value of the target electronic resource.
For example, as shown in fig. 2a, taking the electronic resource as a bitcoin as an example, the account address of the current first terminal includes 20 bitcoins, and the account address of the second terminal includes 15 bitcoins. The node device acquires the attribute information of the first terminal, determines a value for freezing the bitcoin belonging to the first terminal according to the attribute information, and if the value is 5 bitcoins, the node device may freeze 5 bitcoins in the account address of the first terminal, that is, here, the account address of the first terminal includes 5 bitcoins in a frozen state, and 15 bitcoins are in a non-frozen state. Namely, when the first terminal is in an off-line state, 5 bits in a frozen state can be paid out; that is, when the terminal is in the on-line state, 15 bitcoins in the non-frozen state can be paid out. Further, a digital certificate asset is generated according to the bit currency in the frozen state, and the digital certificate asset is sent to the first terminal. Assume that a 1-copy digital voucher asset is generated, referred to as a target digital voucher asset, indicating at least 5 bitcoins in the account address of the first terminal.
As shown in fig. 2b, if the first terminal and the second terminal are both in the offline state, the first terminal may generate transaction data according to the business transaction executed with the second terminal, where the transaction data may include a first numerical value (i.e., transaction amount), transaction time, transaction number, transaction name, transaction content of the electronic resource to be transferred from the first terminal to the second terminal, and identifiers of both parties of the transaction; the identification of the two parties to the transaction may refer to the account addresses of the two parties to the transaction, the terminal names, the number of the terminal, and so on. The first terminal can obtain a target digital certificate asset corresponding to the electronic resource of the first value, wherein the electronic resource of the first value is 5 bitcoins. After the first terminal acquires the target digital voucher asset, the target digital voucher asset and the transaction data can be transmitted to the second terminal in an off-line mode through Bluetooth, sound waves, graphic codes and the like. When the second terminal resumes the online state, the node device may obtain the target digital voucher asset and the transaction data from the second terminal. As shown in fig. 2c, after the node device obtains the transaction data and the target digital voucher asset, the electronic resource in the account address of the first terminal in the frozen state is thawed according to the target digital voucher asset and the transaction data, so as to obtain the target electronic resource; and transferring the electronic resource with the first numerical value from the target electronic resource to the account address of the second terminal, completing the transfer of the electronic resource, and sending the target digital certificate asset to the first terminal. Unfreezing 5 bit coins in a frozen state in an account address of a first terminal to obtain 5 bit coins, and transferring the 5 bit coins to the account address of a second terminal; at this time, 15 bitcoins remain in the account address of the first terminal: 20-5-15 bit coins; the account address of the second terminal has 20 remaining bitcoins: 15 bits +5 bits-20 bits. Therefore, in the application, the first terminal can realize electronic resource transfer by transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line manner, and the problem of electronic resource transfer failure caused by poor network quality can be solved.
Based on the data processing system, the block chain-based data processing method provided in the embodiment of the present application can be implemented, as shown in fig. 3, the method may include:
s101, a first terminal generates transaction data according to business transaction executed between the first terminal and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of electronic resources to be transferred from the first terminal to the second terminal.
The service of the first terminal purchasing goods, subscribing to services, and the like from the second terminal may be referred to as a service transaction, and transaction data may be generated according to information such as a generation time of the service transaction, an occurrence address of the service transaction, and a first value of an electronic resource to be transferred from the first terminal to the second terminal. The first value of the electronic resource may refer to a fee that the first terminal needs to pay for the purchased goods and subscription service. At this time, the first terminal and the second terminal are both in an offline state, which may specifically be: the network quality between the first terminal and the node device in the blockchain network is poor, or the network is interrupted, or the node device in the blockchain network has a fault, such as a downtime problem.
S102, the first terminal obtains a target digital certificate asset corresponding to the electronic resource of the first numerical value.
When the first terminal and the second terminal are both in an off-line state, the first terminal cannot directly transfer the electronic resource of the first numerical value to the second terminal; thus, to ensure that the business transaction can be performed properly, the first terminal may obtain the target digital voucher asset corresponding to the electronic resource of the first value. Where the target digital certificate asset is used to indicate that the value of the electronic resource remaining in the account address of the first terminal is greater than or equal to a first value, the electronic resource of the first value may be used to transfer from the account address of the first terminal; the target digital voucher asset can carry a signature of a node device in the blockchain network, the signature of the node device is used for indicating that an event with an electronic resource which is larger than or equal to a first value in the account address of the first terminal passes the verification of the node device; that is, the event having the electronic resource greater than or equal to the first value in the account address of the first terminal is verified by the authority, that is, has authenticity and high credibility. The node device may refer to a background service device for providing an electronic resource transfer service for the first terminal and the second terminal, for example, the node device may refer to a background service device of a payment application, a background service device of a social application having an electronic resource transfer function, or the like.
Optionally, the first terminal may include at least two copies of the digital certificate assets, and the numerical values of the electronic resources corresponding to the two copies of the digital certificate assets may be different from each other, and of course, may also be the same. At this time, the first terminal may select a digital certificate asset having a value of the corresponding electronic resource greater than or equal to a second value from the at least two copies of the digital certificate asset. As shown in table 2, the first terminal includes three thirds of digital certificate assets, namely, a digital certificate asset 1, a digital certificate asset 2, and a digital certificate asset 3, where the value of the electronic resource corresponding to the digital certificate asset 1 is 5, the value of the electronic resource corresponding to the digital certificate asset 2 is 3, and the value of the electronic resource corresponding to the digital certificate asset 3 is 3. That is, the digital certificate asset 1, the digital certificate asset 2, and the digital certificate asset 3 are respectively used to indicate that the electronic resource has a value of 5, 3, and 3 in the account address of the first terminal, i.e., the three digital certificate assets are used to indicate that the electronic resource has a value of 11 in the account address of the first terminal. If the electronic resource is a game piece, the three digital certificate assets are used for indicating that the account address of the first terminal has 11 game pieces; if the electronic resource is RMB, the three digital voucher assets are used to indicate that the account address of the first terminal has 11 RMB. If the first value is 2, the first terminal may select any one of the digital certificate asset 1, the digital certificate asset 2, and the digital certificate asset 3 as a target digital certificate asset; if the first value is 5, the first terminal may select the digital voucher asset 1 as the target digital voucher asset.
Table 2:
value of electronic resource
Digital voucher asset 1 5
Digital voucher asset 2 3
Digital voucher asset 3 3
…… ……
S103, the first terminal transmits the target digital certificate asset and the transaction data to the second terminal in an off-line mode.
After the first terminal acquires the target digital certificate asset, the target digital certificate asset and the transaction data can be transmitted to the second terminal in an off-line mode; specifically, the target digital voucher asset and the transaction data can be transmitted to the second terminal offline by sound waves, bluetooth, graphic codes and the like. For example, the first terminal can perform packing processing on the target digital certificate asset and the transaction data to obtain a data packet, encode the data packet to obtain a graphic code, display the graphic code by the first terminal, and obtain the data packet by scanning the graphic code by the second terminal; the second terminal can analyze and process the data packet to obtain the target digital certificate assets and the transaction data. Or the first terminal can encrypt the target digital certificate assets and the transaction data to obtain encrypted data, and the encrypted data is sent to the second terminal in a sound wave and Bluetooth mode; the second terminal may decrypt the encrypted data to obtain the target digital voucher asset and the transaction data. Alternatively, a point-to-point communication connection may be established between the first terminal and the second terminal over which the target digital voucher asset and the transaction data are transmitted to the second terminal.
Correspondingly, after the second terminal acquires the target digital asset and the transaction data, whether the transaction data is accurate or not can be verified, whether the signature carried by the target digital certificate asset is authentic or not can be verified, if the transaction data is accurate and the signature carried by the target digital certificate asset is authentic, the transaction can be completed, and the step S104 is executed; if the transaction data is wrong or the signature carried by the target digital certificate asset does not have authenticity, the transaction can be rejected, and the process can be ended. Optionally, the second terminal may verify whether the value of the electronic resource corresponding to the target digital certificate asset is greater than or equal to the electronic resource of the first value; if the electronic resource is larger than or equal to the preset value, the residual electronic resource in the account address of the first terminal is enough to complete the business transaction, the transaction can be achieved, and the step S104 is executed; otherwise, the balance of the account address of the first terminal is insufficient, the transaction can be refused, and the process can be ended.
And S104, when the second terminal is recovered to be in the on-line state, the node equipment acquires the transaction data and the target digital certificate asset from the second terminal.
And S105, the node equipment can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset.
And S106, returning the target digital certificate asset to the first terminal.
In steps S104 to S106, when the network between the second terminal and the node device is recovered to be normal, or the failure of the node device is recovered, the second terminal may be recovered to be in an online state, which may specifically be: and establishing communication connection between the second terminal and the node equipment. At this time, the second terminal may upload the transaction data and the target digital voucher asset to the blockchain network, and accordingly, the node device may acquire the transaction data and the target digital voucher asset from the second terminal; a first value of the electronic resource may be transferred from the account address of the first terminal to the account address of the second terminal based on the transaction data and the target digital voucher asset. The node equipment can return the target digital certificate asset to the first terminal after the first terminal is recovered to be on-line; or, the node device may return the target digital voucher asset to the first terminal, and when the first terminal recovers the online state, the target digital voucher asset returned by the node device may be received. The electronic resource with the first value can be transferred to the second terminal through the node equipment in the block chain network, so that the problem of electronic resource transfer failure caused by poor network quality can be avoided, and the transfer success rate of the electronic resource can be improved; in addition, the transfer process of the electronic resource does not need a third party to participate, and the transfer operation of the electronic resource is executed through the node equipment in the block chain network, so that the safety and the reliability of the transfer of the electronic resource can be improved, and the fairness of business transaction is improved.
Optionally, the first terminal may include a local account address, where the local account address may refer to an account address that enables offline transfer of the electronic resource without connection with a node device in the blockchain network, and the local account address includes the electronic resource, and the electronic resource may be transferred from an account address on a link in the blockchain network of the first terminal. When the first terminal and the second terminal are in an off-line state, the electronic resource with the first numerical value can be transferred to the account address of the second terminal from the local account address of the first terminal in an off-line mode, and the target digital certificate asset and the transaction data are transmitted to the second terminal in an off-line mode; the target digital certificate asset is used for indicating that the electronic resource in the local account address of the first terminal is transferred from the chain account address of the first terminal in the block chain network, and the target digital certificate asset has authenticity and validity. The off-line transfer can be transfer in the modes of Bluetooth, sound wave, graphic code and the like; in this application, the account address of the first terminal and the account address of the second terminal are both linked account addresses in the blockchain network.
In the application, when the first terminal and the second terminal are both in an offline state, the first terminal may generate transaction data according to a business transaction executed between the first terminal and the second terminal, where the transaction data includes a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal, and a target digital certificate asset corresponding to the electronic resource of the first numerical value is acquired. The first terminal transmits the target digital certificate assets and the transaction data to the second terminal in an off-line mode; when the second terminal recovers the on-line state, the node device in the blockchain network can acquire the target digital asset certificate and the transaction data from the second terminal. The node device can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the target digital asset certificate and the transaction data; and returning the target digital asset certificate to the first terminal. It can be seen that when the first terminal and the second terminal are both in an offline state, the first terminal sends the target digital certificate asset and the transaction data to the second terminal in an offline transmission mode, and after the second terminal recovers the online state, the transfer of electronic resources can be completed through the node equipment in the block chain network; the problem of electronic resource transfer failure caused by poor network quality can be effectively avoided, and the transfer success rate of the electronic resources can be improved. In addition, the electronic resource transfer is realized through the node equipment of the block chain network, and the participation of a third party mechanism is not needed, so that the safety and the transparency of the electronic resource transfer can be improved.
Optionally, before the step S101, the method may further include the following steps S11 to S14.
And s11, acquiring the attribute information of the first terminal.
s12, freezing the target electronic resource in the account address of the first terminal according to the attribute information of the first terminal.
s13, generating at least two copies of the digital voucher asset including the target digital voucher asset based on the target electronic resource.
s14, sending the at least two copies of the digital asset to the first terminal, so that the first terminal stores the at least two copies of the digital asset.
In steps s 11-s 14, as shown in fig. 4, the node device may acquire attribute information of the first terminal; the attribute information may include, but is not limited to: the type of the historical transaction service executed by the first terminal, the credit level of the terminal user corresponding to the first terminal, the value of the remaining electronic resource in the first terminal and the like; the credit rating of the end user may be determined by information about the end user's overdue number, overdue amount, etc. with respect to the electronic resource. Determining an upper limit value for freezing the electronic resources in the account address of the first terminal according to the attribute information, wherein the upper limit value is used as a second numerical value, the node device can check whether the account address of the first terminal has the electronic resources with the second numerical value, and if the account address of the first terminal does not have the electronic resources with the second numerical value, the node device can refuse to issue the digital certificate asset to the first terminal; and if the electronic resource with the second value is present, taking the electronic resource with the second value as the target electronic resource. After the node device obtains the attribute information of the first terminal, the target electronic resource in the account address of the first terminal can be frozen according to the attribute information of the first terminal, and specifically, the target electronic resource can be encrypted by adopting a public key of the node device to obtain the encrypted target electronic resource; or, the target electronic resource can be signed by using a private key of the node device to obtain the electronic resource carrying the signature of the node device; or writing a piece of freeze indication information into the blockchain network, wherein the freeze indication information is used for indicating that the target electronic resource is frozen, namely the first terminal does not have the transfer authority of the target electronic resource. Further, the node device may generate at least two copy digital voucher assets based on the target electronic resource; the total number value of the electronic resources corresponding to the at least two copies of digital certificate assets is equal to a second numerical value of the target electronic resource, namely the at least two copies of digital certificate assets and the target electronic resource have a peer-to-peer relationship; the at least two-copy digital voucher asset is for indicating an electronic resource having a second value in the first terminal account address. By freezing a certain amount of electronic resources in the account address of the first terminal in advance, the problems that the first terminal refuses to pay the electronic resources to be transferred to the second terminal after completing the business transaction in an off-line state, huge electronic resource loss is brought to the second terminal, and the fairness of the business transaction is reduced can be avoided; the electronic resource loss of the second terminal can be reduced, and the fairness of the business transaction is improved. In addition, the target digital certificate asset is generated according to the electronic resource in the frozen state, so that the reliability of the second terminal on the event of the electronic resource with the first numerical value in the account address of the first terminal is increased.
In this embodiment, step s12 may include steps s 21-s 22 as follows.
s21, determining an upper limit value for freezing the electronic resource belonging to the first terminal according to the attribute information of the first terminal, as a second value, wherein the attribute information of the first terminal includes the credit level of the terminal user corresponding to the first terminal or the transaction type of the historical service transaction executed by the first terminal.
s22, determining the electronic resource with the second value in the account address of the first terminal as the target electronic resource, and freezing the target electronic resource.
In steps s21 to s22, the node device may determine, as a second numerical value, an upper limit value for freezing the electronic resource belonging to the first terminal, based on the attribute information of the first terminal; the upper limit value is the maximum amount of electronic resources that can be paid out when the first terminal is in an offline state. Here, the upper limit value may be dynamically changed according to the change of the attribute information of the first terminal; of course, the upper limit value may be a fixed value set by the node apparatus or set by the first terminal. Further, the electronic resource with the second numerical value in the account address of the first terminal is determined as a target electronic resource, and the target electronic resource is frozen.
Optionally, the attribute information of the first terminal includes a credit level of a terminal user corresponding to the first terminal; the credit level of the end user corresponding to the first terminal has a positive correlation with the second value. That is, if the credit rating of the terminal user of the first terminal is higher, it indicates that the reliability of the terminal user of the first terminal is higher, and after the first terminal is in an offline state and completes a service transaction, the probability of refusing to pay the electronic resource to be transferred to the second terminal is lower, and the second value can be set to be a larger value; if the credit rating of the terminal user of the first terminal is lower, the reliability of the terminal user of the first terminal is lower; after the first terminal is in an off-line state and finishes business transaction, the probability of refusing to pay the electronic resource to be transferred to the second terminal is higher; the second value can be set to be a smaller value, so that even if the first terminal refuses to pay the electronic resource to be transferred to the second terminal, the loss of the electronic resource brought to the second terminal is lower, the loss of the electronic resource of the second terminal can be reduced, and the safety of business transaction is improved.
Optionally, the attribute information of the first terminal includes a transaction type of a historical service transaction executed by the first terminal; the value of electronic resources required to be paid out for executing different types of business transactions is different; therefore, the first terminal may determine, as the second value, the upper limit value for freezing the electronic resource belonging to the first terminal according to the transaction type of the historical service transaction performed by the first terminal. Specifically, as shown in table 3, table 3 records the second value associated with each transaction type. As can be seen from table 3, the second values corresponding to transaction type 1, transaction type 2, and transaction type 3 are 20, 10, and 23, respectively, that is, the value of the electronic resource required to be paid out for executing the service transaction of transaction type 3 is the largest; the value of electronic resources required to be paid out for executing the business transaction of the transaction type 2 is minimum; the value of the electronic resource to be paid out for performing the business transaction of transaction type 1 is between the value of the electronic resource to be paid out for performing the business transaction of transaction type 3 and the value of the electronic resource to be paid out for performing the business transaction of transaction type 2. The node device may query, from table 3, a transaction type of the historical service transaction executed by the first terminal, and use a value of the electronic resource to be paid out as a second value; if the transaction type of the service transaction executed by the first terminal is transaction type 1, the second numerical value corresponding to the service transaction type is 20, that is, the upper limit value for freezing the electronic resource in the first account address of the first terminal is 20.
Table 3:
type of transaction Second numerical value
Transaction type 1 20
Transaction type 2 10
Transaction type 3 23
…… ……
Optionally, the attribute information of the first terminal includes a value of the remaining electronic resource in the account address of the first terminal; in order that the first terminal can execute business transaction in an online state or an offline state; the node equipment can determine an upper limit value for freezing the electronic resource belonging to the first terminal as a second value according to the value of the remaining electronic resource in the account address of the first terminal; that is, the electronic resource with the second value is used in a scenario where the first terminal performs a service transaction in an offline state; the electronic resource which is not in the frozen state in the first terminal is used for a scene of the business transaction executed when the first terminal is in the online state. Therefore, the second value is smaller than the value of the remaining electronic resources in the account address of the first terminal, which is beneficial to ensuring that the business transaction can be executed when the first terminal is in an online state or an offline state.
Optionally, the step of freezing the target electronic resource in the step s22 may include the following steps s31 to s 33.
s31, generating the freezing instruction information, and establishing the association relationship between the freezing instruction information and the target electronic resource.
s32, obtaining the private key of the node device, and signing the freeze indication information by using the private key of the node device to obtain the freeze indication information carrying the signature of the node device.
And s33, uploading the freeze indication information carrying the signature of the node device to the block chain network according to the association relationship.
In steps s 31-s 33, as shown in fig. 5, the node device may generate the freeze indication information according to the target electronic resource, and establish an association relationship between the freeze indication information and the target electronic resource; generating a key pair of the node equipment by adopting an asymmetric encryption algorithm, wherein the key pair of the node equipment comprises a public key and a private key 23, the private key 23 is used for signing data information, the public key is used for verifying and signing the signature, and the public and private keys are all stored by the node equipment, or the public and private keys of the node equipment can be disclosed to the node equipment in the block chain network and are not disclosed to equipment except the node equipment; 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). The node device can sign the freezing indication information by adopting a private key of the node device to obtain the freezing indication information carrying the signature of the node device. Specifically, the node device may perform a hash operation on the freeze indication information to obtain a hash value of the freeze indication information, and sign (i.e., encrypt) the hash value of the freeze indication information by using a private key of the node device to obtain the freeze indication information carrying the signature of the node device. According to the incidence relation, the freezing indication information carrying the signature of the node equipment and the freezing indication information (original text) can be uploaded to the block chain network, and the target electronic resource is frozen. As shown in fig. 5, the node device stores the freeze indication information carrying the signature of the node device into a block 10002 of the block chain network, where the block 10002 includes a block header and a block body, and the block header includes 10001H, 10002T, and so on. Where 10001H represents the chunk header hash value of the chunk 10001 in the chunk chain, 10002H represents the hash value corresponding to the transaction data of 10002, and 10002T represents the chunk generation timestamp of the chunk 10002. The block body comprises freeze indication information carrying the signature of the node device, and may further comprise an original text of the freeze indication information, or the original text of the freeze indication information is stored in other blocks.
The freezing indication information is used for indicating that the electronic resource in the freezing state is refused to be transferred when the digital certificate asset sent by the first terminal is not received and the signature of the node equipment is not passed by the signature verification; therefore, the electronic resources in the frozen state can be prevented from being transferred in advance by other equipment, and the safety of the electronic resources and the fairness of business transaction can be improved. Note that, here, the purpose of signing the freeze indication information by using the node device is to: before the target electronic resource is not frozen, the target electronic resource belongs to the node device, and the first terminal device or other devices have transfer authority to the target electronic resource.
Optionally, the step S105 includes the following steps S41 to S42.
s41, unfreezing the electronic resource in the frozen state in the account address of the first terminal to obtain a target electronic resource, wherein the target electronic resource has an association relation with the target digital certificate asset.
s42, transferring the electronic resource with the first value from the target electronic resource to the account address of the second terminal.
In steps s 41-s 42, the node device may transfer the electronic resource of the first value to the account address of the second terminal after acquiring the target digital voucher asset and the transaction data. Specifically, the node device may unfreeze the electronic resource in the account address of the first terminal in a frozen state according to a freezing manner of the electronic resource in the account address of the first terminal in advance, so as to obtain a target electronic resource; for example, if the target electronic resource of the account address of the first terminal is encrypted in advance by using the public key of the node device to freeze the target electronic resource, the electronic resource in encrypted transfer is taken as the electronic resource in the frozen state; and decrypting the electronic resource in the frozen state by adopting a private key of the node equipment, and using the electronic resource obtained by decryption as a target electronic resource.
Optionally, if the target electronic resource of the account address of the first terminal is pre-signed by using the private key of the node device, so as to freeze the target electronic resource, it may be determined that the electronic resource carrying the signature of the node device is the electronic resource in the frozen state, the signature of the node device is checked, if the signature passes, the electronic resource carrying the signature of the node device is determined as the target electronic resource, and it is determined that the target electronic resource is successfully thawed.
Optionally, if the target electronic resource is frozen by recording the freeze indication information in the blockchain network in advance, the electronic resource associated with the freeze indication information in the account address of the first terminal may be used as the electronic resource in the frozen state; unfreezing indication information can be recorded in the block chain network, so that electronic resources in a frozen state are unfrozen, and the electronic resources which are unfrozen successfully are used as target electronic resources; the unfreezing indication information is used for indicating that the node equipment has transfer authority to the target electronic resource.
After acquiring the target electronic resource, the node device can transfer the electronic resource with the first numerical value from the target electronic resource to the account address of the second terminal, so that the electronic resource transfer can be completed, and the electronic resource transfer failure when the first terminal and the second terminal are both in offline transfer can be avoided; the transition probability of the electronic resource can be improved.
In one embodiment, the step s41 includes the following steps s51 to s 53.
s51, acquiring the electronic resource associated with the freeze indication information in the account address of the first terminal as the electronic resource in the freeze state; the freeze indication information carries a signature of a node device in the blockchain network; the freezing indication information is used for indicating that the electronic resource in the frozen state is refused to be transferred when the digital certificate asset sent by the first terminal is not received and the signature of the node equipment is not passed by the signature verification.
And s52, acquiring the public key of the node device, and verifying the signature of the node device by adopting the public key of the node device.
s53, if the signature of the node device passes the signature verification, recording thawing indication information into the blockchain network, determining that the electronic resource in the frozen state is thawed successfully, and determining the electronic resource which is thawed successfully as the target electronic resource; the unfreezing indication information is used for indicating that the node equipment has the transfer authority of the target electronic resource.
In steps s 51-s 53, the node apparatus may unfreeze the electronic resource in the frozen state. Specifically, as shown in fig. 6, the node device may read the freeze indication information carrying the signature of the node device from the blockchain network, that is, read the freeze indication information carrying the signature of the node device from the block 10002 in the blockchain network. And acquiring the electronic resource associated with the freeze indication information in the account address of the first terminal as the electronic resource in the freeze state and as the electronic resource in the freeze state. The node device may perform a hash operation on the freeze indication information to obtain a first hash value, and perform a de-signing (i.e., decryption) on the signature of the node device by using the public key 24 of the node device to obtain a second hash value. If the first hash value is not the same as the second hash value, determining that the signature of the node equipment is not verified; this indicates that the node device does not have the transfer right to the electronic resource, and refuses to unfreeze the electronic resource in the frozen state. If the first hash value is the same as the second hash value, determining that the signature of the node equipment passes the signature verification; at this moment, the node equipment is shown to have transfer authority to the electronic resource, unfreezing indication information is recorded in the block chain network, the electronic resource in the frozen state is determined to be unfrozen successfully, and the electronic resource which is unfrozen successfully is determined to be the target electronic resource; the unfreezing indication information is used for indicating that the node equipment has the transfer authority of the target electronic resource. As shown in fig. 6, the node device may record the unfreezing indication information into a block 10003 in the block chain network, where the block 10003 includes a block header and a block body, and the block header includes 10002H, 10003T, and so on. Where 10001H represents the chunk header hash value of the chunk 10002 in the chunk chain, 10003H represents the hash value corresponding to the transaction data of 10003, and 10003T represents the chunk generation timestamp of the chunk 10003. The block body comprises thawing indication information and can also comprise other transaction data.
In one embodiment, the step S101 includes the following steps S61-S64.
s61, obtaining a business transaction executed between the first terminal and the second terminal, wherein the business transaction comprises a first value of the electronic resource to be transferred from the first terminal to the second terminal.
s62, generating a key pair for the first terminal, the key pair for the first terminal comprising a public key and a private key.
s63, signing the service transaction by using the private key of the first terminal, and obtaining the service transaction carrying the signature of the first terminal.
s64, determining the business transaction carrying the signature of the first terminal as the transaction data, the signature of the first terminal being used for instructing the node device to verify the transaction data, the verified transaction data and the target digital certificate asset being used for instructing the node device to transfer the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal.
In steps s 61-s 64, the first terminal may obtain the service transaction performed with the second terminal, and generate the key pair of the first terminal by using the asymmetric encryption algorithm; and performing hash operation on the business transaction to obtain a hash value of the business transaction, and adopting a private key in a key pair of the first terminal to sign (encrypt) the hash value of the business transaction to obtain the business transaction carrying the signature of the first terminal. Further, the first terminal may determine a service transaction carrying a signature of the first terminal as the transaction data.
Accordingly, the method may comprise the following steps s71 to s 73.
s71, obtaining the public key of the first terminal.
And s72, verifying the signature of the first terminal by adopting the public key of the first terminal.
s73, if the signature of the first terminal is verified, then the step of transferring the first value of the electronic resource from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset is performed.
In steps s 71-s 73, the node device may validate the transaction data. Specifically, the public key of the first terminal may be obtained, and hash operation may be performed on transaction data to obtain a third hash value; decrypting (de-signing) the signature of the first terminal by adopting the public key of the first terminal to obtain a fourth hash value; if the third hash value is the same as the fourth hash value, it is determined that the signature of the first terminal is verified, that is, the transaction data is not tampered, and the transaction data is sent by the first terminal, step S105 may be performed. If the third hash value is not the same as the fourth hash value, the signature of the first terminal is determined not to be verified, that is, the transaction data is tampered, or the transaction data is not sent by the first terminal, the electronic resource can be refused to be transferred to the second terminal.
In one embodiment, the step S106 may include: electronic resources corresponding to the target digital certificate asset are frozen in the account address of the first terminal, and the target digital certificate asset is returned to the first terminal; or setting the state of the target digital certificate asset to be an invalid state, and returning the target digital certificate asset with the invalid state to the first terminal.
The node device may freeze the electronic resource corresponding to the target digital voucher asset again in the account address of the first terminal, and return the target digital voucher asset to the first terminal so that the target digital voucher asset can be used again. Optionally, the node device may set the state of the target digital voucher asset to an invalid state, and return the target digital voucher asset in the invalid state to the first terminal, so that the target digital voucher asset is prevented from being reused when the account address of the first terminal does not have the electronic resource corresponding to the target digital voucher asset, thereby reducing the loss of the electronic resource and improving the security of the electronic resource.
Optionally, the method may comprise the following steps s 81-s 82.
s81, if the value of the electronic resource in the account address of the first terminal is smaller than the first value, pre-transferring the electronic resource with the first value from the account address of the node device to the account address of the second terminal.
s82, generating pre-transfer information, and recording the pre-transfer information into the blockchain network, wherein the pre-transfer information is used to indicate that the first terminal is to transfer the electronic resource with the first value to the node device.
In steps s 81-s 82, if the value of the electronic resource in the account address of the first terminal is smaller than the first value, indicating that the electronic resource in the account address of the first terminal is insufficient, pre-transferring the electronic resource with the first value from the account address of the node device to the account address of the second terminal. The node device may generate pre-transfer information, and record the pre-transfer information in the blockchain network, where the pre-transfer information is used to indicate that the first terminal is to transfer the electronic resource of the first value to the node device; that is, after the first terminal has the electronic resource with the first value, the node device may automatically transfer the electronic resource with the first value from the account address of the first terminal to the account address of the node device.
For example, the electronic resource of the first value is 5 bitcoins, and the account address of the first terminal includes 3 bitcoins. The node device may determine that the value of the electronic resource in the account address of the first terminal is smaller than the first value, and at this time, 5 bitcoins may be pre-transferred from the account address of the node device to the account address of the second terminal; and generating pre-transfer information, wherein the pre-transfer information is used for indicating that the first terminal is to transfer 5 bitcoins to the node equipment. Optionally, the node device may transfer 3 bitcoins from the account address of the first terminal to the account address of the second terminal, and pre-transfer 2 bitcoins from the account address of the node device to the account address of the second terminal, to generate pre-transfer information, where the pre-transfer information is used to instruct the first terminal to transfer 2 bitcoins to the node device. After the node device generates the pre-transfer information, the pre-transfer indication information may be stored in the blockchain network.
Further, if the value of the electronic resource in the account address of the first terminal is smaller than the first value, the upper limit for freezing the electronic resource of the first terminal may be reduced, or the credit level of the terminal user of the first terminal may be reduced. On the contrary, if the value of the electronic resource in the account address of the first terminal is greater than or equal to the first value, the upper limit for freezing the electronic resource of the first terminal may be increased, or the credit level of the terminal user of the first terminal may be increased.
Fig. 7 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application. The above-mentioned blockchain based data processing apparatus may be a computer program (including program code) running in a computer device, for example, the blockchain based data processing apparatus is an application software; the apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application. As shown in fig. 7, the data processing apparatus 1 may include:
a generating module 701, configured to generate transaction data according to a service transaction executed between a first terminal and a second terminal, where the first terminal and the second terminal are both in an offline state, and the transaction data includes a first value of an electronic resource to be transferred from the first terminal to the second terminal;
an obtaining module 702, configured to obtain a target digital certificate asset corresponding to the electronic resource of the first value;
a transmission module 703, configured to transmit the target digital certificate asset and the transaction data to the second terminal offline, so that when the second terminal is restored to an online state, the transaction data and the target digital certificate asset are sent to a node device of a blockchain network.
Wherein the transaction data and the target digital certificate asset are used to instruct the node device to transfer the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal;
the obtaining module 702 is further configured to obtain a target digital voucher asset returned by the node device when the first terminal is recovered to the online state.
Optionally, the generating module 701 is configured to obtain a service transaction executed with the second terminal, where the service transaction includes a first value of an electronic resource to be transferred from the first terminal to the second terminal; generating a key pair of the first terminal, wherein the key pair of the first terminal comprises a public key and a private key; signing the business transaction by adopting the private key of the first terminal to obtain the business transaction carrying the signature of the first terminal; and determining the service transaction carrying the signature of the first terminal as the transaction data.
The signature of the first terminal is used for instructing the node device to verify the transaction data, and the verified transaction data and the target digital certificate asset are used for instructing the node device to transfer the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal.
According to an embodiment of the present application, the steps involved in the block chain based data processing method shown in fig. 3 may be performed by respective modules in the data processing apparatus shown in fig. 7. For example, step S101 shown in fig. 3 may be performed by the generating module 701 in fig. 7, and step S102 shown in fig. 3 may be performed by the obtaining module 702 in fig. 7; step S103 shown in fig. 3 may be performed by the transmission module 703 in fig. 7.
According to an embodiment of the present application, each module in the data processing apparatus shown in fig. 7 may be respectively or entirely combined into one or several units to form the unit, or some unit(s) therein may be further split into multiple sub-units with smaller functions, which may implement the same operation without affecting implementation of technical effects of embodiments of the present application. The modules are divided based on logic functions, and in practical application, the functions of one module can be realized by a plurality of units, or the functions of a plurality of modules can be realized by one unit. In other embodiments of the present application, the data processing apparatus based on the blockchain may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of a plurality of units.
According to an embodiment of the present application, the data processing apparatus as shown in fig. 7 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method as shown in fig. 3 on a general-purpose computer 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 block chain based data processing method of the embodiment of the present application. The computer program may be recorded on a computer-readable recording medium, for example, and loaded into and executed by the computing apparatus via the computer-readable recording medium.
In the application, when the first terminal and the second terminal are both in an offline state, the first terminal may generate transaction data according to a business transaction executed between the first terminal and the second terminal, where the transaction data includes a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal, and a target digital certificate asset corresponding to the electronic resource of the first numerical value is acquired. The first terminal transmits the target digital certificate assets and the transaction data to the second terminal in an off-line mode; when the second terminal recovers the on-line state, the node device in the blockchain network can acquire the target digital asset certificate and the transaction data from the second terminal. The node device can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the target digital asset certificate and the transaction data; and returning the target digital asset certificate to the first terminal. It can be seen that when the first terminal and the second terminal are both in an offline state, the first terminal sends the target digital certificate asset and the transaction data to the second terminal in an offline transmission mode, and after the second terminal recovers the online state, the transfer of electronic resources can be completed through the node equipment in the block chain network; the problem of electronic resource transfer failure caused by poor network quality can be effectively avoided, and the transfer success rate of the electronic resources can be improved. In addition, the electronic resource transfer is realized through the node equipment of the block chain network, and the participation of a third party mechanism is not needed, so that the safety and the transparency of the electronic resource transfer can be improved.
Please refer to fig. 8, which is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present application. The above-mentioned blockchain based data processing apparatus may be a computer program (including program code) running in a computer device, for example, the blockchain based data processing apparatus is an application software; the apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application. As shown in fig. 8, the data processing apparatus 2 may include:
an obtaining module 801, configured to obtain transaction data and a target digital voucher asset from a second terminal when the second terminal is restored to an online state; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
a transfer module 802, configured to transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
a returning module 803, configured to return the target digital voucher asset to the first terminal.
Optionally, the transaction data carries a signature of the first terminal;
the obtaining module 801 is further configured to obtain a public key of the first terminal;
optionally, the apparatus further comprises:
a signature verification module 804, configured to verify a signature of the first terminal by using the public key of the first terminal; and if the signature of the first terminal passes the verification, the step of transferring the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset is executed.
Optionally, the transferring module 802 is configured to unfreeze the electronic resource in the frozen state in the account address of the first terminal to obtain a target electronic resource, where the target electronic resource has an association relationship with the target digital certificate asset; and transferring the electronic resource with the first numerical value from the target electronic resource to the account address of the second terminal.
Optionally, the transferring module 802 is configured to acquire the electronic resource associated with the freeze indication information in the account address of the first terminal, as the electronic resource in the freeze state. Acquiring a public key of the node equipment, and verifying the signature of the node equipment by adopting the public key of the node equipment; and if the signature of the node equipment passes the verification, recording thawing indication information into the block chain network, determining that the electronic resource in the frozen state is thawed successfully, and determining the electronic resource which is thawed successfully as the target electronic resource.
Wherein the freeze indication information carries a signature of a node device in the blockchain network; the freezing indication information is used for indicating that the electronic resource in the freezing state is refused to be transferred when the digital certificate asset sent by the first terminal is not received and the signature of the node equipment is not passed by the verification signature.
Wherein the thawing indication information is used for indicating that the node device has transfer authority to the target electronic resource
Optionally, the obtaining module 801 is further configured to obtain attribute information of the first terminal;
optionally, the apparatus further comprises: a freezing module 805, configured to freeze a target electronic resource in an account address of the first terminal according to the attribute information of the first terminal; generating at least two copies of digital voucher assets according to the target electronic resource, wherein the at least two copies of digital voucher assets comprise the target digital voucher asset; and sending the at least two copies of digital assets to the first terminal so that the first terminal stores the at least two copies of digital assets.
Optionally, the freezing module 805 is specifically configured to determine, according to the attribute information of the first terminal, an upper limit value for freezing the electronic resource belonging to the first terminal, as a second numerical value, where the attribute information of the first terminal includes a credit level of a terminal user corresponding to the first terminal, or a transaction type of a historical service transaction executed by the first terminal; and determining the electronic resource with the second numerical value in the account address of the first terminal as a target electronic resource, and freezing the target electronic resource.
Optionally, the freezing module 805 is specifically configured to generate the freezing indication information, and establish an association relationship between the freezing indication information and the target electronic resource; acquiring a private key of the node equipment, and signing the freezing indication information by adopting the private key of the node equipment to obtain the freezing indication information carrying the signature of the node equipment; and uploading the freezing indication information carrying the signature of the node equipment to the block chain network according to the association relationship.
A returning module 803, configured to freeze an electronic resource corresponding to the target digital voucher asset in the account address of the first terminal, and return the target digital voucher asset to the first terminal; alternatively, the first and second electrodes may be,
and setting the state of the target digital certificate asset to be an invalid state, and returning the target digital certificate asset with the invalid state to the first terminal.
Optionally, the above device may further comprise
A pre-transferring module 806, configured to pre-transfer, if the value of the electronic resource in the account address of the first terminal is smaller than the first value, the electronic resource of the first value from the account address of the node device to the account address of the second terminal; generating pre-transfer information, and recording the pre-transfer information in the blockchain network, where the pre-transfer information is used to instruct the first terminal to transfer the electronic resource of the first value to the node device.
According to an embodiment of the present application, the steps involved in the block chain based data processing method shown in fig. 3 may be performed by respective modules in the data processing apparatus shown in fig. 8. For example, step S104 shown in fig. 3 may be performed by the acquisition module 801 in fig. 8, and step S105 shown in fig. 3 may be performed by the transfer module 802 in fig. 8; step S106 shown in fig. 3 may be performed by the retract module 803 in fig. 8.
According to an embodiment of the present application, each module in the data processing apparatus shown in fig. 8 may be respectively or entirely combined into one or several units to form the unit, or some unit(s) therein may be further split into multiple sub-units with smaller functions, which may implement the same operation without affecting implementation of technical effects of the embodiment of the present application. The modules are divided based on logic functions, and in practical application, the functions of one module can be realized by a plurality of units, or the functions of a plurality of modules can be realized by one unit. In other embodiments of the present application, the data processing apparatus based on the blockchain may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of a plurality of units.
According to an embodiment of the present application, the data processing apparatus shown in fig. 10 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method shown in fig. 3 on a general-purpose computer 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 block chain based data processing method of the embodiment of the present application. The computer program may be recorded on a computer-readable recording medium, for example, and loaded into and executed by the computing apparatus via the computer-readable recording medium.
In the application, when the first terminal and the second terminal are both in an offline state, the first terminal may generate transaction data according to a business transaction executed between the first terminal and the second terminal, where the transaction data includes a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal, and a target digital certificate asset corresponding to the electronic resource of the first numerical value is acquired. The first terminal transmits the target digital certificate assets and the transaction data to the second terminal in an off-line mode; when the second terminal recovers the on-line state, the node device in the blockchain network can acquire the target digital asset certificate and the transaction data from the second terminal. The node device can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the target digital asset certificate and the transaction data; and returning the target digital asset certificate to the first terminal. It can be seen that when the first terminal and the second terminal are both in an offline state, the first terminal sends the target digital certificate asset and the transaction data to the second terminal in an offline transmission mode, and after the second terminal recovers the online state, the transfer of electronic resources can be completed through the node equipment in the block chain network; the problem of electronic resource transfer failure caused by poor network quality can be effectively avoided, and the transfer success rate of the electronic resources can be improved. In addition, the electronic resource transfer is realized through the node equipment of the block chain network, and the participation of a third party mechanism is not needed, so that the safety and the transparency of the electronic resource transfer can be improved.
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 9, the computer apparatus 1000 may include: the processor 1001, the network interface 1004, and the memory 1005, and the computer apparatus 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 9, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 1000 shown in fig. 9, the network interface 1004 may provide a network communication function; the user interface 1003 is an interface for providing a user with input; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
a first terminal generates transaction data according to a business transaction executed between the first terminal and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
acquiring a target digital certificate asset corresponding to the electronic resource of the first numerical value;
transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line manner, so that the transaction data and the target digital certificate asset are transmitted to node equipment of a block chain network when the second terminal is restored to an on-line state; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal;
and when the first terminal is recovered to be in an on-line state, acquiring the target digital certificate asset returned by the node equipment.
Optionally, the processor 1001 may be configured to invoke a device control application stored in the memory 1005 to implement:
acquiring a service transaction executed between the first terminal and the second terminal, wherein the service transaction comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
generating a key pair of the first terminal, wherein the key pair of the first terminal comprises a public key and a private key;
signing the business transaction by adopting the private key of the first terminal to obtain the business transaction carrying the signature of the first terminal;
and determining the service transaction carrying the signature of the first terminal as the transaction data, wherein the signature of the first terminal is used for indicating the node equipment to verify the transaction data, and the verified transaction data and the target digital certificate asset are used for indicating the node equipment to transfer the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal.
It should be understood that the computer device 1000 described in this embodiment of the present application may perform the description of the above block chain based data processing method in the embodiment corresponding to fig. 3, and may also perform the description of the above block chain based data processing apparatus in the embodiment corresponding to fig. 7, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
In the application, when the first terminal and the second terminal are both in an offline state, the first terminal may generate transaction data according to a business transaction executed between the first terminal and the second terminal, where the transaction data includes a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal, and a target digital certificate asset corresponding to the electronic resource of the first numerical value is acquired. The first terminal transmits the target digital certificate assets and the transaction data to the second terminal in an off-line mode; when the second terminal recovers the on-line state, the node device in the blockchain network can acquire the target digital asset certificate and the transaction data from the second terminal. The node device can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the target digital asset certificate and the transaction data; and returning the target digital asset certificate to the first terminal. It can be seen that when the first terminal and the second terminal are both in an offline state, the first terminal sends the target digital certificate asset and the transaction data to the second terminal in an offline transmission mode, and after the second terminal recovers the online state, the transfer of electronic resources can be completed through the node equipment in the block chain network; the problem of electronic resource transfer failure caused by poor network quality can be effectively avoided, and the transfer success rate of the electronic resources can be improved. In addition, the electronic resource transfer is realized through the node equipment of the block chain network, and the participation of a third party mechanism is not needed, so that the safety and the transparency of the electronic resource transfer can be improved.
Fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 10, the computer device 2000 may include: the processor 2001, the network interface 2004 and the memory 2005, the computer device 2000 may further include: a user interface 2003, and at least one communication bus 2002. The communication bus 2002 is used to implement connection communication between these components. The user interface 2003 may include a Display (Display) and a Keyboard (Keyboard), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface. The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 2005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., at least one disk memory). The memory 2005 may optionally also be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 10, the memory 2005, which is a type of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a device control application program.
In the computer device 2000 shown in fig. 10, the network interface 2004 may provide a network communication function; and the user interface 2003 is primarily used to provide an interface for user input; and processor 2001 may be used to invoke the device control application stored in memory 2005 to implement:
when the second terminal is recovered to be in an online state, acquiring transaction data and a target digital certificate asset from the second terminal; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
transferring the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
and returning the target digital certificate asset to the first terminal.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
acquiring a public key of the first terminal;
adopting the public key of the first terminal to verify the signature of the first terminal;
and if the signature of the first terminal passes the verification, the step of transferring the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset is executed.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
unfreezing the electronic resource in the frozen state in the account address of the first terminal to obtain a target electronic resource, wherein the target electronic resource and the target digital certificate asset have an association relationship;
and transferring the electronic resource with the first numerical value from the target electronic resource to the account address of the second terminal.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
acquiring the electronic resource associated with the freeze indication information in the account address of the first terminal as the electronic resource in the freeze state; the freezing indication information carries the signature of the node device in the block chain network; the freezing indication information is used for indicating that the electronic resource in the freezing state is refused to be transferred when the digital certificate asset sent by the first terminal is not received and the signature of the node equipment is not checked and passed;
acquiring a public key of the node equipment, and verifying the signature of the node equipment by adopting the public key of the node equipment;
if the signature of the node equipment passes the verification, recording thawing indication information into the block chain network, determining that the electronic resource in the frozen state is thawed successfully, and determining the electronic resource which is thawed successfully as the target electronic resource; the unfreezing indication information is used for indicating that the node equipment has the transfer authority to the target electronic resource.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
acquiring attribute information of the first terminal;
freezing the target electronic resource in the account address of the first terminal according to the attribute information of the first terminal;
generating at least two copies of digital voucher assets according to the target electronic resource, wherein the at least two copies of digital voucher assets comprise the target digital voucher asset;
and sending the at least two copies of digital assets to the first terminal so that the first terminal stores the at least two copies of digital assets.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
determining an upper limit value for freezing the electronic resource belonging to the first terminal as a second numerical value according to the attribute information of the first terminal, wherein the attribute information of the first terminal comprises a credit level of an end user corresponding to the first terminal or a transaction type of a historical service transaction executed by the first terminal;
and determining the electronic resource with the second numerical value in the account address of the first terminal as a target electronic resource, and freezing the target electronic resource.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
generating the freezing indication information, and establishing an association relation between the freezing indication information and the target electronic resource;
acquiring a private key of the node equipment, and signing the freezing indication information by adopting the private key of the node equipment to obtain the freezing indication information carrying the signature of the node equipment;
and uploading the freezing indication information carrying the signature of the node equipment to the block chain network according to the association relationship.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
freezing electronic resources corresponding to the target digital certificate asset in the account address of the first terminal, and returning the target digital certificate asset to the first terminal; alternatively, the first and second electrodes may be,
and setting the state of the target digital certificate asset to be an invalid state, and returning the target digital certificate asset with the invalid state to the first terminal.
Optionally, the processor 2001 may be used to invoke a device control application stored in the memory 2005 to implement:
if the value of the electronic resource in the account address of the first terminal is smaller than the first value, pre-transferring the electronic resource with the first value from the account address of the node equipment to the account address of the second terminal;
generating pre-transfer information, and recording the pre-transfer information in the blockchain network, where the pre-transfer information is used to instruct the first terminal to transfer the electronic resource of the first value to the node device.
In the application, when the first terminal and the second terminal are both in an offline state, the first terminal may generate transaction data according to a business transaction executed between the first terminal and the second terminal, where the transaction data includes a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal, and a target digital certificate asset corresponding to the electronic resource of the first numerical value is acquired. The first terminal transmits the target digital certificate assets and the transaction data to the second terminal in an off-line mode; when the second terminal recovers the on-line state, the node device in the blockchain network can acquire the target digital asset certificate and the transaction data from the second terminal. The node device can transfer the electronic resource with the first value from the account address of the first terminal to the account address of the second terminal according to the target digital asset certificate and the transaction data; and returning the target digital asset certificate to the first terminal. It can be seen that when the first terminal and the second terminal are both in an offline state, the first terminal sends the target digital certificate asset and the transaction data to the second terminal in an offline transmission mode, and after the second terminal recovers the online state, the transfer of electronic resources can be completed through the node equipment in the block chain network; the problem of electronic resource transfer failure caused by poor network quality can be effectively avoided, and the transfer success rate of the electronic resources can be improved. In addition, the electronic resource transfer is realized through the node equipment of the block chain network, and the participation of a third party mechanism is not needed, so that the safety and the transparency of the electronic resource transfer can be improved.
It should be understood that the computer device 2000 described in this embodiment may perform the description of the above block chain based data processing method in the embodiment corresponding to fig. 3, and may also perform the description of the above block chain based data processing apparatus in the embodiment corresponding to fig. 8, which is not described herein again. In addition, the beneficial effects of the same method are not described in detail.
Further, here, it is to be noted that: an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program executed by the aforementioned data processing apparatus 1 based on a blockchain and the data processing apparatus 2 based on a blockchain, and the computer program includes program instructions, and when the processor executes the program instructions, the description of the data processing method based on a blockchain in the embodiment corresponding to fig. 3 can be performed, and therefore, details are not repeated here.
In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. By way of example, the program instructions may be executed on one computer device, or on multiple computer devices located at one site, or distributed across multiple sites and interconnected by a communication network, which may comprise a blockchain network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (15)

1. A data processing method based on a block chain is characterized by comprising the following steps:
a first terminal generates transaction data according to a service transaction executed between the first terminal and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
acquiring a target digital voucher asset corresponding to the electronic resource of the first numerical value;
transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line manner, so that when the second terminal is recovered to be in an on-line state, the transaction data and the target digital certificate asset are transmitted to node equipment of a block chain network; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the first value of the electronic resource from the account address of the first terminal to the account address of the second terminal;
and when the first terminal is recovered to be in an on-line state, acquiring the target digital certificate asset returned by the node equipment.
2. The method of claim 1, wherein the first terminal generating transaction data based on the transaction performed with the second terminal comprises:
acquiring a service transaction executed between the first terminal and the second terminal, wherein the service transaction comprises a first numerical value of electronic resources to be transferred from the first terminal to the second terminal;
generating a key pair of the first terminal, wherein the key pair of the first terminal comprises a public key and a private key;
signing the business transaction by adopting a private key of the first terminal to obtain the business transaction carrying the signature of the first terminal;
and determining the service transaction carrying the signature of the first terminal as the transaction data, wherein the signature of the first terminal is used for indicating the node equipment to verify the transaction data, and the verified transaction data and the target digital certificate asset are used for indicating the node equipment to transfer the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal.
3. A data processing method based on a block chain is characterized by comprising the following steps:
when the second terminal is recovered to be in an online state, acquiring transaction data and a target digital certificate asset from the second terminal; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
transferring the first value of the electronic resource from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset;
and returning the target digital certificate asset to the first terminal.
4. The method of claim 3, wherein the transaction data carries a signature of the first terminal, the method further comprising:
acquiring a public key of the first terminal;
adopting the public key of the first terminal to verify the signature of the first terminal;
and if the signature of the first terminal passes the signature verification, executing the step of transferring the electronic resource of the first numerical value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital certificate asset.
5. The method of claim 3, wherein transferring the first value of the electronic resource from the account address of the first terminal to the account address of the second terminal based on the transaction data and the target digital voucher asset comprises:
unfreezing the electronic resource in the frozen state in the account address of the first terminal to obtain a target electronic resource, wherein the target electronic resource and the target digital certificate asset have an association relationship;
and transferring the electronic resource with the first value from the target electronic resource to the account address of the second terminal.
6. The method as claimed in claim 5, wherein said unfreezing the electronic resource in the frozen state in the account address of the first terminal to obtain the target electronic resource comprises:
acquiring the electronic resource associated with the freeze indication information in the account address of the first terminal as the electronic resource in the freeze state; the freeze indication information carries a signature of a node device in a blockchain network; the freezing indication information is used for indicating that the electronic resource in the freezing state is refused to be transferred when the digital certificate asset sent by the first terminal is not received and the signature of the node equipment is not verified;
acquiring a public key of the node equipment, and verifying the signature of the node equipment by adopting the public key of the node equipment;
if the signature of the node equipment passes the signature verification, recording thawing indication information into the block chain network, determining that the electronic resource in the frozen state is thawed successfully, and determining the electronic resource which is thawed successfully as the target electronic resource; the unfreezing indication information is used for indicating that the node equipment has transfer authority to the target electronic resource.
7. The method of claim 6, wherein the method comprises:
acquiring attribute information of the first terminal;
freezing target electronic resources in the account address of the first terminal according to the attribute information of the first terminal;
generating at least two copies of digital voucher assets according to the target electronic resource, wherein the at least two copies of digital voucher assets comprise the target digital voucher asset;
and sending the at least two copies of digital assets to the first terminal so that the first terminal stores the at least two copies of digital assets.
8. The method of claim 7, wherein the freezing the target electronic resource in the account address of the first terminal according to the attribute information of the first terminal comprises:
determining an upper limit value for freezing the electronic resource belonging to the first terminal according to the attribute information of the first terminal, wherein the upper limit value is used as a second numerical value, and the attribute information of the first terminal comprises a credit level of a terminal user corresponding to the first terminal or a transaction type of historical service transaction executed by the first terminal;
and determining the electronic resource with the second numerical value in the account address of the first terminal as a target electronic resource, and freezing the target electronic resource.
9. The method of claim 8, wherein said freezing the target electronic resource comprises:
generating the freezing indication information, and establishing an incidence relation between the freezing indication information and the target electronic resource;
acquiring a private key of the node equipment, and signing the freezing indication information by adopting the private key of the node equipment to obtain the freezing indication information carrying the signature of the node equipment;
and uploading the freezing indication information carrying the signature of the node equipment to the block chain network according to the incidence relation.
10. The method of any of claims 3-9, wherein returning the target digital voucher asset to the first terminal comprises:
electronic resources corresponding to the target digital certificate assets are frozen in the account address of the first terminal, and the target digital certificate assets are returned to the first terminal; alternatively, the first and second electrodes may be,
and setting the state of the target digital voucher asset to be an invalid state, and returning the target digital voucher asset with the invalid state to the first terminal.
11. The method of claim 10, wherein the method further comprises:
if the value of the electronic resource in the account address of the first terminal is smaller than the first value, pre-transferring the electronic resource with the first value from the account address of the node equipment to the account address of the second terminal;
generating pre-transfer information, and recording the pre-transfer information into the block chain network, where the pre-transfer information is used to indicate that the first terminal is to transfer the electronic resource of the first numerical value to the node device.
12. A blockchain-based data processing apparatus, comprising:
the generating module is used for generating transaction data according to a business transaction executed between the generating module and a second terminal, wherein the first terminal and the second terminal are in an off-line state, and the transaction data comprises a first numerical value of an electronic resource to be transferred from the first terminal to the second terminal;
an acquisition module for acquiring a target digital voucher asset corresponding to the electronic resource of the first value;
the transmission module is used for transmitting the target digital certificate asset and the transaction data to the second terminal in an off-line mode so as to enable the second terminal to restore to an on-line state and send the transaction data and the target digital certificate asset to node equipment of a block chain network; the transaction data and the target digital certificate asset are used for instructing the node device to transfer the first value of the electronic resource from the account address of the first terminal to the account address of the second terminal;
the obtaining module is further configured to obtain a target digital voucher asset returned by the node device when the first terminal is restored to the online state.
13. A blockchain-based data processing apparatus, comprising:
the acquisition module is used for acquiring transaction data and target digital certificate assets from the second terminal when the second terminal is recovered to be in an online state; the transaction data is generated according to the business transaction executed by the first terminal and the second terminal when the first terminal and the second terminal are both in an off-line state; the transaction data comprises a first value of an electronic resource to be transferred from the first terminal to the second terminal, and the target digital certificate asset corresponds to the electronic resource of the first value;
a transfer module for transferring the electronic resource of the first value from the account address of the first terminal to the account address of the second terminal according to the transaction data and the target digital voucher asset;
and the returning module is used for returning the target digital certificate asset to the first terminal.
14. A computer device, comprising: a processor, a memory and a network interface;
the processor is connected with the memory and the network interface, wherein the network interface is used for providing a data communication function; the memory is for storing program code, and the processor is for calling the program code to perform the method of any of claims 1 to 11.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the steps of the method according to any one of claims 1 to 11.
CN202010294769.4A 2020-04-15 2020-04-15 Data processing method and device based on block chain, storage medium and equipment Pending CN111507839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010294769.4A CN111507839A (en) 2020-04-15 2020-04-15 Data processing method and device based on block chain, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010294769.4A CN111507839A (en) 2020-04-15 2020-04-15 Data processing method and device based on block chain, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN111507839A true CN111507839A (en) 2020-08-07

Family

ID=71876142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010294769.4A Pending CN111507839A (en) 2020-04-15 2020-04-15 Data processing method and device based on block chain, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN111507839A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232790A (en) * 2020-09-23 2021-01-15 中国银联股份有限公司 Data transfer processing method, device, equipment and medium
CN112685185A (en) * 2020-12-30 2021-04-20 南方电网数字电网研究院有限公司 Resource transfer method, device, system, computer equipment and storage medium
CN113379549A (en) * 2021-06-29 2021-09-10 杭州复杂美科技有限公司 Asset extraction method, computer device, and storage medium
CN113592643A (en) * 2021-06-29 2021-11-02 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium
CN117032998A (en) * 2023-10-09 2023-11-10 腾讯科技(深圳)有限公司 Block chain-based data processing method and device and readable storage medium
CN117057807A (en) * 2023-10-11 2023-11-14 腾讯科技(深圳)有限公司 Resource processing method based on block chain architecture and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472588A (en) * 2018-10-29 2019-03-15 平安科技(深圳)有限公司 A kind of offline electronic payment method, apparatus, equipment and storage medium based on block chain
CN110458542A (en) * 2019-08-02 2019-11-15 中国工商银行股份有限公司 Offline electronic payment system and method based on block chain
US20190370798A1 (en) * 2018-05-29 2019-12-05 Alibaba Group Holding Limited Blockchain asset issuing and redemption methods and apparatuses, and electronic device therefore
US20190370811A1 (en) * 2018-05-29 2019-12-05 Alibaba Group Holding Limited Asset transfer reversal method and apparatus, and electronic device
CN110659987A (en) * 2018-06-28 2020-01-07 厦门本能管家科技有限公司 Offline transaction method and system based on block chain
CN110942300A (en) * 2019-11-14 2020-03-31 杭州复杂美科技有限公司 Transfer certificate submitting method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190370798A1 (en) * 2018-05-29 2019-12-05 Alibaba Group Holding Limited Blockchain asset issuing and redemption methods and apparatuses, and electronic device therefore
US20190370811A1 (en) * 2018-05-29 2019-12-05 Alibaba Group Holding Limited Asset transfer reversal method and apparatus, and electronic device
CN110659987A (en) * 2018-06-28 2020-01-07 厦门本能管家科技有限公司 Offline transaction method and system based on block chain
CN109472588A (en) * 2018-10-29 2019-03-15 平安科技(深圳)有限公司 A kind of offline electronic payment method, apparatus, equipment and storage medium based on block chain
CN110458542A (en) * 2019-08-02 2019-11-15 中国工商银行股份有限公司 Offline electronic payment system and method based on block chain
CN110942300A (en) * 2019-11-14 2020-03-31 杭州复杂美科技有限公司 Transfer certificate submitting method, device and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232790A (en) * 2020-09-23 2021-01-15 中国银联股份有限公司 Data transfer processing method, device, equipment and medium
CN112232790B (en) * 2020-09-23 2023-10-20 中国银联股份有限公司 Data transfer processing method, device, equipment and medium
CN112685185A (en) * 2020-12-30 2021-04-20 南方电网数字电网研究院有限公司 Resource transfer method, device, system, computer equipment and storage medium
CN113379549A (en) * 2021-06-29 2021-09-10 杭州复杂美科技有限公司 Asset extraction method, computer device, and storage medium
CN113592643A (en) * 2021-06-29 2021-11-02 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium
CN113592643B (en) * 2021-06-29 2023-11-28 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium
CN117032998A (en) * 2023-10-09 2023-11-10 腾讯科技(深圳)有限公司 Block chain-based data processing method and device and readable storage medium
CN117032998B (en) * 2023-10-09 2024-01-19 腾讯科技(深圳)有限公司 Block chain-based data processing method and device and readable storage medium
CN117057807A (en) * 2023-10-11 2023-11-14 腾讯科技(深圳)有限公司 Resource processing method based on block chain architecture and related equipment
CN117057807B (en) * 2023-10-11 2024-02-09 腾讯科技(深圳)有限公司 Resource processing method based on block chain architecture and related equipment

Similar Documents

Publication Publication Date Title
CN111507839A (en) Data processing method and device based on block chain, storage medium and equipment
US20160342977A1 (en) Device, method and system for virtual asset transactions
CN111476572B (en) Block chain-based data processing method, device, storage medium and equipment
WO2016202952A1 (en) Digital token exchange system
CN110020543B (en) Data processing method and device based on block chain
CN112613956B (en) Bidding processing method and device
CN109377363B (en) Block chain-based Internet of things data transaction architecture and transaction security method thereof
CN111416709B (en) Voting method, device, equipment and storage medium based on block chain system
KR102409982B1 (en) Operation method of blockchain currency remittance service system and electronic wallet for currency remittance
EP3200167A1 (en) Information transaction infrastructure
US20210110384A1 (en) Ad Hoc Neural Network for Proof of Wallet
AU2021221485B2 (en) Blockchain system that includes bank nodes each having separate ledgers for identity, digital currency and other functions, and operation method thereof
CN110264207A (en) Block chain separation processing method and system
CN111126987B (en) Resource transfer information processing method and device, storage medium and electronic device
CN112801778A (en) Federated bad asset blockchain
CN111144859A (en) Virtual resource transfer method and device, computer equipment and storage medium
Muftic et al. Overview and analysis of the concept and applications of virtual currencies
CN113570369B (en) Block chain privacy transaction method, device, equipment and readable storage medium
US20230237476A1 (en) Electronic wallet, server for executing the same, and method for atomic exchange of blockchain tokens using the server
CN113269649A (en) System and method for tracking digital currency
CN113628050A (en) Digital RMB delivery method, system, program product and storage medium
CN111507818A (en) Information sharing method and device based on block chain and storage medium
CN110535664A (en) Data processing method, device, server and storage medium based on block chain
Asplund et al. In-store payments using bitcoin
CN113592650B (en) Transaction method, device and equipment based on blockchain intelligent contract

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: 40027967

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination