CN111597250B - Visualization method of block chain system - Google Patents

Visualization method of block chain system Download PDF

Info

Publication number
CN111597250B
CN111597250B CN202010425196.4A CN202010425196A CN111597250B CN 111597250 B CN111597250 B CN 111597250B CN 202010425196 A CN202010425196 A CN 202010425196A CN 111597250 B CN111597250 B CN 111597250B
Authority
CN
China
Prior art keywords
block
information
service unit
node
coding
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.)
Active
Application number
CN202010425196.4A
Other languages
Chinese (zh)
Other versions
CN111597250A (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.)
Hunan Hongyuanze Information Technology Co ltd
Original Assignee
Hunan Hongyuanze 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 Hunan Hongyuanze Information Technology Co ltd filed Critical Hunan Hongyuanze Information Technology Co ltd
Priority to CN202010425196.4A priority Critical patent/CN111597250B/en
Publication of CN111597250A publication Critical patent/CN111597250A/en
Application granted granted Critical
Publication of CN111597250B publication Critical patent/CN111597250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/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 visual method and a visual device of a block chain system, which are used for establishing a block chain system model; creating and managing an encoding service, and broadcasting an encoding table to a designated block in a duplicate form; generating block visual information in the current state; space-time transformation and reconstruction of block visualization information; the coding service sends the block visualization information in the state to the application service for providing the block visualization service for the third party application. The invention can not only display the blocks associated with the user blocks in the block chain in a verifiable manner to realize the visualization of the block chain system, but also perform space-time transformation and reconstruction processing of the block visualization information before the blocks provide the block visualization service as a safety mechanism of the block chain visualization to ensure the credible and safe visualization of the block chain system.

Description

Visualization method of block chain system
The invention discloses a visual method and a visual device of a blockchain system, which are applied for patent application number 2020100448225.
Technical Field
The invention belongs to the field of computers, and particularly relates to a visualization method of a blockchain system.
Background
Blockchain technology has the advantage of being safer than traditional distributed technology without relying on third party authorities or facilities, and is widely used in various industries.
However, the characteristics of incapability of materialization and incapability of visual perception of users of the blockchain technology prevent quick application and popularization of the blockchain technology, and a plurality of cases of performing frying by the blockchain technology exist.
It is therefore desirable to provide a solution to the above-mentioned problems.
Disclosure of Invention
The invention aims to provide a visualization method and a device for a blockchain system, which can be used for safely and reliably visualizing data storage positions related to each blockchain user to the user so that the user can intuitively know the relevant service data and the data copy stored in the position of the blockchain system.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows: provided is a visualization method of a blockchain system, comprising:
establishing a topology model of a block chain system; the topology model of the block chain system consists 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 the address mapping of the block, a hash pointer of the last block, a copy of an encoding table created by the encoding service unit and data content;
the coding service unit creates and manages a coding table, and stores the coding table in a specified block in a duplicate form;
generating block visual information in the current state; storing a block of the business process record and sending ID information of the block to an encoding service unit; after receiving the ID information of the block, the coding service unit firstly confirms the correct coding table information; the coding service unit inquires the ID information of the block from the correct coding table information according to the received ID information of the block, and the ID information is used as the block visualization 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 the block chain system for the application system.
Further, the method for creating and managing the encoding table by the encoding service unit and storing the encoding table in a copy form to a designated block includes,
creating a node numbering method which contains a time stamp and has irreversible single increment characteristics;
creating an encoding table in the encoding service unit, wherein the content of the encoding table comprises a node number, a geographic address, a physical address, an IP address, a block ID and verification information; the verification information is obtained by carrying out hash transformation on node numbers, geographic addresses, physical addresses, IP addresses and block IDs in the coding table;
the coding service unit broadcasts the coding table to all nodes in the system and stores the copy into the designated block.
Further, the node numbering method with the time stamp and the irreversible single increment property comprises the steps of,
the source information of the node number comprises a time stamp T of the node access block chain network and a node IP address
Numbering the nodes by adopting a hash algorithmIs encrypted with the source information of (a):
wherein the method comprises the steps ofRepresents that source information of a node number is subjected to encryption processing, F () represents a hash encryption algorithm,representing binary conversion of the content;
the number of i existing nodes in the system is recorded asThen newly added node number +.>The method comprises 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 result of the processing of the equation (1) is shown for the source information of the (i+1) th node.
Further, the method for the coding service unit to broadcast the coding table to all nodes in the system and store the copy in the designated block comprises,
the coding service unit firstly broadcasts a coding table to all c nodes in the system, and the data transmission rate from the coding service unit to each node is measuredOrdered from high to low according to transmission rate +.>Sequentially selecting the first m nodes with high rates from the first m nodes corresponding to the transmission rates;
after the value of m is determined, randomly selecting (m-1) nodes from the values, storing copies of the coding table into all blocks of the (m-1) nodes, and reserving a transit nodeu
Further, the value of m is comprehensively determined according to three factors of data transmission rate, quantity and regional distribution, and the data transmission rate is determined based on the condition that the user service experience in the block chain system is not affected; the area distribution is not too concentrated.
Further, the method for confirming correct code table information after the code service unit receives the ID information of the block includes:
the coding service unit reads the coding table from all the blocks storing the coding table copies, compares the coding table with the coding table copy of the coding service unit, and when the number of copies consistent with the coding table copy in the coding table copy is more than 51%, the coding table copy is correct coding table information;
when the number of copies consistent with the code table copy in the code table copy is less than 51%, the code service unit analyzes the code table copy and the latest record time of the code table copy, if the latest record time of the code table copy is later than the latest record time of all the code table copies, the code service unit covers the record of the code table copy by using the record of the code table copy, uses the covered code table copy as correct code table information, and if the latest record time of the code table copy is earlier than the latest record time of all the code table copies, the visualized processing is stopped, and the visualized information of the block still adopts the information of the last state.
Further, the method for performing space-time transformation and reconstruction on the block visual information in the current state comprises the following steps of,
before sending the block visual information in the current state to the application service unit, performing space-time transformation on the current visual information, wherein the method for performing space-time transformation on the current visual information comprises the steps of,
the block chain of the visual information in the current state is recorded as {,/>}, whereinBl n An ID number indicating the nth block, the transit node u being directed to the block + ->,/>Belonging tog blockchain nodes send handshake information, and after receiving the handshake information, the blockchain nodes send handshake information to the transit nodeuReply the response message; in this process, the transit nodeuCalculating data transmission rates of the g block chain nodes, and selecting ++among the data transmission rates from high to low according to the transmission rates>The whole of each block is marked as->Left->The whole of each block is marked as->
Will beThe data content of the block is stored in the form of data block to the transfer nodeuIn (a) and (b); and then->The data content of the block is copied to +.>A block; finally, the transit nodeuThe data blocks in (a) are transferred to +.>In the block;
reconstructing the block visual information in the current state, determining the sequence of the blocks after space-time transformation according to the sequence of the block chain data before space-time transformation, and recording the ID number of the blocks after the transformation as,/>
Reconstructing the transformed block into a chain, and recording the transformed q-th block ID number as,/>The code table copy is,/>The data content of the block is->Then->The hash pointer content of the chunk is:
then, the transformed (q+1) th blockThe content of (2) is:
a visualization apparatus of a blockchain system, comprising:
the system comprises a block, a node module, a coding service unit and an application service unit;
the block is used for storing data and is distributed in the node module; the data in the block comprises the address mapping of the block, a last block hash pointer forming a block chain system, a copy of a coding table 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 designated blocks in the form of a copy of the coding table;
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 flexibly access or exit along with the operation of the blockchain system in the blockchain system.
Compared with the prior art, the embodiment of the invention has at least the following beneficial effects:
1. according to the method for visualizing the blockchain system, disclosed by the invention, the blocks associated with the user blocks in the blockchain can be displayed in a verifiable mode, and the visualized information of the blockchain system is displayed on a data display webpage interface and other occasions, so that the visualization of the blockchain system is realized; and simultaneously, space-time transformation and reconstruction processing of block visual information are carried out before the block provides block visual service as a safety mechanism of block chain visual, so that the credible and safe visual of a block chain system is ensured.
2. The embodiment of the invention comprises the technical schemes of creating a node numbering rule containing a time stamp and having irreversible single increment characteristics, and the like, wherein after the node numbering rule containing the time stamp and having irreversible single increment characteristics is established, the code information of the node can be inquired according to the node number, but the code information of the node can not be analyzed through the node number, so that the irreversible record number coding rule can not be tampered with, and the safety is enhanced.
3. The embodiment of the invention comprises the technical schemes of 'carrying out space-time transformation on the current visual information before sending the current visual information to an application service unit', 'reconstructing the current visual information of the block' and 'reconstructing the transformed block into a chain', and the space-time transformation of the block visual information is completed, so that even if the information is hijacked, the original data and records cannot be changed, and the safety of the data is further ensured.
Drawings
FIG. 1 is a block chain system visualization device block diagram according to the present invention;
FIG. 2 is a diagram illustrating an exemplary application of a visual device of a blockchain system in accordance with the present invention;
FIG. 3 is a flow chart of a method of visualizing a blockchain system in accordance with the present invention;
FIG. 4 is a topological structure diagram of a system of an embodiment of a method for visualizing a blockchain system in accordance with the present invention;
FIG. 5 is a flowchart illustrating the selection of duplicate blocks of a coding table according to the present invention;
fig. 6 is a flow chart of the space-time transformation and reconstruction of block visualization information according to the present invention.
Detailed Description
In order to more clearly describe the present solution, the following description will make clear and complete description of the technical solution of the present invention with reference to the attached drawings and specific embodiments.
The inventor of the application finds that the blockchain technology is invisible and can not be intuitively displayed for common users through research. Marketers in the traditional industry often resort to nominal and large marketing of blockchain technology, which is deceived by many users, thereby also impeding the rapid application and popularization of blockchain technology.
In view of the above, the invention provides a visual device of a blockchain system, which can safely and reliably visually present the data storage positions related to each blockchain user to the user, so that the user can intuitively know the relevant service data and the data copy stored in the positions of the blockchain system. Referring to fig. 1, the visualization apparatus of a blockchain system includes:
block 10, node module 20, code service unit 30, application service unit 40.
The block 10 is a basic unit for storing data in a blockchain system, and is distributed in each node module 20 of the blockchain system, and the data in the block include: the block address maps, the last block hash pointer that forms the blockchain system, the copy of the encoding table, and the data content.
It should be noted that, the block address mapping is one code record in the code table created and managed by the code service unit 30, and is used for displaying the visual information of the block. The last block hash pointer stores the hash value of the position of the last block connected with the block and the data content. The copy of the encoding table is a copy of the encoding table created by the encoding service unit 30 stored to the specified block. The data content is the service data of the blockchain system.
The node module 20 is a limited number of physical nodes in the blockchain network for running the blockchain system. It should be noted that the node module 20 may flexibly access or exit the blockchain system as the blockchain system operates, and may be in the form of a server or other node with computing power.
The encoding service unit 30 is configured to create, manage and maintain the physical address of the node to which each block belongs and the address mapping of each block in the form of an encoding table, and broadcast the centralized encoding table to the designated blocks in the form of copies of the encoding table;
the application service unit 40 is used to obtain the visual information of the block from the encoding service unit 30 on the one hand, and to provide the blockchain system visual service to the application system in the form of a data stream or interface on the other hand.
It should be noted that, the specific interface form of the application service unit 40 for providing the blockchain system visualization service to the application system may be an API (application programming interface), an SDK (software development kit), or a data protocol conforming to a convention.
Application example:
referring to fig. 2, the blockchain system has a plurality of blocks 10, wherein the blocks are distributed in a storage space of a node module 20, and the node module 20 and an encoding service unit 30 are in communication connection to exchange data; the coding service unit 30 creates, manages and maintains the physical address of the node to which each block belongs and the address mapping of each block in the form of a coding table, on one hand, broadcasts the centralized coding table to the designated block in the form of a copy of the coding table, and on the other hand, performs space-time transformation and reconstruction on the visualized information of the current state block chain system so as to ensure the safety of the block chain system; the coding service unit 30 and the application service unit 40 are in communication connection, so that data can be interacted; the application service unit 40 obtains the visual information of the blockchain system from the encoding 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 blockchain system user.
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 service unit 40 may be requested by the application system 50, and the application service unit 40 responds to the request to provide the user-related blockchain visualization information; alternatively, 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 block chain system visualization device provided above, the 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 of the present invention is composed of an application service unit 40, an encoding service unit 30, and a plurality of blocks 10 distributed over a limited number of node modules 20.
The block 10 is used for recording action records of a block chain system, and the recording content of each block comprises an address mapping of the block, a hash pointer of the last block, a copy of a coding table created by a coding service and data content;
node module 20 is a finite number of physical nodes in the blockchain network for running the blockchain system;
the encoding service unit 30 is configured to create, manage and maintain the physical address of the node to which each block belongs and the address mapping of each block in the form of an encoding table, and broadcast the centralized encoding table to the designated blocks in the form of copies of the encoding table;
the application service unit 40 is configured to provide visual information interface services to the application system 50 in the form of a data stream or interface.
S2, the coding service unit 30 creates and manages a coding table, and broadcasts the coding table to a designated block in a duplicate 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 map of the storage record in a mapping mode, and the specific processing procedure comprises the following steps:
s201, creating a node numbering rule which contains a time stamp and has irreversible single increment characteristics;
in order to prevent node masquerading attack, the invention creates an irreversible single increment node numbering rule, which is specifically as follows:
node numberingThe source information of (a) includes a time stamp T of the node access blockchain network, a node IP address +.>
Encrypting the source information by adopting a hash algorithm:
wherein the method comprises the steps ofRepresents encryption processing of source information of node numbers, F () represents a hash encryption algorithm including, but not limited to, md5, SHA1, SHA256, SHA512, and the like, and>representing binary conversion of the content.
The number of i existing nodes in the system is recorded asThen newly added node number +.>The method comprises 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 result of the processing of the equation (1) is shown for the source information of the (i+1) th node.
In summary, an irreversible node numbering rule with a single increment characteristic and a time stamp is established, so that the node coding information is queried according to the node number, but the node coding information cannot be analyzed through the node number.
The biggest characteristic of blockchains is decentralization and common accounting, and the action of intention malicious tampering of account book information cannot be tampered because the block address of the account book cannot be determined. In the invention, the block chain system is visualized, so that the attack action of a certain link can obtain the address of a data storage block under a certain fine time window theoretically, the security of the block chain can be weakened, the related block can be possibly tampered with a record at the same time, and after the node numbering rule which contains a time stamp and has the irreversible single increment characteristic is adopted in S201, the irreversible record number coding rule is realized, the record cannot be tampered with, and the security is enhanced.
S202, in the encoding service unit 30, creating an encoding table;
for any node x of the blockchain system, it encodes the internals of the tableThe container comprises: node numberingGeographical addressPhysical Address->IP Address->Block ID number->Verification information->. An independent record in the encoding table is the block address mapping of the record block ID.
The node numberCalculated by the step S201;
the geographical addressPhysical Address->And IP Address->Information is obtained when the node is accessed into the system;
the verification informationThe method comprises the steps of carrying out hash transformation on node numbers, geographical addresses, physical addresses and IP addresses in a coding table, wherein the hash transformation adoptsMethods include, but are 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 firstly broadcasts a coding table to all c nodes in the system, and measures the data transmission rate from the coding service unit 30 to each nodeOrdered from high to low according to transmission rate +.>The first m nodes with high rates are sequentially selected from among them, corresponding to the transmission rate, as in fig. 5.
The value of m is considered by integrating three factors of data transmission rate, quantity and regional distribution, and the data transmission rate is considered without influencing the user service experience in the block chain system; the area distribution is not too centralized, i.e. when distributed nodes exist in the system, the designated blocks cannot all be located at nodes in the same geographic location;
in this embodiment, the following method is adopted for the value of m:
where c is the number of nodes in the blockchain system of the present invention;to describe the size of the blockchain system, as a selected threshold; />Is a percentage, 0 </o->≤1;/>Representing an upward integer.
After the value of m is determined, randomly selecting (m-1) nodes from the m values, and storing the copies of the coding table into all blocks of the (m-1) nodes.
S3, generating block visual information in the current state;
when a user y in the blockchain system initiates a business process, according to the conventional means of the prior blockchain technology, the business process record is stored in the data content of a plurality of blocks of the blockchain system, wherein the number of the blocks is recorded as w, and the ID of the t-th block is(1≤t≤w);
S301, storing a block of the business process record, and firstly, sending ID information of the block to the coding service unit 30;
s302, after the coding service receives the block ID information, the correct coding table information is confirmed;
s3021, the encoding service unit 30 reads the encoding table from all the blocks storing the copies of the encoding table, compares the encoding table with the own encoding table, and when the number of copies consistent with the original in the encoding table copies is more than 51%, the encoding table is the correct encoding table information;
s3022, when the number of copies in the encoded table copies that are identical to the original is less than 51%, the encoding service unit 30 will analyze the encoded table original and the latest recording time of the copies, and if the latest recording time of the original is later than all the latest recording times of the copies, the encoding service unit 30 will cover the records of the original with the records of the copies, and use the covered encoded table original as the correct encoded table information. If the latest record time of the original is earlier than the latest record time of all the copies, the visualization processing is stopped, and the visualized 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 the node number, the geographic address, the physical address and the IP address are used as the block visualization information in the current state after verification;
the encoding service unit 30 queries the node number of the block ID information from the correct encoding table information based on the received block ID informationGeographical address->Physical Address->IP Address->Block ID number->Verification information->And hash transform +.>
If it is=/>The visualized information of the current state s is
If it is≠/>The visualized information of the current state s isThe method comprises the steps of carrying out a first treatment on the surface of the Wherein->Visual information representing the last state, is wildcard.
And S4, space-time transformation and reconstruction of block visualization information.
Through the steps S1-S3, the detailed information visualization of each operation and the storage location of the business process record of any user can be realized, in order to ensure the safety and irreversibility when the block visual information is sent to the application service unit 40, the invention performs space-time transformation on the block visual 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 sending the block visual information in the current state to the application service unit 40, performing space-time transformation on the current visual information;
the final processing at step S203: after the value of m is determined, randomly selecting (m-1) nodes from the m values, and storing the copy of the coding table into all blocks of the (m-1) nodes. At this time, a node u is also reserved, and as a transit node u, the visualized information of the current state is subjected to block space transformation, as shown in fig. 6:
the blockchain of the visual information in the current state s is recorded as {,/>}。
S4011 transfer node u to block,/>The affiliated block chain node sends handshake information and carries out data transfer;
transfer node u-direction block,/>And g nodes send handshake information to indicate that the transfer node is ready for space transformation of data, and after receiving the handshake information, the g nodes reply response information to the transfer node u. In the process, the transit node u calculates the data transmission rates of the g nodes, and selects +.>The whole of each block is marked as->Left->The whole of each block is marked as->
S4012 completes space-time transformation of block visual information;
will beThe data content of the block is stored in the form of a data block into the transit node u;
and then will beBlock blockCopy data content of (2) to->A block;
finally, the data block in the transit node u is transferred toIn the block. This completes the space-time transformation of the tile visual information.
S402, reconstructing the block visual information in the current state;
after the space-time transformation of the visualized information in the step S401, the blockchain in the current state is broken, and the blockchain needs to be reconstructed, so that the block is reconstructed into a new blockchain.
Because the space-time transformation of the visual information is followed, only the blocks of the data store are changed, while the data content is unchanged. The order of the spatio-temporal transformed blocks is thus determined in terms of the blockchain data order prior to the spatio-temporal transformation. Record the ID number of the transformed block as,/>
S403, reconstructing the transformed block into a chain;
the reconstruction of the blockchain is the recalculation of the last block hash pointer in each block.
Record the transformed q-th block ID number as,/>The code table copy is +.>,/>The data content of the block isThen->The hash pointer content of the chunk is:
then, the transformed (q+1) th blockThe content of (2) is:
in summary, the space-time transformed blocks can be reconstructed into new blockchains.
The S5 encoding service unit 30 transmits the tile visualization information in the state S to the application service unit 40 for providing the application system 50 with the visualization information service of the blockchain system.
After the space-time transformation and reconstruction of the block visualization information in step S4, the coding service unit 30 transforms the block visualization information in state S
To the application service unit 40, which application service unit 40 may provide tile visualization services to the application system 50 in the form of a data interface or data stream.
Application example:
the invention can provide the block chain visual service for the third party system through the application service unit 40, the block chain visual 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 visual information can be sent to the third party application system for presenting the block chain system visual information to the occasion such as the data display web page interface.
In summary, the method for visualizing the blockchain system is completed, the method not only displays the blocks associated with the user blocks in the blockchain in a verifiable manner, but also performs space-time transformation and reconstruction processing of the block visualization information before the blocks provide the block visualization service, and the space-time transformation and reconstruction processing serves as a security mechanism of the blockchain visualization to ensure the credible and safe visualization of the blockchain system.
It should be noted that the above embodiments are only preferred embodiments of the present invention, and are not intended to limit the present invention, and any modifications, equivalents, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (3)

