CN113379542A - Query method, device, medium and electronic equipment for block chain transaction - Google Patents

Query method, device, medium and electronic equipment for block chain transaction Download PDF

Info

Publication number
CN113379542A
CN113379542A CN202110591385.3A CN202110591385A CN113379542A CN 113379542 A CN113379542 A CN 113379542A CN 202110591385 A CN202110591385 A CN 202110591385A CN 113379542 A CN113379542 A CN 113379542A
Authority
CN
China
Prior art keywords
transaction
transaction information
nodes
node
current node
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.)
Granted
Application number
CN202110591385.3A
Other languages
Chinese (zh)
Other versions
CN113379542B (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.)
China Post Information Technology Beijing Co ltd
Original Assignee
China Post Information Technology Beijing 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 China Post Information Technology Beijing Co ltd filed Critical China Post Information Technology Beijing Co ltd
Priority to CN202110591385.3A priority Critical patent/CN113379542B/en
Publication of CN113379542A publication Critical patent/CN113379542A/en
Application granted granted Critical
Publication of CN113379542B publication Critical patent/CN113379542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a query method, a query device, a query medium and electronic equipment for blockchain transaction. Wherein, the method comprises the following steps: acquiring a transaction query request sent by a client according to a transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number; determining whether the account book of the current node has transaction information corresponding to the transaction query request; if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client. According to the technical scheme, the effect of ensuring the authenticity of the acquired data can be achieved under the condition that the client is not required to be connected with all nodes of the block chain.

Description

