CN108696511A - A kind of public notification of information method, apparatus and relevant device based on block chain - Google Patents
A kind of public notification of information method, apparatus and relevant device based on block chain Download PDFInfo
- Publication number
- CN108696511A CN108696511A CN201810373976.1A CN201810373976A CN108696511A CN 108696511 A CN108696511 A CN 108696511A CN 201810373976 A CN201810373976 A CN 201810373976A CN 108696511 A CN108696511 A CN 108696511A
- Authority
- CN
- China
- Prior art keywords
- information
- target
- abstract
- block chain
- merkle trees
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the present application provides a kind of public notification of information method, apparatus and relevant device based on block chain, for realizing credible inquiry and the verification of publicity information data.Method in the embodiment of the present application may include:It obtains and waits for that the information of publicity is detailed;Target merkle trees are constructed according to described information detail, and will be in first abstract write-in block chain of the target merkle trees;The information verification request of user is received, described information checking request includes the target information for needing to verify;According to described information checking request related information is obtained from target merkle trees;Second abstract is generated according to described information checking request and the related information;First abstract is extracted from block chain, and whether verify first abstract consistent with described second abstract, if unanimously, judging that the target information is verified.
Description
Technical field
This application involves field of information processing, and in particular to a kind of public notification of information method, apparatus and phase based on block chain
Close equipment.
Background technology
In the public information publicity system of centralization, public notification of information is completed by centralized system, and each participant can only
The information that publicity is obtained from centralized system, is inquired and is verified.
In the public information publicity system of existing centralization, the publicity for certain primary information detail, by centralization
System is completed, inquiry and verification for each single item information detail, can only be inquired from centralized system and verification, centralization system
The information true and false in system can not be verified, and affect the confidence level of publicity information.
In view of this, it is necessary to propose a kind of new public notification of information method.
Invention content
The embodiment of the present application provides a kind of public notification of information method, apparatus and relevant device based on block chain, for real
The credible inquiry of existing publicity information data and verification.
The embodiment of the present application first aspect provides a kind of public notification of information method based on block chain, which is characterized in that packet
It includes:
It obtains and waits for that the information of publicity is detailed;
Target merkle trees are constructed according to described information detail, and first abstract of the target merkle trees is written
In block chain;
The information verification request of user is received, described information checking request includes the target information for needing to verify;
According to described information checking request related information is obtained from target merkle trees;
Second abstract is generated according to described information checking request and the related information;
First abstract is extracted from block chain, and verifies whether first abstract makes a summary with described second
Unanimously, if unanimously, judging that the target information is verified.
Optionally, as a kind of possible embodiment, described to be constructed according to described information detail in the embodiment of the present application
Target merkle trees, specifically include:
Unidirectional irreversible operation is carried out to each single item information in information detail and generates corresponding characteristic value;
Using the detailed corresponding each characteristic value of described information as the end structure merkle trees of merkle trees.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, described information checking request includes information
Label, it is described that related information is obtained from target merkle trees according to described information checking request, it specifically includes:
Each node of the target merkle trees is numbered;
The associated nodes number of target merkle trees and corresponding associated nodes are determined according to described information label;
Extract the corresponding characteristic value of the associated nodes.
Optionally, as a kind of possible embodiment, described according to described information checking request in the embodiment of the present application
Second abstract is generated with the related information, is specifically included:
The target information verified is needed to generate the First Eigenvalue according to described;
Second abstract is generated according to the First Eigenvalue and the corresponding characteristic value of the associated nodes.
Optionally, as a kind of possible embodiment, in the embodiment of the present application,
Before the construction target merkle trees according to described information detail, the method further includes:
Processing is formatted according to preset format to each single item information in described information detail, generates unified format
Information Authentication content, described information verify content include at least identity, information labels.
The embodiment of the present application second aspect provides a kind of public notification of information device based on block chain, which is characterized in that packet
It includes:
First acquisition module waits for that the information of publicity is detailed for obtaining;
Module is built, for constructing target merkle trees according to described information detail, and by the target merkle trees
In first abstract write-in block chain;
Receiving module, the information verification request for receiving user, described information checking request include the mesh for needing to verify
Mark information;
Second acquisition module, for obtaining related information from target merkle trees according to described information checking request;
Computing module, for generating second abstract according to described information checking request and the related information;
Correction verification module, for extracted from block chain it is described first abstract, and verify it is described first abstract with it is described
Whether second abstract be consistent, if unanimously, judging that the target information is verified.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, the structure module includes:
Computing unit generates corresponding feature for carrying out unidirectional irreversible operation to each single item information in information detail
Value;
Construction unit, for using the detailed corresponding each characteristic value of described information as the end structure of merkle trees
Merkle trees.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, described information checking request includes information
Label, second acquisition module specifically include:
Numbered cell is numbered for each node to the target merkle trees;
Determination unit, the associated nodes number for determining target merkle trees according to described information label and corresponding pass
Interlink point;
Extraction unit, for extracting the corresponding characteristic value of the associated nodes.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, the computing module specifically includes:
First generation unit, for needing the target information verified to generate the First Eigenvalue according to described;
Second generation unit, for generating second according to the First Eigenvalue and the corresponding characteristic value of the associated nodes
Root is made a summary.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, described device further includes:
Format analysis processing module, for being formatted according to preset format to each single item information in described information detail
Processing, generates the Information Authentication content of unified format, and described information verifies content and includes at least identity, information labels.
The embodiment of the present application third aspect provides a kind of computer installation, which is characterized in that the computer installation packet
Processor is included, such as first aspect and first aspect are realized when the processor is for executing the computer program stored in memory
In step in any one possible embodiment.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer journey
Sequence, it is characterised in that:It is realized such as any one in first aspect and first aspect when the computer program is executed by processor
Step in possible embodiment.
As can be seen from the above technical solutions, the embodiment of the present application has the following advantages:
In the embodiment of the present application, the information detail that block chain server can be submitted according to center for information management constructs target
Merkle trees, and by first abstract write-in block chain of target merkle trees, the distributed storage of publicity information is realized,
It can effectively prevent being tampered for publicity information.It, can be according to described information checking request when receiving information verification request
Related information is obtained from target merkle trees, and is generated second according to described information checking request and the related information and plucked
It wants, whether first abstract of terminal check be consistent with second abstract, and whether judgement target information is true, i.e. the embodiment of the present application
Based on block chain realize information publicity and it is credible inquiry and verification.
Description of the drawings
Fig. 1 is a kind of one embodiment schematic diagram of the public notification of information method based on block chain in the embodiment of the present application;
Fig. 2 is a kind of another embodiment schematic diagram of the public notification of information method based on block chain in the embodiment of the present application;
Fig. 3 is a kind of merkle tree nodes association schematic diagram in the embodiment of the present application;
Fig. 4 is a kind of one embodiment schematic diagram of the public notification of information device based on block chain in the embodiment of the present application;
Fig. 5 is a kind of another embodiment schematic diagram of the public notification of information device based on block chain in the embodiment of the present application;
Fig. 6 is a kind of one embodiment schematic diagram of computer installation in the embodiment of the present application.
Specific implementation mode
The embodiment of the present application provides a kind of public notification of information method, apparatus and relevant device based on block chain, for real
The credible inquiry of existing publicity data and verification.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model of the application protection
It encloses.
Term " first ", " second ", " third " in the description and claims of this application and above-mentioned attached drawing, "
Four " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so that the embodiments described herein can be in addition to illustrating or describing herein
Sequence other than appearance is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that covering is non-exclusive
Include to be not necessarily limited to clearly arrange for example, containing the process of series of steps or unit, method, system, product or equipment
Those of go out step or unit, but may include not listing clearly or solid for these processes, method, product or equipment
The other steps or unit having.
This application involves block chain technologies, in order to make it easy to understand, below will be to block chain in the embodiment of the present application
(Block Chain) is simply introduced, and block chain is distributed disclosed in all block chain nodes to access server
The data structure of storage, including several block (Block).Including the user terminal of client can be registered as an area
Block chain node forms P2P networks with other block chain nodes of access block chain server, and block chain data can be stored in
P2P networks, P2P networks any one or more block chain nodes paralysis, will not result in the loss of block chain data, such area
Block chain data just have very strong safety, it is ensured that the persistence of data and can not distort.When a block is persisted to area
When in block chain data, the block chain node of access server can add the block;Block is according to persistence time sequencing
Singly it is added in block chain data, each block other than first block in block chain data will chain
It is connected to its previous block, such block chain data just form a block and link this block, just as a chain one
Sample, as soon as after a block is persisted to block chain data, which can not be modified.
In order to make it easy to understand, the detailed process in the embodiment of the present application is described below, in the embodiment of the present application, need
The node device for accessing block chain is registered to block chain server, and the node device after registering becomes block chain service
A part for device, the common function of realizing block chain.Referring to Fig. 1, a kind of information based on block chain in the embodiment of the present application
One embodiment of publicity method may include:
101, it obtains and waits for that the information of publicity is detailed.
The information for needing to carry out publicity can be obtained in the embodiment of the present application through various channels, such as client can be received
What end or center for information management were sent waits for that the information of publicity is detailed, can also be manually entered and wait for that the information of publicity is detailed, it is specific this
Place does not limit.
102, target merkle trees are constructed according to information detail, and block is written into first abstract of target merkle trees
In chain.
Merkle trees in the embodiment of the present application are a kind of trees described in data structure, are a kind of data store organisations,
Merkle trees in the embodiment of the present application can be binary tree, can also multiway tree;Either a few fork trees, it all has tree construction
All features, the characteristic value on the leaf node of each bottom of Merkle trees can be the detailed corresponding each spy of information
Value indicative;The characteristic value of non-leaf nodes except bottom unidirectionally can not according to leaf node characteristic value progress all below it
What inverse operation obtained.The computational methods of the non-leaf nodes characteristic value of Merkle trees are that all child nodes of the node are carried out group
It closes, the unidirectional irreversible characteristic value calculated then is carried out to combined result.In order to make it easy to understand, following each embodiments
In only illustrated by taking binary tree as an example, Merkle trees can be binary tree in practice, can also multiway tree, specifically herein
It is not limited.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, block chain server can be bright to information
The each single item information of detail carries out unidirectional irreversible operation and generates corresponding characteristic value;By the detailed corresponding each characteristic value of information
End structure target merkle trees as merkle trees.Specific steps can be:Random combine is right at linked character value two-by-two
Two linked character values carry out the characteristic value that unidirectional irreversible operation can obtain the non-leaf nodes of last layer;It is upper to what is obtained
One layer of non-leaf nodes continue two-by-two random combine at linked character value, then to two newly-generated linked character values into
The identical unidirectional irreversible operation of row, obtains the characteristic value of last layer;Finally obtain the root node of the treetops target merkle layer
Characteristic value, be denoted as first abstract.
Unidirectional irreversible operation method in the embodiment of the present application can be one kind in hash algorithm, and specific hash is calculated
Method includes but not limited to secure hash SHA algorithms, eap-message digest MD5 algorithms, RIPEMD algorithms, is not limited herein specifically, is needed
It is noted that although unidirectional non-reversible algorithm has very much, the calculating that identical data carries out in different step, it is necessary to protect
Card institute is identical using algorithm.
In order to ensure the open and clear of publicity information, prevent data tampering, block chain server can be by target merkle
In first abstract write-in block chain of tree, each node of access block chain can synchronize block chain, realize area
The distributed storage of block chain data, for other nodes corresponding characteristic value of the target merkle trees in addition to the root node of top layer
It can be stored in preset database, in order to subsequent inquiry and verification.
103, the information verification request of user is received, and obtains association from target merkle trees according to information verification request
Information.
In the embodiment of the present application, block chain server can receive the information verification request that user is sent by client,
Information verification request includes the target information for needing to verify.Block chain server can be extracted from the target merkle trees of preservation
The corresponding linked character value of each node layer on target main chain that the corresponding characteristic value of target information is made a summary to first is as pass
Join information, the root to recalculate to obtain target merkle trees is made a summary.
104, second abstract is generated according to information verification request and related information.
After the corresponding linked character value of each node layer on getting target main chain, block chain server can combine
The First Eigenvalue recalculates to obtain target merkle tree top root nodes corresponding by identical unidirectional non-reversible algorithm
Characteristic value is denoted as second abstract.
105, first abstract is extracted from block chain, and whether first abstract of verification be consistent with second abstract, if
Unanimously, then judge that target information is verified.
If the target information in information verification request is true errorless, unidirectional non-reversible algorithm identical twice calculates
First abstract arrived and second abstract are necessarily identical.Block chain server can extract first from block chain and pluck
It wants, and verifies whether first abstract makes a summary with second unanimously, if unanimously, judging that target information is true.
In the embodiment of the present application, block chain server can construct target merkle trees according to the information detail got,
And by first abstract write-in block chain of target merkle trees, the distributed storage of publicity information is realized, it can be effective
Prevent being tampered for publicity information.It, can be according to information verification request from target merkle when receiving information verification request
Related information is obtained in tree, and second abstract is generated according to information verification request and related information, and terminal check first is plucked
Whether consistent with second abstract, whether judgement target information is true, i.e., the embodiment of the present application, which is based on block chain, realizes letter
The publicity of breath and credible inquiry and verification.
In order to make it easy to understand, will be carried out below to the public notification of information method based on block chain in the embodiment of the present application detailed
Description, referring to Fig. 2, on the basis of above-mentioned embodiment shown in FIG. 1, a kind of letter based on block chain in the embodiment of the present application
Another embodiment of breath publicity method may include:
201, it obtains and waits for that the information of publicity is detailed, and each single item information in information detail is carried out according to preset format
Formatting is handled, and generates the Information Authentication content of unified format.
In order to ensure the consistency of subsequent data operation, block chain server needs to treat in the information detail of publicity
Each single item information is formatted processing according to preset format, generates the Information Authentication content of unified format.Specifically, information
The division of each single item information in detail can not specifically limit herein according to waiting for that the content of the information detail of publicity is divided
It is fixed.The division of each single item information in information detail can be identity-based mark, and each single item information corresponds to different identity marks
Know.For example, the contribution information of different item can be divided into certain primary donation campaign based on the identity of contributor.Information is bright
The division of each single item information of detail can also be based on the time, and each single item information corresponds to different time point or period.
Specifically, for waiting for that the information of publicity is to solicit contributions detail, block chain server can be according to the identity of contributor
Mark is divided into multinomial contribution information by detail is solicited contributions, and each single item is contributed money to contributor's identity in information, the contribution amount of money, is contributed
Money time, information labels are in a certain order and format is recorded, and each single item contribution information is finally converted into unification
The contribution Information Authentication content of format, the contribution Information Authentication content include at least contributor's identity, information labels, the tax
Money proves that the specific format of information can be reasonably arranged according to actual demand, does not limit herein specifically.
When the information of publicity is that public service counts managing detailed catalogue, block chain server can be according to the body of volunteer
Certain primary public welfare activities is divided into multinomial information on services by part mark, by the identity of each volunteer, service time, clothes
Business content, information labels etc. are in a certain order and format is recorded, and finally are converted into uniting by each single item information on services
The commonweal information of one format verifies content, which verifies the specific format of content and can be carried out rationally according to actual demand
Setting, do not limit herein specifically.
It is understood that the information for waiting for publicity in the present embodiment waits for public affairs only for soliciting contributions detail in practice
The information shown can need publicity, and the information that can be divided into multinomial information is detailed, for example, the public service system that more people participate in
Managing detailed catalogue, election managing detailed catalogue etc. are counted, is not limited herein specifically.
202, unidirectional irreversible operation is carried out to each single item information in information detail and generates corresponding characteristic value.
Block chain server can carry out unidirectional irreversible operation to the detailed corresponding each single item Information Authentication content of information
Generate corresponding characteristic value.Unidirectional irreversible operation method in the embodiment of the present application can be one kind in hash algorithm, tool
The hash algorithm of body includes but not limited to secure hash SHA algorithms, eap-message digest MD5 algorithms, RIPEMD algorithms, specifically herein not
It limits, it should be noted that although unidirectional non-reversible algorithm has very much, the meter that identical data carries out in different step
It calculates, it is necessary to assure institute is identical using algorithm.
203, using the detailed corresponding each characteristic value of information as the end structure target merkle trees of merkle trees, and will
In first abstract write-in block chain of target merkle trees.
In the embodiment of the present application, block chain server can be using the detailed corresponding each characteristic value of information as merkle trees
End, construct target merkle trees.Specific steps can be:Random combine is special to two associations at linked character value two-by-two
Value indicative carries out the characteristic value that unidirectional irreversible operation can obtain the non-leaf nodes of last layer;N omicronn-leaf to obtained last layer
Child node continues random combine two-by-two and carries out identical list at linked character value, then to two newly-generated linked character values
To irreversible operation, the characteristic value of last layer is obtained;Finally obtain the characteristic value of the root node of the treetops target merkle layer, note
Make first abstract.
It optionally, as a kind of possible embodiment, can be further to target merkle in the embodiment of the present application
Each node of tree is numbered, in order to the inquiry and extraction of follow-up data.As shown in figure 3, when right in publicity information detail
When should have 8 leaf nodes (7 to No. 14 nodes in such as Fig. 3), corresponding non-leaf nodes is 0 to No. 6 node, wherein No. 0 section
Point is the root node of top.
It is open and clear for publicity information, prevent data tampering, block chain server can be by target merkle trees
In first abstract write-in block chain, each node of access block chain can synchronize block chain, realize block chain
The distributed storage of data, can be with for other nodes corresponding characteristic value of the target merkle trees in addition to the root node of top layer
It is stored in preset database, in order to subsequent inquiry and verification.
204, the information verification request of user is received, and obtains association from target merkle trees according to information verification request
Information.
In the embodiment of the present application, user needs to register to block chain server by user terminal, after registration
User terminal can become a light node of block chain, the node in block chain can be divided into light node and full node, institute
It refers to not having to not memory block chain data to call light node, is not involved in the incoming end of the whole network operation of block chain, can be used for certification
Identity information is connected into the relevant information of block chain query by accessing other full nodes.So-called full node is to need to store completely
Block chain data, participate in block chain the whole network operation incoming end.User can use binding user terminal verification identity it
Afterwards, so that it may to be connected to block chain server by user terminal, and send checking request, be tested comprising needs in the checking request
The target information of card and the label of target information, the label can be unique mark of the target information in information detail,
Such as unique number, unique encodings etc..
When receiving information verification request, block chain server target information is according to corresponding label from the target of preservation
The corresponding pass of each node layer on the target main chain that the corresponding characteristic value of target information is made a summary to first is extracted in merkle trees
Join characteristic value as related information, the root to recalculate to obtain target merkle trees is made a summary.
The characteristic value of the non-leaf nodes of last layer is by the pass of two next layer of associated nodes in target merkle trees
Connection characteristic value carries out unidirectional irreversible operation and obtains, the leaf node of the root node and each bottom of merkle tree tops
Between exist a main chain, after the corresponding label of target information in getting checking request, block chain server can
With the target between first abstract of the tag queries the First Eigenvalue based on target information to target merkle tree tops
Main chain, and further inquire the corresponding linked character value of each node layer on target main chain.
Specifically, for soliciting contributions detail, block chain server can confirm target information according to the number of target information
The number of the corresponding associated nodes of each node layer for the target main chain made a summary to first, block chain server can be according to association
The number of node from target merkle trees extract target main chain on the corresponding linked character value of each node layer.For example, such as Fig. 3
It is shown, it, can be according to the target where No. 11 if the number in the First Eigenvalue in corresponding contribution information labels is No. 11
Main chain is 11-5-2-0, determine the number of No. 11, No. 5, No. 2 corresponding associated nodes on target main chain be No. 12, No. 6,1
Number, block chain server can be extracted from database according to number No. 12, No. 6, the corresponding characteristic value of No. 1 node is as target
The corresponding linked character value of each node layer on main chain is as related information.
205, second abstract is generated according to information verification request and related information.
After the corresponding linked character value of each node layer on getting target main chain, block chain server can be to testing
Target information in card request carries out identical unidirectional irreversible operation and generates the First Eigenvalue, and combines linked character value, leads to
It crosses identical unidirectional non-reversible algorithm to recalculate to obtain the corresponding characteristic value of target merkle tree top root nodes, is denoted as
Two abstracts.
206, first abstract is extracted from block chain, and whether first abstract of verification be consistent with second abstract, if
Unanimously, then judge that target information is verified.
If the target information in information verification request is true errorless, unidirectional non-reversible algorithm identical twice calculates
First abstract arrived and second abstract are necessarily identical.Block chain server can extract first from block chain and pluck
It wants, and verifies whether first abstract makes a summary with second unanimously, if unanimously, judging that target information is true.
In the embodiment of the present application, block chain server can carry out each single item information in information detail unidirectional irreversible
Operation generates corresponding characteristic value, and regard each characteristic value as the end of merkle trees, construction target merkle trees, and by mesh
In first abstract write-in block chain for marking merkle trees, the distributed storage of publicity information is realized, letter can be effectively prevent
Breath is tampered.When receiving information verification request, the target information in information verification request can unidirectionally can not
Inverse operation generates the First Eigenvalue, and the target master according to the tag extraction target information of target information in target merkle trees
The corresponding linked character value of each node layer on chain carries out unidirectional irreversible meter in conjunction with the characteristic value of linked character value and target information
Calculation obtains second abstract, and whether first abstract of terminal check be consistent with second abstract, and whether judgement target information is true,
I.e. the embodiment of the present application realizes the credible inquiry and verification of publicity information based on block chain.
It is understood that in the various embodiments of the application, the size of the serial number of above steps is not meant to
The execution sequence of the priority of execution sequence, each step should be determined by its function and internal logic, without coping with the embodiment of the present application
Implementation process constitute any restriction.
The public notification of information method based on block chain in the embodiment of the present application is described in above-described embodiment, below will
The public notification of information device based on block chain in the embodiment of the present application is described, referring to Fig. 4, one in the embodiment of the present application
One embodiment of public notification of information device of the kind based on block chain may include:
First acquisition module 401 waits for that the information of publicity is detailed for obtaining;
Module 402 is built, for constructing target merkle trees according to information detail, and by first of target merkle trees
In abstract write-in block chain;
Receiving module 403, the information verification request for receiving user, information verification request include the target for needing to verify
Information;
Second acquisition module 404, for obtaining related information from target merkle trees according to information verification request;
Computing module 405, for generating second abstract according to information verification request and related information;
Correction verification module 406, for from block chain extract first abstract, and verify first abstract whether with second
Abstract is consistent, if unanimously, judging that target information is true.
Optionally, the structure module 402 in the embodiment of the present application includes:
Computing unit 4021, it is corresponding for carrying out unidirectional irreversible operation generation to each single item information in information detail
Characteristic value;
Construction unit 4022, for using the detailed corresponding each characteristic value of information as the end structure target of merkle trees
Merkle trees.
Optionally, as a kind of possible embodiment, referring to Fig. 5, information verification request in the embodiment of the present application
Further include information labels, the second acquisition module 404 specifically includes:
Numbered cell 4041 is numbered for each node to target merkle trees;
Determination unit 4042, the associated nodes number for determining target merkle trees according to information labels and corresponding pass
Interlink point;
Extraction unit 4043, for extracting the corresponding characteristic value of associated nodes.
Optionally, as a kind of possible embodiment, in the embodiment of the present application, computing module 405 specifically includes:
First generation unit 4051, the target information for verifying as needed generate the First Eigenvalue;
Second generation unit 4052, for generating second according to the First Eigenvalue and the corresponding characteristic value of associated nodes and plucking
It wants.
Optionally, as a kind of possible embodiment, the public notification of information device based on block chain in the embodiment of the present application
Further include:
Format analysis processing module 407, for being formatted according to preset format to each single item information in information detail
Processing, generates the Information Authentication content of unified format, and Information Authentication content includes at least identity, information labels.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Above from the angle of modular functionality entity to the vehicle accessory data for block chain in the embodiment of the present application
Processing unit is described, and the computer installation in the embodiment of the present application is described from the angle of hardware handles below:
The embodiment of the present application also provides a kind of computer installations 6, as shown in fig. 6, for convenience of description, illustrate only with
The relevant part of the embodiment of the present application, particular technique details do not disclose, please refer to the embodiment of the present application method part.The calculating
Machine device 6 refers generally to the stronger computer equipment of the processing capacities such as server.
With reference to figure 6, computer installation 6 includes:Power supply 610, memory 620, processor 630, wired or wireless network connect
Mouthfuls 640 and storage in memory and the computer program that can run on a processor.When processor executes computer program
Realize the step in above-mentioned each block chain common recognition embodiment of the method, such as step 101 shown in FIG. 1 is to 106.Alternatively, processing
Device realizes each module or the function of unit in above-mentioned each device embodiment when executing computer program.
In some embodiments of the present application, processor is specifically used for realizing following steps:
It obtains and waits for that the information of publicity is detailed;
Target merkle trees are constructed according to information detail, and block chain is written into first abstract of target merkle trees
In;
The information verification request of user is received, information verification request includes the target information for needing to verify;
According to information verification request related information is obtained from target merkle trees;
Second abstract is generated according to information verification request and related information;
First abstract is extracted from block chain, and whether first abstract of verification be consistent with second abstract, if unanimously,
Then judge that target information is verified.
Optionally, in some embodiments of the present application, processor can be also used for realizing following steps:
Unidirectional irreversible operation is carried out to each single item information in information detail and generates corresponding characteristic value;
Using the detailed corresponding each characteristic value of information as the end structure merkle trees of merkle trees.
Optionally, in some embodiments of the present application, information verification request includes that information labels processor can be also used for
Realize following steps:
Each node of target merkle trees is numbered;
The associated nodes number of target merkle trees and corresponding associated nodes are determined according to information labels;
Extract the corresponding characteristic value of associated nodes.
Optionally, in some embodiments of the present application, processor can be also used for realizing following steps:
The target information verified as needed generates the First Eigenvalue;
Second abstract is generated according to the First Eigenvalue and the corresponding characteristic value of associated nodes.
Optionally, in some embodiments of the present application, processor can be also used for realizing following steps:
Processing is formatted according to preset format to each single item information in information detail, generates the letter of unified format
Breath verification content, Information Authentication content include at least identity, information labels.
Computer installation 6 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.
Illustratively, computer program can be divided into one or more module/units, one or more module/unit is deposited
Storage in memory, and is executed by processor.One or more module/units can be can complete specific function a series of
Computer program instructions section, the instruction segment is for describing implementation procedure of the computer program in computer installation.
It will be understood by those skilled in the art that structure shown in Fig. 6 does not constitute the restriction to computer installation 6, meter
Calculation machine device 6 may include either combining certain components or different components arrangement than illustrating more or fewer components,
Such as computer installation can also include input-output equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng processor is the control centre of computer installation, utilizes each portion of various interfaces and the entire computer installation of connection
Point.
Memory can be used for storing computer program and/or module, processor are stored in memory by running or executing
Interior computer program and/or module, and the data being stored in memory are called, realize the various work(of computer installation
Energy.Memory can include mainly storing program area and storage data field, wherein storing program area can storage program area, at least
Application program (such as sound-playing function, image player function etc.) needed for one function etc.;Storage data field can store root
Created data (such as audio data, phone directory etc.) etc. are used according to mobile phone.In addition, memory may include that high speed is random
Memory is accessed, can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk
Memory device, flush memory device or other volatile solid-state parts.
Present invention also provides a kind of computer readable storage medium, calculating is stored on the computer readable storage medium
When computer program is executed by processor, following steps may be implemented in machine program:
It obtains and waits for that the information of publicity is detailed;
Target merkle trees are constructed according to information detail, and block chain is written into first abstract of target merkle trees
In;
The information verification request of user is received, information verification request includes the target information for needing to verify;
According to information verification request related information is obtained from target merkle trees;
Second abstract is generated according to information verification request and related information;
First abstract is extracted from block chain, and whether first abstract of verification be consistent with second abstract, if unanimously,
Then judge that target information is verified.
Optionally, in some embodiments of the present application, processor can be also used for realizing following steps:
Unidirectional irreversible operation is carried out to each single item information in information detail and generates corresponding characteristic value;
Using the detailed corresponding each characteristic value of information as the end structure merkle trees of merkle trees.
Optionally, in some embodiments of the present application, information verification request includes that information labels processor can be also used for
Realize following steps:
Each node of target merkle trees is numbered;
The associated nodes number of target merkle trees and corresponding associated nodes are determined according to information labels;
Extract the corresponding characteristic value of associated nodes.
Optionally, in some embodiments of the present application, processor can be also used for realizing following steps:
The target information verified as needed generates the First Eigenvalue;
Second abstract is generated according to the First Eigenvalue and the corresponding characteristic value of associated nodes.
Optionally, in some embodiments of the present application, processor can be also used for realizing following steps:
Processing is formatted according to preset format to each single item information in information detail, generates the letter of unified format
Breath verification content, Information Authentication content include at least identity, information labels.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above, above example are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to before
Embodiment is stated the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
Modification or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of public notification of information method based on block chain, which is characterized in that including:
It obtains and waits for that the information of publicity is detailed;
Target merkle trees are constructed according to described information detail, and block is written into first abstract of the target merkle trees
In chain;
The information verification request of user is received, described information checking request includes the target information for needing to verify;
According to described information checking request related information is obtained from target merkle trees;
Second abstract is generated according to described information checking request and the related information;
Extracted from block chain it is described first abstract, and verify it is described first abstract with described second abstract whether one
It causes, if unanimously, judging that the target information is verified.
2. according to the method described in claim 1, it is characterized in that, described construct target merkle according to described information detail
Tree, specifically includes:
Unidirectional irreversible operation is carried out to each single item information in information detail and generates corresponding characteristic value;
Using the detailed corresponding each characteristic value of described information as the end structure target merkle trees of merkle trees.
3. according to the method described in claim 1, it is characterized in that, described information checking request includes information labels, described
Related information is obtained from target merkle trees according to described information checking request, is specifically included:
Each node of the target merkle trees is numbered;
The associated nodes number of target merkle trees and corresponding associated nodes are determined according to described information label;
Extract the corresponding characteristic value of the associated nodes.
4. according to the method described in claim 3, it is characterized in that, described be associated with letter according to described information checking request with described
Breath generates second abstract, specifically includes:
The target information verified is needed to generate the First Eigenvalue according to described;
Second abstract is generated according to the First Eigenvalue and the corresponding characteristic value of the associated nodes.
5. method according to any one of claims 1 to 4, which is characterized in that constructed according to described information detail described
Before target merkle trees, the method further includes:
Processing is formatted according to preset format to each single item information in described information detail, generates the letter of unified format
Breath verification content, described information verify content and include at least identity, information labels.
6. a kind of public notification of information device based on block chain, which is characterized in that including:
First acquisition module waits for that the information of publicity is detailed for obtaining;
Module is built, for constructing target merkle trees according to described information detail, and by the first of the target merkle trees
In root abstract write-in block chain;
Receiving module, the information verification request for receiving user, described information checking request include the target letter for needing to verify
Breath;
Second acquisition module, for obtaining related information from target merkle trees according to described information checking request;
Computing module, for generating second abstract according to described information checking request and the related information;
Correction verification module for extracting first abstract from block chain, and verifies first abstract and described second
Whether root abstract is consistent, if unanimously, judging that the target information is verified.
7. device according to claim 6, which is characterized in that the structure module includes:
Computing unit generates corresponding characteristic value for carrying out unidirectional irreversible operation to each single item information in information detail;
Construction unit, for using the detailed corresponding each characteristic value of described information as the end structure target of merkle trees
Merkle trees.
8. device according to claim 7, which is characterized in that described information checking request includes information labels, and described
Two acquisition modules specifically include:
Numbered cell is numbered for each node to the target merkle trees;
Determination unit, for determining that the associated nodes of target merkle trees are numbered and corresponding association is saved according to described information label
Point;
Extraction unit, for extracting the corresponding characteristic value of the associated nodes.
9. a kind of computer installation, which is characterized in that the computer installation includes processor, and the processor is deposited for executing
It is realized when the computer program stored in reservoir such as the step of any one of claim 1 to 5 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that:The computer program
It is realized when being executed by processor such as the step of any one of claim 1 to 5 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810373976.1A CN108696511A (en) | 2018-04-24 | 2018-04-24 | A kind of public notification of information method, apparatus and relevant device based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810373976.1A CN108696511A (en) | 2018-04-24 | 2018-04-24 | A kind of public notification of information method, apparatus and relevant device based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108696511A true CN108696511A (en) | 2018-10-23 |
Family
ID=63845670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810373976.1A Pending CN108696511A (en) | 2018-04-24 | 2018-04-24 | A kind of public notification of information method, apparatus and relevant device based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108696511A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019101224A2 (en) | 2019-02-28 | 2019-05-31 | Alibaba Group Holding Limited | System and method for blockchain-based authentication |
CN109840769A (en) * | 2019-01-21 | 2019-06-04 | 中国联合网络通信集团有限公司 | Card method and device, system and storage medium are deposited based on block chain |
CN110009334A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of building Mei Keer tree, simple payment verification method and device |
CN110033264A (en) * | 2019-01-31 | 2019-07-19 | 阿里巴巴集团控股有限公司 | Construct the corresponding Mei Keer tree of block, simple payment verification method and device |
CN110430194A (en) * | 2019-08-06 | 2019-11-08 | 腾讯科技(深圳)有限公司 | A kind of method of Information Authentication, the method and device of chess and card Information Authentication |
CN110673966A (en) * | 2019-09-25 | 2020-01-10 | 东北大学 | Data interaction method based on block chain up-link down cooperation |
CN110866265A (en) * | 2019-11-19 | 2020-03-06 | 腾讯科技(深圳)有限公司 | Data storage method, device and storage medium based on block chain |
CN111552738A (en) * | 2020-04-20 | 2020-08-18 | 山东共智云科技发展有限公司 | Block chain ecosystem based on Internet of things and block chain chaining method |
CN111625873A (en) * | 2020-05-27 | 2020-09-04 | 山东师范大学 | Controllable information disclosure method and system based on mixed block chain |
CN112100683A (en) * | 2019-06-17 | 2020-12-18 | 宏碁股份有限公司 | Document verification method, document verification system and document verification server |
WO2021076055A1 (en) * | 2019-10-18 | 2021-04-22 | Illinois At Singapore Pte Ltd | Message authentication |
CN113014540A (en) * | 2020-11-24 | 2021-06-22 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
WO2024169227A1 (en) * | 2023-02-16 | 2024-08-22 | 腾讯科技(深圳)有限公司 | Identity verification method, related apparatus, and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407795A (en) * | 2016-09-05 | 2017-02-15 | 北京众享比特科技有限公司 | Data existence authentication system, authentication method and verification method |
CN106899412A (en) * | 2017-03-30 | 2017-06-27 | 北京链银博科技有限责任公司 | A kind of block chain method for secret protection, apparatus and system |
US20170250815A1 (en) * | 2016-01-26 | 2017-08-31 | Stampery Inc. | Systems and methods for certification of data units and/or certification verification |
CN107425969A (en) * | 2017-09-08 | 2017-12-01 | 华中科技大学 | A kind of employee's physical examination information authentication method based on block chain technology |
CN107846282A (en) * | 2017-11-03 | 2018-03-27 | 法信公证云(厦门)科技有限公司 | A kind of electronic data distribution keeping method and system based on block chain technology |
-
2018
- 2018-04-24 CN CN201810373976.1A patent/CN108696511A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170250815A1 (en) * | 2016-01-26 | 2017-08-31 | Stampery Inc. | Systems and methods for certification of data units and/or certification verification |
CN106407795A (en) * | 2016-09-05 | 2017-02-15 | 北京众享比特科技有限公司 | Data existence authentication system, authentication method and verification method |
CN106899412A (en) * | 2017-03-30 | 2017-06-27 | 北京链银博科技有限责任公司 | A kind of block chain method for secret protection, apparatus and system |
CN107425969A (en) * | 2017-09-08 | 2017-12-01 | 华中科技大学 | A kind of employee's physical examination information authentication method based on block chain technology |
CN107846282A (en) * | 2017-11-03 | 2018-03-27 | 法信公证云(厦门)科技有限公司 | A kind of electronic data distribution keeping method and system based on block chain technology |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110009334A (en) * | 2018-11-07 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of building Mei Keer tree, simple payment verification method and device |
CN109840769A (en) * | 2019-01-21 | 2019-06-04 | 中国联合网络通信集团有限公司 | Card method and device, system and storage medium are deposited based on block chain |
CN110033264A (en) * | 2019-01-31 | 2019-07-19 | 阿里巴巴集团控股有限公司 | Construct the corresponding Mei Keer tree of block, simple payment verification method and device |
KR20200105997A (en) * | 2019-02-28 | 2020-09-10 | 알리바바 그룹 홀딩 리미티드 | System and method for blockchain-based authentication |
WO2019101224A2 (en) | 2019-02-28 | 2019-05-31 | Alibaba Group Holding Limited | System and method for blockchain-based authentication |
WO2019101224A3 (en) * | 2019-02-28 | 2020-01-02 | Alibaba Group Holding Limited | System and method for blockchain-based authentication |
KR102237014B1 (en) | 2019-02-28 | 2021-04-07 | 어드밴스드 뉴 테크놀로지스 씨오., 엘티디. | System and method for blockchain-based authentication |
CN112100683A (en) * | 2019-06-17 | 2020-12-18 | 宏碁股份有限公司 | Document verification method, document verification system and document verification server |
CN110430194A (en) * | 2019-08-06 | 2019-11-08 | 腾讯科技(深圳)有限公司 | A kind of method of Information Authentication, the method and device of chess and card Information Authentication |
CN110430194B (en) * | 2019-08-06 | 2022-04-15 | 腾讯科技(深圳)有限公司 | Information verification method, chess and card information verification method and device |
CN110673966B (en) * | 2019-09-25 | 2023-03-07 | 东北大学 | Data interaction method based on block chain up-link down cooperation |
CN110673966A (en) * | 2019-09-25 | 2020-01-10 | 东北大学 | Data interaction method based on block chain up-link down cooperation |
WO2021076055A1 (en) * | 2019-10-18 | 2021-04-22 | Illinois At Singapore Pte Ltd | Message authentication |
CN110866265A (en) * | 2019-11-19 | 2020-03-06 | 腾讯科技(深圳)有限公司 | Data storage method, device and storage medium based on block chain |
CN111552738A (en) * | 2020-04-20 | 2020-08-18 | 山东共智云科技发展有限公司 | Block chain ecosystem based on Internet of things and block chain chaining method |
CN111552738B (en) * | 2020-04-20 | 2023-11-03 | 山东共智云科技发展有限公司 | Block chain ecological system and block chain uplink method based on Internet of things |
CN111625873A (en) * | 2020-05-27 | 2020-09-04 | 山东师范大学 | Controllable information disclosure method and system based on mixed block chain |
CN111625873B (en) * | 2020-05-27 | 2023-11-10 | 山东师范大学 | Controllable information presentation method and system based on mixed block chain |
CN113014540A (en) * | 2020-11-24 | 2021-06-22 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
WO2024169227A1 (en) * | 2023-02-16 | 2024-08-22 | 腾讯科技(深圳)有限公司 | Identity verification method, related apparatus, and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108696511A (en) | A kind of public notification of information method, apparatus and relevant device based on block chain | |
JP7126174B2 (en) | Verification system and method for collaboration of blockchain and off-chain devices | |
CN109242500B (en) | Block chain transaction validity verification method and device and storage medium | |
CN110245186B (en) | Service processing method based on block chain and related equipment | |
CN107423632A (en) | Customizable sensitive data desensitization method and system | |
CN112862612A (en) | Method and device for sending resources in cross-link mode | |
CN110011988A (en) | Based on the certification authentication method and device of block chain, storage medium, electronic device | |
CN107395353A (en) | A kind of block chain common recognition method and device | |
JP7279904B2 (en) | Chain data verification system and method | |
JP2018014765A5 (en) | ||
CN108282527A (en) | Generate the distributed system and method for Service Instance | |
CN108596749A (en) | Qualification method based on block chain and relevant apparatus | |
CN110443120A (en) | A kind of face identification method and equipment | |
CN111931220B (en) | Consensus processing method, device, medium and electronic equipment for block chain network | |
CN111125118B (en) | Associated data query method, device, equipment and medium | |
CN110266872A (en) | Management-control method, device and the cloud address book system of address book data | |
CN106060097B (en) | A kind of management system and management method of information security contest | |
US20230259938A1 (en) | Blockchain-based data processing method and apparatus, device, readable storage medium and computer program product | |
CN108304478A (en) | A kind of data processing method and server | |
CN110222028A (en) | A kind of data managing method, device, equipment and storage medium | |
CN114338666A (en) | Method, device, equipment and medium for verifying Fabric block chain cross-chain transaction | |
CN112307331A (en) | Block chain-based college graduate intelligent recruitment information pushing method and system and terminal equipment | |
CN108600250A (en) | Authentication method | |
CN111010282A (en) | Information processing method based on block chain and related device | |
CN110147390A (en) | A kind of ballot statistical method, device, storage medium and server |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181023 |
|
RJ01 | Rejection of invention patent application after publication |