CN109088914A - Generation method, the block chain ecosystem and the computer readable storage medium of block - Google Patents

Generation method, the block chain ecosystem and the computer readable storage medium of block Download PDF

Info

Publication number
CN109088914A
CN109088914A CN201810722478.3A CN201810722478A CN109088914A CN 109088914 A CN109088914 A CN 109088914A CN 201810722478 A CN201810722478 A CN 201810722478A CN 109088914 A CN109088914 A CN 109088914A
Authority
CN
China
Prior art keywords
block
affairs
node
type
verifying
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
CN201810722478.3A
Other languages
Chinese (zh)
Other versions
CN109088914B (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.)
Shenzhen Zhi Qian Block Chain Science And Technology Co Ltd
Original Assignee
Shenzhen Zhi Qian Block Chain Science And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhi Qian Block Chain Science And Technology Co Ltd filed Critical Shenzhen Zhi Qian Block Chain Science And Technology Co Ltd
Priority to CN201810722478.3A priority Critical patent/CN109088914B/en
Publication of CN109088914A publication Critical patent/CN109088914A/en
Application granted granted Critical
Publication of CN109088914B publication Critical patent/CN109088914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of generation methods of block.The generation method of the block is applied to the block chain ecosystem, the block chain ecosystem includes host node and child node, it is divided into verifying node in the middle part of the host node, the generation method of the block includes: the verifying node when receiving the affairs that the child node is sent, and whether the type for detecting the affairs is default transaction types;If the type of the affairs is default transaction types, the affairs are sent to block generator, so that the block generator generates new block on the verifying node, wherein the new block is for storing the corresponding data of the affairs.The invention also discloses a kind of block chain ecosystem and computer readable storage mediums.The present invention can be improved the resource utilization of the block chain ecosystem.

Description