Query method, device, medium and electronic equipment for block chain transaction
Technical Field
The embodiment of the application relates to the technical field of block chains, in particular to a query method, a query device, a query medium and electronic equipment for block chain transactions.
Background
With the rapid development of the technology level, the block chain technology is applied more and more widely in various industries. The block chain network is a system with a complex network environment of various types of nodes, and is a distributed consistency system for resisting Byzantine attacks. Since the node may be attacked, when some node queries the transaction information, the read data result may be forged and tampered. The common mode is to read the transaction information from more than a certain proportion of nodes, and the consistency of the results indicates that the transaction information is correct.
Currently, node deployment of blockchain may be designed to multiple organizations or organizations, which may result in that each organization or organization may only deploy one blockchain node, and other nodes are deployed in other organizations or organizations. When the client executes transaction query, other blockchain nodes cannot be accessed, and only transaction data can be obtained from the node of the mechanism, so that the risk that the node is possibly shared by Byzantine is caused, and the query result is wrong.
Disclosure of Invention
The embodiment of the application provides a query method, a query device, a query medium and electronic equipment for blockchain transaction, which can ensure the authenticity of acquired data under the condition that a client is not required to be connected with all nodes of a blockchain.
In a first aspect, an embodiment of the present application provides a query method for blockchain transactions, where the method is performed by a blockchain link point, where the blockchain includes at least two nodes, where the at least two nodes include at least one current node connected to a client and other nodes other than the current node, and the method includes:
acquiring a transaction query request sent by a client according to a transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
determining whether the account book of the current node has transaction information corresponding to the transaction query request;
if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client.
Further, the process of generating the transaction number and storing the transaction information includes:
generating a transaction number for each transaction in the block chain according to a monotonically increasing sequence through the designated node, and broadcasting the transaction number to a receiving node of the block chain;
if the number of the generated transaction numbers meets the preset number, each node performs hash operation on the transaction information of the preset number to obtain a hash value;
each node signs the hash value by adopting the node key to obtain a signature value;
each node broadcasts the hash value, the transaction number range corresponding to the preset number and the signature value as broadcast contents to the nodes on the chain; receiving hash values broadcasted by the nodes on the chain and transaction number ranges corresponding to the preset number as receiving contents;
and if the broadcast content and the received content meet preset conditions, storing the hash value, the transaction number range and the signature value into the account book of each node.
Further, the signature value includes the following: a hash value, an originating transaction number, and an ending transaction number.
Further, initiating a transaction information acquisition request to other nodes of the blockchain through the current node to receive transaction information returned by other nodes, including:
and initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes can inquire the transaction information recorded in the account book of the node, determine target transaction information and return the target transaction information to the current node.
Further, initiating a transaction information acquisition request to other nodes of the blockchain through the current node to receive transaction information returned by other nodes, including:
initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes perform hash operation on the transaction information of the transaction number range containing the transaction number to obtain a target hash value, and signing the target hash value to obtain a target signature value;
receiving the received contents including the target hash value, the transaction number range and the target signature value returned by other nodes, and if the received contents meet the preset conditions, storing the received contents into the account book.
Further, before initiating a transaction information acquisition request to other nodes of the blockchain through the current node, the method further includes:
determining the maximum transaction number currently generated in the block chain;
and if the transaction number of the transaction inquiry request is smaller than the maximum transaction number, determining that the transaction information of the current node is missing.
Further, after determining that the current node has the phenomenon of missing transaction information, the method further includes:
determining a missing number segment according to all transaction number ranges stored in the account book of the current node, and determining a transaction information acquisition request based on the missing number segment.
In a second aspect, an embodiment of the present application provides an apparatus for querying a blockchain transaction, where the apparatus is configured at a blockchain node, the blockchain includes at least two nodes, where the at least two nodes include at least one current node connected to a client and other nodes other than the current node, and the apparatus includes:
the transaction inquiry request acquisition module is used for acquiring a transaction inquiry request sent by the client according to the transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
the transaction information query module is used for determining whether transaction information corresponding to the transaction query request exists in the account book of the current node;
and the transaction information acquisition module is used for initiating a transaction information acquisition request to other nodes of the block chain through the current node if the query result of the transaction information query module is not existed, so as to receive the transaction information returned by other nodes and return the transaction information to the client.
The device also comprises a transaction number generation module and a transaction information storage module, and specifically comprises:
the transaction number generation module is used for generating transaction numbers for each transaction in the block chain according to a monotonically increasing sequence through the designated node and broadcasting the transaction numbers to the receiving node of the block chain;
the transaction information storage module is specifically configured to:
if the number of the generated transaction numbers meets the preset number, each node performs hash operation on the transaction information of the preset number to obtain a hash value;
each node signs the hash value by adopting the node key to obtain a signature value;
each node broadcasts the hash value, the transaction number range corresponding to the preset number and the signature value as broadcast contents to the nodes on the chain; receiving hash values broadcasted by the nodes on the chain and transaction number ranges corresponding to the preset number as receiving contents;
and if the broadcast content and the received content meet preset conditions, storing the hash value, the transaction number range and the signature value into the account book of each node.
Further, the signature value includes the following: a hash value, an originating transaction number, and an ending transaction number.
Further, the transaction information obtaining module includes:
and the first transaction information acquisition unit is used for initiating a transaction information acquisition request to other nodes of the blockchain through the current node so that the other nodes can inquire the transaction information recorded in the account book of the node, determine target transaction information and return the target transaction information to the current node.
Further, the transaction information obtaining module includes:
the second transaction information obtaining unit is specifically configured to:
initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes perform hash operation on the transaction information of the transaction number range containing the transaction number to obtain a target hash value, and signing the target hash value to obtain a target signature value;
receiving the received contents including the target hash value, the transaction number range and the target signature value returned by other nodes, and if the received contents meet the preset conditions, storing the received contents into the account book.
Further, the transaction information obtaining module further includes a missing determination unit, configured to:
determining the maximum transaction number currently generated in the block chain;
and if the transaction number of the transaction inquiry request is smaller than the maximum transaction number, determining that the transaction information of the current node is missing.
Further, the transaction information obtaining module further includes a transaction information obtaining request generating unit, configured to:
determining a missing number segment according to all transaction number ranges stored in the account book of the current node, and determining a transaction information acquisition request based on the missing number segment.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a query method for blockchain transactions according to embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the query method for blockchain transactions according to the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, the transaction query request sent by the client according to the transaction number is obtained through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number; determining whether the account book of the current node has transaction information corresponding to the transaction query request; if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client. According to the scheme, the effect of ensuring the authenticity of the acquired data can be achieved under the condition that the client is not required to be connected with all nodes of the block chain.
Drawings
Fig. 1 is a flowchart of a query method for blockchain transaction according to an embodiment of the present disclosure;
fig. 2 is a flowchart of the process of generating the transaction number and storing the transaction information in the second embodiment of the present invention;
FIG. 3 is a functional block diagram illustrating a query process of blockchain transactions according to a third embodiment of the present invention;
FIG. 4 is a diagram illustrating a process of generating query results according to a third embodiment of the present invention;
FIG. 5 is a diagram illustrating a transaction flow of client query in a third embodiment of the present invention;
fig. 6 is a schematic diagram of a Hash generation retry procedure in a third embodiment of the present invention;
fig. 7 is a block diagram illustrating an apparatus for querying a blockchain transaction according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a query method for blockchain transactions according to an embodiment of the present disclosure, where the present embodiment is applicable to a scenario of querying transaction information occurring in a blockchain, and the method may be executed by a query device for blockchain transactions according to an embodiment of the present disclosure, where the query device may be implemented by software and/or hardware, and may be integrated in an electronic device.
As shown in fig. 1, the query method of blockchain transaction includes:
s110, acquiring a transaction query request sent by a client according to a transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number.
The method is executed by a blockchain node, wherein the blockchain comprises at least two nodes, and the at least two nodes comprise at least one current node connected with a client and other nodes except the current node.
It is understood that the blockchain may be regarded as a whole, and each node therein may be disposed at different positions according to requirements or configuration of an actual scene. The node connected to the client currently performing the query may be the current node, and the node other than the node connected to the client may be the other node.
In this scheme, the client may be connected to only one node of the blockchain. This avoids the complexity of network connections. Meanwhile, by the transaction information query mechanism, accurate transaction information can be obtained through the current node without constructing a network connection between the client and all nodes.
The transaction number used for inquiring in the scheme can be generated in advance, and a unique transaction number is set for each transaction. The transaction number may be generated in a monotonically increasing manner, for example, 1,3,5,6,7, or may be generated in a monotonically continuously increasing manner, for example, 1,2,3,4,5, for the sake of counting convenience. Therefore, the number of the transactions can be determined according to the transaction number, and the subsequent other processing is facilitated.
The transaction information may be information related to the transaction, such as a transaction number and transaction content. The transaction information may be plaintext information or encrypted information, such as information obtained by encrypting with a key. In addition, a hash value of the transaction content may be obtained by hash calculation. The arrangement can ensure the safety of the transaction and can carry out globally unique processing on each transaction information.
In the scheme, based on the connection relationship between the client and the current node, the client can send out a transaction query request according to the transaction number. The transaction inquiry request may be a specific transaction number or a number segment. Such as 0330-. That is, the 21 transaction information whose transaction numbers are from 0330 to 0350 need to be queried, or one or more of the 21 transaction information needs to be queried.
And S120, determining whether the account book of the current node has the transaction information corresponding to the transaction inquiry request.
It can be known that each node is provided with an account book, and the account book is used for recording transaction information of each node on the block chain and is stored in the account book after passing through the consensus protocol. Therefore, after the current node receives the query request, whether the transaction information corresponding to the transaction query request exists in the local ledger can be preferentially checked. The inquiry can be made, for example, by a transaction number in the transaction inquiry request or whether the number segment of the transaction number is covered by the transaction number present in the ledger.
And S130, if the current node does not exist, initiating a transaction information acquisition request to other nodes of the block chain through the current node to receive transaction information returned by the other nodes and returning the transaction information to the client.
When the transaction information does not exist in the current node, a transaction information acquisition request needs to be initiated to other nodes through the current node, and the acquisition request can be sent out based on the transaction number. It is understood that the current node and other nodes may be directly connected, or may belong to different organizations or organizations, and information interaction may be performed through a predetermined connection relationship of each node in the blockchain. In the scheme, the current node can acquire the transaction information returned by other nodes in a broadcasting mode and can return the transaction information to the client.
It can be understood that, in order to avoid the byzantine attack, after the transaction information returned by each node is received, the received transaction information returned by each other node may be confirmed by a consensus mechanism, and after the consensus is successful, the information may be considered to be accurate, and the information may be stored in a local account book and returned to the client.
It should be understood in this embodiment that, in the process of each broadcast to return information, the problem that an individual node is disconnected due to a network or device failure is not eliminated, and therefore, each node in this embodiment may be understood as each node that is online and capable of receiving broadcast or return information, and is not limited to all other nodes.
According to the technical scheme provided by the embodiment of the application, the transaction query request sent by the client according to the transaction number is obtained through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number; determining whether the account book of the current node has transaction information corresponding to the transaction query request; if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client. According to the scheme, the effect of ensuring the authenticity of the acquired data can be achieved under the condition that the client is not required to be connected with all nodes of the block chain.
Example two
Fig. 2 is a flowchart of the process of generating the transaction number and storing the transaction information in the second embodiment of the present invention, and the present embodiment is optimized based on the above embodiments. The concrete optimization is as follows: the generation of the transaction number and the storage process of the transaction information comprise the following steps: generating a transaction number for each transaction in the block chain according to a monotonically increasing sequence through the designated node, and broadcasting the transaction number to a receiving node of the block chain; if the number of the generated transaction numbers meets the preset number, each node performs hash operation on the transaction information of the preset number to obtain a hash value; each node signs the hash value by adopting the node key to obtain a signature value; each node broadcasts the hash value, the transaction number range corresponding to the preset number and the signature value as broadcast contents to the nodes on the chain; receiving hash values broadcasted by the nodes on the chain and transaction number ranges corresponding to the preset number as receiving contents; and if the broadcast content and the received content meet preset conditions, storing the hash value, the transaction number range and the signature value into the account book of each node.
It is understood that the implementation procedure of the present solution may be before the implementation procedure of the first embodiment, or during or after the implementation procedure of the first embodiment, since the trigger mechanism of the present solution is triggered based on the occurrence of the transaction information, the implementation procedure of the present solution may not conflict with the implementation procedure of the first embodiment.
As shown in fig. 2, the method of this embodiment specifically includes the following steps:
s210, generating transaction numbers for each transaction in the block chain according to a monotonically increasing sequence by the designated node, and broadcasting the transaction numbers to the receiving node of the block chain.
The designated node may be one node in the block chain, or may be multiple nodes, and it may be predetermined which node is the designated node. The determination mode of the designated node may be determined according to a stable operation condition of the node, or may be determined according to a network transmission capability of each node. Besides, the node position of each node in the blockchain may be determined, for example, the node connecting the most of each organization or organization in the blockchain may be used as the designated node.
The designated node may generate a transaction number for each transaction of the blockchain in a chronological order. The transaction numbers are generated, for example, in a time-sequential, monotonically increasing sequence. Wherein the transaction numbers are preferably in a continuous manner. After the transaction number is obtained, the generation result of the transaction number can be carried with other receiving nodes of the block chain of the transaction information broadcast.
And S220, if the number of the generated transaction numbers meets the preset number, each node performs hash operation on the transaction information with the preset number to obtain a hash value.
The preset number may be the number of batches used for the hash operation, such as every 100, 200, or every 2000, and so on. When the number of the generated transaction numbers reaches the preset number, the hash value of the transaction information of the current number can be obtained in a hash operation mode. As can be appreciated herein, each node is still an online node that can perform the hash operation normally.
And S230, each node signs the hash value by adopting the node key to obtain a signature value.
For example, after each node calculates its own hash value for the amount of transaction information, the node may sign the hash value using its key, that is, its private key, so as to obtain a signature value. It can be understood that the scheme can use private key signature, and public key authentication can be used to determine which node each hash value is generated by, and thus can be used as a criterion for judging whether the hash value is attacked or not. For example, by recognizing that the hash value obtained by a certain node is inconsistent, it can be determined that the node may be attacked, or data loss or other reasons may be caused.
In this embodiment, optionally, the signature value includes the following: a hash value, an originating transaction number, and an ending transaction number.
For example, the signature value is obtained by concatenating the character strings of the hash value, the initial transaction number and the final transaction number, and may also include other representations, or the two may be connected by a fixed character to improve the readability of the signature value. And, by carrying the initial transaction number and the end transaction number in the signature value, it can be determined which sequence of the transaction number corresponding to the hash value is.
S240, each node broadcasts the hash value, the transaction number range corresponding to the preset number and the signature value to the nodes on the chain as broadcast contents; and receiving the hash value broadcasted by the nodes on the chain and the transaction number range corresponding to the preset number as the received content.
After the hash value, the transaction number range corresponding to the preset number and the signature value are obtained at each node, the hash value, the transaction number range corresponding to the preset number and the signature value can be broadcasted to the nodes on the chain, and meanwhile, each piece of information broadcasted by the nodes on the face is received.
And S250, if the broadcast content and the received content meet preset conditions, storing the hash value, the transaction number range and the signature value into an account book of each node.
For each node, if the broadcast content and the received content meet the consensus mechanism, it can be determined that the preset condition is met, and then the hash value, the transaction number range, and the signature value can be stored.
It will be appreciated that each node may store the correct hash value, transaction number range, and signature value in a local ledger.
According to the technical scheme provided by the embodiment of the application, after the transaction information reaches a certain number, each node respectively generates the hash value and carries out signature processing, and finally the transaction information with the hash value, the transaction number range and the signature value is stored in the account book of each node, so that the transaction information can be jointly stored. After the setting, the transaction information of each batch can be stored according to the transaction number, when the client needs to inquire the transaction information, the information can be inquired without connecting all nodes of the whole block chain, the information inquiry efficiency is improved, and the complexity of network connection and the network load consumption caused by network data transmission can be effectively avoided.
On the basis of the foregoing embodiments, optionally, initiating a transaction information acquisition request to another node of the blockchain through the current node to receive transaction information returned by the other node, where the transaction information acquisition request includes:
and initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes can inquire the transaction information recorded in the account book of the node, determine target transaction information and return the target transaction information to the current node.
In one case, the current node initiates a transaction information acquisition request to other nodes of the blockchain, and the account book of the other nodes has the transaction information, so that the target transaction information can be directly acquired from the account book of the other nodes, returned to the current node, and returned to the client by the current node. Therefore, the response speed is high, the connection between the client and other nodes is not required to be established, and the method is simple and efficient.
On the basis of the foregoing embodiments, optionally, initiating a transaction information acquisition request to another node of the blockchain through the current node to receive transaction information returned by the other node, where the transaction information acquisition request includes:
initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes perform hash operation on the transaction information of the transaction number range containing the transaction number to obtain a target hash value, and signing the target hash value to obtain a target signature value;
receiving the received contents including the target hash value, the transaction number range and the target signature value returned by other nodes, and if the received contents meet the preset conditions, storing the received contents into the account book.
In another case, if the transaction information does not exist in other nodes or the other nodes have the ability to regenerate the transaction information by calculating hash values, the hash operations may be performed again by each node to obtain target hash values, and the target hash values calculated by each node are signed to obtain target signature values. Therefore, the received content including the target hash value, the transaction number range and the target signature value returned by other nodes can be received, the consensus mechanism is judged, if the requirement of the consensus mechanism is met, the preset condition is determined to be met, and the received content can be stored in the ledger of the current node.
According to the scheme, through the arrangement, when the current node has no related transaction information, the related transaction information can be obtained through recalculation. Through the arrangement, network connection between the client and other nodes can be avoided while the safety of transaction information is ensured, and the method is efficient and easy to implement.
In this scheme, optionally, before initiating a transaction information acquisition request to other nodes of the blockchain through the current node, the method further includes:
determining the maximum transaction number currently generated in the block chain;
and if the transaction number of the transaction inquiry request is smaller than the maximum transaction number, determining that the transaction information of the current node is missing.
In the scheme, the relationship between the transaction number which needs to be obtained currently and the maximum transaction number in the block chain or the relationship between the number segment to which the transaction number which needs to be obtained currently belongs and the maximum transaction number can be determined by acquiring the request sent by the client. If the number is smaller than the maximum transaction number, the current node can be determined to have the phenomenon of transaction information missing. The reason for the missing transaction information may be network interruption, power failure, or other more complicated reasons of the current node. By means of the scheme, whether the current node operates stably can be determined in an auxiliary mode, and meanwhile accurate and effective transaction information can be guaranteed when the returned transaction information is returned.
In the foregoing solution, optionally, after determining that the transaction information missing phenomenon exists in the current node, the method further includes:
determining a missing number segment according to all transaction number ranges stored in the account book of the current node, and determining a transaction information acquisition request based on the missing number segment.
After the transaction information is missing, the missing number segment can be determined according to the transaction number range stored in the account book. For example, the generation batch of each hash value is 2000, the missing number segment range may be determined according to the number segment range of the transaction information stored in the ledger, for example, two number segments are found to be missing, and then a transaction information acquisition request may be further generated based on the missing number segments, so as to broadcast the request to other nodes.
By the arrangement, the transaction information can be returned, the local number segment range can be found out and completed from the returned results of other nodes, and the subsequent response capability to the transaction information search of the current node is facilitated.
EXAMPLE III
The present embodiment is a preferred embodiment provided on the basis of the above two embodiments.
Fig. 3 is a functional diagram of modules in a query process of a blockchain transaction according to a third embodiment of the present invention, and as shown in fig. 3, the modules may cooperate with each other and respectively have the following functions:
a block generation module:
a unique, sequential ID is generated for each transaction in the block, which requires sequential increments. For example, the last transaction ID of the previous block is 3344, the transaction ID of the current block starts at 3345.
A transaction set Hash algorithm generation module:
judging whether the latest transaction number N meets a certain condition (for example, whether N is equal to a specific value or the remainder is equal to a certain value), and performing a Hash algorithm calculation process if the latest transaction number N meets the condition.
Calculating a Hash value H1 for a transaction with a specified transaction number, and signing the Hash value and the transaction ID range by using the node key to obtain a signature value Sign1, wherein the signature text comprises but is not limited to a format of Hash and xxx and idbegin and xxx.
Hash result broadcasting and receiving module:
the generated Hash value H1, ID range and signature information Sign1 are broadcasted to other nodes of the block chain network, and H1, ID range and Sign1 broadcasted by other nodes are received.
The Hash result processing module:
the Hash value H1, ID range, and signature information Sign1 are stored in the blockchain ledger L1, and when the results collected from the blockchain network are consistent and exceed a certain ratio, the results are marked as the final results.
The present solution provides the query capability for the client, and the client can query whether the transaction exists in the blockchain ledger L1 according to the transaction ID number. When a certain ID range is always in a missing state, the hash calculation, signature and broadcast processes of the certain ID range can be restarted in the block chain network.
Specifically, the block chain transaction query method comprises three sub-processes, and the three sub-processes use the modules to cooperatively complete the transaction query method of the scheme:
firstly, generating a query result flow.
Fig. 4 is a schematic diagram of a process of generating a query result in the third embodiment of the present invention, as shown in fig. 4, which mainly includes the following steps:
step 1, a newly generated block contains a large number of transactions, the transaction ID of the last number is obtained, the next flow is entered when the preset condition is met, and otherwise, the next flow is returned and not processed.
And 2, after the conditions are met, performing Hash calculation on all transactions from the last transaction ID of the Hash calculation to the last transaction ID of the time to generate a Hash result H1, and signing the range of H1 and the transaction ID by using a node key.
And step 3, broadcasting the Hash result H1, the transaction ID range and the transaction signature to other nodes.
And 4, receiving the transaction results broadcast by other nodes by the node.
And 5, storing and comparing the received transaction result information broadcasted by each node, and if the data of each node is consistent and exceeds a certain node number, indicating that the data results are consistent. And records the results to the ledger.
And secondly, the client side inquires the transaction flow.
Fig. 5 is a schematic diagram of a client query transaction flow in the third embodiment of the present invention, as shown in fig. 5, which mainly includes the following steps:
step 1, the client inquires some transaction detail information according to the transaction number.
And 2, the Hash result processing module searches the account book information of the node and whether a consistency result is stored. And if so, sending the Hash calculation result broadcasted by each node to the client.
And 3, if the account book does not exist, initiating a process of generating a query result, acquiring the query result, and sending the query result to the client.
And thirdly, carrying out a Hash generation retry process.
Fig. 6 is a schematic diagram of a Hash generation retry procedure in a third embodiment of the present invention, which may miss the broadcasted Hash result information if a node is disconnected. Therefore, the scheme provides a recovery mode of the Hash result. As shown in fig. 6, the method mainly includes the following steps:
step 1, if the number of the last transaction of the current highest block is M, but the Hash result with the ID ranging from p to q is lacked locally.
And step 2, the node broadcasts the Hash result to other nodes to generate a request.
And 3, after receiving the request, other nodes execute a Hash generation process and send the Hash result to the request node. And the request node receives the Hash results of all the nodes, and if the Hash results are consistent and exceed a certain proportion, the results are considered to be consistent.
Through the arrangement, the transaction information can be quickly and efficiently inquired. The transaction hash generation process is that the multi-party query is carried out once every N transactions instead of the transaction query request, and the transaction query request only needs to query the transaction result condition of the node, so that the transaction query time is shortened, and the query efficiency is improved. In addition, the scheme can solve the problem of complex network restriction, does not need a client to access all block chain nodes for query, simultaneously ensures the consistency of query results and prevents Byzantine attack. In addition, the scheme stores the ID information, the Hash information and the signature information of the transaction set, does not need to store transaction contents and query requests, and meanwhile, a plurality of transaction IDs generate a Hash and a signature, so that the storage space loss is less.
Example four
Fig. 7 is a block diagram of a query device for blockchain transactions according to a fourth embodiment of the present invention, which is capable of executing a query method for blockchain transactions according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the apparatus may include:
a transaction query request obtaining module 710, configured to obtain, through the current node, a transaction query request sent by a client according to a transaction number; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
a transaction information query module 720, configured to determine whether there is transaction information corresponding to the transaction query request in the ledger of the current node;
and the transaction information obtaining module 730 is configured to initiate a transaction information obtaining request to other nodes of the blockchain through the current node if the query result of the transaction information querying module is not present, so as to receive the transaction information returned by the other nodes, and return the transaction information to the client.
The product can execute the query method of the block chain transaction provided by the embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the query method for blockchain transaction provided in all inventive embodiments of the present application:
acquiring a transaction query request sent by a client according to a transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
determining whether the account book of the current node has transaction information corresponding to the transaction query request;
if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
EXAMPLE six
The sixth embodiment of the application provides electronic equipment. Fig. 8 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present application. As shown in fig. 8, the present embodiment provides an electronic device 800, which includes: one or more processors 820; the storage 810 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 820, the one or more processors 820 are enabled to implement the query method for blockchain transactions provided in the embodiments of the present application, the method includes:
acquiring a transaction query request sent by a client according to a transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
determining whether the account book of the current node has transaction information corresponding to the transaction query request;
if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client.
Of course, those skilled in the art will understand that the processor 820 may also implement the technical solution of the query method for blockchain transaction provided in any embodiment of the present application.
The electronic device 800 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the electronic device 800 includes a processor 820, a storage 810, an input device 830, and an output device 840; the number of the processors 820 in the electronic device may be one or more, and one processor 820 is taken as an example in fig. 8; the processor 820, the storage 810, the input 830, and the output 840 in the electronic device may be connected by a bus or other means, such as the bus 850 in fig. 8.
The storage device 810 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and module units, such as program instructions corresponding to the query method of blockchain transaction in the embodiment of the present application.
The storage device 810 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 810 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 810 may further include memory located remotely from processor 820, which may be connected via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 830 may be used to receive input numbers, character information, or voice information, and generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 840 may include a display screen, a speaker, and other electronic devices.
The electronic equipment provided by the embodiment of the application can ensure the authenticity of the acquired data under the condition that the client is not required to be connected with all nodes of the block chain.
The query device, medium, and electronic device for blockchain transactions provided in the above embodiments may execute the query method for blockchain transactions provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to the query method for blockchain transaction provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A query method for blockchain transaction, the method being performed by a blockchain node, the blockchain including at least two nodes, the at least two nodes including at least one current node connected to a client and other nodes except the current node, the method comprising:
acquiring a transaction query request sent by a client according to a transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
determining whether the account book of the current node has transaction information corresponding to the transaction query request;
if the current node does not exist, a transaction information acquisition request is sent to other nodes of the block chain through the current node so as to receive transaction information returned by the other nodes and return the transaction information to the client.
2. The method of claim 1, wherein the generation of the transaction number and the storage of the transaction information comprise:
generating a transaction number for each transaction in the block chain according to a monotonically increasing sequence through the designated node, and broadcasting the transaction number to a receiving node of the block chain;
if the number of the generated transaction numbers meets the preset number, each node performs hash operation on the transaction information of the preset number to obtain a hash value;
each node signs the hash value by adopting the node key to obtain a signature value;
each node broadcasts the hash value, the transaction number range corresponding to the preset number and the signature value as broadcast contents to the nodes on the chain; receiving hash values broadcasted by the nodes on the chain and transaction number ranges corresponding to the preset number as receiving contents;
and if the broadcast content and the received content meet preset conditions, storing the hash value, the transaction number range and the signature value into the account book of each node.
3. The method of claim 2, wherein the signature value comprises the following: a hash value, an originating transaction number, and an ending transaction number.
4. The method of claim 1, wherein initiating a transaction information acquisition request to other nodes of a blockchain through the current node to receive transaction information returned by other nodes comprises:
and initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes can inquire the transaction information recorded in the account book of the node, determine target transaction information and return the target transaction information to the current node.
5. The method of claim 3, wherein initiating a transaction information acquisition request to other nodes of the blockchain through the current node to receive transaction information returned by other nodes comprises:
initiating a transaction information acquisition request to other nodes of the block chain through the current node so that the other nodes perform hash operation on the transaction information of the transaction number range containing the transaction number to obtain a target hash value, and signing the target hash value to obtain a target signature value;
receiving the received contents including the target hash value, the transaction number range and the target signature value returned by other nodes, and if the received contents meet the preset conditions, storing the received contents into the account book.
6. The method of claim 5, wherein prior to initiating a transaction information acquisition request to other nodes of the blockchain through the current node, the method further comprises:
determining the maximum transaction number currently generated in the block chain;
and if the transaction number of the transaction inquiry request is smaller than the maximum transaction number, determining that the transaction information of the current node is missing.
7. The method of claim 6, wherein after determining that the current node has the missing transaction information phenomenon, the method further comprises:
determining a missing number segment according to all transaction number ranges stored in the account book of the current node, and determining a transaction information acquisition request based on the missing number segment.
8. An apparatus for querying blockchain transactions, the apparatus being configured to a blockchain node, the blockchain including at least two nodes, the at least two nodes including at least one current node connected to a client and other nodes except the current node, the apparatus comprising:
the transaction inquiry request acquisition module is used for acquiring a transaction inquiry request sent by the client according to the transaction number through the current node; the transaction number is generated in advance according to a monotone increasing rule, and transaction information is stored in an account book of each node of the block chain based on the transaction number;
the transaction information query module is used for determining whether transaction information corresponding to the transaction query request exists in the account book of the current node;
and the transaction information acquisition module is used for initiating a transaction information acquisition request to other nodes of the block chain through the current node if the query result of the transaction information query module is not existed, so as to receive the transaction information returned by other nodes and return the transaction information to the client.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method of querying a blockchain transaction according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of querying a blockchain transaction according to any one of claims 1 to 7 when executing the computer program.
CN202110591385.3A 2021-05-28 2021-05-28 Block chain transaction query method, device, medium and electronic equipment Active CN113379542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110591385.3A CN113379542B (en) 2021-05-28 2021-05-28 Block chain transaction query method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110591385.3A CN113379542B (en) 2021-05-28 2021-05-28 Block chain transaction query method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113379542A true CN113379542A (en) 2021-09-10
CN113379542B CN113379542B (en) 2024-01-09

