CN110321384A - A kind of data record method based on block chain, device and electronic equipment - Google Patents

A kind of data record method based on block chain, device and electronic equipment Download PDF

Info

Publication number
CN110321384A
CN110321384A CN201910482698.8A CN201910482698A CN110321384A CN 110321384 A CN110321384 A CN 110321384A CN 201910482698 A CN201910482698 A CN 201910482698A CN 110321384 A CN110321384 A CN 110321384A
Authority
CN
China
Prior art keywords
block chain
target
target data
data
block
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
CN201910482698.8A
Other languages
Chinese (zh)
Other versions
CN110321384B (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.)
Ant Chain Technology Co ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910482698.8A priority Critical patent/CN110321384B/en
Publication of CN110321384A publication Critical patent/CN110321384A/en
Application granted granted Critical
Publication of CN110321384B publication Critical patent/CN110321384B/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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application provides a kind of data record method based on block chain, device and electronic equipment.Wherein, data record method includes: the cochain request of target block chain node response target data, the multi-party common recognition for being directed to the target data is initiated to other block chain nodes, wherein the target data includes the history event data of the life process of target user;If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node adds the block that record has the target data in local block chain;If the multi-party common recognition for the target data completes failure, or does not complete within the stipulated time for the multi-party common recognition of the target data, then target block chain node refusal addition record in local block chain has the block of the target data.

Description