Generation method, the block chain ecosystem and the computer readable storage medium of block
Technical field
The present invention relates to block chain technical field more particularly to a kind of generation method of block, the block chain ecosystem and Computer readable storage medium.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Application model.For narrow sense, block chain is that data block is combined by one kind in such a way that sequence is connected sequentially in time A kind of linked data structure, and the distributed data that can not be distorted He can not forge or database guaranteed in a manner of cryptography. Broadly, block chain technology is that calculation of knowing together with storing data, using distributed node is verified using block linked data structure Method guarantees the safety of data transmission and access to generate, using by automatized script with more new data, in the way of cryptography The intelligent contract of code composition programs the completely new distributed basis framework and calculation of one kind with operation data.
Based on the essential attribute of block chain, over time, can be generated inside the block chain ecosystem a large amount of Blank block, in order to which system calls block to read and write in time when generating operation inside block chain.But in the feelings of limited resources Under condition, inside block chain under any operation of no progress, huge number of blank block is produced, block chain ecology can be given The block chain biological subsystem of system, especially enterprise, unit or department's creation brings huge burden and the wasting of resources.Cause This, exists in the prior art the lower technical problem of the resource utilization of the block chain ecosystem.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of generation methods of block, the block chain ecosystem and computer-readable Storage medium, it is intended to improve the resource utilization of the block chain ecosystem.
To achieve the above object, the present invention provides a kind of generation method of block, and the generation method of the block is applied to The block chain ecosystem, the block chain ecosystem include host node and child node, and verifying section is divided into the middle part of the host node The generation method of point, the block includes:
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is pre- If transaction types;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that described Block generator generates new block on the verifying node, wherein the new block is corresponding for storing the affairs Data.
Optionally, the default transaction types include newly-increased data type and modify data type, described by the affairs It is sent to block generator, so that the block generator generates new block on the verifying node, wherein described new The step of block is for storing the affairs corresponding data, comprising:
If the type of the affairs is the newly-increased data type or modification data type, the affairs are sent to area Module generator, so that the block generator generates new block on the verifying node, wherein the new block is used for Store corresponding newly-increased data or modification data.
Optionally, the generation method of the block further include:
The new block is sent to other verifying nodes, so that other verifying nodes carry out the new block Verifying;
When receiving the verification result that other verifying nodes are sent, detect whether the verification result is to be proved to be successful;
If the verification result be proved to be successful, by the new block newly-increased data or modification data be synchronized to On other host nodes.
Optionally, the generation method of the block further include:
If the verification result is authentication failed, corresponding alarm prompt is carried out.
Optionally, the generation method of the block further include:
If the type of the affairs is not default transaction types, new block is not generated on the verifying node.
In addition, to achieve the above object, the present invention also provides a kind of block chain ecosystem, the block chain ecosystem Including host node and child node, it is divided into verifying node in the middle part of the host node, further includes memory, processor and be stored in described On memory and the generation program of block that can run on the processor, the generation program of the block is by the processor It is performed the steps of when execution
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is pre- If transaction types;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that described Block generator generates new block on the verifying node, wherein the new block is corresponding for storing the affairs Data.
Optionally, the default transaction types include newly-increased data type and modification data type, the generation of the block It is also performed the steps of when program is executed by the processor
If the type of the affairs is the newly-increased data type or modification data type, the affairs are sent to area Module generator, so that the block generator generates new block on the verifying node, wherein the new block is used for Store corresponding newly-increased data or modification data.
Optionally, it is also performed the steps of when the generation program of the block is executed by the processor
The new block is sent to other verifying nodes, so that other verifying nodes carry out the new block Verifying;
When receiving the verification result that other verifying nodes are sent, detect whether the verification result is to be proved to be successful;
If the verification result be proved to be successful, by the new block newly-increased data or modification data be synchronized to On other host nodes.
Optionally, if the verification result is authentication failed, corresponding alarm prompt is carried out.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium The generation program of block is stored on storage medium, the generation program of the block performs the steps of when being executed by processor
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is pre- If transaction types;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that described Block generator generates new block on the verifying node, wherein the new block is corresponding for storing the affairs Data.
The present invention provides a kind of generation method of block, the block chain ecosystem and computer readable storage medium, the area The generation method of block chain is applied to the block chain ecosystem, which includes host node and child node, wherein leading Be divided into verifying node in the middle part of node, verifying node when receiving the affairs of child node transmission, detect the affairs type whether To preset transaction types, which is the corresponding type of office for needing new block to store its data, If the type of the affairs is default transaction types, which is sent to block generator, so that block generator is tested at this New block is generated on card node, the new block is for storing the corresponding data of the affairs.By the above-mentioned means, needle of the present invention New block is just generated to the affairs for needing to store corresponding data, the affairs for avoiding other from being not required to storage corresponding data cause blank area The generation of block, so that the resource utilization of the block chain ecosystem can be improved.
Detailed description of the invention
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the generation method first embodiment of block of the present invention;
Fig. 3 is the flow diagram of the generation method second embodiment of block of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In the prior art, the essential attribute based on block chain, over time, inside the block chain ecosystem A large amount of blank block can be generated, in order to which system calls block to read and write in time when generating operation inside block chain.But In the case where limited resources, inside block chain under any operation of no progress, huge number of blank block, meeting are produced The block chain biological subsystem of the block chain ecosystem, especially enterprise, unit or department's creation is given to bring huge burden And the wasting of resources.Therefore, the lower technical problem of the resource utilization of the block chain ecosystem exists in the prior art.
In order to solve the above technical problem, the present invention provides a kind of generation method of block, the block chain ecosystem and meters The generation method of calculation machine readable storage medium storing program for executing, the block chain is applied to the block chain ecosystem, which includes Host node and child node are wherein divided into verifying node in the middle part of host node, verify node when receiving the affairs of child node transmission, Whether the type for detecting the affairs is default transaction types, which is that new block is needed to store its data The corresponding type of office the affairs are sent to block generator, are made if the type of the affairs is default transaction types It obtains block generator and generates new block on the verifying node, the new block is for storing the corresponding data of the affairs.It is logical Aforesaid way is crossed, the present invention just generates new block for the affairs for needing to store corresponding data, avoids other from being not required to storage and corresponds to The affairs of data cause the generation of blank block, so that the resource utilization of the block chain ecosystem can be improved.
Referring to Fig. 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention carries the block chain ecosystem.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components. User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, Wi-Fi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, light Sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can according to the light and shade of ambient light come The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when terminal is moved in one's ear.As movement One kind of sensor, gravity accelerometer can detect the size of (generally three axis) acceleration in all directions, when static Size and the direction that can detect that gravity can be used to identify application (such as the horizontal/vertical screen switching, related trip of mobile terminal posture Play, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, terminal can also configure gyro The other sensors such as instrument, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, the generation program of Subscriber Interface Module SIM and block.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client, carries out data communication with client;And processor 1001 can be with For calling the generation program of the block stored in memory 1005, and execute following operation:
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is pre- If transaction types;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that described Block generator generates new block on the verifying node, wherein the new block is corresponding for storing the affairs Data.
In embodiments of the present invention, the generation method of the block is applied to the block chain ecosystem, the block chain ecosystem System includes host node and child node, is wherein divided into verifying node in the middle part of host node.Wherein, the effect of host node be in storage chains most The block chain and database of new version;In the master node, the host node for generating new block will be had permission to be referred to as to verify node, is tested Card node is also used to play verifying to the data of block;Child node can be established in the block chain ecosystem oneself application and The Ecological Information of oneself enterprise, department, child node can select total data to be linked into block chain according to own situation, or Only partial data is linked into block chain, or will be in data access block chain.In the case where limited resources, block chain Inside can produce huge in the case where any operation of no progress or in the case where only relating to the retrieval and inquiry operation of data The blank block of big quantity, thus the block chain ecology created to the block chain ecosystem, especially enterprise, unit or department Subsystem brings huge burden and the wasting of resources.Therefore, various resources are utilized for protection conscientiously and rationally, it is raw improves block chain The level of resources utilization of state system obtains maximum economic benefit and social benefit with resource consumption as few as possible.
Specifically, whether the type for detecting the affairs is default when verifying node receives the affairs of child node transmission Transaction types judge whether the affairs belong to and new block are needed to go to store the corresponding data of the affairs, and in block chain ecology In system, when the affairs on block chain node generate the newly-increased or modification of data, new block is needed to store corresponding data, because This, default transaction types include newly-increased data type and modification data type in a particular embodiment, can also include certainly Other need the corresponding type of office of new block progress storing data.If the type of the affairs is default transaction types, i.e., When the transaction types are newly-increased data type or modification data type, then the affairs are sent to block generator, so that block Generator generates new block on the verifying node, and the new block is for storing the corresponding newly-increased data of the affairs or modification Data.By the above-mentioned means, the present invention just generates new block for the affairs for needing to store corresponding data, other is avoided to be not required to deposit The affairs of storage corresponding data cause the generation of blank block, so that the resource utilization of the block chain ecosystem can be improved.
Further, the default transaction types include newly-increased data type and modification data type, and processor 1001 can To call the generation program of the block stored in memory 1005, following operation is also executed:
If the type of the affairs is the newly-increased data type or modification data type, the affairs are sent to area Module generator, so that the block generator generates new block on the verifying node, wherein the new block is used for Store corresponding newly-increased data or modification data.
Further, processor 1001 can call the generation program of the block stored in memory 1005, also execute with Lower operation:
The new block is sent to other verifying nodes, so that other verifying nodes carry out the new block Verifying;
When receiving the verification result that other verifying nodes are sent, detect whether the verification result is to be proved to be successful;
If the verification result be proved to be successful, by the new block newly-increased data or modification data be synchronized to On other host nodes.
Further, processor 1001 can call the generation program of the block stored in memory 1005, also execute with Lower operation:
If the verification result is authentication failed, corresponding alarm prompt is carried out.
Further, processor 1001 can call the generation program of the block stored in memory 1005, also execute with Lower operation:
If the type of the affairs is not default transaction types, new block is not generated on the verifying node.
Based on above-mentioned hardware configuration, each embodiment of generation method of block of the present invention is proposed.
Referring to Fig. 2, Fig. 2 is the flow diagram of the generation method first embodiment of block of the present invention.
In embodiments of the present invention, the generation method of the block is applied to the block chain ecosystem, the block chain ecosystem System is based on block chain be Floor layer Technology government affairs chain building, which includes host node and child node, Be divided into verifying node in the middle part of middle host node, each block chain node be one group of physical network, computer, block chain application software with And the combination of database, data exchange can be carried out.Wherein, the effect of host node is the block chain sum number of latest edition in storage chains According to library;In the master node, the host node for generating new block will be had permission to be referred to as to verify node, verifying node is also used to block Data play verifying;The corresponding account of child node can apply to become the member of the block chain ecosystem, that is, be added to government affairs In chain, membership qualification is obtained after being ratified by founder, also account can be invited to be added by founder, and the block chain ecosystem is added Organization or " one-touch " creation of personal account belong to ecology of the independent block chain with hierarchical administration authority System, the synchronization and circulation of information between unit/enterprises block, and with different blocks chain biological subsystem (unit/enterprise Industry) information it is shared, can also be established in the block chain ecosystem oneself application and oneself enterprise, department Ecological Information, Child node can select total data to be linked into block chain according to own situation, or partial data is only linked into block chain In, or will be in data access block chain.In the case where limited resources, in no any operation of progress inside block chain In the case of or in the case where only relating to the retrieval and inquiry operation of data, huge number of blank block can be produced, to give The block chain ecosystem, especially enterprise, unit or department creation block chain biological subsystem bring it is huge burden and The wasting of resources.Therefore, various resources are utilized for protection conscientiously and rationally, improve the level of resources utilization of the block chain ecosystem, Maximum economic benefit and social benefit are obtained with resource consumption as few as possible, in the present invention, node is verified by judgement Whether the type of the affairs received is default transaction types, that is, determines whether the affairs need to generate new block to corresponding Data are stored, and just new block are generated on the verifying node when the type of the affairs is default transaction types, when this The type of affairs does not then generate new block on the verifying node when not being default transaction types, to reduce blank block It generates, improves the resource utilization of the block chain ecosystem.
The generation method of the block includes:
Step S10, the verifying node detect the type of the affairs when receiving the affairs that the child node is sent It whether is default transaction types;
In embodiments of the present invention, the generation method of the block is applied to the block chain ecosystem, the block chain ecosystem System includes host node and child node, is wherein divided into verifying node in the middle part of host node, can basis when child node needs to handle affairs Data format and content of the affairs etc. are filled up in database table, and the affairs that then will fill in are sent to each block chain link Point, when verifying node receives the affairs of child node transmission, whether the type for detecting the affairs is default transaction types.When So, in a particular embodiment, the affairs that child node is sent, it is also possible to it is received by other host nodes of non-authentication node, at this point, Host node meeting affairs are transmitted to verifying node, and therefore, the affairs that verifying node receives are not limited to child node transmission, It is also likely to be that the host node of non-authentication node is sent.Whether the type for verifying the nodal test affairs is default transaction types, Judging whether the affairs belong to needs new block to go to store the corresponding data of the affairs, and in the block chain ecosystem, When affairs on block chain node generate the newly-increased or modification of data, new block is needed to store corresponding data, therefore, presets thing Service type includes that newly-increased data type and modification data type in a particular embodiment, can also need new certainly including other The corresponding type of office of block progress storing data.
The affairs are sent to block generator if the type of the affairs is default transaction types by step S20, So that the block generator generates new block on the verifying node, wherein the new block is for storing the thing It is engaged in corresponding data.
In embodiments of the present invention, if the type of the affairs is default transaction types, i.e., the transaction types are newly-increased data When type or modification data type, then the affairs are sent to block generator, so that block generator is on the verifying node New block is generated, the new block is for storing the corresponding newly-increased data of the affairs or modification data.Specific block generates Principle and method please refer to the prior art, do not repeat herein.
After step slo, further includes:
If the type of the affairs is not default transaction types, new block is not generated on the verifying node.
In embodiments of the present invention, the transaction types generated in child node remove newly-increased data type and modification data type Outside, there are also data retrieval type and data query type etc., the affairs of data retrieval type and data query type only relate to count According to retrieval and inquiry, do not need new block and go storage related data, therefore, if the type of the affairs is not default transactions classes Type, i.e., the affairs generated on block chain node are not newly-increased data type or modification data type, and be data retrieval type or When data query type, at this point, then new block is not generated on the verifying node, to avoid the wasting of resources, to can be improved The resource utilization of the block chain ecosystem.
For a better understanding of the present invention, an application scenarios of the embodiment of the present invention of illustrating below.
Community civil administration infrastructure service station creates corresponding block chain ecology as the child node in the block chain ecosystem Subsystem, when handling residence permit, the addition that may be related to residence permit is handled, the things such as modification for handling state of residence permit Therefore business can generate newly-increased data type or modify the affairs of data type, at this point, verifying node is receiving child node hair When the affairs of the newly-increased data type or modification data type for sending, need to generate on the verifying node by block generator New block, to store corresponding data.If whether the residence permit for only inquiring a certain resident has handled successfully or inquiry is a certain When whether resident has handled the information of residence permit, then the affairs of data query type are pertained only to, verifying node is receiving the number According to query type affairs when, then without generating new block.
The embodiment of the present invention provides a kind of generation method of block, and the generation method of the block chain is applied to block chain ecology System, the block chain ecosystem include host node and child node, verifying node are wherein divided into the middle part of host node, verifying node exists When receiving the affairs of child node transmission, whether the type for detecting the affairs is default transaction types, which is The corresponding type of the office for needing new block to store its data, if the type of the affairs is default transaction types, The affairs are sent to block generator, so that block generator generates new block on the verifying node, the new block For storing the corresponding data of the affairs.By the above-mentioned means, the present invention is just generated for the affairs for needing to store corresponding data New block, the affairs for avoiding other from being not required to storage corresponding data cause the generation of blank block, so that block chain ecology can be improved The resource utilization of system.
Referring to Fig. 3, Fig. 3 is the flow diagram of the generation method second embodiment of block of the present invention.
Based on first embodiment shown in Fig. 2, the default transaction types include newly-increased data type and modification data class Type, at this point, step S20 includes:
Step S21, if the type of the affairs is the newly-increased data type or modification data type, by the affairs It is sent to block generator, so that the block generator generates new block on the verifying node, wherein described new Block is for storing corresponding newly-increased data or modification data.
In embodiments of the present invention, when the affairs in child node generate the newly-increased or modification of data, verifying node is being received When the affairs sent to child node, need that new block stores corresponding newly-increased data or therefore modification data preset affairs Type includes newly-increased data type and modification data type.For verifying node when receiving the affairs of child node transmission, detection should Whether the type of affairs is newly-increased data type or modification data type, if the type of the affairs is newly-increased data type or modification The affairs are then sent to block generator by data type, so that block generator generates new block on the verifying node, The new block is for storing the corresponding newly-increased data of the affairs or modification data.
After step S20, the generation method of the block further include:
The new block is sent to other verifying nodes by step S30, so that other verifying nodes are to described new Block is verified;
Then, by the new block be sent to other verifying node so that other verifying nodes to the new block into Row verifying.
Step S40 detects whether the verification result is to test when receiving the verification result that other verifying nodes are sent It demonstrate,proves successfully;
Step S51, if the verification result is to be proved to be successful, by the newly-increased data or modification number in the new block According to being synchronized on other host nodes.
Step S52 carries out corresponding alarm prompt if the verification result is authentication failed.
In embodiments of the present invention, since in the block chain ecosystem, the effect of host node is latest edition in storage chains This block chain and database.Any one of host node is verified in node after writing/reading data, and all host nodes are most It can all synchronize afterwards, guarantee that block chain is consistent.Therefore, when generating new block on any verifying node, for storing newly-increased data Or when modification data, newly-increased data or modification data in block that other host nodes in the block chain ecosystem need to be new to this It synchronizes.
In embodiments of the present invention, new region is being generated, it, will after storing corresponding newly-increased data or modification data The new block is sent to other verifying nodes, verifies in the nodes block new to this so that other are verified, specifically Verifying content and verification mode can refer to the prior art, not repeat herein.When the verifying for receiving other verifying nodes transmissions When as a result, detect whether the verification result is to be proved to be successful.If the verification result is to be proved to be successful, will be in the new block Newly-increased data or modification data are synchronized on other host nodes.If the verification result is authentication failed, corresponding alarm is carried out Prompt.Then, until being proved to be successful and then synchronizing backup.
The present invention also proposes that a kind of block chain ecosystem includes host node and child node, part in the host node To verify node, further includes memory, processor and be stored in the area that can be run on the memory and on the processor The generation program of block is realized as described in any of the above item embodiment when the generation program of the block is executed by the processor The step of generation method of block.
The specific embodiment of the block chain ecosystem of the present invention and each embodiment of generation method of above-mentioned block are essentially identical, Therefore not to repeat here.
The present invention also proposes a kind of computer readable storage medium, is stored with block on the computer readable storage medium Program is generated, the life of the block as described in any of the above item embodiment is realized when the generation program of the block is executed by processor The step of at method.
The specific embodiment of computer readable storage medium of the present invention and each embodiment of generation method of above-mentioned block are basic Identical, therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of generation method of block, which is characterized in that the generation method of the block is applied to the block chain ecosystem, institute Stating the block chain ecosystem includes host node and child node, is divided into verifying node, the generation of the block in the middle part of the host node Method the following steps are included:
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is default thing Service type;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that the block Generator generates new block on the verifying node, wherein the new block is for storing the corresponding number of the affairs According to.
2. the generation method of block as described in claim 1, which is characterized in that the default transaction types include newly-increased data Type and modification data type, it is described that the affairs are sent to block generator, so that the block generator is tested described New block is generated on card node, wherein the step of new block is for storing the affairs corresponding data, comprising:
If the type of the affairs is the newly-increased data type or modification data type, it is raw that the affairs are sent to block It grows up to be a useful person, so that the block generator generates new block on the verifying node, wherein the new block is for storing Corresponding newly-increased data or modification data.
3. the generation method of block as claimed in claim 2, which is characterized in that the generation method of the block further include:
The new block is sent to other verifying nodes, so that other verifying nodes test the new block Card;
When receiving the verification result that other verifying nodes are sent, detect whether the verification result is to be proved to be successful;
If the verification result be proved to be successful, by the new block newly-increased data or modification data be synchronized to other On host node.
4. the generation method of block as claimed in claim 3, which is characterized in that the generation method of the block further include:
If the verification result is authentication failed, corresponding alarm prompt is carried out.
5. the generation method of block as described in claim 1, which is characterized in that the generation method of the block further include:
If the type of the affairs is not default transaction types, new block is not generated on the verifying node.
6. a kind of block chain ecosystem, which is characterized in that the block chain ecosystem includes host node and child node, described It is divided into verifying node in the middle part of host node, further includes memory, processor and be stored on the memory and can be in the processing The generation program of the block run on device, the generation program of the block perform the steps of when being executed by the processor
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is default thing Service type;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that the block Generator generates new block on the verifying node, wherein the new block is for storing the corresponding number of the affairs According to.
7. the block chain ecosystem as claimed in claim 6, which is characterized in that the default transaction types include newly-increased data Type and modification data type, also perform the steps of when the generation program of the block is executed by the processor
If the type of the affairs is the newly-increased data type or modification data type, it is raw that the affairs are sent to block It grows up to be a useful person, so that the block generator generates new block on the verifying node, wherein the new block is for storing Corresponding newly-increased data or modification data.
8. the block chain ecosystem as claimed in claim 7, which is characterized in that the generation program of the block is by the processing Device also performs the steps of when executing
The new block is sent to other verifying nodes, so that other verifying nodes test the new block Card;
When receiving the verification result that other verifying nodes are sent, detect whether the verification result is to be proved to be successful;
If the verification result be proved to be successful, by the new block newly-increased data or modification data be synchronized to other On host node.
9. the block chain ecosystem as claimed in claim 7, which is characterized in that the generation program of the block is by the processing Device also performs the steps of when executing
If the verification result is authentication failed, corresponding alarm prompt is carried out.
10. a kind of computer readable storage medium, which is characterized in that be stored with block on the computer readable storage medium Program is generated, the generation program of the block performs the steps of when being executed by processor
For the verifying node when receiving the affairs that the child node is sent, whether the type for detecting the affairs is default thing Service type;
If the type of the affairs is default transaction types, the affairs are sent to block generator, so that the block Generator generates new block on the verifying node, wherein the new block is for storing the corresponding number of the affairs According to.
CN201810722478.3A 2018-07-03 2018-07-03 Block generation method, block chain ecosystem and computer readable storage medium Active CN109088914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810722478.3A CN109088914B (en) 2018-07-03 2018-07-03 Block generation method, block chain ecosystem and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810722478.3A CN109088914B (en) 2018-07-03 2018-07-03 Block generation method, block chain ecosystem and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109088914A true CN109088914A (en) 2018-12-25
CN109088914B CN109088914B (en) 2021-10-01