Family

ID=77574786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110591385.3A Active CN113379542B (en) 2021-05-28 2021-05-28 Block chain transaction query method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113379542B (en)

Citations (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
CN106649632A (en) * 2016-12-07 2017-05-10 北京众享比特科技有限公司 Data synchronism method and system
CN106797389A (en) * 2016-11-18 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain network, article trading method, device and node device
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN107491519A (en) * 2017-08-15 2017-12-19 中国联合网络通信集团有限公司 The querying method and device of block chain account book
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN109189782A (en) * 2018-08-02 2019-01-11 哈尔滨工程大学 A kind of indexing means in block chain commodity transaction inquiry
CN109472602A (en) * 2018-11-23 2019-03-15 全链通有限公司 A kind of method, a kind of node and a kind of block catenary system of verifying transaction
CN109635585A (en) * 2018-12-07 2019-04-16 深圳市智税链科技有限公司 Method, agent node and the medium of Transaction Information are inquired in block chain network
CN109636622A (en) * 2019-01-03 2019-04-16 平安科技(深圳)有限公司 A kind of fund data sharing method, system and electronic equipment based on block chain
CN109741060A (en) * 2018-12-29 2019-05-10 北京金山安全软件有限公司 Information inquiry system, method, device, electronic equipment and storage medium
CN109766389A (en) * 2019-01-09 2019-05-17 华东师范大学 A kind of light client revene lookup method of block chain based on bitmap index
CN109858909A (en) * 2019-01-11 2019-06-07 平安科技(深圳)有限公司 Intellectual property method of commerce, device, equipment and storage medium based on block chain
CN110060162A (en) * 2019-03-29 2019-07-26 阿里巴巴集团控股有限公司 Data grant, querying method and device based on block chain
CN110166411A (en) * 2018-02-13 2019-08-23 华为技术有限公司 A kind of data transmission method, device and network node
CN110399373A (en) * 2019-06-26 2019-11-01 杭州慧牧科技有限公司 A kind of block chain account book storage system, storage querying method and delet method
CN110489413A (en) * 2019-07-15 2019-11-22 杭州复杂美科技有限公司 A kind of storage of transaction record, querying method and system, equipment and storage medium
CN110543488A (en) * 2019-09-11 2019-12-06 深圳市网心科技有限公司 Verification node updating method, device and equipment
CN110569281A (en) * 2019-08-30 2019-12-13 阿里巴巴集团控股有限公司 Block chain transaction query method and system
CN110708269A (en) * 2018-07-10 2020-01-17 北京京东尚科信息技术有限公司 Block chain data transmission method, block chain node and computer readable storage medium
WO2020029844A1 (en) * 2018-08-08 2020-02-13 华为技术有限公司 Blockchain node and transaction method
CN110851496A (en) * 2018-12-07 2020-02-28 深圳市智税链科技有限公司 Method, apparatus, accounting node and medium for querying transaction information in blockchain network
CN111340530A (en) * 2020-02-17 2020-06-26 深圳市二十一天网络科技有限公司 Block chain-based digital rights and interests system
CN111612468A (en) * 2017-03-24 2020-09-01 创新先进技术有限公司 Method and device for sending transaction information and consensus verification
CN111813788A (en) * 2020-05-20 2020-10-23 北京金山云网络技术有限公司 Information query method and device and information synchronization method and device
CN111815454A (en) * 2020-08-21 2020-10-23 支付宝(杭州)信息技术有限公司 Data uplink method and device, electronic equipment and storage medium
WO2021036702A1 (en) * 2019-08-27 2021-03-04 深圳前海微众银行股份有限公司 Consensus method and device employing blockchain system
WO2021047445A1 (en) * 2019-09-12 2021-03-18 腾讯科技(深圳)有限公司 Data processing method and apparatus in blockchain network, storage medium, and computer device
CN112732803A (en) * 2021-04-06 2021-04-30 北京万物智链科技有限公司 Consensus block chain transaction query verification method and system
CN112732720A (en) * 2021-01-11 2021-04-30 杭州复杂美科技有限公司 Data storage method, data query method, computer device and storage medium

Patent Citations (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055597A (en) * 2016-05-24 2016-10-26 布比(北京)网络技术有限公司 Digital transaction system, and account information query method therefor
CN106797389A (en) * 2016-11-18 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain network, article trading method, device and node device
CN106649632A (en) * 2016-12-07 2017-05-10 北京众享比特科技有限公司 Data synchronism method and system
CN111612468A (en) * 2017-03-24 2020-09-01 创新先进技术有限公司 Method and device for sending transaction information and consensus verification
CN107294709A (en) * 2017-06-27 2017-10-24 阿里巴巴集团控股有限公司 A kind of block chain data processing method, apparatus and system
CN107491519A (en) * 2017-08-15 2017-12-19 中国联合网络通信集团有限公司 The querying method and device of block chain account book
CN110166411A (en) * 2018-02-13 2019-08-23 华为技术有限公司 A kind of data transmission method, device and network node
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN110708269A (en) * 2018-07-10 2020-01-17 北京京东尚科信息技术有限公司 Block chain data transmission method, block chain node and computer readable storage medium
CN109189782A (en) * 2018-08-02 2019-01-11 哈尔滨工程大学 A kind of indexing means in block chain commodity transaction inquiry
WO2020029844A1 (en) * 2018-08-08 2020-02-13 华为技术有限公司 Blockchain node and transaction method
CN109472602A (en) * 2018-11-23 2019-03-15 全链通有限公司 A kind of method, a kind of node and a kind of block catenary system of verifying transaction
CN109635585A (en) * 2018-12-07 2019-04-16 深圳市智税链科技有限公司 Method, agent node and the medium of Transaction Information are inquired in block chain network
CN110851496A (en) * 2018-12-07 2020-02-28 深圳市智税链科技有限公司 Method, apparatus, accounting node and medium for querying transaction information in blockchain network
CN109741060A (en) * 2018-12-29 2019-05-10 北京金山安全软件有限公司 Information inquiry system, method, device, electronic equipment and storage medium
CN109636622A (en) * 2019-01-03 2019-04-16 平安科技(深圳)有限公司 A kind of fund data sharing method, system and electronic equipment based on block chain
CN109766389A (en) * 2019-01-09 2019-05-17 华东师范大学 A kind of light client revene lookup method of block chain based on bitmap index
CN109858909A (en) * 2019-01-11 2019-06-07 平安科技(深圳)有限公司 Intellectual property method of commerce, device, equipment and storage medium based on block chain
CN110060162A (en) * 2019-03-29 2019-07-26 阿里巴巴集团控股有限公司 Data grant, querying method and device based on block chain
CN110399373A (en) * 2019-06-26 2019-11-01 杭州慧牧科技有限公司 A kind of block chain account book storage system, storage querying method and delet method
CN110489413A (en) * 2019-07-15 2019-11-22 杭州复杂美科技有限公司 A kind of storage of transaction record, querying method and system, equipment and storage medium
WO2021036702A1 (en) * 2019-08-27 2021-03-04 深圳前海微众银行股份有限公司 Consensus method and device employing blockchain system
CN110569281A (en) * 2019-08-30 2019-12-13 阿里巴巴集团控股有限公司 Block chain transaction query method and system
CN110543488A (en) * 2019-09-11 2019-12-06 深圳市网心科技有限公司 Verification node updating method, device and equipment
WO2021047445A1 (en) * 2019-09-12 2021-03-18 腾讯科技(深圳)有限公司 Data processing method and apparatus in blockchain network, storage medium, and computer device
CN111340530A (en) * 2020-02-17 2020-06-26 深圳市二十一天网络科技有限公司 Block chain-based digital rights and interests system
CN111813788A (en) * 2020-05-20 2020-10-23 北京金山云网络技术有限公司 Information query method and device and information synchronization method and device
CN111815454A (en) * 2020-08-21 2020-10-23 支付宝(杭州)信息技术有限公司 Data uplink method and device, electronic equipment and storage medium
CN112732720A (en) * 2021-01-11 2021-04-30 杭州复杂美科技有限公司 Data storage method, data query method, computer device and storage medium
CN112732803A (en) * 2021-04-06 2021-04-30 北京万物智链科技有限公司 Consensus block chain transaction query verification method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
江云超;何小卫;崔一举;: "区块链节点存储优化方案", 应用科学学报, no. 01 *
韩嗣诚;朱晓荣;张秀贤;: "优化可扩展的拜占庭容错共识算法", 物联网学报, no. 02 *

Also Published As

Publication number Publication date
CN113379542B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN108961052B (en) Verification method, storage method, device, equipment and medium of block chain data
US11381385B2 (en) Data processing method and apparatus for blockchain, and storage medium
CN110535970B (en) Evidence storing and processing method, device, equipment and medium of judicial chain
EP3639465B1 (en) Improved hardware security module management
CN109522330B (en) Cloud platform data processing method, device, equipment and medium based on block chain
CN108681965B (en) Block chain network transaction processing method and device for offline node
CN111163182B (en) Block chain-based device registration method and apparatus, electronic device, and storage medium
CN108648084B (en) Data processing method, device and equipment of block chain network and storage medium
CN109951547B (en) Transaction request parallel processing method, device, equipment and medium
CN106325978B (en) Distributed transaction processing method and device
CN109951546B (en) Transaction request processing method, device, equipment and medium based on intelligent contract
CN108769230B (en) Transaction data storage method, device, server and storage medium
CN110602214B (en) Evidence storing and processing method, device, equipment and medium of judicial chain
KR20220006623A (en) Blockchain consensus method, device and system
CN111277639B (en) Method and device for maintaining data consistency
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
US10924281B2 (en) Method and apparatus for inter-blockchain transmission of authenticable message
CN111885050B (en) Data storage method and device based on block chain network, related equipment and medium
CN109101664B (en) Data transmission method, device, equipment and medium for lightweight node
CN110597918A (en) Account management method and device and computer readable storage medium
CN112714192A (en) Data synchronization method and device, computer readable medium and electronic equipment
CN110598058A (en) Evidence storing and processing method, device, equipment and medium of judicial chain
CN112182113A (en) Block chain consensus method, system, electronic device and storage medium
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN116501997B (en) Short link generation method, device, electronic equipment and storage medium

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