CN110046523B - Intelligent contract checking method and device and electronic equipment - Google Patents

Intelligent contract checking method and device and electronic equipment Download PDF

Info

Publication number
CN110046523B
CN110046523B CN201910199008.8A CN201910199008A CN110046523B CN 110046523 B CN110046523 B CN 110046523B CN 201910199008 A CN201910199008 A CN 201910199008A CN 110046523 B CN110046523 B CN 110046523B
Authority
CN
China
Prior art keywords
intelligent contract
data storage
execution result
target
contract
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
CN201910199008.8A
Other languages
Chinese (zh)
Other versions
CN110046523A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201910199008.8A priority Critical patent/CN110046523B/en
Priority to CN202110410155.2A priority patent/CN112966311A/en
Publication of CN110046523A publication Critical patent/CN110046523A/en
Application granted granted Critical
Publication of CN110046523B publication Critical patent/CN110046523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Bioethics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the specification provides an intelligent contract checking method, an intelligent contract checking device and electronic equipment, wherein a data storage node broadcasts a target transaction initiated by a client to any intelligent contract node; the intelligent contract node responds to the target transaction, and returns a pre-execution result to the data storage node after pre-executing the target intelligent contract corresponding to the target transaction; the data storage node sends the pre-execution result to other intelligent contract nodes; the other intelligent contract nodes simulate and execute the target intelligent contract according to the pre-execution result, and return a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; and when the data storage node determines that the simulation pre-execution result is consistent with the pre-execution result, determining that the pre-execution result passes verification.

Description