Family

ID=64837254

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810722478.3A Active CN109088914B (en) 2018-07-03 2018-07-03 Block generation method, block chain ecosystem and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109088914B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110059089A (en) * 2019-03-27 2019-07-26 深圳前海达闼云端智能科技有限公司 Data synchronization method and device, storage medium and electronic equipment
CN110086780A (en) * 2019-03-26 2019-08-02 北京百度网讯科技有限公司 The processing method for being tampered transaction, device and storage medium based on ether mill
CN112633879A (en) * 2020-12-18 2021-04-09 上海万向区块链股份公司 Consensus system and method applied to block chain and capable of preventing empty blocks from appearing in non-transaction state
CN113826354A (en) * 2019-11-13 2021-12-21 支付宝(杭州)信息技术有限公司 Error correction code based block chain data storage

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124403A (en) * 2017-04-14 2017-09-01 朱清明 The generation method and computing device of common recognition block in block chain
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
US20170351660A1 (en) * 2016-06-06 2017-12-07 Morgan Warstler Method and system of provisioning electronic forms
CN107623686A (en) * 2017-09-12 2018-01-23 深圳先进技术研究院 Block chain common recognition reaches method, apparatus, equipment and storage medium
CN108009445A (en) * 2017-11-30 2018-05-08 成都蓝海贝信息技术有限公司 A kind of trust data management system of half centralization
CN108235799A (en) * 2017-12-27 2018-06-29 深圳达闼科技控股有限公司 Block generation method, device, storage medium and block chain network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170351660A1 (en) * 2016-06-06 2017-12-07 Morgan Warstler Method and system of provisioning electronic forms
CN107124403A (en) * 2017-04-14 2017-09-01 朱清明 The generation method and computing device of common recognition block in block chain
CN107395353A (en) * 2017-04-24 2017-11-24 阿里巴巴集团控股有限公司 A kind of block chain common recognition method and device
CN107623686A (en) * 2017-09-12 2018-01-23 深圳先进技术研究院 Block chain common recognition reaches method, apparatus, equipment and storage medium
CN108009445A (en) * 2017-11-30 2018-05-08 成都蓝海贝信息技术有限公司 A kind of trust data management system of half centralization
CN108235799A (en) * 2017-12-27 2018-06-29 深圳达闼科技控股有限公司 Block generation method, device, storage medium and block chain network

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086780A (en) * 2019-03-26 2019-08-02 北京百度网讯科技有限公司 The processing method for being tampered transaction, device and storage medium based on ether mill
CN110086780B (en) * 2019-03-26 2021-11-02 北京百度网讯科技有限公司 Method and device for processing tampered transaction based on Ether house and storage medium
CN110059089A (en) * 2019-03-27 2019-07-26 深圳前海达闼云端智能科技有限公司 Data synchronization method and device, storage medium and electronic equipment
CN110059089B (en) * 2019-03-27 2021-01-22 深圳前海达闼云端智能科技有限公司 Data synchronization method and device, storage medium and electronic equipment
CN113826354A (en) * 2019-11-13 2021-12-21 支付宝(杭州)信息技术有限公司 Error correction code based block chain data storage
CN113826354B (en) * 2019-11-13 2024-08-02 支付宝(杭州)信息技术有限公司 Block chain data storage based on error correction codes
CN112633879A (en) * 2020-12-18 2021-04-09 上海万向区块链股份公司 Consensus system and method applied to block chain and capable of preventing empty blocks from appearing in non-transaction state
CN112633879B (en) * 2020-12-18 2022-11-04 上海万向区块链股份公司 Consensus system and method applied to block chain and capable of preventing empty blocks from occurring in non-transaction state

Also Published As

Publication number Publication date
CN109088914B (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN109088914A (en) Generation method, the block chain ecosystem and the computer readable storage medium of block
CN108388988A (en) Synergetic office work method, system and computer readable storage medium based on block chain
CN110011978B (en) Method, system, device and computer equipment for modifying block chain network configuration
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN107026832A (en) Account logon method, equipment and server
CN108347444A (en) Identity identifying method, device based on block chain and computer readable storage medium
CN108289129B (en) Block chain ecological environment creating method and system and computer readable storage medium
CN106789202A (en) service management device and method
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN111338608B (en) Distributed application development method and device, node equipment and readable storage medium
US20190319843A1 (en) Trusted Platform Module-Based Prepaid Access Token for Commercial IoT Online Services
CN104375818A (en) System and method for achieving general data form inputting through configuration files
CN112035897A (en) Block chain evidence storage method and related device
CN109669717A (en) Data processing method, device, equipment and storage medium based on deployment platform
CN107766747A (en) Method, mobile terminal and the server of verification Application program installation kit integrality
CN107766453A (en) Data base management method, device and storage medium based on block chain
CN113743929A (en) Data processing method, terminal equipment and data processing system
CN108401026A (en) Date storage method, system based on block chain and computer readable storage medium
CN108134765A (en) verification method and verification system
CN107688924A (en) Accreditation method, apparatus and computer-readable recording medium
US8874927B2 (en) Application execution system and method of terminal
CN110502263A (en) Upgrade package production method, system and computer readable storage medium
CN108170420A (en) Construction method, device and the computer readable storage medium of application package
CN114912149B (en) BIM cloud design platform and achievement protection method based on blockchain technology
CN110532324A (en) Notice information methods of exhibiting, device, equipment and storage medium based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant