CN110597820A - Block chain based information processing method and device, storage medium and equipment - Google Patents

Block chain based information processing method and device, storage medium and equipment Download PDF

Info

Publication number
CN110597820A
CN110597820A CN201910888454.XA CN201910888454A CN110597820A CN 110597820 A CN110597820 A CN 110597820A CN 201910888454 A CN201910888454 A CN 201910888454A CN 110597820 A CN110597820 A CN 110597820A
Authority
CN
China
Prior art keywords
information
block
block chain
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.)
Granted
Application number
CN201910888454.XA
Other languages
Chinese (zh)
Other versions
CN110597820B (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

Abstract

The application relates to an information processing method, an information processing device, a storage medium and equipment based on a block chain, 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 used for enabling the node of the second block chain to store the target block characteristic value into the second block chain. The information processing method based on the block chain stores the information into the block of the first block chain and stores the characteristic value of the block into the block of the second block chain; whether the information stored in the first block chain is tampered can be verified through the block characteristic value stored in the second block chain, the difficulty of tampering the information stored in the block chain is improved, and therefore the public credibility of the information is improved.

Description

Block chain based information processing method and device, storage medium and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method and apparatus based on a block chain, 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 can ensure that the transaction record can not be tampered and forged, and the effective transaction records of the distributed account book nodes are connected in series based on the characteristics of formula algorithm, encryption algorithm and distributed storage, so that the capability of permanent inspection is provided.
When the nodes are owned by a company or an organization, the data is stored in the blockchain, so that the problem that the credibility is insufficient and the data cannot be cleared by self exists, and the authenticity of the data stored in the blockchain is difficult to verify.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an information processing method, apparatus, storage medium, and device based on a block chain.
An information processing method based on a block chain 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 used for enabling the node of the second block chain to store the characteristic value of the target block into the second block chain.
An apparatus for processing block chain-based information, 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;
a 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 block chain; the first information storage request is used for enabling the node of the second block chain to store the characteristic value of the target block into the second block chain.
A computer-readable storage medium, 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 blockchain-based information processing method.
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 carry out the steps of the above-mentioned blockchain-based information processing method.
According to the information processing method, the device, the storage medium and the equipment based on the block chain, the received information to be processed is stored in 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 stores the block characteristic value in which the information to be processed is stored in the second block chain; by the method, whether the information stored in the first block chain is tampered can be verified through the block characteristic value stored in the second block chain, the difficulty of tampering the information stored in the block chain is improved, and therefore the public credibility of the information is improved.
Drawings
FIG. 1 is a diagram of an embodiment of an application environment of a blockchain-based information processing method;
FIG. 2 is a flow diagram illustrating a method for processing information based on blockchains in one embodiment;
FIG. 3 is a flow chart illustrating information processing based on block chains in another embodiment;
FIG. 4 is a flow chart illustrating a block chain-based information processing method according to another embodiment;
FIG. 5 is a diagram illustrating the storage of information into a block chain in one embodiment;
FIG. 6 is a block diagram of an information processing apparatus based on a blockchain in one embodiment;
FIG. 7 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 an application environment diagram of an information processing method based on a blockchain in one embodiment. Referring to fig. 1, the block chain-based information processing method is applied to a block chain-based information processing system. The block chain-based information processing system relates to two block chains, and comprises: one or more first blockchain nodes 110 of the first blockchain, one or more second blockchain nodes 120 of the second blockchain, and the first blockchain nodes 110 and the second blockchain nodes 120 are connected through a network. When the first block link point receives information to be processed which needs to be stored, the information to be processed is stored in 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 is sent to the second block link point for storage. In other embodiments, the information processing system based on the blockchain further relates to the terminal 130, and in these embodiments, the node 110 of the first blockchain acquires the information to be processed from the terminal 130.
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 consisting of a plurality of servers.
As shown in fig. 2, in one embodiment, a block chain based information processing method is provided. This embodiment is mainly illustrated by applying the method to the first blockchain node 110 in fig. 1. Referring to fig. 2, the block chain-based information processing method specifically includes steps S210 to S230.
Step S210, obtaining information to be processed.
The information to be processed is information needing 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, and may be, for example, transaction information, electronic evidence information, creative works, and the like. In one embodiment, when a user needs to store information into the block chain, the information to be processed is written into a specific field through an information storage interface of the first block chain provided by the first block link point, that is, the process of acquiring the information to be processed corresponding to the first block link point.
Step S220, store the information to be processed into the target block of the first block chain, and obtain the feature value of the target block.
When the node of the first block chain acquires the information to be processed, storing the information to be processed into the blocks of the first block chain, specifically, after verifying the information to be processed, writing the information to be processed into the block bodies of the blocks in the first block chain; in this embodiment, the block is marked as a target block; it will be appreciated that the target block should be the latest block in the first block chain at the present time.
After writing the information to be processed into the target block of the first block chain, the first block chain will generate the unique identifier of the target block, and in this embodiment, the unique identifier of the target block chain generated by the first block chain is recorded as the target block characteristic value of the target block. In one embodiment, the target chunk characteristic value may be a chunk hash value of the target chunk; further, the chunk hash value of the target chunk may be determined in any manner that may be implemented. For example, by calling a hash function to perform a hash operation on the target block, a block hash value of the target block may be obtained. The hash function is a function for compressing an input message with any length into a message digest with a certain fixed length; the message to be hashed is input into the hash function, so that a message abstract with a fixed length can be obtained. Common Hash algorithms include MD4(Message Digest4, Message Digest 354), MD5(Message Digest 5), SHA (Secure Hash Standard), and the like.
Step S230, generating a first information storage request based on the feature value of the target block, and sending the first information storage request to a node of the second block chain; the first information storage request is used for enabling the node of the second block chain to store the characteristic value of the target block into the second block chain.
The nodes of the blockchain may refer to respective clients or servers sharing data in the blockchain. Each node may receive input information during normal operation and maintain data shared in the blockchain based on the received input information. In order to ensure the information intercommunication of each node in the block chain, information connection can exist between each node in the block chain, and the nodes can transmit information through the information connection. For example, when any node in a 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.
Each node in the same block chain has a corresponding node identifier, and each node in the block chain can store the node identifiers of other nodes in the block chain, so that the generated block can be broadcast to other nodes in the data sharing system according to the node identifiers of other nodes. Each node can maintain a node identification list, and the node name and the node identification are correspondingly stored in the node identification list. The node identifier may be an IP (internet protocol) address and any other information that can be used to identify the node.
In this embodiment, a node of a first blockchain may be a node in any one first blockchain, and the node of any one first blockchain may implement information storage in the first blockchain; similarly, the node of the second blockchain may also be any one node in the second blockchain. In one embodiment, a node of one first blockchain may only maintain communication with nodes of one or a few second blockchains; in another embodiment, the nodes of one first blockchain are in communication with the nodes of all second blockchains.
In an embodiment of the present application, after information is stored in a first block chain, a block characteristic value corresponding to a block (a target block) in the first block chain, where the information is stored, is stored in a second block chain, so in this embodiment, after a node of the first block chain obtains the block characteristic value of the target block generated by the first block chain, an information storage request is generated according to the target block characteristic value, which is denoted as a first information storage request in this embodiment, and the first information storage request is sent to a node of the second block chain, and the node of the second block chain is requested to store the target block characteristic value in the second block chain. The generated first information storage request carries a target block characteristic value.
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 in which the information to be processed is stored in the second block chain; by the method, whether the information stored in the first block chain is tampered can be verified through the block characteristic value stored in the second block chain, the difficulty of information tampering is improved, and therefore the public credibility of the information is improved.
In an embodiment, the above block chain-based information processing method further includes the following steps:
receiving a second information storage request sent by a node of a second block chain; the second information storage request carries the block eigenvalue of the block in the second block chain; and storing the block characteristic value of the block in the second block chain into the first block chain according to the second information storage request.
In the above embodiment, the second block chain is used to store the block characteristic value of the target block after the information to be processed is stored in the target block of the first block chain. In this embodiment, the node of the first block chain receives an information storage request (second information storage request) sent by the node of the second block chain, and stores the block characteristic value in the second block chain stored in the second information storage request into the first block chain. That is, in this embodiment, not only the characteristic value of the block generated in the first block chain is stored in the second block chain, but also the characteristic value of the block generated in the second block chain is stored in the first block chain, so as to form mutual binding between the two block chains, and if the information stored in the target block in the first block chain is tampered, the characteristic value of the block of the target block is changed accordingly, and at this time, the characteristic value of the block 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 characteristic value of the block generated in the second block chain is also stored in the first block chain, so as to increase the difficulty of tampering the information stored in the second block chain.
In the above information processing method based on block chains, the first block chain and the second block chain may serve as different service directions to provide services for different users, for example, two block chains are a block chain a owned by enterprise 1 and a block chain B owned by enterprise 2, respectively, in an embodiment, the block chain a may be the first block chain in the embodiment of the present application, and the block chain B is the second block chain; in another embodiment, the first blockchain may also be blockchain B and the second blockchain is blockchain a. That is, in the present application, the first block chain and the second block chain are bound, the block characteristic value corresponding to the target block where the information stored in the first block chain is located is stored in the second block chain, and the block characteristic value of the block where the information stored in the second block chain is located is stored in the first block chain, so that the difficulty in tampering with the stored information in the first block chain and the second block chain is increased, thereby improving the credit of the information stored in the first block chain and the second block chain.
Further, in an embodiment, when the first block chain and the second block chain receive the block characteristic value sent by the opposite node, the block characteristic value in the opposite block chain is actually used as information to be stored in the block chain, and is separately stored into a block in each block chain. In one embodiment, when a node of the first blockchain receives information to be stored (the information to be processed or the block characteristic value in the second blockchain), the node determines a storage operation according to the source of the information. For example, when the node of the first block chain acquires the information to be processed, the source of the information to be processed is determined to be the information directly uploaded by the user, or when the node that the information to be processed is not the second block chain is determined to transmit, the information to be processed is stored in the target block of the first block chain, and then the method further comprises the steps of acquiring the characteristic value of the target block, generating an information storage request according to the characteristic value of the target block, and initiating the request to the node of the second block chain; when the node of the first blockchain receives the information to be stored (the blockcharacteristic value of the second blockchain) and determines that the source of the information to be stored is the node of the second blockchain, only the blockcharacteristic value of the second blockchain is stored into the latest block of the first blockchain.
In other embodiments, when receiving new information to be stored, a node of the first blockchain may also determine a saving operation to be performed according to the content of the information to be stored, that is, when receiving the information to be processed and receiving a blockcharacteristic value in the second blockchain, the first blockchain performs different saving operations according to the content of the information; for example, when a node of a first block chain generates a first information storage request according to a target block eigenvalue, a block eigenvalue identifier is carried in the first information storage request, so that when a second block link node receives the information storage request carrying the block eigenvalue identifier, only the block eigenvalue carried in the second block chain is stored in a block of the second block chain; similarly, when the first blockchain node receives the carried block characteristic value identifier in the second information storage request, only the block characteristic value in the second blockchain carried in the second information storage request is stored in the first blockchain. It can be understood that, in this embodiment, when receiving the information to be processed identified by the un-carried block characteristic value, the first block chain node, in addition to storing the information to be processed into the first block chain, sends the block characteristic value of the target block storing the information to be processed to the second block chain for storage.
By the block chain-based information processing method, in the embodiment that the block characteristic value of the new block is stored in the second block chain every time a new block is generated in the first block chain, the problem that the characteristic value corresponding to the block storing the block characteristic value of the second block chain is stored in the second block chain again after the block characteristic value of the second block chain is stored in the first block chain can be avoided.
Alternatively, in another embodiment, generating the first information storage request based on the target block characteristic value includes: and acquiring the characteristic value of the target block of each target block generated between the current time and the previous time every preset time, and generating a first information storage request based on the characteristic value of each target block.
In this embodiment, after the node of the first blockchain stores the information (to-be-processed information or the node of the second blockchain) into the first blockchain, instead of generating a new block, the node of the first blockchain stores the block characteristic values of the new block into the second blockchain, and stores the block characteristic values of the new block generated in the first blockchain into the second blockchain at regular intervals. The method specifically comprises the following steps: and acquiring target block characteristic values of each target block generated between the current time and the last time in the first block chain every preset time, and initiating a first information storage request to the second block chain according to each target block characteristic value. In one embodiment, when receiving the first information storage request, the node of the second block chain detects that a plurality of target block characteristics are carried in the first information storage request, and stores the plurality of target block characteristics into one block in the second block chain. Further, storing a plurality of target block characteristics into one block can be realized in any manner.
In one embodiment, after the first information storage request is generated based on the feature value of each target block, the above information processing method based on the block chain further includes the steps of: setting a stored mark for the target block and setting a timer for a preset time; when the timer is detected to be overtime, the first target block generated at the current moment is traversed forwards until a first second target block with a stored identifier is found; at this time, the block eigenvalues of all blocks between the target block (first target block) generated at the current time and the target block (second target block) at the previous time are acquired, and a first information storage request is generated according to the block eigenvalues and is sent to the node of the second block chain. It is understood that the predetermined time may be set according to actual conditions. And the last time represents the time when the first information storage request is generated based on the characteristic value of the target block last time and the first information storage request is initiated to the node of the second block chain.
It can be understood that, in the nodes of the second block chain, the block characteristic values of the new blocks generated in the second block chain may also be packed and stored in the first block chain every predetermined time, that is, the nodes of the first block chain receive the second information storage request sent by the nodes of the second block chain every predetermined time, and store the second information storage request in the first block chain according to the block characteristic values in each second block chain carried in the second information storage request. In one embodiment, the predetermined time set in the first blockchain and the second blockchain may be the same or different.
In another embodiment, generating the first information storage request based on the respective target block characteristic values comprises: integrating the characteristic values of all the target blocks into a characteristic value file; generating a first information storage request based on the characteristic value file; the first information storage request is used for enabling the node of the second block chain to store the characteristic value file into the second block chain.
In this embodiment, a new block eigenvalue of a target block generated in a first block chain is also stored into a second block chain at intervals, in this embodiment, after a node of the first block chain acquires a target block eigenvalue of each target block generated between a current time and a previous time, the target block eigenvalue is integrated into an eigenvalue file, and then a first information storage request is generated according to the eigenvalue file and sent to a node of the second block chain, so that the node of the second block chain stores the eigenvalue file into the second block chain.
In the block chain-based information processing method, the block characteristic value of the target block in the first block chain is stored into the second block chain at intervals of preset time, so that the problem that one block is only used for storing the block characteristic value in the opposite block chain to cause waste of block storage resources can be avoided; meanwhile, in the embodiment, the block link node only needs to perform the operation of sending the block characteristic value to the second block chain for storage once at a predetermined time, and only receives the block characteristic value in the other block chain for storage at the predetermined time, so that the workload of the block chain node can be reduced to a certain extent.
In one embodiment, the above information processing method based on a block chain, 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 the information is stored in the blockchain, the blockchain may provide a checking function for the information, which is a process of verifying the information stored in the first blockchain in this embodiment.
The user may send an information verification request carrying the information to be verified to the node of the first blockchain to request verification of the authenticity of the information to be verified. The key information of the information to be verified may be a key word of the information to be verified, or may represent a unique identifier of the information to be verified, it can be understood that there is a certain corresponding relationship between the key information of the information to be verified and the information to be verified, and if the information to be verified is already stored in the first block chain, the information stored correspondingly may be found in the first block chain according to the key information of the information to be verified.
Step S320, searching whether there is stored information corresponding to the key information of the information to be verified in the first block chain, and obtaining a first information search result.
The node of the first block chain searches in the first block chain according to the key information carried in the information verification request, and obtains an information search result according to whether the corresponding information is found, in this embodiment, the result of searching for the information in the first block chain is recorded as the first information search result. Understandably, when the storage information corresponding to the key information of the information to be verified is found in the first block chain, a first information finding result which is found successfully is obtained; and when the storage information corresponding to the key information of the information to be verified is not searched in the first block chain, obtaining a first information search result of search 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 storage information represents information found in the first blockchain according to the key information of the information to be verified.
In step S330, when the first information search result is that the search is successful, a first eigenvalue query request is generated according to the block eigenvalue corresponding to the storage information.
In this embodiment, a first characteristic value query request is generated according to the block characteristic value of the block where the searched storage information is located, and whether the corresponding stored block characteristic value is searched in the second block chain is determined. In this embodiment, the characteristic value query request sent by the node of the first blockchain to the second blockchain is recorded as the first characteristic value query request.
Step S340, sending a first characteristic value query request to a node of a second block chain; the first characteristic value query request is used for enabling a node of the block chain to search whether a block characteristic value corresponding to the storage information exists in the second block chain or not, and obtaining a first characteristic value search result.
And sending the first characteristic value query request to a node of the second block chain, so that the node of the second block chain searches whether the block characteristic value corresponding to the storage information exists in the second block chain 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 eigenvalue corresponding to the storage information is found in the second block chain, a first eigenvalue search result that the search is successful is obtained, and when the block eigenvalue corresponding to the storage information is not found in the second block chain, a first eigenvalue search result that the search is failed is obtained.
In step S350, when the first feature value search result returned by the node receiving the second blockchain is a search success, a verification success response is returned.
And when the node of the second block chain returns the second characteristic value search result which is searched successfully, judging that the verification in the first block chain and the second block chain is successful according to the key information of the information to be verified, and thus returning a response of successful verification to the equipment which sends the information verification request. It can be understood that when the second feature value search result returned by the node that receives the second blockchain is a search failure, which indicates that the verification fails, a response of the verification failure is returned to the device that sends the information verification request.
In the above embodiment, if the information to be verified has a storage record in the first block chain, the corresponding storage information may be found in the first block chain by using the key information of the information to be verified; meanwhile, if the storage information is not tampered in the first block chain, the block characteristic value corresponding to the storage 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, the information stored in the second blockchain can 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 block chain based information processing method further includes steps S410 to S430.
Step S410, receiving a second characteristic value query request sent by a node of the second block chain when the second information search result is a search success.
Wherein the second eigenvalue query request carries the block eigenvalues of the blocks in the second block chain; and the second information searching result is a result of searching whether information corresponding to a 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, as the same as the information search in the first blockchain, since the blocky characteristic value corresponding to the information stored in the second blockchain is stored in the first blockchain, when it is desired to verify the authenticity of the stored information 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 search result; and when the second information searching result is that the searching is successful, the node of the second block chain sends a second characteristic value query request to the node of the first block chain.
Step S420, searching whether the block eigenvalue 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 eigenvalue search result.
When a node of a 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 a 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 understood, when the block eigenvalue of the block in the second block chain is found in the first block chain, a second eigenvalue search result which is found successfully is obtained; and when the block characteristic value of the block in the second block chain is not found in the first block chain, obtaining a second characteristic value search result of the search failure.
Step S430, returning the second feature value search result to the node of the second block chain.
And the node of the first block chain returns the obtained second characteristic value search result to the node of the second block chain, so that the node of the second block chain determines the verification response corresponding to the second information query request according to the second characteristic value search result.
Further, in an embodiment, after returning a verification success response, the above block chain-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.
In this embodiment, the information acquisition request is used to call out stored information (corresponding to key information of information to be verified) from the first block chain for a user to view. If the information stored in the blockchain is private, the user usually chooses to cooperate with a public trust authority (e.g., a judicial appraisal center, a department of industry, etc.) and can only view or verify the information in the first blockchain (or the second blockchain) through the public trust authority.
In an embodiment, taking storing information into a block chain as an example, fig. 5 is a schematic diagram illustrating the storing of information into a block chain in this embodiment, where an evidence a (i.e., information to be processed) is sent to a first block chain for storage, and a block characteristic value of a target block in which the evidence a is stored is sent to a second block chain for storage. Similarly, when storing the evidence B (i.e. the information to be processed) into the second blockchain, the blockcharacteristics of the target blockchain storing the evidence B are sent to the first blockchain for storage. The evidence a may be any information that is required to ensure authenticity, such as a bank's performance bond, original works, and the like.
According to the information processing method based on the block chain, by adopting a mode that a plurality of block chains are bound with each other and are mutually authenticated, once the certification data on one block chain is modified, the characteristic value of the block storing the data can be changed, the difficulty of tampering the stored information in the block chain is further increased, and the accuracy and the credit of the information stored in the block chain are improved; the problem that the stored information lacks the public credibility due to the fact that any party tampers the stored information in the block chain can be avoided.
Fig. 2 to 4 respectively correspond to a schematic flow chart of an information processing method based on a block chain in one embodiment. It should be understood that although the various steps in the flow charts of fig. 2-4 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-4 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.
An information processing apparatus based on a block chain, as shown in fig. 6, the apparatus comprising: the system comprises an information acquisition module 610, a storage module 620 and an information storage request sending module. Wherein:
the information obtaining module 610 is configured to obtain information to be processed.
The storage module 620 is configured to store the information to be processed in the target block of the first block chain, 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 eigenvalue, and send the first information storage request to a node of the second block chain; the first information storage request is used for enabling the node of the second block chain to store the characteristic value of the target block into the second block chain.
The information processing device based on the block chain stores the received information to be processed into the block of the first block chain, and sends the characteristic value of the block to the node of the second block chain, so that the node of the second block chain stores the characteristic value of the block in which the information to be processed is stored into the second block chain; by the method, whether the information stored in the first block chain is tampered can be verified through the block characteristic value stored in the second block chain, the difficulty of tampering the information stored in the block chain is improved, and therefore the public credibility of the information is improved.
In one embodiment, the above 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 block chain; the second information storage request carries the block eigenvalue 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 block chain into the first block chain according to the second information storage request.
In an embodiment, the information storage request sending module is configured to, every predetermined time, obtain a target block characteristic value of each target block generated between a current time and a 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 eigenvalues of the target blocks into an eigenvalue file; generating a first information storage request based on the characteristic value file; the first information storage request is used for enabling the node of the second block chain to store the characteristic value file into the second block chain.
In one embodiment, the above 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 the stored information corresponding to the key information of the information to be verified exists in the first block chain to obtain a first information searching result;
the characteristic value query request module is used for generating a first characteristic value query request according to the block characteristic value corresponding to the storage information when the first information search result is that the search is successful; sending a first characteristic value query request to a node of a second blockchain; the first characteristic value query request is used for enabling a node of the block chain to search whether a block characteristic value corresponding to the storage information exists in a second block chain or not and obtaining a first characteristic value search 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 block chain is successful.
In one embodiment, the above apparatus further comprises:
the characteristic value query request receiving module is used for receiving a second characteristic value query request sent by a node of the second block chain when the second information search result is that the search is successful; 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 search result returning module is used for returning the search result of the second characteristic value to the node of the second block chain.
In one embodiment, the above 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 returning module is used for returning the storage information corresponding to the key information of the information to be verified.
For the specific definition of the above block chain based information processing apparatus, reference may be made to the above definition of the block chain based information processing method, which is not described herein again.
FIG. 7 is a diagram illustrating an internal structure 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 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 that, when executed by the processor, causes the processor to implement the block chain-based information processing method. The internal memory may also have a computer program stored therein, which, when executed by the processor, causes the processor to perform a block chain based information processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 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 processing apparatus based on the blockchain provided by 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. 7. The memory of the computer device may store therein various program modules constituting the block chain-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 block chain based information processing method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 7 may acquire the information to be processed by an information acquisition module in the block chain-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 a first information storage request based on the feature value of the target block through the information storage request transmission module, and transmit the first information storage request to a node of the second block chain.
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 block chain based information processing method. Here, the steps of the block chain based information processing method may be steps in the block chain based information processing method of each of the above embodiments.
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 block chain based information processing method. Here, the steps of the block chain based information processing method may be steps in the block chain based information processing method of each of the above embodiments.
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 (10)

1. An information processing method based on a block chain comprises the following steps:
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 the node of the second block chain to store the target block characteristic value into the second block chain.
2. The method of claim 1, further comprising:
receiving a second information storage request sent by a node of the second block chain; the second information storage request carries a block characteristic value of a block in the second block chain;
and storing the block characteristic value of the block in the second block chain into the first block chain according to the second information storage request.
3. 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 each target block generated on the first block chain between the current time and the previous time every preset time, and generating a first information storage request based on each target block characteristic value.
4. The method of claim 3, 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 used for enabling the node of the second block chain to store the characteristic value file into the second block chain.
5. The method of 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 storage information corresponding to the key information of the information to be verified exists in the first block chain to obtain a first information searching result;
when the first information searching result is that the searching is successful, generating a first characteristic value query request according to the block characteristic value corresponding to the storage information;
sending the first characteristic value query request to a node of the second blockchain; the first characteristic value query request is used for enabling the node of the second block chain to search whether a block characteristic value corresponding to the storage information exists in the second block chain or not, and obtaining a first characteristic value search result;
and returning a verification success response when the first characteristic value search result returned by the node receiving the second block chain is a search success.
6. The method of claim 2, further comprising:
receiving a second characteristic value query request sent by the node of the second block chain when a second information search result is that the search is successful; the second eigenvalue query request carries the block eigenvalues of the blocks in the second block chain; the second information searching result is a result of searching whether information corresponding to a second information verification request exists in the second blockchain when a node of the second blockchain receives the second information verification request;
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 returning the second characteristic value search result to the node of the second block chain.
7. The method of claim 5, after returning a verification success response, further comprising:
when an information acquisition request carrying key information of the information to be verified is received, acquiring the 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.
8. An information processing apparatus based on a block chain, 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 characteristic value of the target block;
a 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 block chain; the first information storage request is used for enabling the node of the second block chain to store the characteristic value of the target block into the second block chain.
9. 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 7.
10. 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 7.
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 true CN110597820A (en) 2019-12-20
CN110597820B 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)