A kind of data record method based on block chain, device and electronic equipment
Technical field
The invention relates to technical field of data processing more particularly to a kind of data record sides based on block chain Method, device and electronic equipment.
Background technique
For the data that authenticity, objectivity require, such as historical data, traffic violations data, recording reliability is Highly important factor.The mechanism for only relying on people and centralization is responsible for record, it is difficult to guarantee that data will not lose or maliciously be usurped Change.
Block chain is substantially the database of a decentralization, is particularly suitable for the data of record the above-mentioned type.How base Realized in block chain never lose, the objective and data record that can not distort, be technical problems to be solved in this application.
Summary of the invention
The embodiment of the present application purpose is to provide a kind of data record method based on block chain, device and electronic equipment, dress Set and electronic equipment, can using the database of decentralization possessed by block chain, realize it is a kind of never lose, objective and nothing The data recording schemes that method is distorted.
To achieve the goals above, the embodiment of the present application is achieved in that
In a first aspect, providing a kind of data record method based on block chain, comprising:
Target block chain node responds the cochain request of target data, initiates to be directed to the target to other block chain nodes The multi-party common recognition of data, wherein the target data includes the history event data of the life process of target user;
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node Addition record has the block of the target data in local block chain;
If the multi-party common recognition for the target data completes failure, or exists for the multi-party common recognition of the target data It is not completed in the stipulated time, then target block chain node refusal addition record in local block chain has the target The block of data.
Second aspect provides a kind of data recording equipment based on block chain, comprising:
Multi-party common recognition module, target block chain node respond the cochain request of target data, send out to other block chain nodes Play the multi-party common recognition for the target data, wherein the target data includes the history thing of the life process of target user Number of packages evidence;
Block adding module, it is described if the multi-party common recognition for the target data successfully completes at the appointed time Target block chain node adds the block that record has the target data in local block chain;
Cochain processing module if the multi-party common recognition for the target data completes failure, or is directed to the number of targets According to multi-party common recognition do not completed within the stipulated time, then target block chain node refusal adds in local block chain Record has the block of the target data.
The third aspect provides a kind of electronic equipment and includes: memory, processor and be stored on the memory and can be The computer program run on the processor, the computer program are executed by the processor:
Target block chain node responds the cochain request of target data, initiates to be directed to the target to other block chain nodes The multi-party common recognition of data, wherein the target data includes the history event data of the life process of target user;
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node Addition record has the block of the target data in local block chain;
If the multi-party common recognition for the target data completes failure, or exists for the multi-party common recognition of the target data It is not completed in the stipulated time, then target block chain node refusal addition record in local block chain has the target The block of data.
Fourth aspect provides a kind of calculation machine readable storage medium storing program for executing, is stored with calculating on the computer readable storage medium Machine program, the computer program realize following steps when being executed by processor:
Target block chain node responds the cochain request of target data, initiates to be directed to the target to other block chain nodes The multi-party common recognition of data, wherein the target data includes the history event data of the life process of target user;
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node Addition record has the block of the target data in local block chain;
If the multi-party common recognition for the target data completes failure, or exists for the multi-party common recognition of the target data It is not completed in the stipulated time, then target block chain node refusal addition record in local block chain has the target The block of data.
The scheme of the embodiment of the present application records the history event data of the life process of target user using block chain.It goes The block chain of centralization has numerous block chain nodes, and number can be guaranteed by carrying out cochain to data by way of knowing together in many ways According to authenticity and objectivity.Meanwhile the time known together in many ways is further limited, if block chain node is at the appointed time Do not reach the common recognition of data, then refuse data cochain, to reduce the risk being tampered before data cochain to a certain extent. In addition, data after cochain, need to destroy could be distorted more than half block chain node, or destroy all Block chain node could complete deletion, can not accomplish theoretically, therefore data are recorded in that can guarantee in block chain will not It is maliciously tampered and never loses.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application embodiment, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the first flow diagram of data record method provided by the embodiments of the present application.
Fig. 2 is second of flow diagram of data record method provided by the embodiments of the present application.
Fig. 3 is the structural schematic diagram of data recording equipment provided by the embodiments of the present application.
Fig. 4 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
The data (such as historical data, traffic violations data) required as previously mentioned, for authenticity, objectivity, note The reliability of record is highly important factor.The mechanism for only relying on people and centralization carries out data record, it is difficult to guarantee data not It can lose or be maliciously tampered.The application is intended to realize one kind using the database of decentralization possessed by block chain thus It never loses, the objective and data recording schemes that can not distort.
Fig. 1 is the flow chart of data record method of the embodiment of the present application based on block chain.Method shown in FIG. 1 can be by Hereafter corresponding device executes, comprising:
Step S102, target block chain node respond the cochain request of target data, initiate needle to other block chain nodes To the multi-party common recognition of target data, wherein the target data includes the history event data of the life process of target user.
It should be understood that in this step, it can be by distributed block chain without with prejudice and true history event data Node is reached common understanding, and cochain is obtained.
Step S104, if the multi-party common recognition for target data successfully completes at the appointed time, target block chain link Point addition record in local block chain has the block of target data.
Specifically, in this step, if target block chain node is accounting nodes, generating record has target data Block, and the block is added in local block chain, and the block is broadcasted to other block chain nodes.If target block Chain node is non-accounting nodes, then the record for receiving other block chain node broadcasts has the block of target data, and in this area The block is added in block chain.
Step S106, if the multi-party common recognition for target data completes failure, or for the multi-party common recognition of target data It does not complete at the appointed time, then target block chain node refusal addition record in local block chain has the area of target data Block.
Wherein, during multi-party common recognition, there are the risks being tampered before cochain for target data, in order to avoid this problem hair Raw, not Ying Taijiu of above-mentioned stipulated time is advisable with being greater than or equal to 1 hour and being less than or equal to 24 hours.
It can see that the scheme of the embodiment of the present application is recorded using block chain based on data record method shown in FIG. 1 The history event data of the life process of target user.The block chain of decentralization has numerous block chain nodes, by more The mode of Fang Gongshi, which carries out cochain to data, can guarantee the authenticity and objectivity of data.Meanwhile it further limiting multi-party The time of common recognition refuses data cochain if block chain node does not reach the common recognition of data at the appointed time, thus one Determine to reduce the risk being tampered before data cochain in degree.In addition, data after cochain, need to destroy more than half area Block chain node could be distorted, or destroy all block chain nodes ability complete deletions, be that can not do theoretically Arrive, thus data be recorded in block chain can guarantee will not be maliciously tampered and never lose.
It describes in detail below to the method for the embodiment of the present application.
The method of the embodiment of the present application using block chain decentralization, go trust, anti-tamper Distributed Storage Technology, the record of Lai Shixian data.
Wherein, the main flow of data record method includes:
Step S201, the target block chain of block chain receive the cochain request of history event data.
Wherein, history event data record has the event of human mind's process.Cochain request can be mankind's activity into What the event of journey was initiated after occurring.Under normal circumstances, event instantly is not aware that following influence after just occurring, so Each side has no reason and prepares to distort event, and one of original intention that history event data is stored in block chain is exactly anti- Only following the distorting and misreading to event instantly.
Step S202, target block chain node respond cochain request, initiate to be directed to historical events to other block chain nodes The multi-party common recognition of data.
Wherein, in order to provide the authenticity and fairness of common recognition, can specify that target block chain node to same level its His block chain node initiates multi-party common recognition, for example national history is known together by global every country mechanism, provincial history It is known together by national mechanism, each province.
Step S203 judges that the multi-party common recognition of history event data successfully completes at the appointed time.It is to then follow the steps S204, it is no to then follow the steps S207.
As previously mentioned, the stipulated time was advisable with 1 hour to 24 hours, need to be determined according to the property of the event of record.For Guarantee event can be recorded really, it is specified that the time can be using the time of origin of event as the initial time of timing. Through practice discovery, it is specified that the time is set as 3 hours, the common recognition demand of most history event datas can satisfy, while 3 small at this Mechanism, Shi Nei each side is difficult to generate the motivation and preparation distorted.
Step S204, target block chain node judge whether itself is accounting nodes, are to then follow the steps S205, otherwise Execute step S206.
Step S205, target block chain node generate the block that record has history event data, and in local block chain The block is added, and block is broadcasted to other block chain nodes.
Wherein, preferably, the recording address of target data within a block and the content of target data are uniquely corresponding. For example, in this step, target block chain node can be based on hashing algorithm (such as Message Digest 5, secure hash algorithm Deng), at least partly content of target data is compiled, the recording address of target data within a block is obtained.
It should be understood that in above-mentioned preferred embodiment, the content of target data, which changes, will lead to recording address and also becomes therewith It is dynamic.
Therefore, the recording address that each block chain node is corresponded to by comparing target data, can effectively determine target data Content whether occurred to distort, and then judge the accuracy of target data.For example, working as the mesh that a small number of block chain nodes are recorded When the recording address for the target data that the recording address and most block chain nodes for marking data are recorded is inconsistent, then it can indicate The target data that a small number of block chain nodes are recorded is (in practical applications, breaking to distort target data of being tampered with The bad block chain node more than half is the thing that it is almost impossible).
Step S206, the record that target block chain node receives other block chain node broadcasts have the block of target data, And the block of broadcast acquisition is added in local block chain.
Step S207, target block chain node refuse cochain request, and not in local block chain, addition record has number of targets According to block.
It is the introduction to the method for the embodiment of the present application above.It should be understood that not departing from hereinbefore basis, Variation appropriate can also be carried out, these variations also should be regarded as the protection scope of the embodiment of the present application.For example, the embodiment of the present application Data record method be applicable in record any data, however it is not limited to be above-mentioned history event data.
Ground is corresponded to the above method, as shown in figure 3, the embodiment of the present application also provides a kind of data note based on block chain Recording device 300, comprising:
Multi-party common recognition module 310, target block chain node responds the cochain request of target data, to other block chain nodes Initiate the multi-party common recognition for being directed to the target data, wherein the target data includes the history of the life process of target user Event data.
Block adding module 320, if the multi-party common recognition for the target data successfully completes at the appointed time, institute It states target block chain node and adds the block that record has the target data in local block chain.
Cochain processing module 330 if the multi-party common recognition for the target data completes failure, or is directed to the target The multi-party common recognition of data does not complete within the stipulated time, then the target block chain node refusal adds in local block chain Record is added to have the block of the target data.
It can see that the scheme of the embodiment of the present application is recorded using block chain based on data recording equipment shown in Fig. 3 The history event data of the life process of target user.The block chain of decentralization has numerous block chain nodes, by more The mode of Fang Gongshi, which carries out cochain to data, can guarantee the authenticity and objectivity of data.Meanwhile it further limiting multi-party The time of common recognition refuses data cochain if block chain node does not reach the common recognition of data at the appointed time, thus one Determine to reduce the risk being tampered before data cochain in degree.In addition, data after cochain, need to destroy more than half area Block chain node could be distorted, or destroy all block chain nodes ability complete deletions, be that can not do theoretically Arrive, thus data be recorded in block chain can guarantee will not be maliciously tampered and never lose.
Optionally, the recording address of target data within a block and the content of target data are uniquely corresponding, i.e. target data Content change and will lead to recording address and also change therewith.Obviously, the comparison of the recording address based on target data, can be with Judge whether the content of target data distorts, and then determines the accuracy of target data.For example, a small number of block chain nodes institute The recording address of the target data of record and the recording address for the target data that most block chain nodes are recorded are inconsistent, then table The target data for showing that a small number of block chain nodes are recorded is distorted.
Wherein, the recording address can be is compiled based at least partly content of the hashing algorithm to the target data It translates.
As exemplary introduction, above-mentioned hashing algorithm include it is following any one:
Message Digest 5 and secure hash algorithm.
Optionally, if the target block chain node is accounting nodes, the generation record of block adding module 320 has described The block of target data, and the block is added in local block chain, and the block is broadcasted to other block chain links Point.
Optionally, if the target block chain node is non-accounting nodes, block adding module 320 receives other blocks The record of chain node broadcasts has the block of the target data, and adds the block in local block chain.
Optionally, the target data includes the history event data of mankind's activity process.
Optionally, the stipulated time is greater than or equal to 1 hour and is less than or equal to 24 hours.
Optionally, the stipulated time starts timing when the target data generates.
Obviously, the data recording equipment of the embodiment of the present application can be used as holding for above-mentioned data record method shown in FIG. 1 Row main body, therefore the data recording equipment can be realized the function that data record method is realized in Fig. 1 and Fig. 2.Due to principle Identical, repeats no more herein.
Fig. 4 is the structural schematic diagram of one embodiment electronic equipment of the application.Referring to FIG. 4, in hardware view, the electricity Sub- equipment includes processor, optionally further comprising internal bus, network interface, memory.Wherein, memory may be comprising interior It deposits, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile memories Device (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that other Hardware required for business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always Line etc..Only to be indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus or a type of convenient for indicating Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer Data recording equipment is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following operation:
Target block chain node responds the cochain request of target data, initiates to be directed to the target to other block chain nodes The multi-party common recognition of data, wherein the target data includes the history event data of the life process of target user.
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node Addition record has the block of the target data in local block chain.
If the multi-party common recognition for the target data completes failure, or exists for the multi-party common recognition of the target data It is not completed in the stipulated time, then target block chain node refusal addition record in local block chain has the target The block of data.
Electronic equipment based on shown in Fig. 4 can see that the scheme of the embodiment of the present application records target using block chain The history event data of the life process of user.The block chain of decentralization has numerous block chain nodes, by many ways total The mode of knowledge, which carries out cochain to data, can guarantee the authenticity and objectivity of data.Meanwhile further limiting multi-party common recognition Time refuse data cochain if block chain node does not reach the common recognition of data at the appointed time, thus in certain journey The risk being tampered before data cochain is reduced on degree.In addition, data after cochain, need to destroy more than half block chain Node just can be carried out and distort, or destroy all block chain nodes ability complete deletions, can not accomplish theoretically, Therefore data be recorded in block chain can guarantee will not be maliciously tampered and never lose.
The data record method based on block chain disclosed in the above-mentioned embodiment illustrated in fig. 1 such as the application can be applied to handle In device, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.It is realizing In the process, each step of the above method can pass through the integrated logic circuit of the hardware in processor or the instruction of software form It completes.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided Vertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in the embodiment of the present application disclosed each Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional place Manage device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute At, or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory, This fields such as flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register maturation In storage medium.The storage medium is located at memory, and processor reads the information in memory, completes above-mentioned side in conjunction with its hardware The step of method.
It should be understood that above-mentioned data recording equipment may be implemented in Fig. 1 and shown in Fig. 2 in the electronic equipment of the embodiment of the present application The function of embodiment, repeats no more herein.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol Unit is collected, hardware or logical device are also possible to.
In addition, the embodiment of the present application also proposed a kind of computer readable storage medium, the computer readable storage medium One or more programs are stored, which includes instruction, and it is included the portable of multiple application programs which, which works as, When formula electronic equipment executes, the method that the portable electronic device can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing Following methods:
Target block chain node responds the cochain request of target data, initiates to be directed to the target to other block chain nodes The multi-party common recognition of data, wherein the target data includes the history event data of the life process of target user.
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node Addition record has the block of the target data in local block chain.
If the multi-party common recognition for the target data completes failure, or exists for the multi-party common recognition of the target data It is not completed in the stipulated time, then target block chain node refusal addition record in local block chain has the target The block of data.
It can see that the scheme of the embodiment of the present application is recorded using block chain based on above-mentioned computer readable storage medium Data.The block chain of decentralization has numerous block chain nodes, and carrying out cochain to data by way of knowing together in many ways can To guarantee the authenticity and objectivity of data.Meanwhile the time known together in many ways is further limited, if block chain node is being advised The common recognition for not reaching data in fixing time, then refuse data cochain, to be usurped before reducing data cochain to a certain extent The risk changed.In addition, data after cochain, need to destroy could be distorted more than half block chain node, either All block chain nodes ability complete deletions are destroyed, can not be accomplished theoretically, therefore data are recorded in block chain Can guarantee will not be maliciously tampered and never lose.
It should be understood that above-metioned instruction can make above when the portable electronic device for being included multiple application programs executes The data recording equipment realizes the function of Fig. 1 and embodiment illustrated in fig. 2, and repeats no more herein.
It will be understood by those skilled in the art that the embodiment of this specification can provide as the production of method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects can be used in this specification The form of example.Moreover, it wherein includes the computer of computer usable program code that this specification, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The above is only the embodiments of this specification, are not limited to this specification.For those skilled in the art For, this specification can have various modifications and variations.All any modifications made within the spirit and principle of this specification, Equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.

Claims (10)

1. a kind of data record method based on block chain, comprising:
Target block chain node responds the cochain request of target data, initiates to be directed to the target data to other block chain nodes Multi-party common recognition, wherein the target data includes the history event data of the life process of target user;
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node is at this Addition record has the block of the target data in ground block chain;
If the multi-party common recognition for the target data completes failure, or knows together for the multi-party of the target data described It is not completed in stipulated time, then target block chain node refusal addition record in local block chain has the target data Block.
2. according to the method described in claim 1,
Recording address of the target data in the block and the content of the target data are uniquely corresponding.
3. according to the method described in claim 2,
The recording address is compiled based at least partly content of the hashing algorithm to the target data.
4. according to the method described in claim 3,
The hashing algorithm includes any one in Message Digest 5 and secure hash algorithm.
5. method according to any of claims 1-4,
The target block chain node adds the block that record has the target data in local block chain, comprising:
If the target block chain node is accounting nodes, the block that record has the target data is generated, and in this area The block is added in block chain, and the block is broadcasted to other block chain nodes.
6. method according to any of claims 1-4,
The target block chain node adds the block that record has the target data in local block chain, comprising:
If the target block chain node is non-accounting nodes, the record for receiving other block chain node broadcasts has the target The block of data, and the block is added in local block chain.
7. method according to any of claims 1-4,
The stipulated time is greater than or equal to 1 hour and is less than or equal to 24 hours.
8. a kind of data recording equipment based on block chain, comprising:
Multi-party common recognition module, target block chain node respond the cochain request of target data, initiate needle to other block chain nodes To the multi-party common recognition of the target data, wherein the target data includes the historical events number of the life process of target user According to;
Block adding module, if the multi-party common recognition for the target data successfully completes at the appointed time, the target Block chain node adds the block that record has the target data in local block chain;
Cochain processing module, if the multi-party common recognition for the target data completes failure, or for the target data Multi-party common recognition does not complete within the stipulated time, then the target block chain node refusal adds record in local block chain There is the block of the target data.
9. a kind of electronic equipment includes: memory, processor and is stored on the memory and can transport on the processor Capable computer program, the computer program are executed by the processor:
Target block chain node responds the cochain request of target data, initiates to be directed to the target data to other block chain nodes Multi-party common recognition, wherein the target data includes the history event data of the life process of target user;
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node is at this Addition record has the block of the target data in ground block chain;
If the multi-party common recognition for the target data completes failure, or knows together for the multi-party of the target data described It is not completed in stipulated time, then target block chain node refusal addition record in local block chain has the target data Block.
10. a kind of computer readable storage medium, computer program, the meter are stored on the computer readable storage medium Calculation machine program realizes following steps when being executed by processor:
Target block chain node responds the cochain request of target data, initiates to be directed to the target data to other block chain nodes Multi-party common recognition, wherein the target data includes the history event data of the life process of target user;
If the multi-party common recognition for the target data successfully completes at the appointed time, the target block chain node is at this Addition record has the block of the target data in ground block chain;
If the multi-party common recognition for the target data completes failure, or knows together for the multi-party of the target data described It is not completed in stipulated time, then target block chain node refusal addition record in local block chain has the target data Block.
CN201910482698.8A 2019-06-04 2019-06-04 Block chain-based data recording method and device and electronic equipment Active CN110321384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910482698.8A CN110321384B (en) 2019-06-04 2019-06-04 Block chain-based data recording method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910482698.8A CN110321384B (en) 2019-06-04 2019-06-04 Block chain-based data recording method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110321384A true CN110321384A (en) 2019-10-11
CN110321384B CN110321384B (en) 2023-07-28

Family

ID=68120246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910482698.8A Active CN110321384B (en) 2019-06-04 2019-06-04 Block chain-based data recording method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110321384B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382166A (en) * 2020-03-16 2020-07-07 联想(北京)有限公司 Information processing method based on block chain and electronic equipment
CN112632543A (en) * 2020-12-29 2021-04-09 杭州趣链科技有限公司 Block chain based data uplink method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102852A (en) * 2018-08-22 2018-12-28 泰康保险集团股份有限公司 User data processing method, device, electronic equipment and computer-readable medium
US20190036712A1 (en) * 2017-07-26 2019-01-31 Alibaba Group Holding Limited Digital certificate management method, apparatus, and system
CN109359973A (en) * 2018-08-24 2019-02-19 阿里巴巴集团控股有限公司 Data based on block chain deposit card method and apparatus
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190036712A1 (en) * 2017-07-26 2019-01-31 Alibaba Group Holding Limited Digital certificate management method, apparatus, and system
CN109426949A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Across the chain method of commerce of one kind and device
CN109102852A (en) * 2018-08-22 2018-12-28 泰康保险集团股份有限公司 User data processing method, device, electronic equipment and computer-readable medium
CN109359973A (en) * 2018-08-24 2019-02-19 阿里巴巴集团控股有限公司 Data based on block chain deposit card method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"区块链共识机制的规则特点:共享、共识与共赢的制度基础", 《软件》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382166A (en) * 2020-03-16 2020-07-07 联想(北京)有限公司 Information processing method based on block chain and electronic equipment
CN112632543A (en) * 2020-12-29 2021-04-09 杭州趣链科技有限公司 Block chain based data uplink method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN110321384B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
US20220269332A1 (en) Methods and apparatus for characterizing memory devices
US11847183B2 (en) Methods and apparatus for checking the results of characterized memory searches
CN110827028B (en) Block chain-based data acquisition transaction system and method
US7926103B2 (en) System and method for preventing replay attacks
EP3779760B1 (en) Blockchain-based data processing method and apparatus, and electronic device
US8396840B1 (en) System and method for targeted consistency improvement in a distributed storage system
US8468134B1 (en) System and method for measuring consistency within a distributed storage system
TW201800967A (en) Method and device for processing distributed streaming data
CN104731816A (en) Method and device for processing abnormal business data
CN110321384A (en) A kind of data record method based on block chain, device and electronic equipment
US20220239668A1 (en) Blockchain-based message processing method and apparatus, device, and storage medium
CN110557800B (en) Method for identifying type of wireless hotspot and network equipment thereof
CN108647118A (en) Copy abnormal restoring method, device and computer equipment based on storage cluster
CN110008197A (en) A kind of data processing method, system and electronic equipment and storage medium
CN114402352A (en) Method and apparatus for tracking and measuring a proof of work contribution in a mine
CN109918468A (en) Internet of things equipment position data region screening technique based on Mercator projection
CN107133334A (en) Method of data synchronization based on high bandwidth storage system
CN105653551B (en) The method and device thereof that data are updated and counted in distributed system
CN109101577A (en) A kind of data circulation method, apparatus and system
CN110209347B (en) Traceable data storage method
CN111628996A (en) Electronic data communication method and system based on Internet of things
CN111554407A (en) Crowd marking method, system and computer readable storage medium
CN110399098A (en) A kind of data processing method and electronic equipment
CN114564456B (en) Distributed storage file recovery method and device
CN111736778B (en) Data updating method, device and system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40015628

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240929

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Ant Chain Technology Co.,Ltd.

Country or region after: Singapore

Address before: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands