CN110851466A - Visualization method and device for block chain system - Google Patents

Visualization method and device for block chain system Download PDF

Info

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
Application number
CN202010044822.5A
Other languages
Chinese (zh)
Other versions
CN110851466B (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.)
Guangzhou yunsuanli Network Technology Co.,Ltd.
Original Assignee
Taizhou Xiangwen Information 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 Taizhou Xiangwen Information Technology Co Ltd filed Critical Taizhou Xiangwen Information Technology Co Ltd
Priority to CN202010425196.4A priority Critical patent/CN111597250B/en
Priority to CN202010044822.5A priority patent/CN110851466B/en
Publication of CN110851466A publication Critical patent/CN110851466A/en
Application granted granted Critical
Publication of CN110851466B publication Critical patent/CN110851466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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

Visualization method and device for block chain system
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
Figure 188671DEST_PATH_IMAGE001
Numbering the nodes using a hash algorithm
Figure 168129DEST_PATH_IMAGE002
The source information of (2) is encrypted:
Figure 416707DEST_PATH_IMAGE003
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 as
Figure 71920DEST_PATH_IMAGE006
If so, the newly added node number
Figure 932429DEST_PATH_IMAGE007
Comprises the following steps:
Figure 600171DEST_PATH_IMAGE008
; ②
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 node
Figure 590309DEST_PATH_IMAGE010
In order from high to low according to the transmission rate
Figure 938114DEST_PATH_IMAGE011
Sequentially 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 of
Figure 660979DEST_PATH_IMAGE014
An ID number indicating the nth block to which the transfer node u is directed
Figure 496080DEST_PATH_IMAGE012
,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
Figure 921DEST_PATH_IMAGE017
Will be provided with
Figure 967740DEST_PATH_IMAGE018
The data content of the block is stored to the transfer node in the form of data blockuPerforming the following steps; then will be
Figure 332862DEST_PATH_IMAGE019
Data content of a block is copied to
Figure 752342DEST_PATH_IMAGE018
A block; finally, the transit node is connected with the network nodeuIn the data block is transferred to
Figure 228323DEST_PATH_IMAGE019
In 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
Figure 49648DEST_PATH_IMAGE020
,
Figure 585672DEST_PATH_IMAGE021
Reconstructing the transformed blocks into a chain, recording the ID number of the q-th transformed block as
Figure 492448DEST_PATH_IMAGE022
Figure 273584DEST_PATH_IMAGE022
The copy of the coding table is
Figure 214995DEST_PATH_IMAGE023
Figure 921920DEST_PATH_IMAGE022
The data content of the block isThen, then
Figure 337038DEST_PATH_IMAGE022
The hash pointer content of the block is:
Figure 664114DEST_PATH_IMAGE025
then, the (q + 1) th block after transformation
Figure 745203DEST_PATH_IMAGE026
The content of (A) is as follows:
Figure 249740DEST_PATH_IMAGE027
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:
block 10, node module 20, coding service unit 30, application service unit 40.
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 numbering
Figure 746580DEST_PATH_IMAGE002
The source information of the network node comprises a time stamp T and a node IP address of the node access block chain network
Figure 521638DEST_PATH_IMAGE001
Encrypting the source information by adopting a Hash algorithm:
wherein
Figure 673451DEST_PATH_IMAGE004
Represents 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,
Figure 708403DEST_PATH_IMAGE005
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;
Figure 19244DEST_PATH_IMAGE009
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 numbering
Figure 706577DEST_PATH_IMAGE028
Geographic address
Figure 97107DEST_PATH_IMAGE029
Physical address
Figure 174785DEST_PATH_IMAGE030
IP address
Figure 941752DEST_PATH_IMAGE031
Block ID number
Figure 421275DEST_PATH_IMAGE032
And authentication information
Figure 481242DEST_PATH_IMAGE033
. An independent record in the coding table is the block address mapping of the recording block ID.
The node number
Figure 46215DEST_PATH_IMAGE028
Calculated through the step S201;
the geographic address
Figure 351295DEST_PATH_IMAGE029
Physical address
Figure 685324DEST_PATH_IMAGE030
And IP address
Figure 417657DEST_PATH_IMAGE031
Obtaining information when a node accesses a system;
the verification information
Figure 469926DEST_PATH_IMAGE033
The 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.,
Figure 313118DEST_PATH_IMAGE034
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 node
Figure 563970DEST_PATH_IMAGE010
In order from high to low according to the transmission rate
Figure 342570DEST_PATH_IMAGE011
In 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;
Figure 30483DEST_PATH_IMAGE036
the selected threshold value is used for describing the scale of the block chain system;
Figure 198159DEST_PATH_IMAGE037
is percentage, 0 <
Figure 413240DEST_PATH_IMAGE037
≤1;
Figure 299156DEST_PATH_IMAGE038
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
Figure 625095DEST_PATH_IMAGE039
(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 information
Figure 912857DEST_PATH_IMAGE002
Geographic address
Figure 33260DEST_PATH_IMAGE040
Physical address
Figure 170587DEST_PATH_IMAGE041
IP address
Figure 34638DEST_PATH_IMAGE042
Block ID numberAnd authentication informationAnd performing a hash transformation
Figure 328719DEST_PATH_IMAGE045
If it is
Figure 996460DEST_PATH_IMAGE044
=
Figure 993235DEST_PATH_IMAGE046
Then the visual information of the current state s is
Figure 721020DEST_PATH_IMAGE048
If it is
Figure 570289DEST_PATH_IMAGE044
Figure 776143DEST_PATH_IMAGE046
Then the visual information of the current state s is
Figure 893003DEST_PATH_IMAGE049
(ii) a Wherein
Figure 791689DEST_PATH_IMAGE050
The 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:
recording a block chain of visual information in the current state s as
Figure 361211DEST_PATH_IMAGE012
,
Figure 370755DEST_PATH_IMAGE013
}。
S4011 transfer node u to block
Figure 607701DEST_PATH_IMAGE012
,
Figure 208447DEST_PATH_IMAGE013
The affiliated block link points send handshake information and perform data transfer;
transfer node u-direction block
Figure 406210DEST_PATH_IMAGE012
,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 low
Figure 543854DEST_PATH_IMAGE015
The whole block is marked asOver time, remain
Figure 62877DEST_PATH_IMAGE015
The whole block is marked as
Figure 804437DEST_PATH_IMAGE017
S4012 completes the space-time transformation of block visual information;
will be provided with
Figure 360183DEST_PATH_IMAGE016
The data content of the block is stored in the transfer node u in the form of data block;
then will be
Figure 896207DEST_PATH_IMAGE017
Within data of a blockCopy to
Figure 802983DEST_PATH_IMAGE016
A block;
finally, the data block in the transfer node u is transferred and stored to
Figure 318540DEST_PATH_IMAGE017
In 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
Figure 259952DEST_PATH_IMAGE020
,
Figure 701297DEST_PATH_IMAGE021
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
Figure 913153DEST_PATH_IMAGE022
The copy of the coding table is
Figure 709070DEST_PATH_IMAGE023
Figure 259000DEST_PATH_IMAGE022
The data content of the block isThen, then
Figure 322695DEST_PATH_IMAGE022
The hash pointer content of the block is:
Figure 973119DEST_PATH_IMAGE025
then, the (q + 1) th block after transformation
Figure 693951DEST_PATH_IMAGE026
The content of (A) is as follows:
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
Figure 504904DEST_PATH_IMAGE001
Numbering the nodes using a hash algorithmThe source information of (2) is encrypted:
Figure 873885DEST_PATH_IMAGE003
wherein
Figure 308409DEST_PATH_IMAGE004
Represents that the source information of the node number is subjected to encryption processing, F () represents a hash encryption algorithm,
Figure 427675DEST_PATH_IMAGE005
representing binary conversion of the content;
the existing i nodes in the system are numbered asIf so, the newly added node number
Figure 251591DEST_PATH_IMAGE007
Comprises the following steps:
Figure 224226DEST_PATH_IMAGE008
; ②
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 rate
Figure 148954DEST_PATH_IMAGE011
Sequentially 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 as
Figure 784335DEST_PATH_IMAGE012
Therein of
Figure 875263DEST_PATH_IMAGE013
An ID number indicating the nth block to which the transfer node u is directed
Figure 78843DEST_PATH_IMAGE012
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 low
Figure 218837DEST_PATH_IMAGE014
The whole block is marked asOver time, remain
Figure 75114DEST_PATH_IMAGE014
The whole block is marked as
Figure 449595DEST_PATH_IMAGE016
Will be provided with
Figure 748989DEST_PATH_IMAGE017
The data content of the block is stored to the transfer node in the form of data blockuPerforming the following steps; then will be
Figure 991752DEST_PATH_IMAGE018
Data content of a block is copied to
Figure 263464DEST_PATH_IMAGE017
A block; finally, the transit node is connected with the network nodeuIn the data block is transferred to
Figure 933480DEST_PATH_IMAGE018
In 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
Figure 657854DEST_PATH_IMAGE019
Reconstructing the transformed blocks into a chain, recording the ID number of the q-th transformed block as
Figure 438728DEST_PATH_IMAGE020
Figure 830526DEST_PATH_IMAGE020
The copy of the coding table is
Figure 671443DEST_PATH_IMAGE021
Figure 145762DEST_PATH_IMAGE020
The data content of the block is
Figure 402431DEST_PATH_IMAGE022
Then, thenThe hash pointer content of the block is:
Figure 394975DEST_PATH_IMAGE023
then, the (q + 1) th block after transformation
Figure 218575DEST_PATH_IMAGE024
The content of (A) is as follows:
Figure 482197DEST_PATH_IMAGE025
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.
CN202010044822.5A 2020-01-16 2020-01-16 Visualization method and device for block chain system Active CN110851466B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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.