Cited By (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
CN112560104A (en) * 2021-01-17 2021-03-26 梁志彬 Data storage method and safety information platform based on cloud computing and block chain
WO2023020442A1 (en) * 2021-08-18 2023-02-23 华为技术有限公司 Blockchain generation method and apparatus

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

Cited By (4)

* 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
CN112560104A (en) * 2021-01-17 2021-03-26 梁志彬 Data storage method and safety information platform based on cloud computing and block chain
CN112560104B (en) * 2021-01-17 2022-07-19 金网络(北京)电子商务有限公司 Data storage method and safety information platform based on cloud computing and block chain
WO2023020442A1 (en) * 2021-08-18 2023-02-23 华为技术有限公司 Blockchain generation method and apparatus

Also Published As

Publication number Publication date
CN110597820B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN111556120B (en) Data processing method and device based on block chain, storage medium and equipment
CN110781509B (en) Data verification method and device, storage medium and computer equipment
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN109359994B (en) Service processing method, device and system based on block chain
CN111444550A (en) Block chain-based service data verification method and device and readable storage medium
CN110597820B (en) Information processing method, device, storage medium and equipment based on block chain
CN110543510B (en) Bill data processing method, device, storage medium and computer equipment
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN111191294B (en) Single-node accounting method, system, equipment and storage medium based on block chain
CN111563365B (en) Method and device for processing modification information of test standard worksheet and computer equipment
CN110955721B (en) Block link point state maintenance method and device, computer equipment and storage medium
CN111447069B (en) Low-frequency access data processing method based on block chain
CN111651794A (en) Alliance chain-based electronic data management method and device and storage medium
CN112100142A (en) Block chain-based digital asset processing method and system
CN111339551B (en) Data verification method and related device and equipment
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CN110598452B (en) Evidence information processing method, device, storage medium and equipment based on blockchain
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
CN115935414A (en) Block chain based data verification method and device, electronic equipment and storage medium
US20220353088A1 (en) Secure Transmission
CN110598449B (en) Data processing method and device for performing insurance function, storage medium and computer equipment
CN115514470A (en) Storage method and system for community correction data security
CN111782615B (en) Block chain-based large file storage method and system and computer equipment
CN110598477A (en) Block chain based information processing method and device, storage medium and equipment
CN110490005B (en) Method, device and computer readable storage medium for processing resource transfer request

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