1. A method of visualizing a blockchain system, comprising:
establishing a topology model of a block chain system; the topology model of the block chain system consists 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 the address mapping of the block, a hash pointer of the last block, a copy of an encoding table created by the encoding service unit and data content; the block address mapping is a code record in a code table created and managed by the code service unit and is used for displaying visual information of the block;
the coding service unit creates and manages a coding table, and stores the coding table in a specified block in a duplicate form;
generating block visual information in the current state; storing a block of the business process record and sending ID information of the block to an encoding service unit; after receiving the ID information of the block, the coding service unit firstly confirms the correct coding table information; the coding service unit inquires the node number, the geographic address, the physical address and the IP address corresponding to the ID information of the block from the correct coding table information according to the received ID information of the block, and the node number, the geographic address, the physical address and the IP address are used as the block visualization information in the current state after verification;
performing space-time transformation and reconstruction on the block visual information in the current state, and specifically comprising the following steps:
the block chain of the visual information in the current state is recorded as {,/>}, whereinBl n ID number of nth block, transit node u is directed to block->,/>The g block chain nodes send handshake information, and after receiving the handshake information, the block chain nodes send handshake information to the transfer nodeuReply the response message; in this process, the transit nodeuCalculating data transmission rates of the g block chain nodes, and selecting ++among the data transmission rates from high to low according to the transmission rates>The whole of each block is marked as->Left->The whole of each block is marked as->
Will beThe data content of the block is stored in the form of data block to the transfer nodeuIn (a) and (b); and then->The data content of the block is copied to +.>A block; finally, the transit nodeuThe data blocks in (a) are transferred to +.>In the block;
reconstructing the block visual information in the current state, determining the sequence of the blocks after space-time transformation according to the sequence of the block chain data before space-time transformation, and recording the ID number of the blocks after the transformation as
Reconstructing the transformed block into a chain, and recording the transformed q-th block ID number as,/>The code table copy is +.>,/>The data content of the block is->Then->The hash pointer content of the chunk is:
wherein, the liquid crystal display device comprises a liquid crystal display device,representing a binary conversion of the content,H() Representing a hash transformation;
then, the transformed (q+1) th blockThe recorded content of (2) is:
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;
the method for creating and managing the encoding table by the encoding service unit and storing the encoding table in a copy form to a designated block includes,
creating a node numbering method which contains a time stamp and has irreversible single increment characteristics;
creating an encoding table in the encoding service unit, wherein the content of the encoding table comprises a node number, a geographic address, a physical address, an IP address, a block ID and verification information; the verification information is obtained by carrying out hash transformation on node numbers, geographic addresses, physical addresses, IP addresses and block IDs in the coding table;
the coding service unit broadcasts the coding table to all nodes in the system and stores the copy into a designated block;
the node numbering method with time stamp and irreversible adding property comprises,
the source information of the node number comprises a time stamp T of the node access block chain network and a node IP address
Numbering the nodes by adopting a hash algorithmIs encrypted:
wherein the method comprises the steps ofRepresents encryption processing of source information of node number, F () represents hash encryption algorithm, ++>Representing binary conversion of the content;
the number of i existing nodes in the system is recorded asThen the newly added node numberThe method comprises the following steps:
; ②
wherein j is an accumulated count parameter of 1 to less than or equal toj≤i;Representing the result of the (i+1) th node source information processed by the formula (1);
the method by which the encoding service unit broadcasts the encoding table to all nodes in the system and saves copies to specified blocks includes,
the coding service unit firstly broadcasts a coding table to all c nodes in the system, and the data transmission rate from the coding service unit to each node is measuredOrdered from high to low according to transmission rate +.>Sequentially selecting the first m nodes with high rates from the first m nodes corresponding to the transmission rates;
after the value of m is determined, randomly selecting (m-1) nodes from the values, storing copies of the coding table into all blocks of the (m-1) nodes, and reserving a transit nodeu
2. The method for visualizing a blockchain system as in claim 1, wherein the value of m is determined comprehensively according to three factors of data transmission rate, number and regional distribution, the data transmission rate should be based on that the user service experience in the blockchain system is not affected; the area distribution is not too concentrated.
3. The method for visualizing a blockchain system as in claim 1, wherein the method for the encoding service unit to confirm correct encoding table information after receiving the ID information of the block comprises:
the coding service unit reads the coding table from all the blocks storing the coding table copies, compares the coding table with the coding table copy of the coding service unit, and when the number of copies consistent with the coding table copy in the coding table copy is more than 51%, the coding table copy is correct coding table information;
when the number of copies consistent with the code table copy in the code table copy is less than 51%, the code service unit analyzes the code table copy and the latest record time of the code table copy, if the latest record time of the code table copy is later than the latest record time of all the code table copies, the code service unit covers the record of the code table copy by using the record of the code table copy, uses the covered code table copy as correct code table information, and if the latest record time of the code table copy is earlier than the latest record time of all the code table copies, the visualized processing is stopped, and the visualized information of the block still adopts the information of the last state.
CN202010425196.4A 2020-01-16 2020-01-16 Visualization method of block chain system Active CN111597250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010425196.4A CN111597250B (en) 2020-01-16 2020-01-16 Visualization method of block chain system

