CN110597916B - Data processing method and device based on block chain, storage medium and terminal - Google Patents

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

Info

Publication number
CN110597916B
CN110597916B CN201910895662.2A CN201910895662A CN110597916B CN 110597916 B CN110597916 B CN 110597916B CN 201910895662 A CN201910895662 A CN 201910895662A CN 110597916 B CN110597916 B CN 110597916B
Authority
CN
China
Prior art keywords
intelligent contract
assets
executed
asset
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910895662.2A
Other languages
Chinese (zh)
Other versions
CN110597916A (en
Inventor
李茂材
王宗友
刘区城
孔利
蓝虎
杨常青
周开班
时一防
张劲松
朱耿良
刘攀
陈秋平
黄焕坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910895662.2A priority Critical patent/CN110597916B/en
Publication of CN110597916A publication Critical patent/CN110597916A/en
Application granted granted Critical
Publication of CN110597916B publication Critical patent/CN110597916B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a device, a storage medium and a terminal based on a block chain, wherein the method comprises the following steps: the method comprises the steps of obtaining the total amount of assets required by execution of a first intelligent contract in a block chain network, determining the value of electronic resources required by execution of the first intelligent contract according to the total amount of assets, pre-storing the electronic resources which are larger than or equal to the value in a target account, and sending an execution request to node equipment in the block chain network to enable the node equipment to freeze the electronic resources of the value in the target account and execute the first intelligent contract. The embodiment of the invention can determine the asset quantity required by executing the intelligent contract, ensure the intelligent contract to be successfully executed and improve the efficiency of executing the intelligent contract.

Description

Data processing method and device based on block chain, storage medium and terminal
Technical Field
The present invention relates to the field of security technologies, and in particular, to a data processing method based on a block chain, a data processing apparatus based on a block chain, a computer storage medium, and a terminal.
Background
Smart contracts are computer programs that run in a blockchain network and can be used to implement various functions, such as the function of issuing money, the function of generating transaction credential data, and the like. Once the intelligent contract is deployed on the blockchain network, any node device in the blockchain network can call and execute the intelligent contract, and each time the intelligent contract is executed, the computing resource and the storage resource of the node device are consumed. In order to prevent malicious execution of the intelligent contract, the blockchain network requires that a user who invokes the intelligent contract expends a certain amount of electronic resources, and the basic unit of the electronic resources is Gas (commonly called network fuel, namely a charging unit), namely, the user who invokes the intelligent contract expends a certain amount of Gas. In practice, it is found that if the amount of Gas (namely, referred to as Gas Limit) provided by the user is less than the amount of Gas actually required for executing the smart contract, the smart contract fails to execute, and the effect expected by the user cannot be achieved. However, the transaction data amount (such as an execution request for a smart contract) that can be stored by a block in the block chain is limited by the Gas Limit, that is, the larger the Gas Limit is, the smaller the transaction data amount that can be stored in the block is, and the transaction (such as a smart contract) is executed with low efficiency; conversely, the smaller the Gas Limit is, the larger the transaction data amount that can be stored in the block is, and the transaction execution efficiency is higher. Therefore, how to select a suitable Gas Limit is a problem to be solved.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a data processing method, an apparatus, a storage medium, and a terminal based on a block chain, which can determine the number of assets required for executing an intelligent contract, ensure that the intelligent contract can be successfully executed, and improve the efficiency of executing the intelligent contract.
In one aspect, an embodiment of the present invention provides a data processing method based on a block chain, where the method includes:
acquiring the total amount of assets required by a first intelligent contract in a block chain network to be executed, wherein the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed;
determining a value of electronic resources required for the first intelligent contract to be executed according to the total amount of the assets;
pre-storing electronic resources which are greater than or equal to the numerical value in the target account;
and sending an execution request to node equipment in the block chain network, wherein the execution request carries the identification of the target account, the numerical value of the electronic resource and the total amount of the assets, so that the node equipment freezes the numerical electronic resource from the target account and executes the first intelligent contract.
In one aspect, an embodiment of the present invention provides a data processing apparatus based on a block chain, where the apparatus includes:
the acquisition unit is used for acquiring the total amount of assets required by execution of a first intelligent contract in a block chain network, wherein the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to execute and a second amount of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to execute;
a determining unit, configured to determine, according to the total amount of assets, a value of an electronic resource required for executing the first intelligent contract;
the pre-storing unit is used for pre-storing the electronic resources which are greater than or equal to the numerical value in the target account;
a sending unit, configured to send an execution request to a node device in the blockchain network, where the execution request carries an identifier of the target account, a numerical value of the electronic resource, and the total amount of the asset, so that the node device freezes the numerical electronic resource from the target account and executes the first intelligent contract. In another aspect, an embodiment of the present invention provides a node device in a blockchain network, including an input device and an output device, further including:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
acquiring the total amount of assets required by a first intelligent contract in a block chain network to be executed, wherein the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed;
determining a value of electronic resources required for the first intelligent contract to be executed according to the total amount of the assets;
pre-storing electronic resources which are greater than or equal to the numerical value in the target account;
and sending an execution request to node equipment in the block chain network, wherein the execution request carries the identification of the target account, the numerical value of the electronic resource and the total amount of the assets, so that the node equipment freezes the numerical electronic resource from the target account and executes the first intelligent contract.
In yet another aspect, an embodiment of the present invention provides a computer storage medium storing one or more instructions adapted to be loaded by a processor and perform the following steps:
acquiring the total amount of assets required by a first intelligent contract in a block chain network to be executed, wherein the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed;
determining a value of electronic resources required for the first intelligent contract to be executed according to the total amount of the assets;
pre-storing electronic resources which are greater than or equal to the numerical value in the target account;
and sending an execution request to node equipment in the block chain network, wherein the execution request carries the identification of the target account, the numerical value of the electronic resource and the total amount of the assets, so that the node equipment freezes the numerical electronic resource from the target account and executes the first intelligent contract.
In the embodiment of the invention, the total amount of assets required by the execution of a first intelligent contract in a block chain network is obtained through a terminal, namely the total amount of assets is the amount of assets which a contract caller is willing to pay for executing the first intelligent contract, and the total amount of assets comprises the amount of first assets consumed when the simulation execution of the first intelligent contract is carried out and the amount of second assets required to pay in advance when a target operation instruction in the first intelligent contract is simulated and executed; i.e., the total amount of assets includes the amount of assets needed to ensure that the first intelligent contract was successfully executed. Further, the terminal may determine a value of the electronic resource required for executing the first intelligent contract according to the total asset amount, pre-store the electronic resource greater than or equal to the value in the target account, and send an execution request to the node device in the block chain network. The method can quickly determine the quantity of assets required by the first intelligent contract to be executed successfully, and can avoid the problem that the first intelligent contract fails to be executed due to the lack of the quantity of assets. In addition, when the first intelligent contract is executed, only the second asset quantity paid out in advance is remained, and the second asset quantity is used for ensuring that the target operation instruction in the first intelligent contract is executed, so that the problem of overlarge total quantity of assets can be avoided, and the efficiency of executing the intelligent contract is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a data processing method based on a block chain according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another data processing method based on a blockchain according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data processing apparatus based on a block chain according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Some terms in the embodiments of the present invention are explained below to facilitate understanding by those skilled in the art.
(1) 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 block chain may be composed of a string of blocks generated by using a cryptographic method, and the blocks allow multiple parties to effectively record data and verify the recorded data (i.e., prevent forgery).
(2) Block chain network: the system comprises an end-to-end decentralized network formed by a plurality of node devices, wherein each node device can receive data to be recorded when in normal work and maintain a block chain based on the received data to be recorded. 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.
(3) Intelligent contract: a smart contract is made up of one or more computer program instructions running in a blockchain network, each of which may be referred to as an operating instruction that, when executed, enables various functions, such as issuing currency functions, generating transaction credential data, and the like. Once the intelligent contract is deployed on the blockchain network, any node device in the blockchain network can call and execute the intelligent contract, and each time the intelligent contract is executed, the computing resource and the storage resource of the node device are consumed. In order to prevent the intelligent contract in the blockchain network from being executed maliciously, the blockchain network requires a user (called a contract caller for short) invoking the intelligent contract to pay a certain amount of electronic resources, and the basic unit of the electronic resources is Gas (commonly called network fuel, namely an asset), namely, the user invoking the intelligent contract needs to pay a certain amount of Gas. Specifically, a plurality of operation instructions are usually included in the intelligent contract, and the number of Gas required by each operation instruction in the intelligent contract when executed is defined in the block chain network.
(4) Asset: referred to as net fuel (Gas). Wherein the total amount of assets: the amount of Gas that the contract invoker is willing to pay for executing the intelligent contract, that is, the total amount of assets refers to the total amount of assets corresponding to the electronic resources allowed to be deducted from the account in the contract invocation. Actual asset quantity: which may be referred to as Gas Used, is the amount of assets that are actually consumed after the smart contract is executed. That is, each operation instruction in the intelligent contract is executed, the amount of assets required for the operation instruction to be executed is deducted from the total amount of assets. If the total amount of the assets is larger than the actual amount of the assets, the intelligent contract can be successfully executed, and if the intelligent contract can be executed completely, the node equipment in the block chain network determines the amount of the assets which are left, and returns the electronic resources corresponding to the amount of the assets which are left. If the total amount of assets is less than the actual amount of assets, only part of the operation instructions in the intelligent contract can be executed, namely the intelligent contract fails to be executed.
(5) Target operation instruction: the method can refer to an instruction which needs to pay out a certain amount of assets in advance when being executed in the intelligent contract, namely, if the target operation instruction in the intelligent contract is executed, the target operation instruction cannot be executed when the residual asset number of the contract caller is less than the pre-paid asset number. The target operation instruction may specifically include any one of: call instructions for other intelligent contracts, modify store content instructions, call instructions for other intelligent contracts, and modify store content instructions. The amount of assets paid out in advance when the call instruction for the other intelligent contract is executed can be referred to as a pre-paid payoff amount (i.e., immediatelyfufund Gas), a part of the amount of assets in the pre-paid payoff amount is used for paying for execution of the call instruction for the other intelligent contract, if the call instruction for the other intelligent contract is executed, the amount of assets remaining in the pre-paid payoff amount is also the amount of assets remaining in the pre-paid payoff amount, and the amount of assets remaining in the immediatelyfufund Gas can be continuously used when the subsequent operation instruction of the intelligent contract is executed, i.e., the amount of assets remaining in the immediatelyfufund Gas can be utilized in the execution process of the current intelligent contract. For example, the number of the pre-paid resources is 10 Gas, the number of Gas that needs to be consumed when the call instruction for other intelligent contracts is executed is 8, the number of Gas remaining in the number of the pre-paid resources is 2, and the 2 Gas can be continuously used when the subsequent operation instruction in the intelligent contract is executed. The step of modifying the stored content instruction is to update some original data and store the updated data in the blockchain network, and the quantity of assets required by the modified stored content instruction when executed is determined according to the updated data. That is, if the original data is also stored in the blockchain network before the modified storage content instruction is executed, the original data is replaced with the updated data after the modified storage content instruction is executed, that is, the storage space for storing the original data is covered by the updated data. Since multiple payments are not needed for the same storage space, the amount of Gas consumed for storing the original data needs to be returned after the execution of the smart contract is completed, and the returned amount of Gas may be referred to as (i.e., future returned Gas). That is, the amount of Gas actually consumed by the modified stored content instruction is the amount of Gas consumed by storing the updated data, but the modified stored content instruction can only be successfully executed if the total amount of the assets at least includes the sum of the amount of Gas consumed by storing the updated data and the amount of Gas consumed by storing the original data. Therefore, the amount of Gas consumed to store the raw data (i.e., the amount of Gas returned) may also be referred to herein as the amount of Gas paid out in advance.
In one embodiment, when the target operation instructions are included in the smart contract, it is not ensured that the smart contract is successfully executed even if the total amount of assets is equal to the actual amount of assets. Based on this, an embodiment of the present invention provides a data processing method based on a block chain, and first introduces a data processing system for implementing the data processing method based on the block chain, referring to fig. 1, the data processing system includes a block chain network and at least one terminal. The terminal can be a terminal facing a user, namely the terminal can be a terminal used by a contract caller for requesting execution of an intelligent contract, and the terminal can be intelligent equipment such as a smart phone, a tablet personal computer, a portable personal computer, an intelligent watch, a bracelet, an intelligent television and the like. The block chain network is an end-to-end decentralized network formed by a plurality of node devices, each node device is allowed to obtain a complete database copy, and the node devices jointly maintain the whole block chain based on a set of consensus mechanism. The node device may specifically refer to an independent server, a server cluster composed of a plurality of servers, or a cloud computing center. Specifically, the node device may execute the intelligent contract and record an execution result of the intelligent contract to the device of the blockchain.
Based on the above description of the data processing system, please refer to fig. 2, fig. 2 is a block chain-based data processing method according to an embodiment of the present invention, which is applied to the terminal in fig. 1, and the method specifically includes the following steps S101 to S104.
S101, acquiring the total quantity of assets required by execution of a first intelligent contract in the block chain network, wherein the total quantity of assets comprises a first quantity of assets consumed when the first intelligent contract is simulated and a second quantity of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated and executed.
The simulation execution may refer to that a certain node device in the blockchain executes the first intelligent contract, and after the execution is finished, the execution result of the first intelligent contract is not saved, but the quantity of assets consumed when each operation instruction in the first intelligent contract is executed may be recorded in the process of executing the first intelligent contract. Formal execution (execution for short) means that after the first intelligent contract is executed, the execution result of the first intelligent contract is stored in the blockchain network, and each time an operation instruction in the first intelligent contract is executed, the asset quantity corresponding to the operation instruction is consumed. That is, the amount of assets consumed by the simulated execution of the first intelligent contract is the same as the amount of assets consumed by the official execution of the first intelligent contract.
The first quantity of assets is a quantity of assets consumed by the first intelligent contract when simulated for execution, i.e., the first quantity of assets is a quantity of assets consumed by the first intelligent contract when executed (i.e., formally executed). That is, if the amount of assets actually consumed by the first intelligent contract when executed is already included in the first asset data, it can be ensured that the first intelligent contract can be executed successfully by ensuring that at least the second amount of assets remains in the amount of assets that the contract caller is willing to pay after each operation instruction in the first intelligent contract is executed. Therefore, in order to ensure that the first intelligent contract can be executed successfully, the terminal may obtain asset information obtained by simulating the execution of the first intelligent contract, wherein the asset information includes a first asset quantity consumed by the simulation execution of the first intelligent contract and a second asset quantity required to be paid in advance when the target operation instruction in the first intelligent contract is simulated. Further, a sum between the first quantity of assets and the second quantity of assets is calculated, and the sum is determined as a total quantity of assets required by the first intelligent contract to be executed. The total amount of assets can be expressed by the following formula (1).
Pz=P1+P2 (1)
Wherein, P in the formula (1)zRepresenting the total amount of assets, P1Representing a first quantity of assets, P2Representing a second quantity of assets.
And S102, determining the value of the electronic resource required by the execution of the first intelligent contract according to the total amount of the assets.
The terminal may determine the value of the electronic resource required by the first intelligent contract to be executed according to the total amount of the assets, that is, the terminal may determine the product of the value of each asset and the total amount of the assets as the value of the electronic resource required by the first intelligent contract to be executed. Generally, the value of each asset (unit price of each asset) is set by a contract caller, and the high and low of the value of each asset determines how fast the first intelligent contract is executed, i.e. the higher the value of each asset, the faster the first intelligent contract is executed; the lower the value of each asset, the slower the first intelligent contract is executed. Here, the electronic resource refers to a fee for paying for the first smart contract to be executed, which may include at least french currency, electronic money, digital money, and the like; the legal currency is a currency which is given to the legal currency for forced circulation, such as RMB, USD and the like; the electronic money is money stored in an electronic wallet (such as a QQ wallet, a wechat wallet, etc.) held by a user in an electronic form; digital currency may refer to currency issued using computer cryptography.
After step S102, the terminal may first create a key pair using an asymmetric encryption algorithm; asymmetric encryption algorithms herein may include, but are not limited to: the Elgamal algorithm (an asymmetric encryption algorithm), the Rabin algorithm (an asymmetric encryption algorithm), the Diffie-Hellman algorithm (an asymmetric encryption algorithm), the ECC algorithm (elliptic curve encryption algorithm). Wherein the key pair comprises a public key and a private key; the public key is used for identifying a transaction address of the terminal, and the private key is used for signing an execution request of the first intelligent contract by the terminal. After the key pair is created, the terminal can upload the public key in the key pair to the blockchain network, so that the blockchain network takes the public key in the key pair as the transaction address of the terminal; and the private key is kept by the terminal. It should be noted that the transaction addresses in the blockchain network are unique, and one transaction address corresponds to one terminal (i.e., user). That is, the public key may mark the user identity of the user indicated by the terminal (i.e., the contract caller). In another embodiment, the terminal may also upload an identification of a personal account (account identification of a contract caller) for storing the electronic resource to the blockchain network, so that the blockchain network associates the target account and the public key to use the personal account as a down-link address for the terminal to manage and pay for the electronic resource. Here, the identification may include user identification (e.g., a user account number in instant messaging software, a registered user account number in payment software, etc.), device identification used by a user (e.g., a mobile phone number, a serial number of a mobile phone, etc.), or electronic account identification (e.g., an electronic bank card number, an internet banking account number, an internet payment account number, etc.).
After the terminal uploads the first public key to the blockchain network, the terminal is indicated to finish identity registration in the blockchain network, and at the moment, the terminal has the qualification of requesting to execute the intelligent contract and checking information in the blockchain network.
S103, electronic resources which are larger than or equal to the numerical value are prestored in the target account.
The target account may refer to a personal account of the contract caller or a transaction address registered in the blockchain network by the terminal as described above. In order to ensure that the first intelligent contract can be executed successfully, the terminal may pre-store the electronic resource greater than or equal to the numerical value in the target account, that is, as long as the electronic resource greater than or equal to the numerical value is included in the target account of the contract caller, the first intelligent contract can be executed successfully.
And S104, sending an execution request to the node equipment in the block chain network, wherein the execution request carries the identification of the target account, the numerical value of the electronic resource and the total amount of the assets, so that the node equipment freezes the numerical electronic resource from the target account and executes the first intelligent contract.
After the electronic resources are pre-stored, the terminal may send an execution request to the node device in the blockchain network, so that the node device executes the first intelligent contract from the electronic resources of the value frozen in the target account, that is, each time the node device executes an operation instruction in the first intelligent contract, the electronic resources corresponding to the amount of assets required for executing the operation instruction are deducted from the target account. It should be noted that, since the amount of assets actually consumed by the first intelligent contract when executed is the first asset amount, after the first intelligent contract is executed, the node device returns the second asset amount, that is, returns the electronic assets corresponding to the second asset amount to the target account.
In the embodiment of the invention, the total amount of assets required by the execution of a first intelligent contract in a block chain network is obtained through a terminal, namely the total amount of assets is the amount of assets which a contract caller is willing to pay for executing the first intelligent contract, and the total amount of assets comprises the amount of first assets consumed when the simulation execution of the first intelligent contract is carried out and the amount of second assets required to pay in advance when a target operation instruction in the first intelligent contract is simulated and executed; i.e., the total amount of assets includes the amount of assets needed to ensure that the first intelligent contract was successfully executed. Further, the terminal may determine a value of the electronic resource required for executing the first intelligent contract according to the total asset amount, pre-store the electronic resource greater than or equal to the value in the target account, and send an execution request to the node device in the block chain network. The method can quickly determine the quantity of assets required by the first intelligent contract to be executed successfully, and can avoid the problem that the first intelligent contract fails to be executed due to the lack of the quantity of assets. In addition, when the first intelligent contract is executed, only the second asset quantity paid out in advance is remained, and the second asset quantity is used for ensuring that the target operation instruction in the first intelligent contract is executed, so that the problem of overlarge total quantity of assets can be avoided, and the efficiency of executing the intelligent contract is improved.
In one embodiment, the target operation instruction includes any one of: a call instruction for at least one second intelligent contract, a modify store content instruction, a call instruction for the at least one second intelligent contract, and the modify store content instruction.
In this embodiment, the target operation instruction includes a call instruction for the at least one second smart contract, and before the step S101, the following steps S11 and S12 are included:
s11, obtaining the amount of assets that each second intelligent contract in the at least one second intelligent contract needs to pay in advance when the call instruction is simulated to be executed.
s12, determining the maximum asset quantity of the asset quantities needing to be paid out in advance as the second asset quantity.
Since the terminal needs to pay out the first amount of assets in advance before executing each second intelligent contract, the remaining amount of assets can be returned after the second intelligent contract is executed, and the remaining amount of assets can be used for executing other operation instructions of the first intelligent contract. The quantity of assets required to be paid out in advance when each second intelligent contract is invoked is defined in the blockchain network. The terminal can acquire a second intelligent contract called in the simulation execution process of the first intelligent contract and acquire the amount of assets required to be paid out in advance by the called second intelligent contract from the block chain network. Since the number of assets actually consumed by the call instruction of the second intelligent contract is already included in the first assets, the maximum asset number of the number of assets that need to be paid out in advance may be determined as the second asset number, which can ensure that the call instruction for the at least one second intelligent contract is successfully executed.
Optionally, the target operation instruction includes the modify storage content instruction; before step S101, the following steps S21 and S22 are included:
s21, obtaining a target quantity of assets returned after simulating execution of the first smart contract, the target quantity of assets returned being associated with the modified storage content instruction.
s23, determining the returned target asset quantity as the second asset quantity.
In steps s21 and s22, since there is a release of storage space after the instruction to modify the storage content is executed, the first intelligent contract needs to return the amount of the released storage space corresponding to the amount of the assets after being executed, and therefore, the instruction to modify the storage content can be successfully executed only when the amount of the assets returned here needs to be paid out by the terminal in advance. The terminal may obtain a target quantity of assets returned after the first intelligent contract is executed in a simulation mode, where the returned target quantity of assets is associated with the command for modifying the storage content, and the terminal may determine the returned target quantity of assets as a second quantity of assets, that is, the returned target quantity of assets is a quantity of assets paid out in advance, so that the command for modifying the storage content can be guaranteed to be executed successfully. For example, assuming that the modified storage content instruction is used to modify the value of a variable a, the initial value of a defined in the first smart contract is 10, and after the modified storage content instruction is executed, the initial value of a is updated to 110. Because an initial value is given to a, updating the initial value of a requires consuming a certain number of assets, for example, the number of assets occupied by giving the initial value to a is 2 Gas, and the number of assets occupied by updating the initial value of a is 3 Gas. However, after a is updated, the updated value of a covers the initial value of a, that is, after the first intelligent contract is executed, the storage space corresponding to the initial value of a needs to be released. Therefore, after the first intelligent contract is executed, the quantity of assets occupied by the storage space corresponding to the initial value of a needs to be returned, that is, the quantity of target assets returned after the first intelligent contract is executed in a simulated mode is 2 Gas, and the 2 Gas can be determined as the second quantity of assets paid out in advance.
Optionally, the target operation instruction includes a call instruction for the at least one second intelligent contract and the modify storage content instruction; before the step S101, the following steps S31-S33 are included:
s31, the amount of assets that need to be paid out in advance when the call instruction to obtain each of the at least one second intelligent contract is simulated for execution, and the amount of target assets returned after the first intelligent contract, the amount of target assets returned being associated with the modify storage content instruction.
s32, determining the maximum number of assets from the number of assets that need to be paid out in advance.
s33, determining the sum of the returned target asset quantity and the maximum asset quantity as a second asset quantity.
In steps s31-s33, when the calling instruction for the at least one second intelligent contract and the instruction for modifying the storage content are included in the first intelligent contract, the terminal may obtain the number of assets that need to be paid out in advance when the calling instruction of each second intelligent contract in the at least one second intelligent contract is simulated to be executed, and determine the maximum number of assets from the number of assets that need to be paid out in advance. And determining a sum of the returned target quantity of assets and the maximum quantity of assets as a second quantity of assets, such that a call instruction for the at least one second smart contract and the modify storage content instruction are ensured to be successfully executed. The second asset quantity can then be expressed by the following equation (2).
P2=max(gr)+fr (2)
Wherein, grThe number of assets required to be paid out in advance when the call instruction of each second intelligent contract is executed is referred to, and of course, the number of assets required to be paid out in advance when the call instruction of each second intelligent contract is executed may be the same or different, and the number of assets required to be executed in advance when the call instruction of each second intelligent contract is executed may be defined in the blockchain network. max (g)r) The maximum value of the asset quantity required to be paid out in advance when the calling instruction for the at least one second intelligent contract is executed is referred to. f. ofrThe amount of returned assets generated by the modify store content instruction.
In one embodiment, step S102 may include steps S41-S42 as follows.
s41, obtaining the value of each asset.
s42, determining the product of the value of each asset and the total amount of assets as the value of the electronic resource required for the execution of the first intelligent contract.
In steps s41-s42, the terminal may obtain a value of each asset, which may be set by the user, and if the contract invoker wants the first intelligent contract to be executed quickly, the value of each asset may be set to a larger value, and accordingly, the contract invoker needs to pay more electronic resources for executing the first intelligent contract; if the contract invoker does not want the first intelligent contract to be executed quickly, the value of each asset may be set to a smaller value, and accordingly, the contract invoker may need to pay less electronic resources to execute the first intelligent contract. Further, a product between the value of each of the assets and the total amount of the assets may be determined as a value of the electronic resource required for execution of the first intelligent contract.
In one embodiment, the terminal may send the value of each asset to the node device, so that the node device, when receiving a plurality of execution requests, responds to the execution requests in sequence according to the value of each asset corresponding to each execution request. That is, when the node device receives a plurality of execution requests for the first intelligent contract, the execution requests may be responded to in order according to the value set by the contract invoker for each asset. For example, when the node device receives two execution requests for the first intelligent contract, namely a first execution request and a second execution request, respectively, the value of each asset set by the contract caller corresponding to the first execution request is 2gwei (units of ethernet coins), and the value of each asset set by the contract caller corresponding to the second execution request is 3gwei (units of ethernet coins), the node device responds to the second execution request first and then responds to the first execution request.
The block chain-based data processing method in the embodiment of the present invention is described below by taking an example that the target operation instruction includes a call instruction (smart contract 21 and smart contract 22, respectively) for two second smart contracts and a modify storage content instruction, and as shown in fig. 3, the method includes the following steps s1 to s 5.
s1, the node device may simulate executing the first smart contract. The terminal may send a simulation execution request for the first intelligent contract to the node device, where the simulation execution request carries a third quantity of assets, and assuming that the third quantity of assets is 150 Gas, the simulation execution of the first intelligent contract may not pay electronic resources. The node device may receive the simulation execution request, then simulate the execution of the first intelligent contract, record the executed operation instructions in the process of executing the first intelligent contract, and deduct the corresponding asset quantity of each operation instruction. If the first intelligent contract returns 30 Gas in total after being executed, the first quantity of assets consumed when the first intelligent contract is simulated to be executed is 130 Gas, namely 150 Gas-30 Gas is 120 Gas. And determines a target operation instruction from the recorded operation instructions, i.e. the target operation instruction comprises a call instruction (intelligent contract 21 and intelligent contract 22, respectively) and a modify storage content instruction for two second intelligent contracts.
s2, the terminal obtains a total amount of assets required for the first intelligent contract to be executed. The terminal acquires a second quantity of assets which need to be paid out in advance when the target operation instruction is executed from the blockchain network, and the quantity of assets which need to be paid out in advance when the intelligent contract 21 is executed is assumed to be 20 Gas, and the quantity of assets which need to be paid out in advance when the intelligent contract 22 is executed is assumed to be 10 Gas. The amount of assets that would need to be paid out beforehand if the modify store instructions were executed is 2 Gas. Therefore, the second asset quantity required to be paid out in advance when the target operation instruction is executed is 22 Gas, that is, the second asset quantity can be represented as: max (20, 10) Gas +2 Gas is 22 Gas, and the total amount of assets is 142 Gas, that is, the total amount of assets can be expressed as: 22 Gas +120 Gas-142 Gas.
s3, the terminal determines the electronic resources corresponding to 142 Gas. Assuming that each asset has a value of 2gwei, the 142 Gas corresponds to 282gwei electronic resources, i.e., 2gwei 142 Gas 282 gwei.
s4, the terminal prestores the electronic resources greater than or equal to 282gwei in the target account.
s5, the terminal sends an execution request to the node device of the block chain network, where the execution request carries the identifier of the target account, the value 282gwei of the electronic resource, and the total amount of assets is 142 Gas. That is, it indicates that the contract caller is willing to pay 282gwei electronic resources for executing the first intelligent contract this time, and the quantity of Gas willing to pay is 142. The node device may freeze 282gwei electronic resources from the target account, and execute the first intelligent contract, and each time an operation instruction in the first intelligent contract is executed, deduct the electronic resources corresponding to the corresponding Gas quantity from the target account.
An embodiment of the present invention provides a data processing apparatus based on a block chain, where the data processing apparatus based on the block chain may be disposed in a terminal, please refer to fig. 4, and the apparatus includes:
an obtaining unit 401, configured to obtain a total amount of assets required by a first intelligent contract in a blockchain network to be executed, where the total amount of assets includes a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets that need to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed;
a determining unit 402, configured to determine, according to the total amount of assets, a value of an electronic resource required for the first intelligent contract to be executed;
a pre-storing unit 403, configured to pre-store, in the target account, the electronic resource greater than or equal to the numerical value;
a sending unit 404, configured to send an execution request to a node device in the blockchain network, where the execution request carries an identifier of the target account, a numerical value of the electronic resource, and the total amount of the asset, so that the node device freezes the numerical electronic resource from the target account and executes the first intelligent contract.
Optionally, the target operation instruction includes any one of: a call instruction for at least one second intelligent contract, a modify store content instruction, a call instruction for the at least one second intelligent contract, and the modify store content instruction.
Optionally, the target operation instruction comprises a call instruction for the at least one second intelligent contract; the obtaining unit 401 is further configured to obtain the quantity of assets that need to be paid in advance when the call instruction of each second intelligent contract in the at least one second intelligent contract is simulated; the maximum number of assets among the number of assets requiring a payout in advance is determined as the second number of assets.
Optionally, the target operation instruction includes the instruction for modifying the storage content; an obtaining unit 401, configured to obtain a target quantity of assets returned after the execution of the first smart contract is simulated, where the returned target quantity of assets is associated with the instruction to modify the storage content; determining the returned target asset quantity as a second asset quantity.
Optionally, the target operation instruction comprises a call instruction for the at least one second intelligent contract and the modify storage content instruction; an obtaining unit 401, configured to obtain a quantity of assets that need to be paid out in advance when a call instruction of each second intelligent contract in the at least one second intelligent contract is simulated to be executed, and a target quantity of assets returned after the first intelligent contract, where the target quantity of assets returned is associated with the instruction to modify the storage content; determining the maximum quantity of assets from the quantity of assets needing to be paid out in advance; determining a sum of the returned target asset quantity and the maximum asset quantity as a second asset quantity.
Optionally, the determining unit 402 is configured to obtain a value of each asset; determining a product between the value of each asset and the total amount of assets as a value of the electronic resource required for execution of the first intelligent contract.
Optionally, the sending unit 404 is configured to send the value of each asset to the node device, so that when the node device receives a plurality of execution requests, the node device sequentially responds to the execution requests according to the value of each asset corresponding to each execution request.
In the embodiment of the invention, the total amount of assets required by the execution of a first intelligent contract in a block chain network is obtained through a terminal, namely the total amount of assets is the amount of assets which a contract caller is willing to pay for executing the first intelligent contract, and the total amount of assets comprises the amount of first assets consumed when the simulation execution of the first intelligent contract is carried out and the amount of second assets required to pay in advance when a target operation instruction in the first intelligent contract is simulated and executed; i.e., the total amount of assets includes the amount of assets needed to ensure that the first intelligent contract was successfully executed. Further, the terminal may determine a value of the electronic resource required for executing the first intelligent contract according to the total asset amount, pre-store the electronic resource greater than or equal to the value in the target account, and send an execution request to the node device in the block chain network. The method can quickly determine the quantity of assets required by the first intelligent contract to be executed successfully, and can avoid the problem that the first intelligent contract fails to be executed due to the lack of the quantity of assets.
An embodiment of the present invention provides a terminal, please refer to fig. 5. The terminal includes: the processor 151, the user interface 152, the network interface 154, and the storage device 155 are connected via a bus 153.
A user interface 152 for enabling human-computer interaction, which may include a display screen or a keyboard, among others. And a network interface 154 for communication connection with an external device. A storage device 155 is coupled to processor 151 for storing various software programs and/or sets of instructions. In particular implementations, storage 155 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The storage device 155 may store an operating system (hereinafter referred to simply as a system), such as an embedded operating system like ANDROID, IOS, WINDOWS, or LINUX. The storage 155 may also store a network communication program that may be used to communicate with one or more additional devices, one or more application servers, one or more network devices. The storage device 155 may further store a user interface program, which may vividly display the content of the application program through a graphical operation interface, and receive a user's control operation of the application program through input controls such as menus, dialog boxes, and buttons. The storage device 155 may also store video data and the like.
In one embodiment, the storage 155 may be used to store one or more instructions; the processor 151 may be capable of implementing a data processing method based on a blockchain when invoking the one or more instructions, and specifically, the processor 151 invokes the one or more instructions to perform the following steps:
acquiring the total amount of assets required by a first intelligent contract in a block chain network to be executed, wherein the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed;
determining a value of electronic resources required for the first intelligent contract to be executed according to the total amount of the assets;
pre-storing electronic resources which are greater than or equal to the numerical value in the target account;
and sending an execution request to node equipment in the block chain network, wherein the execution request carries the identification of the target account, the numerical value of the electronic resource and the total amount of the assets, so that the node equipment freezes the numerical electronic resource from the target account and executes the first intelligent contract.
Optionally, the target operation instruction includes any one of: a call instruction for at least one second intelligent contract, a modify store content instruction, a call instruction for the at least one second intelligent contract, and the modify store content instruction.
Optionally, the processor calls an instruction to perform the following steps:
acquiring the quantity of assets needing to be paid in advance when the calling instruction of each second intelligent contract in the at least one second intelligent contract is simulated and executed;
the maximum number of assets among the number of assets requiring a payout in advance is determined as the second number of assets.
Optionally, the processor calls an instruction to perform the following steps:
obtaining the returned target asset quantity after the first intelligent contract is executed in a simulation mode, wherein the returned target asset quantity is associated with the storage content modifying instruction;
determining the returned target asset quantity as a second asset quantity.
Optionally, the processor calls an instruction to perform the following steps:
acquiring the quantity of assets needing to be paid in advance when the call instruction of each second intelligent contract in the at least one second intelligent contract is simulated to be executed and the quantity of target assets returned after the first intelligent contract, wherein the returned quantity of the target assets is associated with the instruction for modifying the storage content;
determining the maximum quantity of assets from the quantity of assets needing to be paid out in advance;
determining a sum of the returned target asset quantity and the maximum asset quantity as a second asset quantity.
Optionally, the processor calls an instruction to perform the following steps:
obtaining a value of each asset;
determining a product between the value of each asset and the total amount of assets as a value of the electronic resource required for execution of the first intelligent contract.
Optionally, the processor calls an instruction to perform the following steps:
and sending the value of each asset to the node equipment, so that the node equipment responds to the execution requests in sequence according to the value of each asset corresponding to each execution request when receiving a plurality of execution requests.
In the embodiment of the invention, the total amount of assets required by the execution of a first intelligent contract in a block chain network is obtained through a terminal, namely the total amount of assets is the amount of assets which a contract caller is willing to pay for executing the first intelligent contract, and the total amount of assets comprises the amount of first assets consumed when the simulation execution of the first intelligent contract is carried out and the amount of second assets required to pay in advance when a target operation instruction in the first intelligent contract is simulated and executed; i.e., the total amount of assets includes the amount of assets needed to ensure that the first intelligent contract was successfully executed. Further, the terminal may determine a value of the electronic resource required for executing the first intelligent contract according to the total asset amount, pre-store the electronic resource greater than or equal to the value in the target account, and send an execution request to the node device in the block chain network. The method can quickly determine the quantity of assets required by the first intelligent contract to be executed successfully, and can avoid the problem that the first intelligent contract fails to be executed due to the lack of the quantity of assets.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and reference may be made to the above-mentioned embodiment and advantageous effects of the data processing method based on a block chain in fig. 2 for implementing the problem solving and advantageous effects of the program, and repeated details are not repeated.
The above disclosure is intended to be illustrative of only some embodiments of the invention, and is not intended to limit the scope of the invention.

