CN110990410B - Information searching method and device in block chain, storage medium and computer equipment - Google Patents

Information searching method and device in block chain, storage medium and computer equipment Download PDF

Info

Publication number
CN110990410B
CN110990410B CN201911242654.4A CN201911242654A CN110990410B CN 110990410 B CN110990410 B CN 110990410B CN 201911242654 A CN201911242654 A CN 201911242654A CN 110990410 B CN110990410 B CN 110990410B
Authority
CN
China
Prior art keywords
transaction
information
hash value
variables
transaction information
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
CN201911242654.4A
Other languages
Chinese (zh)
Other versions
CN110990410A (en
Inventor
张建俊
郑罗海
唐子超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911242654.4A priority Critical patent/CN110990410B/en
Publication of CN110990410A publication Critical patent/CN110990410A/en
Application granted granted Critical
Publication of CN110990410B publication Critical patent/CN110990410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to an information searching method, an information searching device, a storage medium and computer equipment in a block chain, wherein the method comprises the following steps: acquiring transaction information of a target transaction and isolated transaction variables from a blockchain; acquiring a transaction identifier of a next transaction corresponding to the target transaction, and acquiring address information and a public key of the next transaction according to the transaction identifier; performing hash operation on the address information, the public key and the transaction information to obtain a first index hash value of the next transaction; and searching the transaction information of the next transaction in the block chain according to the first index hash value. The scheme provided by the application can improve the flexibility of searching the transaction information in the block chain.

Description

Information searching method and device in block chain, storage medium and computer equipment
The application is a divisional application with the application number of 201910892829.X, entitled "information searching method, device, storage medium and computer device in a block chain", which is filed in 20/09/2019, and the entire contents of the application are incorporated by reference in the present application.
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for searching information in a blockchain, a storage medium, and a computer device.
Background
The block chain is a decentralized shared general ledger which combines data blocks into a specific data structure in a chain mode according to time sequence and is ensured in a cryptographic mode to be not falsifiable and not forged. A great deal of transaction information is stored in the blockchain, and how to quickly find the transaction information of each transaction of the user in the blockchain becomes a hotspot concerned by technicians in the field.
In a conventional method for searching transaction information in a blockchain, transaction information corresponding to a transaction is usually searched for on the blockchain through a transaction hash value, and for a next transaction of the transaction, only a corresponding transaction hash value can be obtained in advance, and then the transaction information of the next transaction can be searched for on the blockchain, so that flexibility of searching the transaction information in the blockchain is reduced.
Disclosure of Invention
Based on this, it is necessary to provide an information searching method, an apparatus, a storage medium, and a computer device in a blockchain for the technical problem of low flexibility in searching transaction information in the blockchain.
An information searching method in a block chain comprises the following steps:
acquiring transaction information of a target transaction and isolated transaction variables from a blockchain;
acquiring a transaction identifier of a next transaction corresponding to the target transaction, and acquiring address information and a public key of the next transaction according to the transaction identifier;
performing hash operation on the address information, the public key and the transaction information to obtain a first index hash value of the next transaction;
and searching the transaction information of the next transaction in the block chain according to the first index hash value.
An apparatus for information lookup in a blockchain, the apparatus comprising:
the transaction information acquisition module is used for acquiring the transaction information of the target transaction and isolated transaction variables from the blockchain;
the address information acquisition module is used for acquiring a transaction identifier of the next transaction corresponding to the target transaction and acquiring the address information and the public key of the next transaction according to the transaction identifier;
the hash operation module is used for carrying out hash operation on the address information, the public key and the transaction information to obtain a first index hash value of the next transaction;
and the transaction information searching module is used for searching the transaction information of the next transaction in the block chain according to the first index hash value.
A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the information lookup method in the blockchain.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the information lookup method in the blockchain.
According to the information searching method, the device, the storage medium and the computer equipment in the blockchain, the transaction information of the target transaction and isolated transaction variables is obtained from the blockchain, the address information, the public key and the transaction information of the next transaction are subjected to Hash operation to obtain the first index Hash value of the next transaction, so that the transaction information of the next transaction can be searched through the first index Hash value, the transaction Hash value of each next transaction does not need to be preset, the transaction information of each next transaction can also be searched, and the flexibility of searching the transaction information in the blockchain is improved. In addition, the transaction variables are isolated from the transaction information, so that the obtained transaction information does not contain the transaction variables, and the transaction information is queried by using the index hash value generated by the transaction information which does not contain the transaction variables, so that the query has controllability.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a method for finding information in a blockchain;
FIG. 2 is a flow chart illustrating a method for searching information in a blockchain according to an embodiment;
FIG. 3 is a diagram of transaction information including transaction variables, in one embodiment;
FIG. 4 is a flow chart illustrating a method for bi-directional lookup of information in a blockchain according to an embodiment;
FIG. 5 is a schematic flow chart diagram illustrating the step of isolating transaction variables in one embodiment;
FIG. 6 is a flowchart illustrating the steps of verifying the authenticity and legitimacy of a target transaction before the transaction is completed, in one embodiment;
FIG. 7 is a flowchart illustrating the step of searching transaction information by transaction hash value according to an embodiment;
FIG. 8 is a schematic flow chart diagram illustrating the step of verifying the authenticity of a target transaction after the transaction is completed in one embodiment;
FIG. 9 is a flowchart illustrating a method for searching information in a blockchain according to another embodiment;
FIG. 10 is a block diagram of an information lookup apparatus in a blockchain according to an embodiment;
FIG. 11 is a block diagram of an information search apparatus in a blockchain according to another embodiment;
FIG. 12 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a diagram illustrating an exemplary embodiment of a method for searching information in a blockchain. Referring to fig. 1, the information search method in a blockchain is applied to an information search system in a blockchain. The information lookup system in the blockchain includes a terminal 110, a server 120, and a blockchain node 130. The terminal 110, the server 120, and the block link point 130 are connected through a network. The terminal 110 sends a transaction information acquisition request of each transaction of the user to the server 120, and the server 120 responds to the transaction information acquisition request to acquire transaction information of a target transaction and isolated transaction variables from the blockchain from the corresponding blockchain link point 130 in the blockchain; acquiring address information of a next transaction corresponding to the target transaction; performing hash operation on the address information and the transaction information to obtain a first index hash value of the next transaction; and searching the transaction information of the next transaction in the block chain according to the first index hash value.
The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. Blockchain node 130 may be a node that constitutes a blockchain, which may specifically be a server.
In one embodiment, as shown in fig. 2, a method for information lookup in a blockchain is provided. The embodiment is mainly illustrated by applying the method to the server 120 in fig. 1. Referring to fig. 2, the method for searching information in a block chain specifically includes the following steps:
s202, transaction information of the target transaction and isolated transaction variables is obtained from the blockchain.
In a narrow sense, the blockchain may be a chain data structure that combines data blocks in a sequential manner in a chronological order, and is cryptographically secured as a tamper-proof and counterfeit-proof distributed ledger. Broadly, a blockchain is a completely new distributed infrastructure that utilizes blockchain data structures to authenticate and store data, utilizes distributed node consensus algorithms to generate and update data, cryptographically secures data transmission and access, and utilizes intelligent contracts composed of automated script code to program and manipulate data.
The transaction may be a resource transfer operation performed on the blockchain, and in particular may be a transfer of money, such as a transfer in or out of bitcoins, such as a transfer in or out of funds when a trade is being made, such as an invoicing via the blockchain, and so forth. The target transaction is the currently sought transaction. Transaction variables include, but are not limited to, credentials and additional information including a timestamp identifying the time of the transaction, which may be used to verify the authenticity of the transaction. The credential may be signature information. The initial transaction information includes transaction information, signature information, and additional information related to the transaction.
In one embodiment, before S202, the method may further include: the server acquires initial transaction information of target transaction; isolating the transaction variables in the initial transaction information to obtain transaction information with the isolated transaction variables; the resulting transaction information is stored in a blockchain used to record transactions. Here, the isolation may be to separate the transaction variables from the transaction information and then store the transaction variables in the blockchain respectively.
In another embodiment, the server obtains the whole transaction information of the target transaction according to the transaction hash value, and then isolates the transaction variable from the whole transaction information to obtain the transaction information of the isolated transaction variable. Where the isolation here may be a separation of the transaction variables from the acquired transaction information.
As shown in fig. 3, the transaction information including the transaction variables includes: certificate (voucher), index (index), index hash value (hash) of the last transaction, amount (amount), public key (condition) of the target transaction, address information (address) of the target transaction, data (data), transaction identification and additional information (extra _ info), and so on. The additional information at least comprises a time stamp for identifying the transaction time and an accurate reading of the sensor, and the accurate reading of the sensor is used in anti-counterfeiting tracing. Credentials (e.g., signature information) and additional information belong to the transaction variables.
In one embodiment, the server isolates the transaction variable from the transaction information through the isolation witness to obtain the transaction information which is isolated from the transaction variable and only related to the transaction, and the transaction information can be stored in the block corresponding to the block chain.
The isolation witness may refer to the separation of two parts of the transaction (one part is transaction information related to the transaction, such as balance income and expenditure information, and the other part is transaction variables that may be used to prove the legitimacy of the transaction) such that the transaction identification (id) is completely determined by the first part (i.e., transaction information related to the transaction) and is not affected by the witness part.
S204, address information of the next transaction corresponding to the target transaction is obtained.
The address information may be a node address corresponding to transaction information for storing a next transaction.
In an embodiment, when a next transaction of a target transaction needs to be searched, address information of the next transaction may be obtained according to a transaction identifier of the next transaction, and in addition, a public key of the next transaction may also be obtained.
S206, carrying out hash operation on the address information and the transaction information to obtain a first index hash value of the next transaction.
The hash operation may refer to an operation performed by a hash function. The Hash function may be MD4, MD5, SHA (Secure Hash Algorithm) family Algorithm. The SHA family algorithm includes: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512. The same user can carry out a plurality of transactions on the block chain, the time sequence relationship exists between each transaction, for a certain target transaction, the next transaction can be corresponded, the address information of the next transaction and the transaction information with isolated transaction variables in the target transaction can be subjected to hash operation, and then the obtained first index hash value is used as the index hash value of the next transaction.
In addition, different users perform transactions on the blockchain, a chronological relationship also exists between each transaction, for a certain target transaction, a next transaction can be corresponded, hash operation can also be performed on address information of the next transaction and transaction information with transaction variables isolated in the target transaction, and then the obtained first index hash value is used as an index hash value of the next transaction. The transaction information of the target transaction and the transaction information of the next transaction can be respectively stored in different blocks.
In one embodiment, when a next transaction corresponding to a target transaction is generated, the server adds a target index hash value of the target transaction to transaction information of the next transaction, so that when the transaction information of the next transaction is located, the transaction information of the target transaction can be searched in the blockchain through the target index hash value contained in the transaction information of the next transaction, and forward search of the transaction information is realized.
In one embodiment, after obtaining the address information and the transaction information with the transaction variable isolated in the target transaction, the server performs a hash operation on the address information and the transaction information by using a specified hash function to obtain a first index hash value of the next transaction. For example, taking SHA-256 as an example of the hash function, the server performs hash operation on address information and transaction information of the next transaction by using SHA-256 to obtain a 256-bit first index hash value.
In one embodiment, prior to S206, the server may also obtain a public key for a next transaction corresponding to the target transaction. S206 may specifically include: and carrying out hash operation on the public key, the address information and the transaction information to obtain a first index hash value of the next transaction.
In an embodiment, in the uplink stage, when receiving each transaction message sent by the terminal or the server, the blockchain node determines the target transaction according to the uplink time, obtains the transaction message of the target transaction, performs hash operation on the transaction message to obtain a target index hash value, and stores the target index hash value as the index hash value of the transaction message of the target transaction (the transaction message isolates the transaction variables). Then, the block link point determines the next transaction of the target transaction, acquires the public key and the address information of the next transaction, and then performs hash operation on the transaction information with the transaction variable isolated, the public key and the address information of the next transaction to obtain a first index hash value, and the first index hash value can be used as the index hash value of the transaction information (with the transaction information with the transaction variable isolated) of the next transaction and stored. Through the arrangement of the mode, the corresponding transaction information with the transaction variable isolated can be found through the index hash value.
S208, searching the transaction information of the next transaction in the block chain according to the first index hash value.
In one embodiment, the server searches a block head of a block in the block chain according to the first index hash value, and when the index hash value in the block head matches with the first index hash value, the block is the block to be searched, and obtains the transaction information in the block body corresponding to the block head.
In one embodiment, when a plurality of transaction information are stored in the block, the server may search for the corresponding transaction information according to the transaction identifier.
In one embodiment, the server extracts a second index hash value of a previous transaction corresponding to the target transaction from the transaction information with the transaction variable isolated; and searching the transaction information of the last transaction in the block chain according to the second index hash value. Therefore, after the transaction information of the target transaction is obtained, the server can search the corresponding transaction information according to the index hash value related to the previous transaction in the transaction information, so that the forward search of the transaction information can be realized, the backward search of the transaction information can also be realized, and the bidirectional search capability is realized.
The transaction information with isolated transaction variables comprises: transaction input status information that does not contain signature information, and transaction output status information that does not contain additional information. The transaction input status information may include an index hash value of the previous transaction, and further include an index and the like.
In an embodiment, the step of extracting the second index hash value of the previous transaction corresponding to the target transaction from the transaction information with the transaction variable isolated may specifically include: the server searches the transaction input state information from the transaction information with the isolated transaction variables; and extracting a second index hash value of the previous transaction corresponding to the target transaction from the transaction input state information.
In one embodiment, the server parses the transaction information with transaction variables isolated, resulting in transaction input state information that does not contain signature information, and transaction output state information that does not contain additional information. And extracting a second index hash value of the previous transaction corresponding to the target transaction from the obtained transaction input state information.
As an example, as shown in fig. 4, when searching for the transaction information of the next transaction, the corresponding searching steps are: in the initial transaction information of the current transaction A, the signature information in the transaction input state information is isolated from the additional information in the transaction output state information, so that transaction quantitative fields such as an index hash value, a public key of a target transaction, address information of the target transaction, data, a transaction identifier and the like of the previous transaction are obtained, and the transaction quantitative fields are subjected to hash operation through a sha256 function, so that the index hash value A of the current transaction A is obtained. And when the address information and the public key of the next transaction B of the current transaction A are acquired, carrying out hash operation on the index hash value A, the address information and the public key of the next transaction B to obtain the index hash value B of the next transaction B, and searching the transaction information of the next transaction by using the index hash value B in the block chain.
When searching the transaction information of the previous transaction, the corresponding searching steps are as follows: in the current transaction A, the index hash value C of the last transaction C in the transaction input state information is utilized to search the transaction information of the last transaction C in the block chain according to the index hash value C. It should be noted that the transaction information with the transaction variable isolated can be found by indexing the hash value.
In the above embodiment, the transaction information of the target transaction and the transaction variables are isolated from the blockchain, and the hash operation is performed on the address information and the transaction information of the next transaction to obtain the first index hash value of the next transaction, so that the transaction information of the next transaction can be found through the first index hash value, the transaction hash value of each next transaction does not need to be pre-found, the transaction information of each next transaction can also be found, and the flexibility of finding the transaction information in the blockchain is improved. In addition, the transaction variables are isolated from the transaction information, so that the obtained transaction information does not contain the transaction variables, and the transaction information is queried by using the index hash value generated by the transaction information which does not contain the transaction variables, so that the query has controllability.
In one embodiment, as shown in fig. 5, before S202, the method further includes:
s502, transaction information of the target transaction and containing transaction variables is obtained.
In one embodiment, the server may obtain a transaction hash value of the target transaction, and then find transaction information of the target transaction and containing transaction variables on the blockchain according to the transaction hash value.
In one embodiment, the transaction hash value may also be obtained by the server performing a hash operation on the transaction information including the transaction variable from the block link point after the server links the transaction information of the target transaction.
In another embodiment, the transaction hash value may be obtained by hashing the entire transaction information (i.e. the transaction information including the transaction variable) when the server links the transaction information, so that the entire transaction information of the target transaction can be located on the blockchain.
S504, the transaction variables in the acquired transaction information are isolated, and the transaction information with the isolated transaction variables is obtained.
The isolating of the transaction variables in the acquired transaction information may refer to: and separating the transaction variable and the transaction quantitative information in the acquired transaction information. The signature information and the additional information are transaction variables. The index, the index hash value of the last transaction of the target transaction, the amount, the public key of the target transaction, the address information of the target transaction, the data and the transaction identification are transaction quantitative information.
In one embodiment, the transaction variables include signature information and additional information for the target transaction; s504 may specifically include: acquiring transaction input state information and transaction output state information from the acquired transaction information; isolating signature information in the transaction input state information; and isolating the additional information in the transaction output state information to obtain the transaction information with the signature information and the additional information isolated.
In one embodiment, the server isolates the signature information of the transaction input state information in the transaction information when acquiring the transaction information, i.e. separates the signature information from the index and the index hash value of the last transaction of the target transaction. In addition, the server isolates the additional information in the transaction output state information in the transaction information, namely the additional information is separated from the amount, the public key of the target transaction, the address information of the target transaction, the data and the transaction identification.
S506, storing the obtained transaction information in the block chain.
In one embodiment, the server stores the resulting transaction information in a target block of the blockchain. In addition, the server may also store transaction variables in the target tiles of the tile chain.
In the above embodiment, the transaction variables are isolated from the transaction information, so that the obtained transaction information does not include the transaction variables, and the transaction information is queried by using the index hash value generated by the transaction information that does not include the transaction variables, so that the query has controllability.
In one embodiment, as shown in fig. 6, before S202, the method further includes:
s602, a transaction request related to the target transaction is received.
Before the transaction is carried out, the server needs to verify the authenticity and the legality of the transaction, and when the transaction is determined to be a real transaction and is legal (namely the resource value corresponding to the resource account address is determined to be greater than or equal to the transaction resource value), the operation of the target transaction is executed.
In one embodiment, a server receives a transaction request sent by a terminal regarding a target transaction. For example, when the user conducts the bitcoin transaction, the user initiates a transaction request for buying and selling the bitcoin transaction through the terminal.
S604, extracting signature information, transaction resource value and resource account address from the transaction request.
The signature information may be a digital signature of the transaction initiator or a digital signature of the transaction information of the target transaction. The transaction resource value may be an amount of resource required for the target transaction, such as an amount spent purchasing bitcoins. The resource account address may be an address where the user resource account is located, such as an address of a blockchain node that holds the user bitcoin account. In the resource account, a bitcoin resource can be held, and a transaction resource, such as funds, can also be held.
In one embodiment, after the terminal logs in the corresponding resource account system, when a target transaction needs to be performed, signature information, a transaction resource value and a resource account address are obtained from the resource account system of the user, and then a transaction request carrying the signature information, the transaction resource value and the resource account address is generated.
And S606, when the target transaction is determined to be a real transaction according to the signature information and the resource value corresponding to the resource account address is determined to be greater than or equal to the transaction resource value, transferring the transaction resource from the resource account address according to the transaction resource value.
In one embodiment, the server judges whether the target transaction is a real transaction according to the signature information, then judges whether a resource value greater than or equal to a transaction resource value exists in a resource account corresponding to the resource account address, if the target transaction is determined to be the real transaction and the corresponding resource value is greater than or equal to the transaction resource value, the target transaction is indicated to be the real transaction and is legal, and the transaction resource is transferred out according to the transaction resource value to finish the operation of the target transaction.
In the embodiment, before the target transaction is carried out, the authenticity and the legality of the target transaction are verified, and when the target transaction is determined to be a real transaction and legal, the transaction resources are transferred, so that the property safety of a user is ensured, and invalid transactions are avoided.
In an embodiment, as shown in fig. 7, S202 may specifically include:
s702, acquiring a transaction hash value of the target transaction.
In one embodiment, the transaction hash value may also be obtained by the server performing a hash operation on the transaction information including the transaction variable from the block link point after the server links the transaction information of the target transaction.
In another embodiment, the transaction hash value may be obtained by the server hashing the transaction information including the transaction variable when the server links the transaction information.
S704, transaction information containing transaction variables of the target transaction is obtained from the blockchain according to the transaction hash value.
The transaction hash value is obtained by performing hash operation on the transaction information containing the transaction variable, so that the server can locate the transaction information containing the transaction variable and related to the target transaction on the block chain through the transaction hash value.
And S706, extracting part of contents except the transaction variables from the acquired transaction information to obtain the transaction information with the transaction variables isolated.
In one embodiment, the server may filter the transaction variables from the acquired transaction information, thereby obtaining transaction information that does not include the transaction variables.
In the above embodiment, the transaction variables in the initial transaction information are isolated to obtain the transaction information not containing the transaction variables, and then the first index hash value of the next transaction is obtained according to the transaction information and the address information of the next transaction, so that the transaction information of the next transaction is retrieved, the influence of the transaction variables on the transaction information search is avoided, and the query has controllability.
In one embodiment, as shown in fig. 8, the method may include:
s802, receiving a transaction information verification request sent by a terminal; the transaction information verification request carries transaction information including transaction variables.
After the target transaction is completed, if the target transaction is doubtful, the transaction information of the target transaction can be verified at this time so as to determine the authenticity of the target transaction. For example, a blockchain invoice may verify the authenticity of the invoice on the chain when the user or invoice audit has a doubt as to the authenticity of the invoice held. The transaction variables of the invoice may include signature information of the user, a timestamp of invoicing, and the like.
In one embodiment, the terminal uploads transaction information containing transaction variables on a transaction information verification page, and when verification operation is detected, a transaction information verification request is generated according to the uploaded transaction information and sent to the server.
For example, the user uploads the held transaction information to the transaction verification system on a transaction information verification page, and when the user clicks a verification button, the terminal generates a transaction information verification request carrying the transaction information.
And S804, performing hash operation on the transaction information in the transaction information verification request to obtain a transaction hash value.
In one embodiment, when transaction information containing transaction variables is obtained, the server performs a hash operation on the transaction information by using a specified hash function to obtain a transaction hash value related to the target transaction. Since the transaction hash value is obtained by hashing the transaction information containing the transaction variable, the server can locate the transaction information containing the transaction variable related to the target transaction on the block chain through the transaction hash value.
And S806, when the matched transaction information is acquired from the blockchain according to the transaction hash value, determining that the transaction information in the transaction information verification request is real transaction information.
In one embodiment, the server searches whether matched transaction information exists in the blockchain according to the transaction hash value, and if the matched transaction information exists, the transaction information in the transaction information verification request is determined to be real transaction information; and if the transaction information is found, determining that the transaction information in the transaction information verification request is fake transaction information.
As an example, when the authenticity of the held invoice is doubtful by the user, the server may perform hash operation on the invoice information to obtain an invoice hash value, and search whether a matching invoice exists in the block chain according to the invoice hash value, because the data in the block chain is not modifiable, when the matching invoice is searched, it is determined that the invoice held by the user is a real invoice.
In the embodiment, whether the transaction information on the terminal is the real transaction information can be judged through the transaction information in the block chain, so that the transaction information can be prevented from being modified, and the safety of the transaction information is ensured.
As shown in fig. 9, in an embodiment, another method for searching information in a blockchain is provided, where the method for searching information in a blockchain specifically includes the following steps:
s902, a transaction request related to the target transaction is received.
And S904, extracting the signature information, the transaction resource value and the resource account address from the transaction request.
And S906, when the target transaction is determined to be a real transaction according to the signature information and the resource value corresponding to the resource account address is determined to be greater than or equal to the transaction resource value, transferring the transaction resource from the resource account address according to the transaction resource value.
S908, transaction information of the target transaction and including transaction variables is obtained from the blockchain.
In one embodiment, the server obtains a transaction hash value of the target transaction, obtains transaction information of the target transaction, which contains transaction variables, from the blockchain according to the transaction hash value, and extracts part of contents except the transaction variables from the obtained transaction information to obtain the transaction information with the transaction variables isolated.
S910, isolating the transaction variables in the acquired transaction information to obtain transaction information with the isolated transaction variables.
And S912, storing the obtained transaction information in a block chain.
In addition, the server also stores transaction variables in the blockchain.
And S914, acquiring the transaction information of the target transaction and isolated transaction variables from the blockchain.
S916, address information and a public key of a next transaction corresponding to the target transaction are obtained.
S918, carrying out hash operation on the public key, the address information and the transaction information to obtain a first index hash value of the next transaction.
S920, according to the first index hash value, the transaction information of the next transaction in the block chain is searched.
And S922, extracting a second index hash value of the previous transaction corresponding to the target transaction from the transaction information with the isolated transaction variable.
In one embodiment, S922 may specifically include: searching transaction input state information from the transaction information with isolated transaction variables; and extracting a second index hash value of the previous transaction corresponding to the target transaction from the transaction input state information.
S924, searching the transaction information of the last transaction in the block chain according to the second index hash value.
S926, receiving a transaction information verification request sent by the terminal; the transaction information verification request carries transaction information including transaction variables.
S928, perform hash operation on the transaction information in the transaction information verification request to obtain a transaction hash value.
And S930, when the matched transaction information is acquired from the blockchain according to the transaction hash value, determining that the transaction information in the transaction information verification request is real transaction information.
Fig. 2 and 5-9 are schematic flow diagrams of a package inspection method in one embodiment. It should be understood that although the various steps in the flowcharts of fig. 2, 5-9 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 5-9 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
As shown in fig. 10, in an embodiment, an information searching apparatus in a blockchain is provided, where the information searching apparatus in a blockchain specifically includes: a transaction information acquisition module 1002, an address information acquisition module 1004, a hash operation module 1006 and a transaction information search module 1008; wherein:
a transaction information obtaining module 1002, configured to obtain transaction information of a target transaction and isolated transaction variables from a blockchain;
an address information obtaining module 1004 for obtaining address information of a next transaction corresponding to the target transaction;
a hash operation module 1006, configured to perform a hash operation on the address information and the transaction information to obtain a first index hash value of the next transaction;
and the transaction information searching module 1008 is configured to search the transaction information of the next transaction in the block chain according to the first index hash value.
In one embodiment, as shown in fig. 11, the apparatus further comprises: a public key obtaining module 1010; wherein:
a public key obtaining module 1010, configured to obtain a public key of a next transaction corresponding to the target transaction;
the hash operation module 1006 is further configured to perform a hash operation on the public key, the address information, and the transaction information to obtain a first index hash value of the next transaction.
In the above embodiment, the transaction information of the target transaction and the transaction variables are isolated from the blockchain, and the hash operation is performed on the address information and the transaction information of the next transaction to obtain the first index hash value of the next transaction, so that the transaction information of the next transaction can be found through the first index hash value, the transaction hash value of each next transaction does not need to be pre-found, the transaction information of each next transaction can also be found, and the flexibility of finding the transaction information in the blockchain is improved. In addition, the transaction variables are isolated from the transaction information, so that the obtained transaction information does not contain the transaction variables, and the transaction information is queried by using the index hash value generated by the transaction information which does not contain the transaction variables, so that the query has controllability.
In one embodiment, as shown in fig. 11, the apparatus further comprises: the device still includes: a transaction information uplink module 1012; wherein:
a transaction information uplink module 1012, configured to obtain initial transaction information of the target transaction before obtaining the transaction information of the target transaction and isolated from the transaction variables from the blockchain; isolating the transaction variables in the initial transaction information to obtain transaction information with the isolated transaction variables; the resulting transaction information is stored in a blockchain.
In one embodiment, the transaction variables include signature information and additional information for the target transaction; the transaction information uplink module 1012 is further configured to: acquiring transaction input state information and transaction output state information in the initial transaction information; isolating signature information in the transaction input state information; and isolating the additional information in the transaction output state information to obtain the transaction information with the signature information and the additional information isolated.
In the above embodiment, the transaction variables are isolated from the transaction information, so that the obtained transaction information does not include the transaction variables, and the transaction information is queried by using the index hash value generated by the transaction information that does not include the transaction variables, so that the query has controllability.
In one embodiment, as shown in fig. 11, the apparatus further comprises: transaction resource transfer module 1014; wherein:
a transaction resource transfer module 1014 to receive a transaction request for a target transaction prior to obtaining transaction information for the target transaction, which isolates transaction variables, from a blockchain; extracting signature information, transaction resource values and resource account addresses from the transaction request; and when the target transaction is determined to be a real transaction according to the signature information and the resource value corresponding to the resource account address is determined to be greater than or equal to the transaction resource value, transferring the transaction resource from the resource account address according to the transaction resource value.
In the embodiment, before the target transaction is carried out, the authenticity and the legality of the target transaction are verified, and when the target transaction is determined to be a real transaction and legal, the transaction resources are transferred, so that the property safety of a user is ensured, and invalid transactions are avoided.
In one embodiment, as shown in fig. 11, the apparatus further comprises: a hash value extraction module 1016; wherein:
a hash value extracting module 1016, configured to extract a second index hash value of a previous transaction corresponding to the target transaction from the transaction information with the transaction variables isolated;
the transaction information searching module 1008 is further configured to search the transaction information of the previous transaction in the block chain according to the second index hash value.
In one embodiment, the hash value extraction module 1016 is further configured to: searching transaction input state information from the transaction information with isolated transaction variables; and extracting a second index hash value of the previous transaction corresponding to the target transaction from the transaction input state information.
In one embodiment, the transaction information acquisition module is further configured to: acquiring a transaction hash value of a target transaction; acquiring transaction information containing transaction variables of a target transaction from a blockchain according to the transaction hash value; and extracting part of contents except the transaction variables from the acquired transaction information to obtain the transaction information with the transaction variables isolated.
In the above embodiment, the transaction variables in the initial transaction information are isolated to obtain the transaction information not containing the transaction variables, and then the first index hash value of the next transaction is obtained according to the transaction information and the address information of the next transaction, so that the transaction information of the next transaction is retrieved, the influence of the transaction variables on the transaction information search is avoided, and the query has controllability.
In one embodiment, as shown in fig. 11, the apparatus further comprises: an authentication request receiving module 1018 and a transaction information authentication module 1020; wherein:
a verification request receiving module 1018, configured to receive a transaction information verification request sent by the terminal; the transaction information verification request carries transaction information containing transaction variables;
the hash operation module 1006 is further configured to perform hash operation on the transaction information in the transaction information verification request to obtain a transaction hash value;
the transaction information verification module 1020 is configured to determine that the transaction information in the transaction information verification request is the real transaction information when the matched transaction information is obtained from the blockchain according to the transaction hash value.
In the embodiment, whether the transaction information on the terminal is the real transaction information can be judged through the transaction information in the block chain, so that the transaction information can be prevented from being modified, and the safety of the transaction information is ensured.
FIG. 12 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the server 120 in fig. 1. As shown in fig. 12, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by the processor, causes the processor to implement the method of finding information in a blockchain. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform a method for searching for information in the block chain.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the information searching apparatus in the blockchain provided in the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 12. The memory of the computer device may store various program modules constituting the information search means in the blockchain, such as the transaction information acquisition module 1002, the address information acquisition module 1004, the hash operation module 1006 and the transaction information search module 1008 shown in fig. 10. The computer program constituted by the respective program modules causes the processor to execute the steps in the information search method in the block chain of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 12 may execute S202 through the transaction information obtaining module 1002 in the information lookup apparatus in the block chain as shown in fig. 10. The computer device may perform S204 by the address information acquisition module 1004. The computer device may perform S206 through the hash operation module 1006. The computer device may perform S208 by the transaction information lookup module 1008.
In an embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above-described information lookup method in a blockchain. Here, the steps of the information search method in the blockchain may be the steps of the information search method in the blockchain in the various embodiments described above.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, causes the processor to carry out the steps of the above-mentioned information lookup method in a blockchain. Here, the steps of the information search method in the blockchain may be the steps of the information search method in the blockchain in the various embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (22)

1. An information searching method in a block chain comprises the following steps:
acquiring transaction information of a target transaction and isolated transaction variables from a blockchain; the transaction variables include credentials and additional information; the additional information comprises a timestamp for identifying the transaction time and an accurate reading of a sensor used in anti-counterfeiting tracing;
acquiring a transaction identifier of a next transaction corresponding to the target transaction, and acquiring address information and a public key of the next transaction according to the transaction identifier;
performing hash operation on the address information, the public key and the transaction information to obtain a first index hash value of the next transaction;
and searching the transaction information of the next transaction in the block chain according to the first index hash value.
2. The method of claim 1, wherein said searching for transaction information for the next transaction in the blockchain according to the first indexed hash value comprises:
searching a corresponding block head in the block chain according to the first index hash value;
and when the index hash value in the block head is matched with the first index hash value, acquiring the transaction information of the next transaction from the block body corresponding to the block head.
3. The method of claim 2, wherein the obtaining transaction information of the next transaction from the block corresponding to the block head comprises:
and when a plurality of transaction information are stored in the block body, searching the transaction information of the next transaction in the block body according to the transaction identification.
4. The method of claim 1, further comprising:
searching transaction input state information from the transaction information with the transaction variable isolated;
extracting a second index hash value of the previous transaction corresponding to the target transaction from the transaction input state information;
and searching the transaction information of the last transaction in the block chain according to the second index hash value.
5. The method of claim 4, wherein the transaction information that isolates the transaction variable comprises: transaction input status information that does not include signature information, and transaction output status information that does not include additional information;
the searching for transaction input state information from the transaction information that isolates the transaction variables comprises:
analyzing the transaction information with the transaction variables isolated;
and obtaining the transaction input state information which does not contain the signature information according to the analysis result.
6. The method of claim 1, wherein obtaining transaction information for the target transaction from the blockchain that isolates the transaction variables comprises:
acquiring a transaction hash value of the target transaction;
acquiring transaction information containing transaction variables of the target transaction from the block chain according to the transaction hash value;
and extracting part of contents except the transaction variable from the acquired transaction information to obtain the transaction information with the transaction variable isolated.
7. The method of claim 6, wherein the transaction hash value is obtained by hashing the transaction information containing the transaction variable by a corresponding node in the blockchain after the transaction information containing the transaction variable of the target transaction is linked; alternatively, the first and second electrodes may be,
and when the transaction information of the target transaction and containing the transaction variables is linked, the transaction hash value is obtained by carrying out hash operation on the transaction information containing the transaction variables by the server.
8. The method of claim 1, wherein prior to obtaining transaction information for the target transaction from the blockchain that isolates the transaction variables, the method further comprises:
acquiring transaction information of the target transaction and containing transaction variables;
isolating the transaction variables in the acquired transaction information in an isolation witness mode to obtain transaction information with the isolated transaction variables;
storing the obtained transaction information in the blockchain.
9. The method of claim 8, wherein the transaction variables include signature information and additional information for the target transaction; the isolating the transaction variable in the acquired transaction information to obtain the transaction information with the isolated transaction variable includes:
acquiring transaction input state information and transaction output state information from the acquired transaction information;
isolating signature information in the transaction input state information; and the number of the first and second groups,
and isolating additional information in the transaction output state information to obtain the transaction information with the signature information and the additional information isolated.
10. The method of claim 1, further comprising:
receiving a transaction information verification request sent by a terminal; the transaction information verification request carries transaction information containing transaction variables;
performing hash operation on the transaction information in the transaction information verification request to obtain a transaction hash value;
and when the matched transaction information is acquired from the block chain according to the transaction hash value, determining that the transaction information in the transaction information verification request is real transaction information.
11. An apparatus for searching information in a blockchain, the apparatus comprising:
the transaction information acquisition module is used for acquiring the transaction information of the target transaction and isolated transaction variables from the blockchain; the transaction variables include credentials and additional information; the additional information comprises a timestamp for identifying the transaction time and an accurate reading of a sensor used in anti-counterfeiting tracing;
the address information acquisition module is used for acquiring a transaction identifier of the next transaction corresponding to the target transaction and acquiring the address information and the public key of the next transaction according to the transaction identifier;
the hash operation module is used for carrying out hash operation on the address information, the public key and the transaction information to obtain a first index hash value of the next transaction;
and the transaction information searching module is used for searching the transaction information of the next transaction in the block chain according to the first index hash value.
12. The apparatus of claim 11, wherein the transaction information lookup module is further configured to:
searching a corresponding block head in the block chain according to the first index hash value;
and when the index hash value in the block head is matched with the first index hash value, acquiring the transaction information of the next transaction from the block body corresponding to the block head.
13. The apparatus of claim 12, wherein the transaction information lookup module is further configured to:
and when a plurality of transaction information are stored in the block body, searching the transaction information of the next transaction in the block body according to the transaction identification.
14. The apparatus of claim 11, wherein the transaction information lookup module is further configured to:
searching transaction input state information from the transaction information with the transaction variable isolated;
extracting a second index hash value of the previous transaction corresponding to the target transaction from the transaction input state information;
and searching the transaction information of the last transaction in the block chain according to the second index hash value.
15. The apparatus of claim 14, wherein the transaction information that isolates the transaction variable comprises: transaction input status information that does not include signature information, and transaction output status information that does not include additional information;
the transaction information searching module is further configured to:
analyzing the transaction information with the transaction variables isolated;
and obtaining the transaction input state information which does not contain the signature information according to the analysis result.
16. The apparatus of claim 11, wherein the transaction information obtaining module is further configured to:
acquiring a transaction hash value of the target transaction;
acquiring transaction information containing transaction variables of the target transaction from the block chain according to the transaction hash value;
and extracting part of contents except the transaction variable from the acquired transaction information to obtain the transaction information with the transaction variable isolated.
17. The apparatus of claim 16, wherein the transaction hash value is obtained by hashing the transaction information containing the transaction variable by a corresponding node in the blockchain after the transaction information containing the transaction variable for the target transaction is linked; alternatively, the first and second electrodes may be,
and when the transaction information of the target transaction and containing the transaction variables is linked, the transaction hash value is obtained by carrying out hash operation on the transaction information containing the transaction variables by the server.
18. The apparatus of claim 11, further comprising:
the transaction information uplink module is used for acquiring the transaction information of the target transaction and containing transaction variables; isolating the transaction variables in the acquired transaction information in an isolation witness mode to obtain transaction information with the isolated transaction variables; storing the obtained transaction information in the blockchain.
19. The apparatus of claim 18, wherein the transaction variables include signature information and additional information for the target transaction; the transaction information uplink module is further configured to:
acquiring transaction input state information and transaction output state information from the acquired transaction information;
isolating signature information in the transaction input state information; and the number of the first and second groups,
and isolating additional information in the transaction output state information to obtain the transaction information with the signature information and the additional information isolated.
20. The apparatus of claim 11, further comprising:
the verification request receiving module is used for receiving a transaction information verification request sent by the terminal; the transaction information verification request carries transaction information containing transaction variables;
the hash operation module is further used for performing hash operation on the transaction information in the transaction information verification request to obtain a transaction hash value;
and the transaction information verification module is used for determining that the transaction information in the transaction information verification request is real transaction information when the matched transaction information is acquired from the block chain according to the transaction hash value.
21. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 10.
22. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 10.
CN201911242654.4A 2019-09-20 2019-09-20 Information searching method and device in block chain, storage medium and computer equipment Active CN110990410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911242654.4A CN110990410B (en) 2019-09-20 2019-09-20 Information searching method and device in block chain, storage medium and computer equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911242654.4A CN110990410B (en) 2019-09-20 2019-09-20 Information searching method and device in block chain, storage medium and computer equipment
CN201910892829.XA CN110597822B (en) 2019-09-20 2019-09-20 Information searching method, device, storage medium and computer equipment in blockchain

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910892829.XA Division CN110597822B (en) 2019-09-20 2019-09-20 Information searching method, device, storage medium and computer equipment in blockchain

Publications (2)

Publication Number Publication Date
CN110990410A CN110990410A (en) 2020-04-10
CN110990410B true CN110990410B (en) 2021-09-17

Family

ID=68861807

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201911242654.4A Active CN110990410B (en) 2019-09-20 2019-09-20 Information searching method and device in block chain, storage medium and computer equipment
CN201910892829.XA Active CN110597822B (en) 2019-09-20 2019-09-20 Information searching method, device, storage medium and computer equipment in blockchain

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910892829.XA Active CN110597822B (en) 2019-09-20 2019-09-20 Information searching method, device, storage medium and computer equipment in blockchain

Country Status (1)

Country Link
CN (2) CN110990410B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111242649A (en) * 2020-01-20 2020-06-05 嵩链(上海)科技有限公司 Enterprise qualification detection method and device based on block chain and storage medium
CN111639080B (en) * 2020-06-01 2021-07-27 腾讯科技(深圳)有限公司 Data processing method and device, node equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815728A (en) * 2017-01-03 2017-06-09 北京供销科技有限公司 A kind of big data based on block chain technology really weighs method and system
CN108846659A (en) * 2018-06-13 2018-11-20 深圳前海微众银行股份有限公司 Transfer account method, device and storage medium based on block chain
CN109377226A (en) * 2018-10-30 2019-02-22 深圳市元征科技股份有限公司 A kind of Transaction Information management method and relevant device
CN109472678A (en) * 2018-09-29 2019-03-15 刘建平 A kind of accounting account book management method, electronic device and readable storage medium storing program for executing based on block chain
CN109691064A (en) * 2018-08-23 2019-04-26 区链通网络有限公司 Can anti-quantum block chain Accounting system expansion method, device and system
WO2019101230A2 (en) * 2019-03-04 2019-05-31 Alibaba Group Holding Limited Constructing blockchain world state merkle patricia trie subtree

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10715331B2 (en) * 2016-12-28 2020-07-14 MasterCard International Incorported Method and system for providing validated, auditable, and immutable inputs to a smart contract
US10771449B2 (en) * 2017-12-04 2020-09-08 Mastercard International Incorporated Method and system for trustworthiness using digital certificates
CN110032664A (en) * 2019-03-07 2019-07-19 上海七印信息科技有限公司 A method of quickly establishing the full node address index of bit coin block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815728A (en) * 2017-01-03 2017-06-09 北京供销科技有限公司 A kind of big data based on block chain technology really weighs method and system
CN108846659A (en) * 2018-06-13 2018-11-20 深圳前海微众银行股份有限公司 Transfer account method, device and storage medium based on block chain
CN109691064A (en) * 2018-08-23 2019-04-26 区链通网络有限公司 Can anti-quantum block chain Accounting system expansion method, device and system
CN109472678A (en) * 2018-09-29 2019-03-15 刘建平 A kind of accounting account book management method, electronic device and readable storage medium storing program for executing based on block chain
CN109377226A (en) * 2018-10-30 2019-02-22 深圳市元征科技股份有限公司 A kind of Transaction Information management method and relevant device
WO2019101230A2 (en) * 2019-03-04 2019-05-31 Alibaba Group Holding Limited Constructing blockchain world state merkle patricia trie subtree

Also Published As

Publication number Publication date
CN110597822A (en) 2019-12-20
CN110597822B (en) 2023-10-27
CN110990410A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN111628868B (en) Digital signature generation method and device, computer equipment and storage medium
WO2020048241A1 (en) Blockchain cross-chain authentication method and system, and server and readable storage medium
CN107342867B (en) Signature verification method and device
CN110597837B (en) Service data processing method, device, storage medium and computer equipment
CN108985364B (en) Verification method and device for stamped file, computer equipment and storage medium
CN110990410B (en) Information searching method and device in block chain, storage medium and computer equipment
US11863680B2 (en) Linking blockchain records to identify certification, track pedigree and identify obsolete digital content
CN111428269B (en) Data access method, device and terminal equipment
CN110427424A (en) Business datum checking method, device, computer equipment and storage medium
CN110597818A (en) Block chain based volume query method, device, equipment and storage medium
CN108390894A (en) A kind of personal information based on block chain really weighs method and block chain client
CN110826091B (en) File signature method and device, electronic equipment and readable storage medium
CN112311538A (en) Identity authentication method, device, storage medium and equipment
CN108897728B (en) Short message splicing processing method and device, computer equipment and storage medium
CN111339551B (en) Data verification method and related device and equipment
CN113452526A (en) Electronic document storage and verification method and corresponding device
CN111124421A (en) Abnormal contract data detection method and device for intelligent contracts of block chains
CN110569240B (en) Data storage method and device, computer equipment and storage medium
CN111817859A (en) Data sharing method, device, equipment and storage medium based on zero knowledge proof
CN113395281B (en) Verification method and device capable of verifying statement and electronic equipment
CN111193606B (en) Equipment configuration parameter comparison method and device, storage medium and computer equipment
CN113051622B (en) Index construction method, device, equipment and storage medium
CN115514492A (en) BIOS firmware verification method, device, server, storage medium and program product
CN111147477B (en) Verification method and device based on block chain network
CN114239004A (en) Electronic signature generation method and device, computer equipment and storage medium

Legal Events

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

Ref country code: HK

Ref legal event code: DE

Ref document number: 40018619

Country of ref document: HK

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