Intelligent contract checking method and device and electronic equipment
Technical Field
The embodiment of the specification relates to the technical field of block chains, in particular to an intelligent contract verification method and device and electronic equipment.
Background
The block chain technology, also called distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" together, and a complete distributed database is maintained together. The blockchain technology has characteristics of decentralization, public transparency, participation of each computing device in database recording, and rapid data synchronization among the computing devices, so that the blockchain technology is widely applied in many fields.
Disclosure of Invention
An embodiment of the present specification provides an intelligent contract verification method and apparatus, and an electronic device:
according to a first aspect of embodiments of the present specification, there is provided an intelligent contract verification method, the method including:
the data storage node broadcasts the target transaction initiated by the client to any one intelligent contract node;
the intelligent contract node responds to the target transaction, and returns a pre-execution result to the data storage node after pre-executing the target intelligent contract corresponding to the target transaction;
the data storage node sends the pre-execution result to other intelligent contract nodes;
the other intelligent contract nodes simulate and execute the target intelligent contract according to the pre-execution result, and return a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node;
and when the data storage node determines that the simulation pre-execution result is consistent with the pre-execution result, determining that the pre-execution result passes verification.
According to a second aspect of embodiments herein, there is provided an intelligent contract verification method, the method comprising:
the intelligent contract node receives a pre-execution result sent by the data storage node; the pre-execution result is a result obtained after other intelligent contract nodes respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction;
according to a third aspect of embodiments herein, an intelligent contract verification method, the method comprising:
the data storage node receives a target transaction initiated by a client;
broadcasting the target transaction to any one intelligent contract node;
receiving a pre-execution result returned after the intelligent contract node pre-executes the target intelligent contract corresponding to the target transaction;
sending the pre-execution result to other intelligent contract nodes so that the other intelligent contract nodes simulate and execute the target intelligent contract;
and when the simulation execution result returned by the other nodes is consistent with the pre-execution result, determining that the pre-execution result passes verification.
According to a fourth aspect of embodiments herein, an intelligent contract checking apparatus, the apparatus comprising:
the intelligent contract node receives a pre-execution result sent by the data storage node; the pre-execution result is a result obtained after other intelligent contract nodes respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction;
the execution unit simulates and executes the target intelligent contract according to the pre-execution result and returns a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; for the data storage node to verify.
According to a fifth aspect of embodiments herein, an intelligent contract checking apparatus, the apparatus comprising:
the data storage node receives a target transaction initiated by a client;
the broadcasting unit is used for broadcasting the target transaction to any one intelligent contract node;
the second receiving unit is used for receiving a pre-execution result returned after the intelligent contract node pre-executes the target intelligent contract corresponding to the target transaction;
the sending unit is used for sending the pre-execution result to other intelligent contract nodes so as to enable the other intelligent contract nodes to simulate and execute the target intelligent contract;
and the checking unit is used for determining that the pre-execution result passes the checking when the simulation execution result returned by the other nodes is consistent with the pre-execution result.
According to a sixth aspect of embodiments herein, there is provided an electronic apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured as any one of the intelligent contract verification methods described above.
The embodiment of the specification provides an intelligent contract checking scheme, and a read-write set generated by pre-executing a target intelligent contract through an intelligent contract node enables other intelligent contract nodes to simulate and execute the target intelligent contract without accessing a data storage node again by using the read-write set; and if the simulation execution result returned by the other intelligent contract nodes is consistent with the previous pre-execution result, the verification is determined to be passed. Therefore, on one hand, the safety of executing the intelligent contract can be improved through logic verification, and the single intelligent contract node is prevented from doing badness. On the other hand, the intelligent contract node for logic verification does not need to acquire the data state again, so that the times of accessing the data storage node are reduced. On the other hand, the contract verification and the data verification in the transaction process are decoupled and divided into two independent parts; the node equipment in the contract management system is only responsible for contract logic verification, and the node equipment in the data storage system is only responsible for data verification; the verification execution logic is simplified, and the verification operation period is shortened.
Drawings
FIG. 1a is a schematic diagram of an intelligent contract check of a conventional blockchain system according to an embodiment of the present disclosure;
FIG. 1b is a schematic diagram of a contract management system and a data storage system provided by an embodiment of the present description;
FIG. 2 is a flowchart of an intelligent contract checking method based on the blockchain shown in FIG. 1b according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of an intelligent contract node obtaining a data state from a data storage node according to an embodiment of the present specification;
FIG. 4 is a flowchart of a conventional blockchain based intelligent contract checking method according to an embodiment of the present specification;
FIG. 5a is a detailed flowchart of step 2 in FIG. 4;
FIG. 5b is a detailed flowchart of step 3 in FIG. 4;
FIG. 6 is a flow chart of a method executed by the data storage node of FIG. 2;
FIG. 7 is a flowchart of a method for using the intelligent contract node as an execution subject in FIG. 2;
FIG. 8 is a hardware block diagram of an intelligent contract checking apparatus provided in an embodiment of the present description;
FIG. 9 is a block diagram of an intelligent contract checking apparatus provided in one embodiment of the present description;
fig. 10 is a block diagram of an intelligent contract checking apparatus provided in an embodiment of the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The intelligent contract verification scheme provided by the specification can be applied to a blockchain and can also be applied to a non-blockchain.
Taking the application as an example of a blockchain, a Smart contract (Smart contract) is a computer protocol intended for application of an informative propagation, verification or execution contract that can be deployed on a blockchain. Performing the corresponding operation can be realized by declaring the business logic in the smart contract. Smart contracts allow trusted transactions to be conducted without third parties. These transactions are traceable and irreversible. Smart contracts can provide security over traditional contract methodologies and reduce other transaction costs associated with contracts.
First, the deployment of intelligent contracts in a traditional blockchain is introduced. The traditional intelligent contract is directly deployed on node equipment in a block chain, and when the node equipment executes a transaction request, the locally deployed corresponding intelligent contract is directly operated; and the node device also stores the full amount of transaction data. To avoid tampering with, e.g., data by a single node device; as shown in fig. 1a, the intelligent contract checking process of the conventional blockchain is as follows:
1. the blockchain system sends the transaction to a plurality of node devices.
2. Each node device performs a pre-execution of the transaction and returns a result set of the pre-execution (usually with a signature of the corresponding node device).
3. And checking each result set, and if each pre-execution result is consistent, determining that the check is passed.
4. And after the verification is passed, broadcasting the pre-execution result to the whole network for consensus (verifying the data state).
As can be seen, in the existing intelligent contract verification, multiple node devices are required to repeatedly pre-execute an intelligent contract, and each pre-execution may require accessing a world state of a block chain to obtain a corresponding data state, and frequent accessing of the data state may consume many resources and is inefficient.
The present specification provides an intelligent contract checking scheme based on a block chain, which divides the block chain into a contract management system and a data storage system, wherein the contract management system only stores an intelligent contract of the block chain, and the data storage system only stores a data state of the block chain.
The read-write set generated by the target intelligent contract is pre-executed by one intelligent contract node, so that other intelligent contract nodes do not need to access the data storage node again, and the target intelligent contract can be simulated and executed by utilizing the read-write set; and if the simulation execution result returned by the other intelligent contract nodes is consistent with the previous pre-execution result, the verification is determined to be passed. Therefore, on one hand, the safety of executing the intelligent contract can be improved through logic verification, and the single intelligent contract node is prevented from doing badness. On the other hand, the intelligent contract node for logic verification does not need to acquire the data state again, so that the times of accessing the data storage node are reduced. On the other hand, the contract verification and the data verification in the transaction process are decoupled and divided into two independent parts; the node equipment in the contract management system is only responsible for contract logic verification, and the node equipment in the data storage system is only responsible for data verification; the verification execution logic is simplified, and the verification operation period is shortened.
The blockchain described in this specification may specifically include a private chain, a common chain, a federation chain, and the like, and is not particularly limited in this specification. Node devices in the block chain can be added without limitation, and each node device can synchronize a system time to ensure timeliness of execution of the intelligent contract.
It should be noted that the Transaction (Transaction) described in this specification refers to a piece of data that is created by a client of the blockchain and needs to be finally distributed to the data storage system of the blockchain.
Transactions in a blockchain, generally have a narrow sense of transaction and a broad sense of transaction score. A narrowly defined transaction refers to a transfer of value issued by a user to a blockchain; for example, in a conventional bitcoin blockchain network, the transaction may be a transfer initiated by the user in the blockchain. The broad transaction refers to a piece of business data with business intention, which is issued to the blockchain by a user; for example, an operator may build a federation chain based on actual business requirements, relying on the federation chain to deploy some other types of online business unrelated to value transfer (e.g., broadly classified as query business, call business, etc.), and in such federation chain, the transaction may be a business message or business request with a business intent issued by a user in the federation chain.
The client may include any type of upper layer application that uses the bottom layer service data stored in the blockchain as a data support to implement a specific service function.
The pre-execution described in this specification may refer to a process of executing an intelligent contract without recording an execution result, and may be understood as a logic execution. A complete execution process including intelligent contract execution and recording of execution results; but pre-execution is only intelligent contract execution.
Referring to fig. 1b, fig. 1b is a schematic diagram of a block chain system provided in the present specification:
the block chain is divided into a contract management system 11 and a data storage system 12, the contract management system 11 stores intelligent contracts, and the data storage system 12 stores business data.
The contract management system 11 includes a plurality of devices of intelligent contract nodes, and the data storage system 12 includes a plurality of devices of data storage nodes.
The contract management system 11 and the data storage system 12 are connected through the SDK13 to complete data interaction.
Specifically, the contract management system 11 may be a set of independent blockchain systems, and is mainly responsible for deployment (creation), upgrade (update), and operation of intelligent contracts. Moreover, the contract management system 11 also needs to perform logical check on the execution of the intelligent contract.
The data storage system 12 may be another independent block chain system different from the contract management system 11, and is mainly responsible for storing data states and changes corresponding to the intelligent contracts. In addition, the data storage system 12 also needs to perform data verification on the data state change.
Referring to fig. 2, fig. 2 is a flowchart of a method for checking an intelligent contract based on a blockchain according to an embodiment of the present disclosure. As shown in fig. 1b, the blockchain may be divided into a contract management system and a data storage system.
1. A user initiates a transaction to any data storage node in the data storage system; set as data storage node 1.
2. The data storage node 1 broadcasts the transaction to any intelligent contract node in the contract management system; set to intelligent contract node 1.
In particular, the data storage node 1 may broadcast the transaction to any one of the intelligent contract nodes in the contract management system by engaging the SDK.
3. After the intelligent contract node 1 executes the intelligent contract in advance, a result set of the signature is returned.
After receiving the transaction broadcast by the data storage node 1, the intelligent contract node 1 responds to the transaction and can pre-run a target intelligent contract corresponding to the transaction; and packing read-write sets and other information generated in the process of pre-executing the target intelligent contract into a result set; the result set is then signed to endorse the result set. Likewise, the intelligent contract node 1 returns the signed result set to the data storage node 1 by engaging the SDK.
4. The data storage node 1 sends the result set returned by the intelligent contract node 1 to other intelligent contract nodes.
The data storage node 1, after receiving the result set returned by the intelligent contract node 1, may also send the result set to other intelligent contract nodes except the intelligent contract node 1 through the engagement SDK.
5. Other intelligent contract nodes carry out logic verification on the result set; if the verification passes, self-signature is added to the result set and returned to the data storage node 1.
The logical check includes: simulating and executing the intelligent contract to obtain a simulation read-write set; and judging whether the simulation read-write set is consistent with the read-write set in the result set. If the two are consistent, the verification is passed; if not, the check fails.
6. And the data storage node 1 performs validity check on the result set returned by the other intelligent contract nodes.
The validity check here may refer to checking the signature of the result set, and if the signatures of all other intelligent contract nodes are included, the validity check may be considered to be passed.
7. And after the validity check is passed, the data storage node 1 transmits the transaction to other data storage nodes for consensus.
After the result set is verified to be valid, the data state change result can be extracted from the read-write set, and the data state change result is sent to other data storage nodes for consensus.
8. The data storage section performs data verification on the data state change; and if the verification is passed, modifying the corresponding data state, and setting the transaction as an effective transaction.
The consensus mechanism is mainly used for carrying out data verification on data state change; if the data state change is consistent with the locally stored data state, the verification is passed. Thereby modifying the corresponding data state and setting the transaction as a valid transaction.
9. After the consensus passes, the data storage node 1 returns a prompt.
After the consensus passes, the data storage node 1 may return prompt information to the user, such as execution results or occurrence of a block event. Such a complete transaction flow ends.
A flow chart of the intelligent contract node 1 obtaining the data state from the data storage node 1 is described below with reference to the example shown in fig. 3.
1. The data storage node 1 sends the transaction to the intelligent contract node 1 by engaging the SDK.
Wherein the transaction carries execution parameters. The execution parameters may specifically include contract parameters and business parameters.
The contract parameters may be used to locate a target intelligent contract. The contract parameters may include contract identification, calling function name, contract version number, input parameters, transaction ID, timestamp, etc. information.
2. The intelligent contract node 1 responds to the transaction and executes the intelligent contract corresponding to the transaction; during execution of the intelligent contract, the data state is retrieved to the data storage node 1.
The intelligent contract node 1 can determine a calling function interface method based on the contract identification, calling function name and other information in the contract parameters.
The business parameters may be used to locate the data state needed to execute the contract logic.
The following illustrates the differences in traffic parameters and data states:
let a +1 be assumed as the transaction sent by the client. The fields a and plus 1 are the traffic parameters and the current value of a is the data state. In the actual operation of a +1, the original value (service data) of a needs to be acquired first, and then 1 is added on the basis of the original value to obtain the execution result.
As shown in FIG. 3, intelligent contract node 1 may generate a read-write set (r/w set) during execution of the contract logic. The read-write set may include contract identification, status reads, and status writes.
The contract identification here is used to indicate which intelligent contract the read-write set corresponds to. The state read here refers to the data state read by the intelligent contract node 1 accessing the data storage node 1 by engaging the SDK. The status write here refers to the changed data status calculated from the read data status.
Typically, for complex intelligent contracts, there are multiple sets of state reads and state writes; that is, the read-write set may be a data set formed by all state reads and state writes during execution of the smart contract. The whole execution calculation process of the intelligent contract can be truly reflected through the reading and writing set.
3. After the intelligent contract node 1 executes the intelligent contract, the execution result may be returned to the data storage node 1.
The execution result here may be a result set formed by packing contract parameters and read-write sets, and signing endorsements for the result set.
In addition to the application of the blockchain system shown in fig. 1b, the embodiments of the present disclosure can also be applied to a conventional blockchain system, as shown in fig. 4:
1. the blockchain system sends the transaction initiated by the user to any one of the node devices.
2. The node device pre-executes the intelligent contract corresponding to the transaction and returns a result set (containing information such as read-write set, return value, signature and the like). The specific process is shown in fig. 5 a:
2.1. the transaction carries execution parameters.
SDK passes parameters into node device.
2.3. The node device executes contract logic to retrieve data or modify data from the data store and generates a read-write set.
2.4. Signing the record when the contract is successfully executed; and returning a result set.
3. And sending the result set to other node equipment so as to enable the other node equipment to carry out logic check.
Performing simulation execution of the intelligent contract according to the data in the read-write set to obtain a simulation read-write set generated in the simulation execution process; if the analog read-write set is consistent with the read-write set in the result set, the verification is passed; otherwise, the verification fails if the two are inconsistent. The specific process is shown in fig. 5 b:
SDK passing result set to other node device.
3.2. And other node equipment executes contract logic, acquires data or modifies data from the read-write set and performs logic verification.
3.3. The logic checks pass and the record is signed.
4. If the verification is passed, the correct signature information is returned.
5. The result set and signature information are collected.
In this embodiment, when other node devices perform simulation execution through the result set, the node devices do not need to access the corresponding world states again, but directly acquire the required data states from the result set. Because the execution results of each node device for the same transaction are consistent, and the data states accessed by the node devices in the process are also consistent, the correct results can be obtained by reading and writing the sets as long as the logic is correct.
An embodiment of the method for the data storage node in the data storage system as an execution subject in the present specification is described below with reference to fig. 6, where the embodiment may be applied to the system shown in fig. 1b, and corresponds to the embodiment of the method shown in fig. 2, and the method includes:
step 210: the data storage node receives a target transaction initiated by a client;
step 220: and broadcasting the target transaction to any intelligent contract node.
Step 230: and receiving a pre-execution result returned after the intelligent contract node pre-executes the target intelligent contract corresponding to the target transaction.
Step 240: and sending the pre-execution result to other intelligent contract nodes so that the other intelligent contract nodes simulate to execute the target intelligent contract.
Step 250: and when the simulation execution result returned by the other nodes is consistent with the pre-execution result, determining that the pre-execution result passes verification.
In one embodiment, the intelligent contract node is located in a contract management system, and the contract management system is a block chain system for storing intelligent contracts;
the data storage nodes are located in a data storage system, and the data storage system is a block chain system for storing data states.
In an embodiment, the pre-execution result is a result set formed by packing read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signature of each node device;
the method further comprises the following steps:
and when the simulation execution result is consistent with the pre-execution result, sending the pre-execution result to other node equipment in the data storage system for consensus.
In one embodiment, the consensus mainly performs data verification on the read-write set data state change; if the data state change is consistent with the locally stored data state, the verification is passed. Thereby modifying the corresponding data state and setting the transaction as a valid transaction.
In an embodiment, after the consensus passes, the data storage node may also return a prompt message to the client. Such as execution results or block events.
An embodiment of a method for using an intelligent contract node in a contract management system as an execution subject, which can be applied to the system shown in fig. 1b and corresponds to the embodiment of the method shown in fig. 2, is described below with reference to fig. 7, where the method includes:
step 310: the intelligent contract node receives a pre-execution result sent by the data storage node; the pre-execution result is a result obtained after other intelligent contract nodes respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction;
step 320: simulating and executing the target intelligent contract according to the pre-execution result, and returning a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; for the data storage node to verify.
In an embodiment, the other intelligent contract nodes respond to the target transaction to pre-execute the target intelligent contract corresponding to the target transaction, specifically including:
acquiring a target intelligent contract corresponding to the contract parameters according to the contract parameters carried in the target transaction;
contract logic to pre-execute the target intelligent contract.
In this embodiment, the target transaction may carry contract parameters for locating the intelligent contract required to execute the target transaction.
The contract parameters may include contract identification, calling function name, contract version number, input parameters, transaction ID, timestamp, and other information.
Based on the contract identification in the contract parameters, acquiring an intelligent contract address corresponding to the contract identification from the contract management system;
and determining a calling function interface method under the intelligent contract address according to the calling function name.
However, in general, one smart contract may be externally provided with a plurality of function interface methods. Each function interface method corresponds to a specific service logic, so that after an intelligent contract address is determined according to a contract identifier, a calling function interface method under the intelligent contract address needs to be determined according to a calling function name.
In an embodiment, the other intelligent contract nodes respond to a target transaction initiated by a client, and pre-execute a result obtained after the target transaction corresponds to a target intelligent contract, which specifically includes:
and other intelligent contract nodes respond to the target transaction initiated by the client, and if the target intelligent contract corresponding to the target transaction is pre-executed needs a data state, the data state is acquired from the data storage equipment according to the transaction parameters carried in the target transaction.
In practical applications, in conjunction with the aforementioned FIG. 3, some transactions may not require data state entry, and data state may not be retrieved to the data storage system for such transactions. For some complex transactions, however, data states are needed; the service parameters corresponding to the data states need to be provided for the target transaction.
The following illustrates the differences in traffic parameters and data states:
let a +1 be assumed as the transaction sent by the client. The fields a and plus 1 are the traffic parameters and the current value of a is the data state. In the actual operation of a +1, the original value (service data) of a needs to be acquired first, and then 1 is added on the basis of the original value to obtain the execution result.
It should be noted that the read-write set is also generated in the process of executing the business logic of the intelligent contract. The read-write set may include input data (including data states) required to pre-execute the smart contract and output data corresponding to the input data. For a complex intelligent contract, the input data and the output data can contain multiple groups, namely, the read-write set is a data set formed by all input data and corresponding output data required in the execution process of the intelligent contract, and the data set can truly reflect the whole execution calculation process of the intelligent contract.
It is worth mentioning that when the intelligent contract node sends an execution result obtained after pre-executing the target intelligent contract to the data storage system, the signature of the node device needs to be added to the execution result; to endorse the execution result.
In an embodiment, the pre-execution result is a result set formed by packing read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signatures of the node devices.
It is worth mentioning that the node device performing the logic verification does not need to acquire the data state required for executing the target transaction from the data storage system again, so that the target intelligent contract can be simulated and operated according to the read-write centralized data.
It should be noted that, as long as the intelligent contract logic in the contract management system is successfully operated, the node device in the contract management system records the node device. According to the principle that the node equipment only performs logic verification, a unique value formed by transaction id + result set hash is recorded. Each transaction record is collected and packed into a block within a certain time range. There is a packed timestamp in this block. The records are not ordered in sequence, but rather are executed to complete certain transactions within the time period.
In an embodiment, the verifying the data storage node specifically includes:
the data storage node compares the pre-execution result with a simulation pre-execution result;
and if the pre-execution result is consistent with the simulation pre-execution result, determining that the verification is passed.
In one embodiment, the intelligent contract node is located in a contract management system, and the contract management system is a block chain system for storing intelligent contracts;
the data storage nodes are located in a data storage system, and the data storage system is a block chain system for storing data states.
In an embodiment, the simulating and executing the target intelligent contract according to the pre-execution result, and returning a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node, specifically includes:
simulating and executing the target intelligent contract according to the read-write centralized data of the pre-execution result;
and returning a simulation result set simulating the execution target intelligent contract to the data storage node.
The read-write set generated by the target intelligent contract is pre-executed by one intelligent contract node, so that other intelligent contract nodes do not need to access the data storage node again, and the target intelligent contract can be simulated and executed by utilizing the read-write set; and if the simulation execution result returned by the other intelligent contract nodes is consistent with the previous pre-execution result, the verification is determined to be passed. Therefore, on one hand, the safety of intelligent contract execution can be improved through logic verification. On the other hand, the intelligent contract node for logic verification does not need to acquire the data state again, so that the times of accessing the data storage node are reduced. On the other hand, the contract verification and the data verification in the transaction process are decoupled and divided into two independent parts; the node equipment in the contract management system is only responsible for contract logic verification, and the node equipment in the data storage system is only responsible for data verification; the verification execution logic is simplified, and the verification operation period is shortened.
Corresponding to the foregoing embodiment of the intelligent contract verification method, the present specification further provides an embodiment of an intelligent contract verification apparatus. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a logical device, the device is formed by reading corresponding computer business program instructions in the nonvolatile memory into the memory for operation through the processor of the device in which the device is located. In terms of hardware, as shown in fig. 8, the hardware structure diagram of the device in which the intelligent contract checking apparatus of this specification is located is shown, except for the processor, the network interface, the memory, and the nonvolatile memory shown in fig. 8, the device in which the apparatus is located in the embodiment usually checks an actual function according to the intelligent contract, and may further include other hardware, which is not described again.
Referring to fig. 9, a block diagram of an intelligent contract checking apparatus provided in an embodiment of the present disclosure, where the apparatus corresponds to the embodiment shown in fig. 6, includes:
a first receiving unit 410, where the data storage node receives a target transaction initiated by a client;
a broadcasting unit 420, which broadcasts the target transaction to any one intelligent contract node;
a second receiving unit 430, configured to receive a pre-execution result returned after the intelligent contract node pre-executes the target intelligent contract corresponding to the target transaction;
the sending unit 440 is used for sending the pre-execution result to other intelligent contract nodes so that the other intelligent contract nodes simulate to execute the target intelligent contract;
the checking unit 450 determines that the pre-execution result passes the checking when the simulation execution result returned by the other node is consistent with the pre-execution result.
Optionally, the method further includes:
and the consensus unit is used for sending the pre-execution result to other node equipment in the data storage system for consensus.
Optionally, the pre-execution result is a result set formed by packing read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signatures of the node devices.
Optionally, the intelligent contract node is located in a contract management system, and the contract management system is a blockchain system for storing intelligent contracts;
the data storage nodes are located in a data storage system, and the data storage system is a block chain system for storing data states.
Referring to fig. 10, a block diagram of an intelligent contract checking apparatus provided in an embodiment of the present disclosure, where the apparatus corresponds to the embodiment shown in fig. 7, includes:
the receiving unit 510, where the intelligent contract node receives a pre-execution result sent by the data storage node; the pre-execution result is a result obtained after other intelligent contract nodes respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction;
the execution unit 520 simulates and executes the target intelligent contract according to the pre-execution result, and returns a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; for the data storage node to verify.
Optionally, the verifying the data storage node specifically includes:
the data storage node compares the pre-execution result with a simulation pre-execution result;
and if the pre-execution result is consistent with the simulation pre-execution result, determining that the verification is passed.
Optionally, the pre-execution result is a result set formed by packing read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signatures of the node devices.
Optionally, the simulating and executing the target intelligent contract according to the pre-execution result, and returning a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node, specifically including:
simulating and executing the target intelligent contract according to the read-write centralized data of the pre-execution result;
and returning a simulation result set simulating the execution target intelligent contract to the data storage node.
Optionally, the other intelligent contract nodes respond to the target transaction initiated by the client, and pre-execute the result obtained after the target transaction corresponds to the target intelligent contract, which specifically includes:
and other intelligent contract nodes respond to the target transaction initiated by the client, and if the target intelligent contract corresponding to the target transaction is pre-executed needs a data state, the data state is acquired from the data storage equipment according to the transaction parameters carried in the target transaction.
Optionally, the intelligent contract node is located in a contract management system, and the contract management system is a blockchain system for storing intelligent contracts;
the data storage nodes are located in a data storage system, and the data storage system is a block chain system for storing data states.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 9 above describes the internal functional modules and the structural schematic of the execution apparatus of the intelligent contract in the blockchain, and the execution subject may be an electronic device, which includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the data storage node receives a target transaction initiated by a client;
broadcasting the target transaction to any one intelligent contract node;
receiving a pre-execution result returned after the intelligent contract node pre-executes the target intelligent contract corresponding to the target transaction;
sending the pre-execution result to other intelligent contract nodes so that the other intelligent contract nodes simulate and execute the target intelligent contract;
and when the simulation execution result returned by the other nodes is consistent with the pre-execution result, determining that the pre-execution result passes verification.
Fig. 10 above describes an internal functional module and a structural schematic of the checking apparatus of the intelligent contract in the blockchain, and the substantial execution subject may be an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the intelligent contract node receives a pre-execution result sent by the data storage node; the pre-execution result is a result obtained after other intelligent contract nodes respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction;
simulating and executing the target intelligent contract according to the pre-execution result, and returning a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; for the data storage node to verify.
In the above embodiments of the electronic device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiment of the electronic device, since it is substantially similar to the embodiment of the method, the description is simple, and for the relevant points, reference may be made to part of the description of the embodiment of the method.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims (14)