Applications Claiming Priority (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

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010044822.5A Division CN110851466B (en) 2020-01-16 2020-01-16 Visualization method and device for block chain system

Publications (2)

Publication Number Publication Date
CN111597250A CN111597250A (en) 2020-08-28
CN111597250B true CN111597250B (en) 2023-07-18

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 Before (1)

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

Country Status (1)

Country Link
CN (2) CN110851466B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452735B (en) * 2020-03-25 2022-12-13 山东浪潮科学研究院有限公司 Narrow-band transmission method and equipment based on block chain
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

Citations (5)

* 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
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
CN110337647A (en) * 2018-12-29 2019-10-15 阿里巴巴集团控股有限公司 Visual block chain browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101946195B1 (en) * 2018-03-26 2019-02-08 그래프 블록체인 리미티드 Control system for controlling private block-chain system

Patent Citations (5)

* 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
CN109685661A (en) * 2018-12-29 2019-04-26 杭州趣链科技有限公司 A kind of data trade Visualized management system based on block chain
CN110337647A (en) * 2018-12-29 2019-10-15 阿里巴巴集团控股有限公司 Visual block chain browser
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

Also Published As

Publication number Publication date
CN110851466A (en) 2020-02-28
CN111597250A (en) 2020-08-28
CN110851466B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111597250B (en) Visualization method of block chain system
JP6961960B2 (en) Information processing device and information processing method
JP6389895B2 (en) Data security using keys supplied by request
CN108197479B (en) Method and system for judging electronic contract signing time accuracy
US20080028215A1 (en) Portable personal identity information
CN108964893B (en) Key processing method, device, equipment and medium
CN110401677B (en) Method and device for acquiring digital copyright key, storage medium and electronic equipment
CN112202554B (en) Information processing method, device and equipment for generating key based on attribute of information
US10360354B1 (en) Method and apparatus of performing distributed steganography of a data message
CN110708162B (en) Resource acquisition method and device, computer readable medium and electronic equipment
CN109768978A (en) A kind of method and relevant apparatus of obfuscated data
CN113610526A (en) Data trust method and device, electronic equipment and storage medium
WO2022012162A1 (en) Matrix operation-based data encryption method and apparatus, electronic device, and storage medium
CN115996151B (en) Electronic medical data sharing method, system, equipment and medium
US9973339B1 (en) Anonymous cloud data storage and anonymizing non-anonymous storage
CN116881881A (en) Data export method, device, electronic equipment and computer readable medium
US20200043016A1 (en) Network node for processing measurement data
CN112637230B (en) Instant messaging method and system
CN110807640A (en) Method and device for recording copyright information
Uddin et al. Blockchain and IFPS based Secure System for Managing e-FIR
CN109729076B (en) Data desensitization and inverse desensitization method and device, storage medium and terminal
CN112182598A (en) Public sample ID identification method, device, server and readable storage medium
CN110995658A (en) Gateway protection method, device, computer equipment and storage medium
CN115941352B (en) Information security interaction method and device based on big data, electronic equipment and storage medium
CN115087978B (en) Cross-domain frequency filter for fraud detection

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
TA01 Transfer of patent application right

Effective date of registration: 20230625

Address after: Room 101, R&D Building, No. 1-1, Sanyi Road, Changsha Economic and Technological Development Zone, Changsha City, 410000, Hunan Province

Applicant after: Hunan Hongyuanze Information Technology Co.,Ltd.

Address before: 318000 room 1215, building 1, peninsula garden, Tengda Road, Lubei street, Luqiao District, Taizhou City, Zhejiang Province

Applicant before: Taizhou Xiangwen Information Technology Co.,Ltd.

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