Claims (10)

1. A method for processing data based on a blockchain, the method comprising:
simulating and executing a first intelligent contract by node equipment in the block chain network, and recording a first asset quantity consumed when each operation instruction in the first intelligent contract is executed in the simulation and execution process; the first intelligent contract comprises a target operation instruction, wherein the target operation instruction refers to an instruction for paying out the asset quantity in advance when the first intelligent contract is executed; the simulation execution of the first intelligent contract is the same as the quantity of assets consumed by formal execution, and the first quantity of assets comprises the quantity of assets actually consumed by formal execution of each operation instruction in the first intelligent contract;
acquiring the total amount of assets required by a first intelligent contract in a block chain network to be executed, wherein the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets required to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed; when the second asset quantity is left after the first asset quantity required for ensuring that each operation instruction in the first intelligent contract is formally executed is removed from the asset quantity which is willing to be paid by the contract caller of the first intelligent contract, the first intelligent contract can be ensured to be successfully formally executed;
determining a value of electronic resources required for the first intelligent contract to be executed according to the total amount of the assets;
pre-storing electronic resources which are greater than or equal to the numerical value in the target account;
sending an execution request to node equipment in the block chain network, wherein the execution request carries the identification of the target account, the numerical value of the electronic resource and the total amount of the assets, so that the node equipment can freeze the numerical electronic resource in the target account and formally execute the first intelligent contract;
and after the first intelligent contract is formally executed, the node equipment returns the electronic resources corresponding to the second asset quantity to the target account.
2. The method of claim 1, wherein the target operation instruction comprises any one of: a call instruction for at least one second intelligent contract, a modify store content instruction, a call instruction for the at least one second intelligent contract, and the modify store content instruction.
3. The method of claim 2, wherein the target operational instructions comprise a call instruction for the at least one second smart contract;
before the acquiring the total amount of assets required by the first intelligent contract in the blockchain network to be executed, the method further comprises the following steps:
acquiring the quantity of assets needing to be paid in advance when the calling instruction of each second intelligent contract in the at least one second intelligent contract is simulated and executed;
the maximum number of assets among the number of assets requiring a payout in advance is determined as the second number of assets.
4. The method of claim 2, wherein the target operation instruction comprises the modify store content instruction;
before the acquiring the total amount of assets required by the first intelligent contract in the blockchain network to be executed, the method further comprises the following steps:
obtaining the returned target asset quantity after the first intelligent contract is executed in a simulation mode, wherein the returned target asset quantity is associated with the storage content modifying instruction;
determining the returned target asset quantity as a second asset quantity.
5. The method of claim 2, wherein the target operation instructions include a call instruction for the at least one second smart contract and the modify store content instruction;
before the acquiring the total amount of assets required by the first intelligent contract in the blockchain network to be executed, the method further comprises the following steps:
acquiring the quantity of assets needing to be paid in advance when the call instruction of each second intelligent contract in the at least one second intelligent contract is simulated to be executed and the quantity of target assets returned after the first intelligent contract, wherein the returned quantity of the target assets is associated with the instruction for modifying the storage content;
determining the maximum quantity of assets from the quantity of assets needing to be paid out in advance;
determining a sum of the returned target asset quantity and the maximum asset quantity as a second asset quantity.
6. The method of any of claims 1-5, wherein determining the value of the electronic resource required for execution of the first intelligent contract based on the total amount of assets comprises:
obtaining a value of each asset;
determining a product between the value of each asset and the total amount of assets as a value of the electronic resource required for execution of the first intelligent contract.
7. The method of claim 6, wherein the method further comprises:
and sending the value of each asset to the node equipment, so that the node equipment responds to the execution requests in sequence according to the value of each asset corresponding to each execution request when receiving a plurality of execution requests.
8. An apparatus for data processing based on a blockchain, the apparatus comprising:
the acquisition unit is used for acquiring the total quantity of assets required by the execution of a first intelligent contract in a block chain network, wherein a node device in the block chain network simulates the execution of the first intelligent contract and records the quantity of the first assets consumed by the execution of each operation instruction in the first intelligent contract in the simulation execution process; the first intelligent contract comprises a target operation instruction, wherein the target operation instruction refers to an instruction for paying out the asset quantity in advance when the first intelligent contract is executed; the simulation execution of the first intelligent contract is the same as the quantity of assets consumed by formal execution, and the first quantity of assets comprises the quantity of assets actually consumed by formal execution of each operation instruction in the first intelligent contract; the target operation instruction in the first intelligent contract needs to be paid out in advance when being simulated and executed; the total amount of assets comprises a first amount of assets consumed when the first intelligent contract is simulated to be executed and a second amount of assets which need to be paid out in advance when a target operation instruction in the first intelligent contract is simulated to be executed; when the second asset quantity is left after the first asset quantity required for ensuring that each operation instruction in the first intelligent contract is formally executed is removed from the asset quantity which is willing to be paid by the contract caller of the first intelligent contract, the first intelligent contract can be ensured to be successfully formally executed;
a determining unit, configured to determine, according to the total amount of assets, a value of an electronic resource required for executing the first intelligent contract;
the pre-storing unit is used for pre-storing the electronic resources which are greater than or equal to the numerical value in the target account;
a sending unit, configured to send an execution request to a node device in the blockchain network, where the execution request carries an identifier of the target account, a numerical value of the electronic resource, and the total amount of the asset, so that the node device formally executes the first intelligent contract from the electronic resource of the numerical value frozen in the target account;
and after the first intelligent contract is formally executed, the node equipment returns the electronic resources corresponding to the second asset quantity to the target account.
9. A terminal, characterized in that it further comprises:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium having one or more instructions stored thereon, the one or more instructions adapted to be loaded by the processor and to perform the method of any of claims 1-7.
10. A computer storage medium, characterized in that the computer storage medium stores computer program instructions which, when executed, implement the method of any one of claims 1-7.
CN201910895662.2A 2019-09-21 2019-09-21 Data processing method and device based on block chain, storage medium and terminal Active CN110597916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910895662.2A CN110597916B (en) 2019-09-21 2019-09-21 Data processing method and device based on block chain, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910895662.2A CN110597916B (en) 2019-09-21 2019-09-21 Data processing method and device based on block chain, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110597916A CN110597916A (en) 2019-12-20
CN110597916B true CN110597916B (en) 2021-03-26

Family

ID=68862066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910895662.2A Active CN110597916B (en) 2019-09-21 2019-09-21 Data processing method and device based on block chain, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110597916B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274597B (en) * 2020-01-23 2023-08-22 腾讯科技(深圳)有限公司 Data processing method and device
CN111401866A (en) * 2020-03-13 2020-07-10 杭州复杂美科技有限公司 Method, apparatus and storage medium for pre-storing and deducting commission fee
CN112037055B (en) * 2020-08-17 2023-05-05 成都质数斯达克科技有限公司 Transaction processing method, device, electronic equipment and readable storage medium
CN111966503B (en) * 2020-10-20 2021-05-25 支付宝(杭州)信息技术有限公司 Method and device for managing storage space of intelligent contract account
CN113886135A (en) * 2020-10-20 2022-01-04 支付宝(杭州)信息技术有限公司 Block chain data recovery method and device
EP4358000A1 (en) * 2021-06-16 2024-04-24 Digital Currency Institute, The People's Bank of China Digital currency-based payment method, platform, terminal, and payment system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN109034915A (en) * 2018-09-03 2018-12-18 王昆 A kind of artificial intelligent type e-commerce system using digital asset or integral as the media of exchange
CN109361664A (en) * 2018-10-11 2019-02-19 腾讯科技(深圳)有限公司 Data verification method, system and computer readable storage medium based on block chain
CN109727129A (en) * 2018-12-18 2019-05-07 杭州茂财网络技术有限公司 A kind of data trade method and its equipment
CN110009489A (en) * 2019-01-03 2019-07-12 阿里巴巴集团控股有限公司 Based on the assets transfer method and device of block chain, electronic equipment
CN110009321A (en) * 2018-12-12 2019-07-12 阿里巴巴集团控股有限公司 A kind of transfer account method and system based on block chain intelligence contract
CN110163590A (en) * 2019-04-29 2019-08-23 阿里巴巴集团控股有限公司 Payment based on block chain withholds method and device, electronic equipment, storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180218176A1 (en) * 2017-01-30 2018-08-02 SALT Lending Holdings, Inc. System and method of creating an asset based automated secure agreement
CN106897878A (en) * 2017-02-27 2017-06-27 钱德君 A kind of intelligent contract type implementation of quantum catenary system
CN107341702B (en) * 2017-03-08 2020-06-23 创新先进技术有限公司 Service processing method and device
CN108681891A (en) * 2018-05-24 2018-10-19 深圳前海益链网络科技有限公司 A kind of Multiple Currencies tranaction costs collection methods based on block chain
CN108876333A (en) * 2018-06-28 2018-11-23 北京金山安全软件有限公司 Transaction fee estimation method and device
CN109389500A (en) * 2018-09-29 2019-02-26 重庆邮电大学 Data trade platform based on ether mill
CN110263536B (en) * 2019-06-21 2024-05-24 深圳前海微众银行股份有限公司 Method and device for monitoring intelligent contracts in block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960388A (en) * 2017-03-01 2017-07-18 中钞信用卡产业发展有限公司北京智能卡技术研究院 The method and apparatus of the digital asset circulation of transregional piece of chain
CN109034915A (en) * 2018-09-03 2018-12-18 王昆 A kind of artificial intelligent type e-commerce system using digital asset or integral as the media of exchange
CN109361664A (en) * 2018-10-11 2019-02-19 腾讯科技(深圳)有限公司 Data verification method, system and computer readable storage medium based on block chain
CN110009321A (en) * 2018-12-12 2019-07-12 阿里巴巴集团控股有限公司 A kind of transfer account method and system based on block chain intelligence contract
CN109727129A (en) * 2018-12-18 2019-05-07 杭州茂财网络技术有限公司 A kind of data trade method and its equipment
CN110009489A (en) * 2019-01-03 2019-07-12 阿里巴巴集团控股有限公司 Based on the assets transfer method and device of block chain, electronic equipment
CN110163590A (en) * 2019-04-29 2019-08-23 阿里巴巴集团控股有限公司 Payment based on block chain withholds method and device, electronic equipment, storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"以太坊:一种安全去中心化的通用交易账本(EIP-150 版本)(原文链接:http://download.cxyym.com/blockchain/ethereum_yellowpaper_cn.pdf);程序员幽默;《https://www.sohu.com/a/193160563_287420》;20170919;第1-11页第2-12部分 *

Also Published As

Publication number Publication date
CN110597916A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110597916B (en) Data processing method and device based on block chain, storage medium and terminal
CN109064334B (en) Intelligent contract accounting method, computer device and readable storage medium
CN109981679B (en) Method and apparatus for performing transactions in a blockchain network
CN108492180B (en) Asset management method and device and electronic equipment
CN108335206B (en) Asset management method and device and electronic equipment
CN110557403B (en) Resource allocation method and device based on block chain, storage medium and node equipment
CN110147990B (en) Payment withholding subscription method and device based on block chain and electronic equipment
CN108596623B (en) Block chain consensus achieving method
TW201935384A (en) Asset management method and device, and electronic equipment
CN111818185B (en) Method and device for starting intelligent contract, electronic equipment and storage medium
CN111382168B (en) Node group creating method and node group-based transaction method in alliance chain network
CN110599323B (en) Resource processing method and processing equipment
CN113537984A (en) Content verification method and device based on block chain and electronic equipment
CN110599177A (en) Transaction verification method and related equipment
CN109409885A (en) Across chain method of commerce, device and storage medium on block chain
CN112200571A (en) Resource distribution method and device based on block chain and electronic equipment
CN111966757B (en) Method and device for managing storage space of intelligent contract account
CN112200567A (en) Resource management method and device based on block chain and electronic equipment
CN112200572A (en) Resource distribution method and device based on block chain and electronic equipment
CN109859031A (en) A kind of information processing method, node and the storage medium of block chain network
CN110599144A (en) Network access method and device for block link points
CN109993528A (en) It is a kind of for managing the method and apparatus of committal charge
CN110930152A (en) Data processing method based on block chain and related equipment
CN113034137A (en) Data processing method and device based on block chain and related equipment
CN110458541B (en) Object replacement method and device based on block chain

Legal Events

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