CN110597820B - Information processing method, device, storage medium and equipment based on block chain - Google Patents

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

Info

Publication number
CN110597820B
CN110597820B CN201910888454.XA CN201910888454A CN110597820B CN 110597820 B CN110597820 B CN 110597820B CN 201910888454 A CN201910888454 A CN 201910888454A CN 110597820 B CN110597820 B CN 110597820B
Authority
CN
China
Prior art keywords
information
blockchain
block
characteristic value
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.)
Active
Application number
CN201910888454.XA
Other languages
Chinese (zh)
Other versions
CN110597820A (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 CN201910888454.XA priority Critical patent/CN110597820B/en
Publication of CN110597820A publication Critical patent/CN110597820A/en
Application granted granted Critical
Publication of CN110597820B publication Critical patent/CN110597820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a block chain-based information processing method, a block chain-based information processing device, a storage medium and a block chain-based information processing device, wherein the method comprises the following steps: acquiring information to be processed; storing the information to be processed into a target block of the first block chain, and obtaining a target block characteristic value of the target block; generating a first information storage request based on the target block characteristic value, and sending the first information storage request to a node of a second block chain; the first information storage request is to cause a node of the second blockchain to store the target blockfeature value into the second blockchain. According to the information processing method based on the block chain, information is stored in a block of a first block chain, and a characteristic value of the block is stored in a block of a second block chain; whether the information stored in the first block chain is tampered or not can be verified through the block characteristic value stored in the second block chain, and the difficulty of tampering with the information stored in the block chain is improved, so that the public confidence of the information is improved.

Description

Information processing method, device, storage medium and equipment based on block chain
Technical Field
The present application relates to the field of computer technologies, and in particular, to a blockchain-based information processing method, a blockchain-based information processing device, a computer readable storage medium, and a computer device.
Background
The blockchain is a serial transaction record which is connected in series by means of cryptography and ensures non-falsifiability and non-falsifiability, and based on a formula algorithm and an encryption algorithm, the effective transaction record of the distributed storage characteristic enables the distributed account book node to be connected in series, and the capability of permanent checking is provided.
The blockchain is provided with a plurality of different nodes, and when the nodes are all owned by an enterprise or a unit, data is stored in the blockchain, so that the problems that the public confidence is insufficient and self-verification is impossible exist, and the authenticity of the data stored in the blockchain is difficult to verify.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a blockchain-based information processing method, apparatus, storage medium and device in order to solve the above-mentioned technical problems.
A blockchain-based information processing method, comprising:
acquiring information to be processed;
storing the information to be processed into a target block of the first block chain, and obtaining a target block characteristic value of the target block;
Generating a first information storage request based on the target block characteristic value, and sending the first information storage request to a node of a second block chain; the first information storage request is for a node of the second blockchain to store a characteristic value of the target block into the second blockchain.
An information processing apparatus based on a blockchain, the apparatus comprising:
the information acquisition module is used for acquiring information to be processed;
the storage module is used for storing the information to be processed into a target block of the first block chain and obtaining a target block characteristic value of the target block;
the request sending module is used for generating a first information storage request based on the target block characteristic value and sending the first information storage request to a node of a second block chain; the first information storage request is for a node of the second blockchain to store a characteristic value of the target block into the second blockchain.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the blockchain-based information processing method described above.
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 blockchain-based information processing method described above.
The information processing method, the information processing device, the storage medium and the information processing equipment based on the block chain are used for storing the received information to be processed into the block of the first block chain, then the block characteristic value of the block is sent to the node of the second block chain, and the node of the second block chain is used for storing the block characteristic value of the information to be processed into the second block chain; by the method, whether the information stored in the first blockchain is tampered or not can be verified through the block characteristic value stored in the second blockchain, and the difficulty of tampering with the information stored in the blockchain is improved, so that the public confidence of the information is improved.
Drawings
FIG. 1 is an application environment diagram of a blockchain-based information processing method in one embodiment;
FIG. 2 is a flow diagram of a method of blockchain-based information processing in one embodiment;
FIG. 3 is a flow diagram of blockchain-based information processing in another embodiment;
FIG. 4 is a flowchart of a block chain based information processing method according to another embodiment;
FIG. 5 is a diagram of storing information into a blockchain in one embodiment;
FIG. 6 is a block diagram of an architecture of a blockchain-based information processing device in one embodiment;
FIG. 7 is a block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is an application environment diagram of a blockchain-based information processing method in one embodiment. Referring to fig. 1, the blockchain-based information processing method is applied to a blockchain-based information processing system. The blockchain-based information processing system involves two blockchains, including: one or more first blockchain nodes 110 of a first blockchain, one or more second blockchain nodes 120 of a second blockchain, the first blockchain nodes 110 and the second blockchain nodes 120 being connected by a network. When the first block chain node receives information to be stored to be processed, the information to be processed is stored into a block of the first block chain, the block is marked as a target block, and a block characteristic value of the target block is obtained and sent to the second block chain node for storage. In other embodiments, the blockchain-based information processing system described above also relates to the terminal 130, in which embodiments the node 110 of the first blockchain obtains the information to be processed from the terminal 130.
Wherein, the first blockchain node 110 may be a terminal or a server responsible for maintaining the operation of the first blockchain, and the second blockchain node 120 may be a terminal or a server responsible for maintaining the operation of the second blockchain; the terminal 130 may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
As shown in FIG. 2, in one embodiment, a blockchain-based information processing method is provided. The present embodiment is mainly illustrated by the application of the method to the first blockchain node 110 in fig. 1. Referring to fig. 2, the blockchain-based information processing method specifically includes steps S210 to S230.
Step S210, obtaining information to be processed.
The information to be processed is information to be stored in the block chain; the information to be processed may be any information that the user wishes to store through the blockchain, such as transaction information, electronic evidence information, creative work, and so forth. In a specific embodiment, when a user needs to store information into a blockchain, the information to be processed is written into a specific field through an information storage interface of a first blockchain provided by a first blockchain node, namely, a process of acquiring the information to be processed corresponding to the first blockchain node.
Step S220, the information to be processed is stored in the target block of the first block chain, and the characteristic value of the target block is obtained.
When the node of the first blockchain acquires the information to be processed, the information to be processed is stored in a block of the first blockchain, specifically, after the information to be processed is verified, the information to be processed is written into a block body of the block in the first blockchain; in this embodiment, the block is designated as the target block; it will be appreciated that the target block should be the most recent block in the first blockchain at the current time.
After the information to be processed is written into the target block of the first blockchain, the first blockchain generates a unique identifier of the target block, and in this embodiment, the unique identifier of the target blockchain generated by the first blockchain is recorded as a target block characteristic value of the target block. In one embodiment, the target block characteristic value may be a block hash value of the target block; further, the chunk hash value of the target chunk may be determined in any manner that may be implemented. For example, a block hash value of the target block may be obtained by performing a hash operation on the target block by calling a hash function. The hash function is a function of compressing an input message of an arbitrary length to a message digest of a certain fixed length; and inputting the message needing to be subjected to hash operation into a hash function to obtain a message digest with a fixed length. Common hash algorithms include MD4 (Message Digest4 ), MD5 (Message Digest5, message Digest 5), SHA (Secure Hash Standard, secure hash standard algorithm), and the like.
Step S230, generating a first information storage request based on the characteristic value of the target block, and sending the first information storage request to the node of the second block chain; the first information storage request is for a node of the second blockchain to store the characteristic value of the target block in the second blockchain.
Wherein, a node of a blockchain may refer to each client or server sharing data in the blockchain. Each node may receive input information while operating normally and maintain data shared in the blockchain based on the received input information. In order to ensure the information intercommunication of all nodes in the block chain, information connection can exist between every two nodes in the block chain, and the nodes can transmit information through the information connection. For example, when any node in the blockchain receives input information, other nodes in the blockchain acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the same blockchain are consistent.
For each node in the same blockchain, the node identification corresponding to the node is provided, and each node in the blockchain can store the node identifications of other nodes in the blockchain so as to broadcast the generated blocks to other nodes in the data sharing system according to the node identifications of the other nodes. Each node can maintain a node identification list, and the node names and the node identifications are correspondingly stored in the node identification list. The node identifier may be an IP (Internet Protocol, protocol interconnecting between networks) address, or any other information that can be used to identify the node.
In this embodiment, the node of the first blockchain may be any node in the first blockchain, and any node of the first blockchain may store information in the first blockchain; similarly, the node of the second blockchain may be any node in the second blockchain. In one embodiment, a node of one first blockchain may only remain in communication with nodes of one or more second blockchains; in another embodiment, the nodes of one first blockchain are in communication with the nodes of all second blockchains.
In the embodiment of the application, after information is stored in the first blockchain, the block characteristic value corresponding to the block (target block) stored in the information in the first blockchain is stored in the second blockchain, so that in the embodiment, after the node of the first blockchain acquires the block characteristic value of the target block generated by the first blockchain, an information storage request is generated according to the target block characteristic value, and is recorded as the first information storage request in the embodiment, and the first information storage request is sent to the node of the second blockchain to request the node of the second blockchain to store the target block characteristic value in the second blockchain. The generated first information storage request carries the characteristic value of the target block.
According to the information processing method based on the block chain, the received information to be processed is stored in the block of the first block chain, the characteristic value of the block is sent to the node of the second block chain, and the node of the second block chain stores the characteristic value of the block stored with the information to be processed in the second block chain; according to the method, whether the information stored in the first block chain is tampered or not can be verified through the block characteristic values stored in the second block chain, the difficulty of tampering the information is improved, and therefore the public confidence of the information is improved.
In one embodiment, the blockchain-based information processing method further includes the steps of:
receiving a second information storage request sent by a node of a second block chain; the second information storage request carries the block characteristic value of the block in the second block chain; and storing the block characteristic values of the blocks in the second block chain into the first block chain according to the second information storage request.
The second blockchain is used for storing the block characteristic value of the target block after the information to be processed is stored in the target block of the first blockchain in the above embodiment. In this embodiment, the node of the first blockchain receives an information storage request (second information storage request) sent by the node of the second blockchain, and stores the block characteristic value in the second blockchain stored in the second information storage request into the first blockchain. That is, in this embodiment, not only the block characteristic value generated in the first block chain is stored in the second block chain, but also the block characteristic value of the block generated in the second block chain is stored in the first block chain, so that the two block chains are bound to each other, if the information stored in the target block in the first block chain is tampered, the block characteristic value of the target block will also change, at this time, the block characteristic value corresponding to the target block cannot be found in the second block chain, so that the difficulty of tampering is increased for the information stored in the first block chain, and similarly, the block characteristic value of the block generated in the second block chain is also stored in the first block chain, so that the difficulty of tampering of the information stored in the second block chain can also be increased.
In the above information processing method based on the blockchain, the first blockchain and the second blockchain may be respectively used as different service directions to provide services for different users, for example, two blockchains are respectively a blockchain a owned by the enterprise 1 and a blockchain B owned by the enterprise 2, in one embodiment, the blockchain a may be the first blockchain in the embodiment of the present application, and the blockchain B is the second blockchain; in another embodiment, the first blockchain may also be blockchain B and the second blockchain a. That is, in the present application, the first blockchain and the second blockchain are bound, the block characteristic value corresponding to the target block where the information stored in the first blockchain is located is stored in the second blockchain, and the block characteristic value of the block where the information stored in the second blockchain is located is stored in the first blockchain, so that the difficulty of tampering the stored information in the first blockchain and the second blockchain is increased, and the public confidence of the information stored in the first blockchain and the second blockchain is improved.
Further, in one embodiment, when the first blockchain and the second blockchain receive the blockfeature value sent by the opposite node, the blockfeature value in the opposite blockchain is actually used as information to be stored in the blockchain, and the information is stored in a block in each blockchain separately. In one embodiment, a node of a first blockchain determines a store operation based on the source of information to be stored (either the information to be processed or a blocky characteristic value in a second blockchain) upon receipt of the information. For example, when the node of the first blockchain obtains the information to be processed, determining that the source of the information to be processed is the information directly uploaded by the user, or determining that the information to be processed is the information which is not sent by the node of the second blockchain, after storing the information to be processed into the target block of the first blockchain, the method further comprises the steps of obtaining the target block characteristic value of the target block, generating an information storage request according to the target block characteristic value, and sending the request to the node of the second blockchain; when the node of the first blockchain receives the information to be stored (the block characteristic value of the second blockchain) and determines that the source of the information to be stored is the node of the second blockchain, the block characteristic value of the second blockchain is stored in the latest block of the first blockchain.
In other embodiments, when the node of the first blockchain receives the new information to be stored, the node may also determine the save operation to be executed according to the information content to be stored, that is, when the first blockchain receives the information to be processed and receives the block feature value in the second blockchain, the node executes the different save operation according to the information content; for example, when the node of the first blockchain generates a first information storage request according to the target blockfeature value, the first information storage request carries a blockfeature value identifier, so that when the second blockchain link point receives the information storage request carrying the blockfeature value identifier, only the blockfeature value carried in the second blockchain is stored in the block of the second blockchain; similarly, when the first blockchain node receives the identifier of the blockfeature value carried in the second information storage request, the first blockchain node only stores the blockfeature value in the second blockchain carried in the second information storage request into the first blockchain. It can be appreciated that in this embodiment, when the first blockchain node receives the information to be processed that does not carry the identifier of the blockfeature value, the first blockchain node stores the information to be processed, and sends the blockfeature value of the target block storing the information to be processed to the second blockchain for storing.
By the information processing method based on the blockchain, in the embodiment that each new block is generated in the first blockchain, the block characteristic value of the new block is stored in the second blockchain, the problem that after the first blockchain stores the block characteristic value of the second blockchain, the characteristic value corresponding to the block storing the block characteristic value of the second blockchain is stored in the second blockchain again can be avoided.
Alternatively, in another embodiment, generating the first information storage request based on the target block characteristic value includes: and acquiring target block characteristic values of each target block generated between the current moment and the last moment every preset time, and generating a first information storage request based on the characteristic values of each target block.
In this embodiment, after storing information (information to be processed or a second blockchain node) in the first blockchain, the node of the first blockchain stores the block characteristic value of the new block in the second blockchain, but stores the block characteristic value of the new block generated in the first blockchain in the second blockchain at intervals. The method specifically comprises the following steps: and acquiring target block characteristic values of each target block generated between the current moment and the last moment in the first block chain at intervals of preset time, and initiating a first information storage request to the second block chain according to each target block characteristic value. In one embodiment, a node of the second blockchain receives a first information storage request, detects that the node carries a plurality of target block characteristic values, and stores the plurality of target block characteristic values into one block in the second blockchain. Further, storing the plurality of target block feature values into one block may be achieved by any of the methods.
In one embodiment, the above-mentioned information processing method based on a blockchain further includes the steps of, after generating the first information storage request based on the characteristic value of each target block: setting a stored identifier for the target block and a timer for a predetermined time; when the timer is detected to be overtime, starting to traverse forward from the first target block generated at the current moment until the first second target block with the stored identifier is found; at this time, block characteristic values of all blocks between a target block (first target block) generated at the current time and a target block (second target block) at the previous time are acquired, and a first information storage request is generated according to the block characteristic values and sent to a node of the second blockchain. It will be appreciated that the predetermined time may be set according to the actual situation. The last time represents the time when the first information storage request is generated based on the characteristic value of the target block and the first information storage request is initiated to the node of the second block chain.
It may be understood that, in the nodes of the second blockchain, the block characteristic values of the new blocks generated in the second blockchain may be packaged and stored in the first blockchain at intervals of a predetermined time, that is, the nodes of the first blockchain receive the second information storage request sent by the nodes of the second blockchain at intervals of a predetermined time, and store the block characteristic values in each second blockchain carried in the second information storage request in the first blockchain. In one embodiment, the predetermined times set in the first and second blockchains may or may not be the same.
In another embodiment, generating a first information storage request based on each target block characteristic value includes: integrating the characteristic values of all target blocks into a characteristic value file; generating a first information storage request based on the eigenvalue file; the first information storage request is for a node of the second blockchain to store a characteristic value file in the second blockchain.
In this embodiment, the block characteristic values of the new target blocks generated in the first block chain are stored in the second block chain at intervals, and in this embodiment, after the node of the first block chain obtains the target block characteristic values of each target block generated between the current time and the previous time, the node integrates the target block characteristic values into a characteristic value file, and then generates a first information storage request according to the characteristic value file and sends the first information storage request to the node of the second block chain, so that the node of the second block chain stores the characteristic value file in the second block chain.
In the information processing method based on the blockchain, the block characteristic value of the target block in the first blockchain is stored in the second blockchain at intervals of preset time, so that the problem of waste of block storage resources caused by the fact that one block is only used for storing the block characteristic value in the opposite blockchain can be avoided; meanwhile, in the embodiment, the blockchain node only needs to execute the operation of sending the blockcharacteristic value to the second blockchain storage once in the preset time, and only receives the blockcharacteristic value in the opposite blockchain for storage in the preset time, so that the workload of the blockchain node can be reduced to a certain extent.
In one embodiment, the above-mentioned information processing method based on blockchain, as shown in fig. 3, further includes steps S310 to S350.
Step S310, receiving an information verification request; the information verification request carries key information of the information to be verified.
After storing the information in the blockchain, the blockchain may provide a function of checking the information, which in this embodiment is a process of verifying the information stored in the first blockchain.
The user may send an information verification request carrying information to be verified to a node of the first blockchain to request verification of authenticity of the information to be verified. The key information of the information to be verified can be a key word of the information to be verified, or can represent a unique identifier of the information to be verified, and it can be understood that a certain corresponding relation exists between the key information of the information to be verified and the information to be verified, if the information to be verified is already stored in the first blockchain, the corresponding stored information can be found in the first blockchain according to the key information of the information to be verified.
Step S320, searching whether stored information corresponding to key information of the information to be verified exists in the first blockchain, and obtaining a first information searching result.
The node of the first blockchain searches in the first blockchain according to the key information carried in the information verification request, and obtains an information searching result according to whether the corresponding information is searched, and in this embodiment, the result of searching information in the first blockchain is recorded as a first information searching result. As can be appreciated, when the stored information corresponding to the key information of the information to be verified is found in the first blockchain, a first information search result is obtained, wherein the search is successful; and when the stored information corresponding to the key information of the information to be verified is not searched in the first blockchain, obtaining a first information searching result of searching failure. Further, in one embodiment, when the first information search result of the search failure is obtained, a response of the verification failure is returned. The stored information represents information found in the first blockchain based on key information of the information to be verified.
Step S330, when the first information searching result is that searching is successful, a first eigenvalue inquiry request is generated according to the block eigenvalue corresponding to the stored information.
The node of the first blockchain obtains a first information searching result of successful searching, which means that the stored information corresponding to the key information of the information to be verified is searched in the first blockchain, but whether the stored information is tampered or not can not be determined, so in the embodiment, a first characteristic value inquiry request is generated according to the block characteristic value of the block where the searched stored information is located, and whether the stored block characteristic value is corresponding to the searched second blockchain or not is searched. In this embodiment, a eigenvalue query request sent by a node of a first blockchain to a second blockchain is denoted as a first eigenvalue query request.
Step S340, a first eigenvalue query request is sent to a node of a second blockchain; the first eigenvalue inquiry request is used for enabling the node of the block chain to search whether the block eigenvalue corresponding to the stored information exists in the second block chain or not, and obtaining a first eigenvalue searching result.
And sending the first characteristic value query request to a node of the second blockchain, so that the node of the second blockchain searches whether the block characteristic value corresponding to the storage information exists in the second blockchain according to the request. The node of the second block chain obtains a first characteristic value searching result according to whether the corresponding block characteristic value is searched; it can be understood that when the block characteristic value corresponding to the stored information is found in the second blockchain, a first characteristic value finding result of successful finding is obtained, and when the block characteristic value corresponding to the stored information is not found in the second blockchain, a first characteristic value finding result of failed finding is obtained.
Step S350, when the first characteristic value searching result returned by the node receiving the second blockchain is searching success, a verification success response is returned.
When the node of the second blockchain returns a second characteristic value searching result of successful searching, the successful verification of the key information in the first blockchain and the second blockchain according to the information to be verified is judged, and therefore a response of successful verification is returned to the equipment sending the information verification request. It will be appreciated that when the second eigenvalue search result returned by the node that receives the second blockchain is a search failure, it indicates that verification fails, and a response of verification failure is returned to the device that sent the information verification request.
In the above embodiment, if the information to be verified has a storage record in the first blockchain, the corresponding storage information may be found in the first blockchain through the key information of the information to be verified; meanwhile, if the stored information is not tampered in the first block chain, the block characteristic value corresponding to the stored information can be found in the second block chain; by the method, whether the information to be verified is stored in the first block chain or not and whether the information to be verified is tampered or not can be verified. Similarly, information stored in the second blockchain may also be verified in the first blockchain as to whether it has been tampered with.
In one embodiment, as shown in fig. 4, the above-mentioned blockchain-based information processing method further includes steps S410 to S430.
In step S410, a second eigenvalue query request sent by the node of the second blockchain when the second information search result is that the search is successful is received.
Wherein the second eigenvalue query request carries block eigenvalues of blocks in the second blockchain; and the second information searching result is a result of searching whether information corresponding to the second information verification request exists in the second blockchain when the node of the second blockchain receives the second information verification request.
In this embodiment, the same as searching information in the first blockchain, because the block characteristic value corresponding to the information stored in the second blockchain is stored in the first blockchain, when the authenticity of the stored information is expected to be verified in the second blockchain, the node of the second blockchain receives the second information verification request, and the node of the second blockchain searches whether the corresponding stored information exists in the second blockchain according to the second information verification request, so as to obtain a second information searching result; and when the second information searching result is that searching is successful, the node of the second blockchain sends a second characteristic value inquiry request to the node of the first blockchain.
Step S420, searching whether the block characteristic value of the block in the second block chain exists in the first block chain according to the second information storage request, and obtaining a second characteristic value searching result.
When a node of the first block chain receives a second characteristic value query request sent by the node of the first block chain, searching whether a block characteristic value of a block in the second block chain carried by the second information query request exists in the first block chain or not, and obtaining a second characteristic value search result; as can be appreciated, when the block feature value of the block in the second blockchain is found in the first blockchain, a second feature value search result is obtained, wherein the search is successful; and when the block characteristic values of the blocks in the second block chain are not found in the first block chain, obtaining a second characteristic value searching result of searching failure.
Step S430, returning the second eigenvalue lookup result to the node of the second blockchain.
And returning the obtained second characteristic value searching result to the node of the second block chain by the node of the first block chain, so that the node of the second block chain determines a verification response corresponding to the second information inquiry request according to the second characteristic value searching result.
Further, in one embodiment, after returning the verification success response, the blockchain-based information processing method further includes: when an information acquisition request for acquiring information to be verified is received, acquiring storage information corresponding to key information of the information to be verified; and returning the storage information corresponding to the key information of the information to be verified.
When a response of successful verification is returned to the terminal that initiates the first information verification request, an information acquisition request initiated by the terminal may also be received, where in this embodiment, the information acquisition request is used to retrieve storage information (corresponding to key information of the information to be verified) from the first blockchain for viewing by the user. If the information stored in the blockchain has privacy, it is usually selected to cooperate with a public agency (such as a judicial authentication center, a worker, etc.), and the user can only check or verify the information in the first blockchain (or the second blockchain) through the public agency.
In one embodiment, taking information stored in the blockchain as an example, fig. 5 is a schematic diagram of storing information in the blockchain in this embodiment, the evidence a (i.e. the information to be processed) is sent to the first blockchain for storing, and the block characteristic value of the target block in which the evidence a is stored is sent to the second blockchain for storing. Similarly, when evidence B (i.e., information to be processed) is stored in the second blockchain, the blockfeatures of the target blockchain in which evidence B is stored are sent to the first blockchain for storage. Evidence a may be any information that is desired to ensure authenticity, such as a bank's bond, a creative work, etc.
According to the information processing method based on the blockchain, by adopting the mode of mutually binding and mutually authenticating a plurality of blockchains, once the stored data on one blockchain is modified, the characteristic value of the block storing the stored data is changed, so that the difficulty of tampering the stored information in the blockchain is further increased, and the accuracy and the public confidence of the information stored in the blockchain are improved; the problem that stored information lacks public confidence caused by the fact that any party falsifies the stored information in the blockchain can be avoided.
FIGS. 2-4 respectively correspond to a flow diagram of a blockchain-based information processing method in an embodiment. It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
A blockchain-based information processing device, as shown in fig. 6, the device comprising: an information acquisition module 610, a storage module 620, and an information storage request transmission module. Wherein:
the information obtaining module 610 is configured to obtain information to be processed.
The storage module 620 is configured to store information to be processed into a target block of the first blockchain, and obtain a target block characteristic value of the target block.
An information storage request sending module 630, configured to generate a first information storage request based on the target block characteristic value, and send the first information storage request to a node of the second blockchain; the first information storage request is for a node of the second blockchain to store the characteristic value of the target block in the second blockchain.
According to the information processing device based on the block chain, the received information to be processed is stored in the block of the first block chain, the characteristic value of the block is sent to the node of the second block chain, and the node of the second block chain stores the characteristic value of the block stored with the information to be processed in the second block chain; by the method, whether the information stored in the first blockchain is tampered or not can be verified through the block characteristic value stored in the second blockchain, and the difficulty of tampering with the information stored in the blockchain is improved, so that the public confidence of the information is improved.
In one embodiment, the apparatus further comprises:
the information storage request receiving module is used for receiving a second information storage request sent by a node of a second blockchain; the second information storage request carries the block characteristic value of the block in the second block chain;
the storage module is further configured to store the block characteristic value of the block in the second blockchain into the first blockchain according to the second information storage request.
In one embodiment, the information storage request sending module is configured to obtain, at predetermined intervals, a target block characteristic value of each target block generated between the current time and the previous time, and generate the first information storage request based on each target block characteristic value.
In one embodiment, the request sending module is configured to integrate the feature values of each target block into a feature value file; generating a first information storage request based on the eigenvalue file; the first information storage request is for a node of the second blockchain to store a characteristic value file in the second blockchain.
In one embodiment, the apparatus further comprises:
the information verification request module is used for receiving an information verification request; the information verification request carries key information of information to be verified;
the first searching module is used for searching whether stored information corresponding to key information of the information to be verified exists in the first blockchain or not, and obtaining a first information searching result;
the characteristic value inquiry request module is used for generating a first characteristic value inquiry request according to the block characteristic value corresponding to the stored information when the first information searching result is that searching is successful; sending a first eigenvalue query request to a node of a second blockchain; the first characteristic value inquiry request is used for enabling the node of the block chain to search whether a block characteristic value corresponding to the stored information exists in the second block chain or not, and obtaining a first characteristic value searching result;
And the verification response returning module is used for returning a verification success response when the first characteristic value searching result returned by the node receiving the second blockchain is successful searching.
In one embodiment, the apparatus further comprises:
the characteristic value inquiry request receiving module is used for receiving a second characteristic value inquiry request sent by a node of the second blockchain when the second information searching result is successful searching; the second eigenvalue query request carries the block eigenvalues of the blocks in the second block chain;
the second searching module is used for searching whether the block characteristic value of the block in the second block chain exists in the first block chain according to the second information storage request to obtain a second characteristic value searching result;
and the searching result returning module is used for returning the second characteristic value searching result to the node of the second block chain.
In one embodiment, the apparatus further comprises:
the information acquisition request receiving module is used for acquiring storage information corresponding to key information of the information to be verified when an information acquisition request for acquiring the information to be verified is received;
and the storage information return module is used for returning the storage information corresponding to the key information of the information to be verified.
The specific definition of the above-described blockchain-based information processing device may be referred to as the definition of the blockchain-based information processing method hereinabove, and will not be described in detail herein.
FIG. 7 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be the first blockchain node 110 in fig. 1. As shown in fig. 7, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile 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 that, when executed by a processor, causes the processor to implement a blockchain-based information processing method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform a blockchain-based information processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the blockchain-based information processing apparatus provided by the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 7. The memory of the computer device may store therein various program modules constituting the blockchain-based information processing apparatus, such as an information acquisition module, a storage module, and an information storage request transmission module shown in fig. 6. The computer program constituted by the respective program modules causes the processor to execute the steps in the blockchain-based information processing method of the respective embodiments of the present application described in the present specification.
For example, the computer apparatus shown in fig. 7 may acquire information to be processed through an information acquisition module in the blockchain-based information processing apparatus shown in fig. 6. The computer equipment can store the information to be processed into the target block of the first block chain through the storage module, and obtain the characteristic value of the target block. The computer device may generate, by the information storage request sending module, a first information storage request based on the characteristic value of the target block, and send the first information storage request to a node of the second blockchain.
In one embodiment, a computer device is provided that includes 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 blockchain-based information processing method described above. The steps of the blockchain-based information processing method herein may be steps in the blockchain-based information processing method of the various embodiments described above.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of the blockchain-based information processing method described above. The steps of the blockchain-based information processing method herein may be steps in the blockchain-based information processing method of the various embodiments described above.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (12)

1. A blockchain-based information processing method, comprising:
acquiring information to be processed;
storing the information to be processed into a target block of a first block chain, and obtaining a target block characteristic value of the target block;
generating a first information storage request based on the target block characteristic value, and sending the first information storage request to a node of a second block chain; the first information storage request is used for enabling a node of the second blockchain to store the target block characteristic value into the second blockchain;
Receiving a second information storage request sent by a node of the second blockchain; the second information storage request carries block characteristic values of blocks in the second block chain;
storing the block characteristic values of the blocks in the second block chain into the first block chain according to the second information storage request;
receiving a second characteristic value query request sent by a node of the second blockchain when the second information search result is that the search is successful; the second eigenvalue query request carries block eigenvalues of blocks in the second block chain; the second information searching result is a result of searching whether information corresponding to the second information verification request exists in the second blockchain when a node of the second blockchain receives the second information verification request;
searching whether a block characteristic value of a block in the second block chain exists in the first block chain according to the second information storage request, and obtaining a second characteristic value searching result;
and returning the second eigenvalue search result to the node of the second block chain.
2. The method of claim 1, wherein generating a first information storage request based on the target block characteristic value comprises:
And acquiring target block characteristic values of target blocks generated on the first block chain between the current moment and the last moment every preset time, and generating a first information storage request based on the target block characteristic values.
3. The method of claim 2, wherein generating a first information storage request based on each of the target block characteristic values comprises:
integrating the characteristic values of the target blocks into a characteristic value file;
generating the first information storage request based on the characteristic value file; the first information storage request is for a node of the second blockchain to store the characteristic value file in the second blockchain.
4. The method as recited in claim 1, further comprising:
receiving a first information verification request; the first information verification request carries key information of information to be verified;
searching whether stored information corresponding to key information of the information to be verified exists in the first blockchain or not, and obtaining a first information searching result;
when the first information searching result is that searching is successful, generating a first characteristic value inquiry request according to the block characteristic value corresponding to the stored information;
Sending the first eigenvalue query request to a node of the second blockchain; the first eigenvalue query request is used for enabling the node of the second block chain to search whether the block eigenvalue corresponding to the stored information exists in the second block chain or not, and a first eigenvalue search result is obtained;
and when the first characteristic value searching result returned by the node of the second blockchain is successful searching, returning a verification success response.
5. The method of claim 4, further comprising, after returning the authentication success response:
when an information acquisition request carrying key information of the information to be verified is received, acquiring storage information corresponding to the key information of the information to be verified;
and returning the storage information corresponding to the key information of the information to be verified.
6. A blockchain-based information processing device, the device comprising:
the information acquisition module is used for acquiring information to be processed;
the storage module is used for storing the information to be processed into a target block of the first block chain and obtaining a target characteristic value of the target block;
an information storage request sending module, configured to generate a first information storage request based on the target block characteristic value, and send the first information storage request to a node of a second blockchain; the first information storage request is used for enabling a node of the second blockchain to store the characteristic value of the target block into the second blockchain;
The information storage request receiving module is used for receiving a second information storage request sent by a node of the second block chain; the second information storage request carries block characteristic values of blocks in the second block chain;
the storage module is further configured to store a block characteristic value of a block in the second blockchain into the first blockchain according to the second information storage request;
the characteristic value inquiry request receiving module is used for receiving a second characteristic value inquiry request sent by the node of the second block chain when the second information searching result is successful searching; the second eigenvalue query request carries block eigenvalues of blocks in the second block chain; the second information searching result is a result of searching whether information corresponding to the second information verification request exists in the second blockchain when a node of the second blockchain receives the second information verification request;
the second searching module is used for searching whether the block characteristic value of the block in the second block chain exists in the first block chain according to the second information storage request to obtain a second characteristic value searching result;
and the searching result returning module is used for returning the second characteristic value searching result to the node of the second block chain.
7. The apparatus of claim 6, wherein the information storage request transmitting module is configured to obtain target block characteristic values of each target block generated on the first blockchain between a current time and a previous time every predetermined time, and generate the first information storage request based on each of the target block characteristic values.
8. The apparatus of claim 7, wherein the information storage request sending module is configured to integrate the target block eigenvalues into an eigenvalue file; generating the first information storage request based on the characteristic value file; the first information storage request is for a node of the second blockchain to store the characteristic value file in the second blockchain.
9. The apparatus of claim 6, further comprising an information verification request module, a first lookup module, a feature value query request module, and a verification response return module;
the information verification request module is used for receiving a first information verification request; the first information verification request carries key information of information to be verified;
the first searching module is used for searching whether stored information corresponding to the key information of the information to be verified exists in the first blockchain or not, and obtaining a first information searching result;
The characteristic value inquiry request module is used for generating a first characteristic value inquiry request according to the block characteristic value corresponding to the stored information when the first information searching result is that searching is successful; sending the first eigenvalue query request to a node of the second blockchain; the first eigenvalue query request is used for enabling the node of the second block chain to search whether the block eigenvalue corresponding to the stored information exists in the second block chain or not, and a first eigenvalue search result is obtained;
and the verification response returning module is used for returning a verification success response when the first characteristic value searching result returned by the node receiving the second block chain is successful searching.
10. The apparatus of claim 9, further comprising an information acquisition request receiving module and a stored information return module;
the information acquisition request receiving module is used for acquiring storage information corresponding to the key information of the information to be verified when receiving an information acquisition request carrying the key information of the information to be verified;
the storage information returning module is used for returning the storage information corresponding to the key information of the information to be verified.
11. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 5.
12. 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 of any of claims 1 to 5.
CN201910888454.XA 2019-09-19 2019-09-19 Information processing method, device, storage medium and equipment based on block chain Active CN110597820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910888454.XA CN110597820B (en) 2019-09-19 2019-09-19 Information processing method, device, storage medium and equipment based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910888454.XA CN110597820B (en) 2019-09-19 2019-09-19 Information processing method, device, storage medium and equipment based on block chain

Publications (2)

Publication Number Publication Date
CN110597820A CN110597820A (en) 2019-12-20
CN110597820B true CN110597820B (en) 2023-10-27

Family

ID=68861446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910888454.XA Active CN110597820B (en) 2019-09-19 2019-09-19 Information processing method, device, storage medium and equipment based on block chain

Country Status (1)

Country Link
CN (1) CN110597820B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214549A (en) * 2020-10-10 2021-01-12 中育数据(广州)科技有限公司 File feature code generation method and device and electronic equipment
CN112560104B (en) * 2021-01-17 2022-07-19 金网络(北京)电子商务有限公司 Data storage method and safety information platform based on cloud computing and block chain
CN115708118A (en) * 2021-08-18 2023-02-21 华为技术有限公司 Block chain generation method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109785132A (en) * 2018-12-21 2019-05-21 众安信息技术服务有限公司 A kind of anti-fake source tracing method, device and storage medium based on block chain
US20190182028A1 (en) * 2017-12-07 2019-06-13 International Business Machines Corporation Blockchain system for pattern recognition

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190182028A1 (en) * 2017-12-07 2019-06-13 International Business Machines Corporation Blockchain system for pattern recognition
CN109785132A (en) * 2018-12-21 2019-05-21 众安信息技术服务有限公司 A kind of anti-fake source tracing method, device and storage medium based on block chain

Also Published As

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

Similar Documents

Publication Publication Date Title
KR101781583B1 (en) File management and search system based on block chain and file management and search method
CN110597820B (en) Information processing method, device, storage medium and equipment based on block chain
CN109639661B (en) Server certificate updating method, device, equipment and computer readable storage medium
CN111047324B (en) Method and apparatus for updating a set of public keys at a blockchain node
CN110597837B (en) Service data processing method, device, storage medium and computer equipment
CN108710681B (en) File acquisition method, device, equipment and storage medium
CN111563365B (en) Method and device for processing modification information of test standard worksheet and computer equipment
CN104735164A (en) Method and device for saving file information
CN111475376B (en) Method, apparatus, computer device and storage medium for processing test data
CN108234442B (en) Method, system and readable storage medium for acquiring contract
CN110955721B (en) Block link point state maintenance method and device, computer equipment and storage medium
CN111191294B (en) Single-node accounting method, system, equipment and storage medium based on block chain
CN110598452B (en) Evidence information processing method, device, storage medium and equipment based on blockchain
CN111597567B (en) Data processing method, data processing device, node equipment and storage medium
CN112860778B (en) Database management method, device, equipment and medium for desktop application program
CN111339551B (en) Data verification method and related device and equipment
CN111523142B (en) Data processing method, device, electronic equipment and medium
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CA3002735A1 (en) Secure transmission
US11716203B2 (en) Secure transmission
CN115935414A (en) Block chain based data verification method and device, electronic equipment and storage medium
CN115514470A (en) Storage method and system for community correction data security
CN110598449B (en) Data processing method and device for performing insurance function, storage medium and computer equipment
CN110490005B (en) Method, device and computer readable storage medium for processing resource transfer request
CN111782615B (en) Block chain-based large file storage method and system and computer equipment

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