1. An intelligent contract checking method is applied to a block chain, wherein the block chain is divided into a contract management system and a data storage system; the contract management system is composed of a plurality of intelligent contract nodes and is only used for storing intelligent contracts in the block chain; the data storage system is composed of a plurality of data storage nodes and is only used for storing data states in a block chain; the method comprises the following steps:
a data storage node in the data storage system broadcasts a target transaction initiated by a client to any one intelligent contract node in the contract management system;
the intelligent contract node responds to the target transaction, and returns a pre-execution result to the data storage node after pre-executing the target intelligent contract corresponding to the target transaction; wherein the pre-execution is a process of executing a target smart contract without recording an execution result;
the data storage node sends the pre-execution result to other intelligent contract nodes in a contract management system;
the other intelligent contract nodes simulate and execute the target intelligent contract according to the pre-execution result, and return a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node;
and when the data storage node determines that the simulation pre-execution result is consistent with the pre-execution result, determining that the pre-execution result passes verification.
2. The method of claim 1, further comprising:
and sending the pre-execution result to other data storage nodes in the data storage system for consensus.
3. The method of claim 1, wherein the pre-execution result is a result set formed by packaging read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation pre-execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signatures of the various intelligent contract nodes.
4. An intelligent contract checking method is applied to a block chain, wherein the block chain is divided into a contract management system and a data storage system; the contract management system is composed of a plurality of intelligent contract nodes and is only used for storing intelligent contracts in the block chain; the data storage system is composed of a plurality of data storage nodes and is only used for storing data states in a block chain; the method comprises the following steps:
an intelligent contract node in a contract management system receives a pre-execution result sent by a data storage node in a data storage system; the pre-execution result is a result obtained after other intelligent contract nodes in the contract management system respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction; the pre-execution is a process of executing a target intelligent contract without recording an execution result;
the intelligent contract node simulates and executes the target intelligent contract according to the pre-execution result, and returns a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; for the data storage node to verify.
5. The method according to claim 4, wherein the verifying the data storage node specifically comprises:
the data storage node compares the pre-execution result with a simulation pre-execution result;
and if the pre-execution result is consistent with the simulation pre-execution result, determining that the verification is passed.
6. The method according to claim 4, wherein the pre-execution result is a result set formed by packaging read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation pre-execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signatures of the various intelligent contract nodes.
7. The method according to claim 6, wherein the target intelligent contract is executed in a simulated manner according to the pre-execution result, and the simulated pre-execution result obtained after the target intelligent contract is executed in a simulated manner is returned to the data storage node, specifically including:
simulating and executing the target intelligent contract according to the read-write centralized data of the pre-execution result;
and returning a simulation result set simulating the execution target intelligent contract to the data storage node.
8. The method according to claim 4, wherein the other intelligent contract nodes respond to the target transaction initiated by the client, and pre-execute the result obtained after the target transaction corresponds to the target intelligent contract, specifically comprising:
other intelligent contract nodes respond to target transaction initiated by a client, and if the target intelligent contract corresponding to the target transaction is pre-executed needs a data state, the data state is acquired from a data storage system according to transaction parameters carried in the target transaction.
9. An intelligent contract checking method is applied to a block chain, wherein the block chain is divided into a contract management system and a data storage system; the contract management system is composed of a plurality of intelligent contract nodes and is only used for storing intelligent contracts in the block chain; the data storage system is composed of a plurality of data storage nodes and is only used for storing data states in a block chain; the method comprises the following steps:
a data storage node in a data storage system receives a target transaction initiated by a client;
the data storage node broadcasts the target transaction to any intelligent contract node in a contract management system;
the data storage node receives a pre-execution result returned by the intelligent contract node after pre-executing the target intelligent contract corresponding to the target transaction; wherein the pre-execution is a process of executing a target smart contract without recording an execution result;
the data storage node sends the pre-execution result to other intelligent contract nodes in a contract management system so that the other intelligent contract nodes simulate and execute a target intelligent contract;
and when the simulation pre-execution result returned by the other intelligent contract nodes is consistent with the pre-execution result, the data storage node determines that the pre-execution result passes the verification.
10. The method of claim 9, further comprising:
and sending the pre-execution result to other data storage nodes in the data storage system for consensus.
11. The method of claim 9, wherein the pre-execution result is a result set formed by packaging read-write sets generated in the process of pre-executing the target intelligent contract by the intelligent contract node; the simulation pre-execution result is a result set formed by packaging read-write sets generated in the process of simulating and executing the target intelligent contract by other intelligent contract nodes; the result set carries the signatures of the various intelligent contract nodes.
12. An intelligent contract checking device is applied to a block chain, wherein the block chain is divided into a contract management system and a data storage system; the contract management system is composed of a plurality of intelligent contract nodes and is only used for storing intelligent contracts in the block chain; the data storage system is composed of a plurality of data storage nodes and is only used for storing data states in a block chain; the device comprises:
the intelligent contract node in the contract management system receives a pre-execution result sent by the data storage node in the data storage system; the pre-execution result is a result obtained after other intelligent contract nodes in the contract management system respond to a target transaction initiated by a client and pre-execute a target intelligent contract corresponding to the target transaction; the pre-execution is a process of executing a target intelligent contract without recording an execution result;
the intelligent contract node simulates and executes the target intelligent contract according to the pre-execution result, and returns a simulated pre-execution result obtained after the target intelligent contract is simulated and executed to the data storage node; for the data storage node to verify.
13. An intelligent contract checking device is applied to a block chain, wherein the block chain is divided into a contract management system and a data storage system; the contract management system is composed of a plurality of intelligent contract nodes and is only used for storing intelligent contracts in the block chain; the data storage system is composed of a plurality of data storage nodes and is only used for storing data states in a block chain; the device comprises:
the data storage node in the data storage system receives a target transaction initiated by a client;
the data storage node broadcasts the target transaction to any one intelligent contract node in a contract management system;
the data storage node receives a pre-execution result returned by the intelligent contract node after the intelligent contract node pre-executes the target intelligent contract corresponding to the target transaction; wherein the pre-execution is a process of executing a target smart contract without recording an execution result;
the data storage node sends the pre-execution result to other intelligent contract nodes in a contract management system so that the other intelligent contract nodes simulate and execute a target intelligent contract;
and the data storage node determines that the pre-execution result passes the verification when the simulation pre-execution result returned by the other intelligent contract nodes is consistent with the pre-execution result.
14. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of the preceding claims 1-11.
CN201910199008.8A 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment Active CN110046523B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910199008.8A CN110046523B (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment
CN202110410155.2A CN112966311A (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910199008.8A CN110046523B (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110410155.2A Division CN112966311A (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110046523A CN110046523A (en) 2019-07-23
CN110046523B true CN110046523B (en) 2021-03-05

Family

ID=67273815

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910199008.8A Active CN110046523B (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment
CN202110410155.2A Pending CN112966311A (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110410155.2A Pending CN112966311A (en) 2019-03-15 2019-03-15 Intelligent contract checking method and device and electronic equipment

Country Status (1)

Country Link
CN (2) CN110046523B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659907B (en) 2019-09-24 2021-11-12 北京海益同展信息科技有限公司 Method and device for executing intelligent contracts
CN111312352B (en) 2020-02-19 2023-07-21 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and medium based on block chain
CN111339187B (en) * 2020-02-20 2023-05-09 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium based on intelligent contract
CN111047449B (en) * 2020-03-12 2020-06-23 支付宝(杭州)信息技术有限公司 Method and device for executing transaction in block chain
CN112835977B (en) * 2021-01-20 2022-07-15 中国科学院信息工程研究所 Database management method and system based on block chain
CN113590349A (en) * 2021-07-27 2021-11-02 新奥数能科技有限公司 Power exchange information generation method and device and computer equipment
CN114611155B (en) * 2022-03-15 2022-12-13 云粒智慧科技有限公司 Data management node verification method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108898390A (en) * 2018-06-27 2018-11-27 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain
CN109003078A (en) * 2018-06-27 2018-12-14 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106855821B (en) * 2015-12-08 2024-07-02 创新先进技术有限公司 Distributed transaction processing method and device
CA3037106A1 (en) * 2016-09-19 2018-03-22 Financial & Risk Organisation Limited Systems and methods for interception of smart contracts
CN107508680B (en) * 2017-07-26 2021-02-05 创新先进技术有限公司 Digital certificate management method and device and electronic equipment
CN107833060B (en) * 2017-11-13 2020-12-25 中国银行股份有限公司 Verification method and system for intelligent contract transaction in block chain
CN108769173B (en) * 2018-05-21 2021-11-09 阿里体育有限公司 Block chain implementation method and equipment for running intelligent contracts
CN109040029B (en) * 2018-07-13 2021-03-12 上海点融信息科技有限责任公司 Method and apparatus for executing transactions in a blockchain
CN109063474A (en) * 2018-07-23 2018-12-21 上海点融信息科技有限责任公司 Method and apparatus for intelligent contract to be verified and run in block chain network
CN109064334B (en) * 2018-08-27 2021-12-24 深圳前海益链网络科技有限公司 Intelligent contract accounting method, computer device and readable storage medium
CN108876384B (en) * 2018-09-19 2021-11-05 联动优势科技有限公司 Transaction data processing method and device
CN109272324A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 A kind of business function implementation method, system, equipment and computer storage medium
CN109446211B (en) * 2018-10-08 2020-08-14 联动优势科技有限公司 Consistency checking method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108898390A (en) * 2018-06-27 2018-11-27 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain
CN109003078A (en) * 2018-06-27 2018-12-14 阿里巴巴集团控股有限公司 Intelligent contract call method and device, electronic equipment based on block chain

Also Published As

Publication number Publication date
CN110046523A (en) 2019-07-23
CN112966311A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN110033244B (en) Intelligent contract execution method and device based on block chain and electronic equipment
CN110046523B (en) Intelligent contract checking method and device and electronic equipment
CN108389129B (en) Transaction execution method and device based on block chain and electronic equipment
CN110135844B (en) Credit recording and inquiring method and device based on block chain and electronic equipment
CN109003078B (en) Intelligent contract calling method and device based on block chain and electronic equipment
WO2020029631A1 (en) Transaction method and system based on centralized settlement and blockchain deposit certificates
EP3779834A1 (en) Blockchain-based anti-counterfeiting method and apparatus, and electronic device
WO2020029629A1 (en) Transaction method and system based on centralized settlement and block chain storage
AU2019295815A1 (en) Blockchain-based data verification method and apparatus, and electronic device
TW202022857A (en) Invoice creating method and device based on block chain and electronic device
CN110163755B (en) Block chain-based data compression and query method and device and electronic equipment
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
CN110060155B (en) Intelligent contract execution method and device of block chain and electronic equipment
CN110032598B (en) Method and device for updating field and electronic equipment
CN108269185B (en) Method and device for generating fund flow report table and electronic equipment
US11886423B2 (en) Blockchain-based recording and querying operations
CN109345392B (en) Method and system for issuing programming question, issuing solution code and checking solution code
CN111782551B (en) Test method and device for block chain item and computer equipment
CN112560114A (en) Method and device for calling intelligent contract
CN110009497B (en) Block chain-based decision method and device and electronic equipment
CN112291321B (en) Service processing method, device and system
CN108710658B (en) Data record storage method and device
CN110046172A (en) In line computation data processing method and system
CN115203746A (en) Data account access authorization method and device
CN111782537B (en) Crowd-sourcing process management system and method based on block chain technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant