CN110851466A - Visualization method and device for block chain system - Google Patents
Visualization method and device for block chain system Download PDFInfo
- Publication number
- CN110851466A CN110851466A CN202010044822.5A CN202010044822A CN110851466A CN 110851466 A CN110851466 A CN 110851466A CN 202010044822 A CN202010044822 A CN 202010044822A CN 110851466 A CN110851466 A CN 110851466A
- Authority
- CN
- China
- Prior art keywords
- block
- coding
- information
- service unit
- node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/26—Visual data mining; Browsing structured data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention provides a visualization method and a visualization device for a block chain system, which are used for establishing a block chain system model; creating and managing coding services, and broadcasting a coding table to a specified block in a copy form; generating block visualization information under the current state; performing space-time transformation and reconstruction on block visual information; and the coding service sends the block visualization information in the state to an application service for providing the block visualization service for the third-party application. By adopting the method and the device, the blocks related to the user blocks in the block chain can be displayed in a verifiable manner, the visualization of a block chain system is realized, and meanwhile, the space-time transformation and reconstruction processing of block visualization information are carried out before the block provides a block visualization service to serve as a block chain visualization safety mechanism, so that the credible and safe visualization of the block chain system is ensured.
Description
Technical Field
The invention belongs to the field of computers, and particularly relates to a block chain system visualization method and device.
Background
The block chain technology has the advantages of being independent of a third-party management mechanism or facility and safer compared with the traditional distributed technology, and is widely applied to various industries.
However, the characteristics of incapability of materialization of the blockchain technology and incapability of intuitive perception of users hinder rapid application and popularization of the blockchain technology, and many situations of performing frying by using the blockchain technology appear.
It is therefore desirable to provide a solution to the above problems.
Disclosure of Invention
The invention aims to provide a visualization method and a visualization device for a blockchain system, which can safely and reliably visualize the data storage positions related to each blockchain user to the user so that the user can intuitively know the positions of the self-related business data and the data copies stored in the blockchain system.
In order to achieve the purpose, the invention adopts the technical scheme that: a visualization method of a blockchain system is provided, which comprises the following steps:
establishing a topological model of a block chain system; the topological model of the block chain system is composed of an application service unit, an encoding service unit, a node module and blocks distributed in the node module, wherein the blocks are used for recording action records of the block chain system, and the record content of each block comprises block address mapping of the block, a hash pointer of the previous block, an encoding table copy created by the encoding service unit and data content;
the coding service unit creates and manages a coding table and stores the coding table to a specified block in a copy form;
generating block visualization information under the current state; storing the blocks recorded by the business process, and sending ID information of the blocks to an encoding service unit; after receiving the ID information of the block, the coding service unit firstly confirms correct coding table information; the coding service unit inquires the ID information of the block from correct coding table information according to the received ID information of the block, and the ID information is used as block visual information in the current state after verification;
performing space-time transformation and reconstruction on the block visual information in the current state;
and the coding service unit sends the block visual information in the current state to the application service unit, and is used for providing visual information service of a block chain system for an application system.
Further, the method for the coding service unit to create and manage the coding table and store the coding table to the designated block in a copy form includes,
creating a node numbering method which contains a timestamp and has an irreversible single increment characteristic;
in the coding service unit, creating a coding table, wherein the content of the coding table comprises a node number, a geographic address, a physical address, an IP address, a block ID and verification information; the verification information is used for carrying out Hash transformation on the node number, the geographic address, the physical address, the IP address and the block ID in the coding table;
the coding service unit broadcasts the coding table to all nodes in the system and stores the copy in a designated block.
Further, the node numbering method which contains the time stamp and has the irreversible single increment characteristic comprises the following steps,
the source information of the node number comprises a timestamp T and a node IP address of the node access block chain network;
whereinRepresents that the source information of the node number is subjected to encryption processing, F () represents a hash encryption algorithm,representing binary conversion of the content;
the existing i nodes in the system are numbered asIf so, the newly added node numberComprises the following steps:
j is an accumulated counting parameter, and j is more than or equal to 1 and less than or equal to i;the source information of the (i + 1) th node is processed by equation ①.
Further, the method for broadcasting the coding table to all nodes in the system and saving the copy to the designated block by the coding service unit comprises the following steps,
the coding service unit firstly broadcasts a coding table to all c nodes in the system and measures the data transmission rate from the coding service unit to each nodeIn order from high to low according to the transmission rateSequentially selecting the first m nodes with high speed from the transmission speed;
after the value of m is determined, (m-1) nodes are randomly selected from the m, the copy of the coding table is stored in all blocks of the (m-1) nodes, and a transfer node is reservedu。
Furthermore, the value of m is comprehensively determined according to three factors of data transmission rate, number and regional distribution, and the data transmission rate is subject to the condition that the user service experience in the block chain system is not influenced; the area distribution is not too concentrated.
Further, the method for confirming correct coding table information after the coding service unit receives the ID information of the block includes:
the coding service unit reads the coding table from all blocks storing the coding table copies, compares the coding table copies with the self coding table master, and when the number of copies in the coding table copies, which is consistent with the coding table master, accounts for more than 51%, the coding table master is correct coding table information;
when the number of the copies consistent with the code table master in the code table copies is less than 51%, the coding service unit analyzes the latest recording time of the code table master and the code table copies, if the latest recording time of the code table master is later than the latest recording time of all the code table copies, the coding service unit covers the records of the code table master with the records of the code table copies, the covered code table master is used as correct code table information, and if the latest recording time of the code table master is earlier than the latest recording time of all the code table copies, the visualization processing is stopped, and the visualization information of the block still adopts the information of the previous state.
Further, the method for performing space-time transformation and reconstruction on the block visualization information in the current state comprises the following steps,
before the block visual information in the current state is sent to the application service unit, the current visual information is subjected to space-time transformation, and the method for performing space-time transformation on the current visual information comprises the following steps,
recording a block chain of visual information in the current state as,Therein ofAn ID number indicating the nth block to which the transfer node u is directed,G block chain nodes which belong to send handshake information, and after receiving the handshake information, the block chain nodes send handshake information to the transfer nodeuReplying a response message; in this process, the transit nodeuCalculating the data transmission rate of the g block chain nodes, and selecting one of the g block chain nodes according to the transmission rate from high to lowThe whole block is marked asOver time, remainThe whole block is marked as;
Will be provided withThe data content of the block is stored to the transfer node in the form of data blockuPerforming the following steps; then will beData content of a block is copied toA block; finally, the transit node is connected with the network nodeuIn the data block is transferred toIn a block;
reconstructing the visual information of the block in the current state according toDetermining the sequence of blocks after space-time transformation according to the data sequence of the block chain before space-time transformation, and recording the ID number of the blocks after transformation as,;
Reconstructing the transformed blocks into a chain, recording the ID number of the q-th transformed block as,The copy of the coding table is,The data content of the block isThen, thenThe hash pointer content of the block is:
a visualization device for a blockchain system, comprising:
the system comprises a block, a node module, an encoding service unit and an application service unit;
the blocks are used for storing data and distributed in the node modules; the data in the block comprises block address mapping of the block, a last block hash pointer forming a block chain system, an encoding table copy and data content;
the coding service unit is used for creating, managing and maintaining the entity address of the node to which each block belongs and the address mapping of each block in the form of a coding table, and broadcasting the centralized coding table to the specified block in the form of a coding table copy;
and the application service unit is used for acquiring the visual information of the block from the coding service unit on one hand and providing a block chain system visual service for an application system on the other hand.
Further, the node module can be flexibly accessed or exited along with the operation of the blockchain system in the blockchain system.
Compared with the prior art, the embodiment of the invention at least has the following beneficial effects:
1. according to the visualization method of the block chain system, disclosed by the invention, the blocks in the block chain, which are associated with the user blocks, can be displayed in a verifiable manner, and the visualization information of the block chain system is presented to occasions such as a data display webpage interface, so that the visualization of the block chain system is realized; meanwhile, before the block provides the block visualization service, the block visualization information is subjected to space-time transformation and reconstruction processing to serve as a block chain visualization safety mechanism, so that the credible and safe visualization of a block chain system is ensured.
2. The embodiment of the invention comprises the technical scheme of establishing the node numbering rule containing the timestamp and the irreversible single increment characteristic, and the like, and after the node numbering rule containing the timestamp and the irreversible single increment characteristic is established, the node numbering rule realizes that the coding information of the node is inquired according to the node number, but the coding information of the node cannot be analyzed through the node number, the irreversible record number coding rule is realized, the record cannot be falsified, and the safety is enhanced.
3. The embodiment of the invention comprises the technical scheme of performing space-time transformation on the current visual information before sending the visual information of the block in the current state to the application service unit, reconstructing the visual information of the block in the current state and reconstructing the transformed block into a chain, thereby completing the space-time transformation of the visual information of the block, and further ensuring the safety of data because original data and records cannot be changed even if the information is hijacked.
Drawings
FIG. 1 is a block chain system of the present invention;
FIG. 2 is a diagram illustrating an exemplary application of a visualization apparatus of a blockchain system according to the present invention;
FIG. 3 is a flow chart of a method for visualizing a blockchain system according to the present invention;
FIG. 4 is a topological structure diagram of a system according to an embodiment of a visualization method for a blockchain system according to the present invention;
FIG. 5 is a flow chart of selecting a copy storage block of the code table according to the present invention;
FIG. 6 is a flow chart of spatio-temporal transformation and reconstruction of block visualization information according to the present invention.
Detailed Description
In order to describe the technical scheme more clearly, the technical scheme of the invention is described clearly and completely in the following with the accompanying drawings and specific embodiments of the specification.
The inventor of the present application has found through research that the block chain technology is invisible and invisible to the ordinary users. Marketing personnel in the traditional industry often resort to large marketing on the behalf of the block chain technology, many users are cheated, and further the rapid application and popularization of the block chain technology are hindered.
Therefore, the invention provides a visualization device for a blockchain system, which can visually present the storage location of data related to each blockchain user to the user safely and reliably, so that the user can intuitively know the location where the relevant business data and the data copy are stored in the blockchain system. Referring to fig. 1, the visualization apparatus of the blockchain system includes:
The block 10 is a basic unit for storing data in the blockchain system, and is distributed in each node module 20 of the blockchain system, and the data in the block includes: the block address mapping of the block, the last block hash pointer forming the block chain system, the copy of the coding table and the data content.
It should be noted that the local block address mapping is an encoding record in the encoding table created and managed by the encoding service unit 30, and is used for showing the visual information of the block. The last block hash pointer stores the position of the last block connected with the block and the hash value of the data content. The coding table copy is a copy of the coding table created by the coding service unit 30 and stored in the designated block. The data content is the service data of the block chain system.
The node module 20 is a limited number of physical nodes in the blockchain network for operating the blockchain system. It should be noted that the node module 20 can flexibly access or exit in the blockchain system along with the operation of the blockchain system, and may be in the form of a server or other nodes with computing capability.
The coding service unit 30 is configured to create, manage and maintain the physical addresses of the nodes to which the blocks belong and the address mapping of the blocks in the form of a coding table, and broadcast the centralized coding table to the specified blocks in the form of a coding table copy;
the application service unit 40 is used to obtain the visualization information of the tile from the coding service unit 30, and to provide the tile chain system visualization service to the application system in the form of a data stream or an interface.
It should be noted that the specific interface form of the application service unit 40 providing the blockchain system visualization service to the application system may be API (application programming interface), SDK (software development kit), or follow a well-agreed data protocol.
Application example:
referring to fig. 2, a blockchain system has a plurality of blocks 10, the blocks are distributed in a storage space of a node module 20, and the node module 20 and an encoding service unit 30 have a communication connection therebetween, and can exchange data; the coding service unit 30 creates, manages and maintains the physical addresses of the nodes to which the blocks belong and the address mapping of the blocks in the form of a coding table, on one hand, broadcasts the centralized coding table to the specified blocks in the form of coding table copies, and on the other hand, performs space-time transformation and reconstruction on the visual information of the current state block chain system to ensure the safety of the block chain system; the coding service unit 30 and the application service unit 40 have communication connection, and can exchange data; the application service unit 40 obtains the visual information of the blockchain system from the coding service unit 30, and provides the visual information of the blockchain to the application system 50 in the form of a data stream or an interface, so as to achieve the purpose of displaying the visual information to the users of the blockchain system.
It should be noted that, when the application service unit 40 provides the user-related blockchain visualization information to the application system 50, the application system 50 may request the application service unit 40, and the application service unit 40 responds to the request to provide the user-related blockchain visualization information; or the application service unit 40 may actively send the user-related blockchain visualization information to the application system 50 without the request of the application system 50.
Based on the above-mentioned block chain system visualization device, the present invention also discloses a block chain system visualization method, referring to fig. 3, as an application example, the specific processing steps include:
s1, establishing a topological model of the block chain system;
as shown in fig. 4, the topology model of the blockchain system according to the present invention is composed of an application service unit 40, a coding service unit 30, and a plurality of blocks 10 distributed in a limited number of node modules 20.
The blocks 10 are used for recording action records of a block chain system, and the record content of each block comprises a block address mapping of the block, a hash pointer of a previous block, an encoding table copy created by an encoding service and data content;
the node module 20 is a limited number of physical nodes in the blockchain network for running the blockchain system;
the coding service unit 30 is configured to create, manage and maintain the physical addresses of the nodes to which the blocks belong and the address mapping of the blocks in the form of a coding table, and broadcast the centralized coding table to the specified blocks in the form of a coding table copy;
the application service unit 40 is used to provide a visual information interface service to the application system 50 in the form of a data stream or an interface.
S2 the coding service unit 30 creates and manages a coding table, and broadcasts the coding table to the designated block in a copy form;
the coding service is to uniformly code the node number, the geographic address, the physical address, the IP address and the block ID, and generate a block address mapping of the storage record in a mapping manner, and the specific processing process comprises the following steps:
s201, creating a node numbering rule which contains a timestamp and has an irreversible single increment characteristic;
in order to prevent node camouflage attack, the invention creates an irreversible single-increment node numbering rule, which specifically comprises the following steps:
node numberingThe source information of the network node comprises a time stamp T and a node IP address of the node access block chain network;
Encrypting the source information by adopting a Hash algorithm:
①
whereinRepresents the encryption processing of the source information of the node number, F () represents a hash encryption algorithm including but not limited to md5, SHA1, SHA256, SHA512 and the like,representing a binary conversion of the content.
The existing i nodes in the system are numbered asIf so, the newly added node numberComprises the following steps:
; ②
j is an accumulated counting parameter, and j is more than or equal to 1 and less than or equal to i;the source information of the (i + 1) th node is processed by equation ①.
In conclusion, an irreversible node numbering rule with a single increment characteristic and containing a timestamp is established, so that the coding information of the node can be inquired according to the node number, but the coding information of the node cannot be analyzed through the node number.
The block chain has the greatest characteristics that centralization and common accounting are realized, and the behavior of maliciously tampering the account book information cannot be tampered because the block address of the account book cannot be determined. In the block chain system visualization, the attack behavior of a certain link obtains the address of the data storage block theoretically under a certain tiny time window, the safety of the block chain can be weakened, and the simultaneous tampering of a record by related blocks becomes possible.
S202, in the coding service unit 30, a coding table is created;
for any node x of the blockchain system, the contents of the coding table thereof include: node numberingGeographic addressPhysical addressIP addressBlock ID numberAnd authentication information. An independent record in the coding table is the block address mapping of the recording block ID.
the geographic addressPhysical addressAnd IP addressObtaining information when a node accesses a system;
the verification informationThe node numbers, geographical addresses, physical addresses, IP addresses in the encoding table are hashed by methods including, but not limited to, md5, SHA1, SHA256, SHA512, i.e.,
s203, the coding service unit 30 broadcasts the coding table to all nodes in the system and stores the copy into a designated block;
the coding service unit 30 broadcasts the coding table to all c nodes in the system, and measures the data transmission rate from the coding service unit 30 to each nodeIn order from high to low according to the transmission rateIn fig. 5, the first m nodes with higher rates are selected in sequence according to the transmission rates.
The value of m should be considered by integrating three factors of data transmission rate, quantity and regional distribution, and the data transmission rate should be subject to the condition that the user service experience in the block chain system is not influenced; the regional distribution is not too concentrated, namely when distributed nodes exist in the system, the designated blocks cannot be all located at the nodes in the same geographical position;
in this embodiment, the value of m is obtained by the following method:
wherein c is the number of nodes in the blockchain system of the present invention;the selected threshold value is used for describing the scale of the block chain system;is percentage, 0 <≤1;Indicating an upward integer.
And after the value of m is determined, randomly selecting (m-1) nodes from the values, and storing the code table copies into all blocks of the (m-1) nodes.
S3, generating block visualization information under the current state;
when a user y initiates a business process in the blockchain system, according to the conventional means of the prior blockchain technology, the business process record is stored in the data contents of a plurality of blocks of the blockchain system, the number of the blocks is recorded as w, wherein the ID of the t-th block is(1≤t≤w);
S301 stores the blocks recorded in the business process, and first sends ID information of the blocks to the coding service unit 30;
s302, after receiving the block ID information, the coding service firstly confirms correct coding table information;
s3021 the coding service unit 30 reads the coding table from all blocks storing the copies of the coding table, compares the coding table with the original of the coding table, and when the number of the copies in the copy of the coding table consistent with the original accounts for more than 51%, the original of the coding table is the correct coding table information;
s3022 when the ratio of the number of copies of the code table to the number of copies of the original is less than 51%, the coding service unit 30 analyzes the latest recording times of the code table original and the copies, and if the latest recording time of the original is later than the latest recording times of all the copies, the coding service unit 30 overwrites the record of the original with the record of the copy, and uses the overwritten code table original as correct code table information. If the latest recording time of the original is earlier than the latest recording time of all the copies, the visualization processing is stopped, and the visualization information of the block still adopts the information of the last state.
S303 the coding service unit 30 queries the node number, the geographic address, the physical address, and the IP address of the block ID information from the correct coding table information according to the received block ID information, and uses the node number, the geographic address, the physical address, and the IP address as the block visualization information in the current state after verification;
the coding service unit 30 inquires the node number of the block ID information from the correct coding table information according to the received block ID informationGeographic addressPhysical addressIP addressBlock ID numberAnd authentication informationAnd performing a hash transformation,
If it is≠Then the visual information of the current state s is(ii) a WhereinThe visual information representing the previous state is a wildcard.
S4 spatio-temporal transformation and reconstruction of tile visualization information.
Through the steps of S1-S3, it is possible to implement detailed information visualization of the storage location of each operation and any user' S business process record, and in order to ensure the security and the irreversibility when the tile visualization information is sent to the application service unit 40, the invention performs space-time transformation on the tile visualization information, and even if the information is hijacked, the original data and record cannot be changed, and the specific processing procedure is as follows:
s401, before the block visual information in the current state is sent to the application service unit 40, the current visual information is subjected to space-time transformation;
final processing at step S203: after m values are determined, randomly selecting (m-1) nodes from the m values, and storing the coding table copies into all blocks of the (m-1) nodes. At this time, a node u is also reserved as a transit node u, and block space transformation is performed on the visual information of the current state, as shown in fig. 6:
S4011 transfer node u to block,The affiliated block link points send handshake information and perform data transfer;
transfer node u-direction block,And g nodes send handshake information to indicate that the transfer node is ready to perform spatial transformation of data, and reply response information to the transfer node u after receiving the handshake information. In the process, the transfer node u calculates the data transmission rate with the g nodes, and selects one of the g nodes according to the transmission rate from high to lowThe whole block is marked asOver time, remainThe whole block is marked as
S4012 completes the space-time transformation of block visual information;
will be provided withThe data content of the block is stored in the transfer node u in the form of data block;
finally, the data block in the transfer node u is transferred and stored toIn a block. This completes the spatiotemporal transformation of the block visualization information.
S402, reconstructing the block visual information in the current state;
after the visual information space-time transformation in the step S401, the block chain in the current state is broken, and the block chain needs to be reconstructed, so that the blocks are reconstructed into a new block chain.
Because before and after the space-time transformation of the visual information, only the blocks of the data storage are changed, and the data content is not changed. Therefore, the sequence of the blocks after space-time transformation is determined according to the data sequence of the block chain before space-time transformation. Recording the ID number of the transformed block as,。
S403, reconstructing the transformed blocks into chains;
the reconstruction of the block chain is the recalculation of the last block hash pointer in each block.
Recording the q-th block ID number after conversion as,The copy of the coding table is,The data content of the block isThen, thenThe hash pointer content of the block is:
;
in conclusion, the block after space-time transformation can be reconstructed into a new block chain.
S5 the coding service unit 30 sends the tile visualization information in the state S to the application service unit 40, for providing the visualization information service of the tile chain system to the application system 50.
After the block visualization information is subjected to the space-time transformation and reconstruction processing in step S4, the coding service unit 30 transforms the block visualization information in the state S
The tile visualization service may be provided to the application service unit 40, and the application service unit 40 may provide the tile visualization service to the application system 50 in the form of a data interface or a data stream.
Application example:
the block chain visualization service can be provided for a third-party system through the application service unit 40, the block chain visualization information created by the coding service unit 30 is sent to the application service unit 40, the application service unit performs data interaction with the third-party application system in the form of data stream, SDK or API, and the block chain visualization information can be sent to the third-party application system for presenting the block chain system visualization information to occasions such as a data display web interface.
In summary, the visualization method of the block chain system according to the present invention is completed, and the method of the present invention not only displays the blocks in the block chain, which are associated with the user blocks, in a verifiable manner, but also performs the spatial-temporal transformation and reconstruction processing of the block visualization information before the blocks provide the block visualization service, and the block chain visualization is used as a security mechanism for block chain visualization, thereby ensuring the credible and secure visualization of the block chain system.
It should be noted that the above mentioned embodiments are only preferred embodiments of the present invention, and not intended to limit the present invention, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A method for visualizing a blockchain system, comprising:
establishing a topological model of a block chain system; the topological model of the block chain system is composed of an application service unit, an encoding service unit, a node module and blocks distributed in the node module, wherein the blocks are used for recording action records of the block chain system, and the record content of each block comprises block address mapping of the block, a hash pointer of the previous block, an encoding table copy created by the encoding service unit and data content;
the coding service unit creates and manages a coding table and stores the coding table to a specified block in a copy form;
generating block visualization information under the current state; storing the blocks recorded by the business process, and sending ID information of the blocks to an encoding service unit; after receiving the ID information of the block, the coding service unit firstly confirms correct coding table information; the coding service unit inquires the ID information of the block from correct coding table information according to the received ID information of the block, and the ID information is used as block visual information in the current state after verification;
performing space-time transformation and reconstruction on the block visual information in the current state;
and the coding service unit sends the block visual information in the current state to the application service unit, and is used for providing visual information service of a block chain system for an application system.
2. The method for visualizing a blockchain system as in claim 1, wherein said coding service unit creates and manages a coding table and stores the coding table in a copy form to a specified block, comprising,
creating a node numbering method which contains a timestamp and has an irreversible single increment characteristic;
in the coding service unit, creating a coding table, wherein the content of the coding table comprises a node number, a geographic address, a physical address, an IP address, a block ID and verification information; the verification information is used for carrying out Hash transformation on the node number, the geographic address, the physical address, the IP address and the block ID in the coding table;
the coding service unit broadcasts the coding table to all nodes in the system and stores the copy in a designated block.
3. The method for visualizing a blockchain system as in claim 2, wherein the node numbering method with time stamps and irreversible single increment property comprises,
the source information of the node number comprises a timestamp T and a node IP address of the node access block chain network;
Numbering the nodes using a hash algorithmThe source information of (2) is encrypted:
whereinRepresents that the source information of the node number is subjected to encryption processing, F () represents a hash encryption algorithm,representing binary conversion of the content;
the existing i nodes in the system are numbered asIf so, the newly added node numberComprises the following steps:
j is an accumulated counting parameter, and j is more than or equal to 1 and less than or equal to i;the source information of the (i + 1) th node is processed by equation ①.
4. The method of claim 2, wherein the method for the coding service unit to broadcast the coding table to all nodes in the system and save the copy to the designated tile comprises,
the coding service unit firstly broadcasts a coding table to all c nodes in the system and measures the data transmission rate from the coding service unit to each nodeIn order from high to low according to the transmission rateSequentially selecting the first m nodes with high speed from the transmission speed;
after the value of m is determined, (m-1) nodes are randomly selected from the m, the copy of the coding table is stored in all blocks of the (m-1) nodes, and a transfer node is reservedu。
5. The visualization method of the blockchain system according to claim 4, wherein the value of m is determined comprehensively according to three factors of data transmission rate, number and area distribution, and the data transmission rate is determined on the basis that user service experience in the blockchain system is not affected; the area distribution is not too concentrated.
6. The method as claimed in claim 1, wherein the method for the coding service unit to confirm the correct coding table information after receiving the ID information of the block comprises:
the coding service unit reads the coding table from all blocks storing the coding table copies, compares the coding table copies with the self coding table master, and when the number of copies in the coding table copies, which is consistent with the coding table master, accounts for more than 51%, the coding table master is correct coding table information;
when the number of the copies consistent with the code table master in the code table copies is less than 51%, the coding service unit analyzes the latest recording time of the code table master and the code table copies, if the latest recording time of the code table master is later than the latest recording time of all the code table copies, the coding service unit covers the records of the code table master with the records of the code table copies, the covered code table master is used as correct code table information, and if the latest recording time of the code table master is earlier than the latest recording time of all the code table copies, the visualization processing is stopped, and the visualization information of the block still adopts the information of the previous state.
7. The method for visualizing a blockchain system as in claim 4, wherein the method for spatio-temporal transformation and reconstruction of the blockchain information in the current state comprises,
before the block visual information in the current state is sent to the application service unit, the current visual information is subjected to space-time transformation, and the method for performing space-time transformation on the current visual information comprises the following steps,
recording a block chain of visual information in the current state asTherein ofAn ID number indicating the nth block to which the transfer node u is directedG block chain nodes which belong to send handshake information, and after receiving the handshake information, the block chain nodes send handshake information to the transfer nodeuReplying a response message; in this process, the transit nodeuCalculating the data transmission rate of the g block chain nodes, and selecting one of the g block chain nodes according to the transmission rate from high to lowThe whole block is marked asOver time, remainThe whole block is marked as;
Will be provided withThe data content of the block is stored to the transfer node in the form of data blockuPerforming the following steps; then will beData content of a block is copied toA block; finally, the transit node is connected with the network nodeuIn the data block is transferred toIn a block;
reconstructing the block visual information under the current state, determining the sequence of the blocks after space-time transformation according to the data sequence of the block chain before space-time transformation, and recording the ID number of the blocks after the transformation as;
Reconstructing the transformed blocks into a chain, recording the ID number of the q-th transformed block as,The copy of the coding table is,The data content of the block isThen, thenThe hash pointer content of the block is:
8. a visualization device for a blockchain system, comprising
The system comprises a block, a node module, an encoding service unit and an application service unit;
the blocks are used for storing data and distributed in the node modules; the data in the block comprises block address mapping of the block, a last block hash pointer forming a block chain system, an encoding table copy and data content;
the coding service unit is used for creating, managing and maintaining the entity address of the node to which each block belongs and the address mapping of each block in the form of a coding table, and broadcasting the centralized coding table to the specified block in the form of a coding table copy;
and the application service unit is used for acquiring the visual information of the block from the coding service unit on one hand and providing a block chain system visual service for an application system on the other hand.
9. The apparatus for visualizing an image of a blockchain system as in claim 8, wherein the node module can flexibly access or exit with the operation of the blockchain system in the blockchain system.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010425196.4A CN111597250B (en) | 2020-01-16 | 2020-01-16 | Visualization method of block chain system |
CN202010044822.5A CN110851466B (en) | 2020-01-16 | 2020-01-16 | Visualization method and device for block chain system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010044822.5A CN110851466B (en) | 2020-01-16 | 2020-01-16 | Visualization method and device for block chain system |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010425196.4A Division CN111597250B (en) | 2020-01-16 | 2020-01-16 | Visualization method of block chain system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110851466A true CN110851466A (en) | 2020-02-28 |
CN110851466B CN110851466B (en) | 2020-04-21 |
Family
ID=69610832
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010044822.5A Active CN110851466B (en) | 2020-01-16 | 2020-01-16 | Visualization method and device for block chain system |
CN202010425196.4A Active CN111597250B (en) | 2020-01-16 | 2020-01-16 | Visualization method of block chain system |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010425196.4A Active CN111597250B (en) | 2020-01-16 | 2020-01-16 | Visualization method of block chain system |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN110851466B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111859589A (en) * | 2020-07-20 | 2020-10-30 | 山西潞安环保能源开发股份有限公司 | Method for automatically laying out primitives in transformer substation suitable for setting calculation software |
CN112187816A (en) * | 2020-09-30 | 2021-01-05 | 杭州复杂美科技有限公司 | RPC request processing method, equipment and storage medium |
CN113452735A (en) * | 2020-03-25 | 2021-09-28 | 济南浪潮高新科技投资发展有限公司 | Narrow-band transmission method and equipment based on block chain |
CN115473669A (en) * | 2022-07-26 | 2022-12-13 | 国网北京市电力公司 | Visual display method for block chain |
CN111859589B (en) * | 2020-07-20 | 2024-05-17 | 山西潞安环保能源开发股份有限公司 | Method suitable for automatic layout of primitives in transformer substation of setting calculation software |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408753A (en) * | 2018-10-28 | 2019-03-01 | 北京工业大学 | A kind of farm data display platform based on block chain traceability system |
US20190278805A1 (en) * | 2018-12-29 | 2019-09-12 | Alibaba Group Holding Limited | Visual blockchain browser |
US20190295078A1 (en) * | 2018-03-23 | 2019-09-26 | Graph Blockchain Limited | Control system and method for controlling private blockchain system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109685661A (en) * | 2018-12-29 | 2019-04-26 | 杭州趣链科技有限公司 | A kind of data trade Visualized management system based on block chain |
CN110061874A (en) * | 2019-04-18 | 2019-07-26 | 李莉莉 | A kind of method of alliance's block chain visualization channel management |
CN110245189A (en) * | 2019-05-25 | 2019-09-17 | 上海源庐加佳信息科技有限公司 | A kind of staple commodities block chain account book visual presentation method |
-
2020
- 2020-01-16 CN CN202010044822.5A patent/CN110851466B/en active Active
- 2020-01-16 CN CN202010425196.4A patent/CN111597250B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190295078A1 (en) * | 2018-03-23 | 2019-09-26 | Graph Blockchain Limited | Control system and method for controlling private blockchain system |
CN109408753A (en) * | 2018-10-28 | 2019-03-01 | 北京工业大学 | A kind of farm data display platform based on block chain traceability system |
US20190278805A1 (en) * | 2018-12-29 | 2019-09-12 | Alibaba Group Holding Limited | Visual blockchain browser |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113452735A (en) * | 2020-03-25 | 2021-09-28 | 济南浪潮高新科技投资发展有限公司 | Narrow-band transmission method and equipment based on block chain |
CN113452735B (en) * | 2020-03-25 | 2022-12-13 | 山东浪潮科学研究院有限公司 | Narrow-band transmission method and equipment based on block chain |
CN111859589A (en) * | 2020-07-20 | 2020-10-30 | 山西潞安环保能源开发股份有限公司 | Method for automatically laying out primitives in transformer substation suitable for setting calculation software |
CN111859589B (en) * | 2020-07-20 | 2024-05-17 | 山西潞安环保能源开发股份有限公司 | Method suitable for automatic layout of primitives in transformer substation of setting calculation software |
CN112187816A (en) * | 2020-09-30 | 2021-01-05 | 杭州复杂美科技有限公司 | RPC request processing method, equipment and storage medium |
CN112187816B (en) * | 2020-09-30 | 2022-06-28 | 杭州复杂美科技有限公司 | RPC request processing method, equipment and storage medium |
CN115473669A (en) * | 2022-07-26 | 2022-12-13 | 国网北京市电力公司 | Visual display method for block chain |
Also Published As
Publication number | Publication date |
---|---|
CN111597250A (en) | 2020-08-28 |
CN110851466B (en) | 2020-04-21 |
CN111597250B (en) | 2023-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110851466B (en) | Visualization method and device for block chain system | |
CN112100460B (en) | Block chain-based network page evidence storing method, device, medium and electronic equipment | |
SE541713C2 (en) | Method and system for registering digital documents | |
CN113254947B (en) | Vehicle data protection method, system, equipment and storage medium | |
CN112492048B (en) | Message synchronization method and device, electronic equipment and readable storage medium | |
CN110378753B (en) | Advertisement putting strategy determination method and device | |
CN111488372A (en) | Data processing method, device and storage medium | |
CN114389889B (en) | File full life cycle management method and device based on block chain technology | |
CN112286872A (en) | Medical image data sharing method and system based on block chain technology and interplanetary file system and readable storage medium | |
CN110599384B (en) | Organization relation transferring method, device, equipment and storage medium | |
CN113239401A (en) | Big data analysis system and method based on power Internet of things and computer storage medium | |
CN114731293A (en) | Preventing data manipulation and protecting user privacy when determining accurate location event measurements | |
CN111294210B (en) | Medical information management method and related equipment | |
US20200043016A1 (en) | Network node for processing measurement data | |
CN110619023A (en) | Water source detection data chaining method and device of Internet of things by combining block chains | |
CN112286703B (en) | User classification method and device, client device and readable storage medium | |
CN112182598A (en) | Public sample ID identification method, device, server and readable storage medium | |
KR20200061819A (en) | System and Method for Agreement Based on Application | |
US20230135722A1 (en) | Distributed system, method, computer program, and computer-readable medium directed to user interaction with media content | |
CN110912987B (en) | Information processing method and related equipment | |
CN113990429B (en) | Electronic medical record data protection method and device | |
WO2023007633A1 (en) | Control method, control program, node, and system | |
CN116260787A (en) | Domain name backfilling method and device, electronic equipment and readable storage medium | |
CN117852102A (en) | Smart city emergency material management method, device, equipment and medium | |
CN110263560A (en) | By means of the ad click data cochain method and its equipment of 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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220802 Address after: 510700 room 603, No. 118, banhe Road, Dongqu street, Huangpu District, Guangzhou City, Guangdong Province (for office use only) Patentee after: Guangzhou yunsuanli Network Technology Co.,Ltd. Address before: 318000 room 1215, building 1, peninsula garden, Tengda Road, Lubei street, Luqiao District, Taizhou City, Zhejiang Province Patentee before: Taizhou Xiangwen Information Technology Co.,Ltd. |