CN116668458A - Address information management method and system based on block chain technology - Google Patents

Address information management method and system based on block chain technology Download PDF

Info

Publication number
CN116668458A
CN116668458A CN202310629919.6A CN202310629919A CN116668458A CN 116668458 A CN116668458 A CN 116668458A CN 202310629919 A CN202310629919 A CN 202310629919A CN 116668458 A CN116668458 A CN 116668458A
Authority
CN
China
Prior art keywords
address information
data
information data
nodes
address
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.)
Pending
Application number
CN202310629919.6A
Other languages
Chinese (zh)
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.)
Wuhan One Map Technology Co ltd
Original Assignee
Wuhan One Map 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 Wuhan One Map Technology Co ltd filed Critical Wuhan One Map Technology Co ltd
Priority to CN202310629919.6A priority Critical patent/CN116668458A/en
Publication of CN116668458A publication Critical patent/CN116668458A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1093Some peer nodes performing special functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number
    • 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 discloses an address information management method and system based on a block chain technology, wherein in a block chain platform construction stage, a block chain address data management platform is established, clients are deployed as distributed nodes of a block chain according to a block chain address data management platform mechanism, the clients register, the block chain data management platform distributes a unique account for each node, and a private key and a public key are distributed; in the data uplink stage, a client sends a data request to a platform through a unique account, the platform acquires the account, address information data and time stamp information of the user according to the request sent by the user, encrypts the address information data, and transmits the encrypted data to each node. Each node endorses and confirms the address information data through a consensus mechanism, and each node stores the address information into a block chain. The method makes up the blank of researching the authority and the standard of the address information. The method has the characteristics of simplicity, effectiveness, high precision and easiness in implementation.

Description

Address information management method and system based on block chain technology
Technical Field
The present invention relates to the field of data management technologies, and in particular, to a method and a system for managing address information based on a blockchain technology.
Background
The current standard address information of China mainly comprises two parts: attribute information such as the name of the address and spatial location information of the address. The current address information management mainly adopts centralized database management or distributed database management. A centralized database is a database that is stored, located, and maintained only at a single node. This type of database is only modified and managed for the data of the node. Thus, this node is the core of data management, i.e. the central node, which other nodes access via internet connections. Such centralized databases are primarily intended for organizations or organizations. Since all data is stored at only one node, it is easier to access and reconcile the data; all data of the centralized database are stored in one node, so that the data redundancy is very little; centralized databases are easier to maintain and deploy and less expensive than all other available database management systems. The distributed database is composed of a plurality of database nodes which are connected with each other and distributed in different physical positions. Each node may manage data independently of the other nodes, with the data between the nodes requiring synchronization in order to maintain data consistency. Communication between databases of different nodes is accomplished by a computer network. Because the data are distributed on the nodes at different physical positions, the distributed database can be easily expanded and expanded; the distributed database can easily access data from different nodes; the database is more secure than a centralized database.
However, there are at least the following technical problems with the address information management method in the prior art:
and the central server has more data traffic and larger load in the centralized database management mode. If the data of the central server malfunctions, the entire system may not be able to provide data services. Different nodes acquire information and communicate with a central server, so that the waiting time of a user is long, and the loading capacity of the server is large. The centralized database has low access efficiency, and the data management is quite complex in order to solve the problems of concurrent access, data consistency and the like. Because the data and information are stored in one specific location, the central server data is easily tampered with and difficult to trace back after tampering. Distributed databases employ multiple nodes to store data, are expensive to deploy, and are difficult to maintain due to their complexity. Because the data in the distributed database is distributed in different physical locations and managed in slices, it is more costly to check for data redundancy issues to maintain data consistency and to provide a unified view to the user. Meanwhile, the fragmented data of a single node is easy to tamper, so that the data is inconsistent and nonuniform, and the security of the data is low.
As is clear from this, in the prior art, it is difficult for each management department to tamper with data, and it is low in security, and it is difficult to ensure authority of address data.
Disclosure of Invention
The invention aims to provide an address information management method based on a block chain technology, which solves the related problems in the background technology, including the problems of nonstandard and inconsistent data, low security of data easy to tamper and low efficiency of data centralized or distributed management query in the process of storing and using the address.
In order to solve the technical problems, the technical scheme of the invention is as follows:
the first aspect provides an address information management method based on a blockchain technology, comprising the following steps:
s1: establishing a block chain address data management platform, deploying each client as a distributed node of a block chain by adopting a block chain address data management platform mechanism, wherein the block chain address data management platform mechanism is an improved stock authorization proving mechanism, the mechanism takes a node for determining address attribute information as a node B, a node for determining address space position information as a node C, the rest nodes are common nodes, the node B and the node C are key nodes for endorsing address information data, and broadcasting the block to other common nodes after the key nodes reach consensus;
S2: receiving a registration request sent by a client, and distributing a user account, a public key, a private key and a decryption authorization certificate for each client based on the registration request;
s3: receiving an address information data request sent by a client, wherein the address information data comprises a user account, address information data and timestamp information, authenticating the identity of the client according to the user account in the address information data, encrypting the address information data by utilizing a public key corresponding to the client, and transmitting the encrypted address information data to other clients;
s4: and each client confirms the endorsement of the address information data through an improved share authorization proving mechanism and stores the address information data.
In one embodiment, in step S2, the block chain address data management platform adopts elliptic curve algorithm when distributing public key and private key for each client, and when generating the private key, first selects a base point G, then generates a 256-bit random number K, where the random number is the private key, and then multiplies by an elliptic random curve to obtain a point K on the curve, where K is the public key, and K: k is G.
In one embodiment, the address information data request sent by the client in step S3 includes an address information data upload request and an address information data update request, when the sent request is the address information data upload request, the address information data included in the request is the address information data to be uploaded, and when the sent request is the address information data update request, the address information data included in the request is the updated address information data, and the address information data includes address attribute information and address space location information.
In one embodiment, the method further comprises: and acquiring the data certificate according to the user account and the time stamp information in the address information data request so as to query the data.
In one embodiment, step S3 encrypts address information data with a public key corresponding to the client and transmits the encrypted address information data to other clients, including:
encrypting the address information data by using a public key corresponding to the client to obtain a ciphertext;
performing hash operation on the address information data to obtain a summary;
and transmitting the compressed file obtained by compressing the ciphertext and the abstract to each client.
In one embodiment, before each client performs endorsement confirmation on the address information data through the improved share authorization certification mechanism, the method further includes each client decrypting the received address information data by using the corresponding private key, where the received address information data is a compressed file, and the decryption process includes:
decompressing the received compressed file to obtain address information data ciphertext and abstract;
decrypting the address information data ciphertext by using the decryption authorization certificate and the private key to obtain decrypted address information data;
and carrying out hash operation on the decrypted address information data, comparing the obtained hash result with the abstract, and indicating that verification is passed when the comparison result is consistent.
In one embodiment, step S4 includes:
allocating different numbers of tokens for key nodes and common nodes;
voting to obtain key nodes through an improved stock authorization proving mechanism, wherein the key nodes comprise node B and node C, the node B is a node for determining address attribute information, the node C is a node for determining address space position information, and the rest nodes are common nodes;
the key node collects transaction information, wherein the transaction information comprises address information data to be uploaded or address information data to be updated;
the key node confirms endorsement of the collected transaction information, packages the transaction information into blocks for uplink storage after consensus is achieved, and broadcasts the blocks to other common nodes;
and after verifying the received block, other common nodes are added into the corresponding database.
Based on the same inventive concept, a second aspect of the present invention provides an address information management system based on a blockchain technique, comprising:
the platform construction module is used for establishing a block chain address data management platform, deploying all clients as distributed nodes of a block chain by adopting a block chain address data management platform mechanism, wherein the block chain address data management platform mechanism is an improved stock authorization proving mechanism, the mechanism takes nodes for determining address attribute information as B nodes, takes nodes for determining address space position information as C nodes, takes other nodes as common nodes, takes B nodes and C nodes as key nodes, is used for endorsing address information data, and broadcasts a block to other common nodes after the key nodes achieve consensus;
The key distribution module is used for receiving a registration request sent by the client and distributing a user account, a public key, a private key and a decryption authorization certificate for each client based on the registration request;
the data request module is used for receiving an address information data request sent by the client, wherein the address information data comprises a user account, address information data and timestamp information, authenticating the identity of the client according to the user account in the address information data, encrypting the address information data by utilizing a public key corresponding to the client and then transmitting the encrypted address information data to other clients;
and the data uplink module is used for each client side carrying out endorsement confirmation on the address information data through an improved share authorization proving mechanism and storing the address information data.
Based on the same inventive concept, a third aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed, implements the method of the first aspect.
Based on the same inventive concept, a fourth aspect of the present invention provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, said processor implementing the method according to the first aspect when executing said program.
Compared with the prior art, the invention has the following advantages and beneficial technical effects:
the invention provides an address information management method based on a blockchain technology, which utilizes the advantages of high safety, tamper resistance and traceability of the blockchain technology to construct a blockchain address data management platform, adopts an improved stock authorization proving mechanism to deploy each client as a distributed node of the blockchain, and respectively determines address attribute information and address space position information by two determining departments (joint points), wherein other nodes can only be used to store the address data information in a uplink way, thereby solving the following problems: in the address storage and use process, each node has the problems of nonstandard and inconsistent data, easy tampering of data and low security, and low efficiency of data centralized or distributed management and query, so that the blank of research on authority and standardization of address information is made up. The method has the characteristics of simplicity, effectiveness, high precision and easiness in implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for managing address information based on a blockchain technique according to an embodiment of the present invention;
fig. 2 is a flow chart of address information data uplink in an embodiment of the invention.
Detailed Description
The invention aims to provide an address information management method based on a block chain technology, which solves the related problems in the background technology, including the problems of nonstandard and inconsistent data, low security of data easy to tamper and low efficiency of data centralized or distributed management query in the process of storing and using the address.
The existing centralized database management is that all data are stored in a central node, other nodes need to access the central node to acquire the data, the access efficiency is low, the distributed storage in the block chain is that the participating nodes have independent and complete data storage, and the access efficiency of the data is improved to a great extent;
in the existing distributed database management, data fragments are stored in different nodes, the condition that the same data of different nodes is inconsistent possibly exists, and in a block chain data management system, the uploading, updating and deleting operations of the data all need to pass through a block chain, each node has a block chain copy, and the consistency of the data of each node is ensured;
In the existing database management, data is directly transmitted in a plaintext form, the security of the data in the transmission process is low, and by combining a blockchain, an elliptic curve encryption algorithm is adopted for double verification, so that the data transmission security between nodes is higher;
in the existing address information database management, the research on the authority of the address information is blank, and in a block chain, the data can be uplink after being identified by key nodes, so that the authority of the address information is ensured;
in centralized database management, once the data of the central node is tampered, the data of the whole system is tampered, and in the distributed database, certain nodes can be maliciously attacked, so that the data can be tampered. In the blockchain system, each node has a blockchain copy, so that illegal tampering of data is expected, and the tamper resistance of address information is greatly improved unless all nodes are invaded at the same time, the data of all nodes are changed.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
The invention provides an address information management method based on a block chain technology, referring to fig. 1, the method comprises the following steps:
s1: establishing a block chain address data management platform, deploying each client as a distributed node of a block chain by adopting a block chain address data management platform mechanism, wherein the block chain address data management platform mechanism is an improved stock authorization proving mechanism, the mechanism takes a node for determining address attribute information as a node B, a node for determining address space position information as a node C, the rest nodes are common nodes, the node B and the node C are key nodes for endorsing address information data, and broadcasting the block to other common nodes after the key nodes reach consensus;
s2: receiving a registration request sent by a client, and distributing a user account, a public key, a private key and a decryption authorization certificate for each client based on the registration request;
s3: receiving an address information data request sent by a client, wherein the address information data comprises a user account, address information data and timestamp information, authenticating the identity of the client according to the user account in the address information data, encrypting the address information data by utilizing a public key corresponding to the client, and transmitting the encrypted address information data to other clients;
S4: and each client confirms the endorsement of the address information data through an improved share authorization proving mechanism and stores the address information data.
First, a key technology related to the present invention will be described.
The blockchain technology refers to a technical scheme for collectively maintaining a reliable database through a mode of decentralization and third party removal, and is a bottom technology of digital currency such as bitcoin, ethernet coin and the like. In colloquial terms, blockchain technology refers to a way for the whole population to participate in billing. Transaction confirmation on the blockchain is completed by consensus of all nodes on the blockchain, and after the consensus is successful, the blocks are packed and written. The blockchain maintains a common ledger for all transactions on the blockchain network, and all systems have a database behind it, which can be seen as a large ledger. It becomes important who keeps track of this ledger. In this way we call it a blockchain technique.
A Hash operation, also called a Hash operation or a digest algorithm, is a process of converting data of an arbitrary length into an output value of a fixed length by a Hash Function (Hash Function). The hash function is typically designed as a very efficient algorithm that can map input data of arbitrary length to an output result of fixed length quickly, and the length of the output result remains unchanged regardless of the length of the input data. The hash function is mainly characterized in that: uniqueness, ease of calculation and resistance to modification. For any data input, there is only one unique result corresponding to the data; the hash function can calculate the hash value in a shorter time no matter how large the input data length is; for two data with very little difference, the output results are very different.
An elliptic curve encryption algorithm, ECC for short, is an asymmetric encryption algorithm realized based on elliptic curve mathematical theory. Compared to RSA, ECC has the advantage that a shorter key can be used to achieve security comparable to or higher than RSA, and RSA encryption algorithm is also an asymmetric encryption algorithm, widely used in public key encryption and electronic commerce.
The consensus mechanism is to complete verification and confirmation of the transaction in a short time through voting of special nodes; for a transaction, if several nodes with irrelevant interests can agree on it, we can consider that the whole network can agree on it as well. The consensus mechanism is to make each node agree through rules, and ensure the consistency and validity of the data. Consistency means that the spatial data stored at all nodes on the blockchain is identical, and validity means that transaction data sent by each node can be stored in a block and be uplink.
The share authorization proving mechanism (DPOS) is a new consensus mechanism for guaranteeing network security. The share authorization proof mechanism is similar to the board voting, and has a built-in real-time equity person voting system, as if the system were holding a never-scattered stakeholder meeting at any time, where all stakeholders vote to decide the corporate decision. The decentralization of the blockchain established based on the DPOS mechanism relies on a certain number of representatives, not the totality of users. In such blockchains, the ensemble node votes over a number of node representatives, they proxy the ensemble node acknowledgement blocks, maintaining the system in order. At the same time, all nodes in the blockchain have the right to be free and appointed to represent at any time. If necessary, the whole nodes can make the incumbent node representatives lose representative qualification through voting, and reselect new representatives, thereby realizing real-time democracy. The share authorization proving mechanism can greatly reduce the number of participating verification and accounting nodes, thereby achieving second-level consensus verification.
Distributed storage in a blockchain is that participating nodes each have independent, complete data storage. Unlike traditional distributed storage, the uniqueness of the distributed storage of blockchains is mainly manifested in two aspects: 1. each node of the blockchain stores complete data according to a block chain structure, and the traditional distributed storage generally divides the data into a plurality of parts for storage according to a certain rule. 2. Each node storage of the blockchain is independent and equivalent in status, namely, a central node is not provided, storage consistency is guaranteed by means of a consensus mechanism, and data is synchronized to other backup nodes through the central node in the conventional distributed storage. The data nodes can be different physical machines and also can be cloud-end different examples.
The current standard address information of China mainly comprises two parts: attribute information such as the name of the address and spatial location information of the address. At present, the address information management mainly adopts centralized database management or distributed database management, but the data of each management department is difficult to tamper, the security is lower, and the authority of the address data is difficult to ensure. By using the blockchain technology, the address information can be distributed and managed, the characteristics of partitioned storage of the traditional distributed database are overcome, the authority, accuracy and consistency of the data are improved, and the common construction, sharing and sharing of the address information by various departments, enterprises and individuals of the government are facilitated. There is no published paper or patent in this area.
The address information management method based on the block chain technology mainly comprises two stages, namely a block chain platform construction stage (steps S1 and S2) and a data uplink stage (steps S3 and S4).
The address information management method based on the block chain technology provided by the application is different from the data storage or sharing method based on the block chain technology in the prior art in main points and advantages that:
first, the data types are different, and the data stored in the prior art is logistics transaction information, mainly expressed as flow transaction, and is a bill. Stored in the application is address information data which is static data stored by bill, and transaction can not occur, and change of money is generated. The address information data is composed of two parts, and the address information includes 2 parts of space information and attribute information. There is currently no literature or technology related to storing this type of data using blockchains.
Secondly, the application adopts an improved DPOS consensus mechanism, spatial information and attribute information in address information data are respectively determined by two determined departments (nodes), so that nodes generating consensus each time can be ensured to be the two nodes, key nodes are not replaced, and the nodes carrying out consensus in the DPOS consensus mechanism adopted in the prior art are changed.
Thirdly, the functions and purposes achieved are different, in the prior art, in order to achieve real-time sharing of logistics data, the main function is to acquire data information from a block chain, and in order to store data in a uplink, and ensure authority of the uplink data, address information data are managed.
In general, the application combines the actual situation of address information management, and utilizes the blockchain storage address information data with high security, tamper resistance and traceability by improving the DPOS consensus mechanism, thereby ensuring the authority of the address information data.
In one embodiment, in step S2, the block chain address data management platform adopts elliptic curve algorithm when distributing public key and private key for each client, and when generating the private key, first selects a base point G, then generates a 256-bit random number K, where the random number is the private key, and then multiplies by an elliptic random curve to obtain a point K on the curve, where K is the public key, and K: k is G.
In other embodiments, the elliptic encryption algorithm may be replaced with an RSA encryption algorithm, both of which are asymmetric encryption algorithms, which can improve the security of the data.
The principle of RSA public key cryptosystem is: according to the theory of numbers, it is relatively simple to find two large primes, and it is extremely difficult to factorize their products, so that the products can be disclosed as encryption keys.
The RSA algorithm is described in detail as follows:
(1) Arbitrarily selecting two different large prime numbers p and q to calculate a product n=p×q, and z= (p-1) (q-1);
(2) Arbitrarily choosing a large integer e, which is used as a key (e is chosen easily, e.g. all prime numbers larger than p and q are available);
(3) The defined decryption key d satisfies (d×e) mod z=1, i.e., d×e=k×z+1, k++1 is an arbitrary integer; therefore, if e and z are known, d can be easily calculated;
(4) Disclosing an integer sum e, and preserving d in a secret manner;
(5) Encrypting plaintext m (m < n is an integer) into ciphertext c, wherein the encryption algorithm is that
c=E(m)=m mod n
(6) Decrypting the ciphertext c into plaintext m, wherein the decryption algorithm is that
m=D(c)=c mod n
However, it is not possible to calculate d from n and e alone. Thus, anyone can encrypt the plaintext, but only the authorized user (knowing d) can decrypt the ciphertext.
In one embodiment, the address information data request in step S3 includes an address information data upload request and an address information data update request, when the transmitted request is the address information data upload request, the address information data included in the request is the address information data to be uploaded, and when the transmitted request is the address information data update request, the address information data included in the request is the updated address information data, and the address information data includes address attribute information and address space position information.
Specifically, after receiving an address information data request sent by a client, the blockchain address data management platform acquires a user account, address information data and timestamp information, and the data management platform judges the identity of a node initiating the request through the user account and determines which specific department the initiating node is. The address information data is encrypted by a public key and transmitted to each node. The timestamp records the specific time of the user request data and reserves the request data credential.
In one embodiment, the method further comprises: and acquiring the data certificate according to the user account and the time stamp information in the address information data request so as to query the data.
Through the establishment of the address information management platform, each client is a distributed node of the address information management platform, and when the client needs to upload or update data, the client sends an address information data request to the data management platform, wherein the sent request contains address attribute information and space position information; when uploading information, the platform acquires the account, address information data and timestamp information of the user according to the request sent by the user, authenticates the user identity, acquires a credential through the acquired timestamp information and the account information of the user, cannot be tampered, and facilitates later-stage data query.
In one embodiment, step S3 encrypts address information data with a public key corresponding to the client and transmits the encrypted address information data to other clients, including:
encrypting the address information data by using a public key corresponding to the client to obtain a ciphertext;
performing hash operation on the address information data to obtain a summary;
and transmitting the compressed file obtained by compressing the ciphertext and the abstract to each client.
Specifically, in the process of the yam, the hash operation can adopt an SHA256 algorithm, and 256-bit hash values can be obtained for inputting address information data with any length, and the process can be summarized into five steps:
filling address information data to enable the length of the address information data to accord with the multiple of 512 bits;
dividing the filled message into a plurality of 512-bit blocks;
step three, initializing 8 32-bit registers A, B, C, D, E, F, G, H for storing different parts of the hash value;
and step four, processing each 512-bit block, and updating the value in the register through multiple rounds of operation.
And fifthly, generating a hash value, and connecting the values in the register together according to a certain sequence after all the blocks are processed, so as to obtain a final 256-bit hash value.
In one embodiment, before each client performs endorsement confirmation on the address information data through the improved share authorization certification mechanism, the method further includes each client decrypting the received address information data by using the corresponding private key, where the received address information data is a compressed file, and the decryption process includes:
decompressing the received compressed file to obtain address information data ciphertext and abstract;
decrypting the address information data ciphertext by using the decryption authorization certificate and the private key to obtain decrypted address information data;
and carrying out hash operation on the decrypted address information data, comparing the obtained hash result with the abstract, and indicating that verification is passed when the comparison result is consistent.
In one embodiment, step S4 includes:
allocating different numbers of tokens for key nodes and common nodes;
voting to obtain key nodes through an improved stock authorization proving mechanism, wherein the key nodes comprise node B and node C, the node B is a node for determining address attribute information, the node C is a node for determining address space position information, and the rest nodes are common nodes;
the key node collects transaction information, wherein the transaction information comprises address information data to be uploaded or address information data to be updated;
The key node confirms endorsement of the collected transaction information, packages the transaction information into blocks for uplink storage after consensus is achieved, and broadcasts the blocks to other common nodes;
and after verifying the received block, other common nodes are added into the corresponding database.
Referring to fig. 2, a flow chart of address information data uplink in the method according to the embodiment of the present invention is provided.
Specifically, two agent nodes, node B and node C, may be obtained by voting through the improved share authorization proof mechanism, to determine address information space information and attribute information, respectively. In the invention, the nodes for endorsement confirmation can only be agent nodes, namely key nodes, selected from the nodes of the shareholder by voting by a DPOS algorithm.
The present invention uses blockchain techniques to integrate the advantages of both centralized and distributed database management and address their respective shortcomings. The distributed storage in the block chain is that the participating nodes respectively have independent and complete data storage, so that the data access efficiency is greatly improved; the operations of uploading, updating and deleting the data all pass through the block chain, each node has a block chain copy, and the consistency of the data of each node is ensured; by combining with the block chain, adopting an elliptic curve encryption algorithm to perform double verification, the data transmission security between nodes is higher; the data can be uplink after being identified by the key nodes, and the authority of the address information is ensured; because each node has a blockchain copy, data is required to be illegally tampered, unless all nodes are invaded at the same time, the data of all nodes are changed, and the tamper resistance of address information is greatly improved.
The method according to the invention is described and illustrated below by way of a specific example:
the user logs in the blockchain address data management platform through a unique account number at the node A, and the platform distributes public and private keys for the user.
After a user submits an address information data request at a node A, the blockchain data management platform acquires an account, address information data and timestamp information of the user according to the request sent by the user; encrypting the address information data through the public key of the node A, generating a summary at the same time, compressing and packaging the address information data and the summary, and transmitting P2P to all nodes in the blockchain network; after each node receives the compressed data (compressed file), decrypting the address information data ciphertext in the compressed file by using a private key to obtain a plaintext, namely address information data, and comparing the data after hash calculation with an abstract to verify the correctness of the data;
after each node obtains data, voting is carried out through a DPOS consensus mechanism to obtain agent nodes, namely key nodes B and C, wherein the algorithm skillfully arranges nodes for determining attributes such as address information names and the like as nodes B and nodes for determining address space position information as nodes C; and the key nodes carry out endorsement processing on the address information data, after the key nodes reach consensus, the blocks are broadcasted to each node, and each node stores and uplinks the data, so that the data of all nodes are determined by the nodes B and C, and the authority of the address information is ensured.
If one attacks any node maliciously, such as node E, in an attempt to tamper with the data on the chain, since each node has a copy of the blockchain, only changing the data of the node cannot be realized, so that the node E needs to submit a data changing request, and when the key node carries out endorsement processing on the address information data according to the steps, the key node is rejected, the process is terminated, and the data cannot complete the uplink operation. Unless he controls all nodes at the same time, it is possible to tamper with the data, and tamper resistance of the data is greatly improved.
In the embodiment of the invention, the security of data transmission is ensured by the public and private keys of the elliptic curve encryption algorithm; by improving a DPOS consensus mechanism, key nodes for determining address data attribute information and address data space information are ensured to be unchanged, and the authority of uplink data is ensured; by combining address information with blockchain technology, tamper resistance of the address information is ensured.
The main technical key points and beneficial technical effects of the invention include:
1. the block chain high-safety, tamper-proof and traceable distributed technology is adopted for the first time in the aspect of address information, and the advantages of the traditional centralized database and the distributed database are integrated.
2. The DPOS consensus mechanism algorithm is improved, the problem that the standard address information is determined by a plurality of determined key nodes in the uplink process is innovatively solved, and the authority of the address information is guaranteed.
3. And by combining with the blockchain technology and adopting an elliptic curve encryption algorithm, the security in the transmission of the address information is improved.
Example two
Based on the same inventive concept, the embodiment of the invention discloses an address information management system based on a block chain technology, which comprises the following steps:
the platform construction module is used for establishing a block chain address data management platform, deploying all clients as distributed nodes of a block chain by adopting a block chain address data management platform mechanism, wherein the block chain address data management platform mechanism is an improved stock authorization proving mechanism, the mechanism takes nodes for determining address attribute information as B nodes, takes nodes for determining address space position information as C nodes, takes other nodes as common nodes, takes B nodes and C nodes as key nodes, is used for endorsing address information data, and broadcasts a block to other common nodes after the key nodes achieve consensus;
the key distribution module is used for receiving a registration request sent by the client and distributing a user account, a public key, a private key and a decryption authorization certificate for each client based on the registration request;
The data request module is used for receiving an address information data request sent by the client, wherein the address information data comprises a user account, address information data and timestamp information, authenticating the identity of the client according to the user account in the address information data, encrypting the address information data by utilizing a public key corresponding to the client and then transmitting the encrypted address information data to other clients;
and the data uplink module is used for each client side carrying out endorsement confirmation on the address information data through an improved share authorization proving mechanism and storing the address information data.
Because the system described in the second embodiment of the present invention is a system for implementing the address information management method based on the blockchain technology in the first embodiment of the present invention, based on the method described in the first embodiment of the present invention, a person skilled in the art can understand the specific structure and the modification of the system, and therefore, the details are not repeated here. All systems used in the method of the first embodiment of the present invention are within the scope of the present invention.
Example III
Based on the same inventive concept, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed, implements the method as described in embodiment one.
Since the computer readable storage medium described in the third embodiment of the present application is a computer readable storage medium used for implementing the address information management method based on the blockchain technique in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a person skilled in the art can understand the specific structure and the modification of the computer readable storage medium, and therefore, the details are not repeated here. All computer readable storage media used in the method according to the first embodiment of the present application are included in the scope of protection.
Example IV
Based on the same inventive concept, the application also provides a computer device, comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor executes the program to implement the method in the first embodiment.
Because the computer device described in the fourth embodiment of the present application is a computer device used for implementing the address information management method based on the blockchain technology in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a person skilled in the art can understand the specific structure and the modification of the computer device, and therefore, the details are not repeated here. All computer devices used in the method of the first embodiment of the present application are within the scope of the present application.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims and the equivalents thereof, the present invention is also intended to include such modifications and variations.

Claims (10)

1. An address information management method based on a blockchain technology is characterized by comprising the following steps:
s1: establishing a block chain address data management platform, deploying each client as a distributed node of a block chain by adopting a block chain address data management platform mechanism, wherein the block chain address data management platform mechanism is an improved stock authorization proving mechanism, the mechanism takes a node for determining address attribute information as a node B, a node for determining address space position information as a node C, the rest nodes are common nodes, the node B and the node C are key nodes for endorsing address information data, and broadcasting the block to other common nodes after the key nodes reach consensus;
S2: receiving a registration request sent by a client, and distributing a user account, a public key, a private key and a decryption authorization certificate for each client based on the registration request;
s3: receiving an address information data request sent by a client, wherein the address information data comprises a user account, address information data and timestamp information, authenticating the identity of the client according to the user account in the address information data, encrypting the address information data by utilizing a public key corresponding to the client, and transmitting the encrypted address information data to other clients;
s4: and each client confirms the endorsement of the address information data through an improved share authorization proving mechanism and stores the address information data.
2. The method for managing address information based on blockchain technique as defined in claim 1, wherein in step S2, the blockchain address data management platform adopts elliptic curve algorithm when assigning public key and private key to each client, when generating private key, first selects a base point G, then generates a 256-bit random number K, which is the private key, and then obtains a point K on the curve, which is the public key, through elliptic random curve multiplication, K: k is G.
3. The address information management method based on the blockchain technique as in claim 1, wherein the address information data request sent by the client in step S3 includes an address information data upload request and an address information data update request, when the sent request is the address information data upload request, the address information data included in the request is the address information data to be uploaded, and when the sent request is the address information data update request, the address information data included in the request is the updated address information data, and the address information data includes address attribute information and address space position information.
4. The address information management method based on the blockchain technique of claim 1, wherein the method further comprises: and acquiring the data certificate according to the user account and the time stamp information in the address information data request so as to query the data.
5. The method for managing address information based on blockchain technology as in claim 1, wherein step S3 encrypts the address information data using the public key corresponding to the client and transmits the encrypted address information data to other clients, and includes:
encrypting the address information data by using a public key corresponding to the client to obtain a ciphertext;
Performing hash operation on the address information data to obtain a summary;
and transmitting the compressed file obtained by compressing the ciphertext and the abstract to each client.
6. The method for managing address information based on blockchain technology as in claim 5, wherein before each client confirms the endorsement of the address information data by the improved stock authority verification mechanism, the method further comprises each client decrypting the received address information data using the corresponding private key, the received address information data being a compressed file, the decrypting process comprising:
decompressing the received compressed file to obtain address information data ciphertext and abstract;
decrypting the address information data ciphertext by using the decryption authorization certificate and the private key to obtain decrypted address information data;
and carrying out hash operation on the decrypted address information data, comparing the obtained hash result with the abstract, and indicating that verification is passed when the comparison result is consistent.
7. The address information management method based on the blockchain technique as in claim 1, wherein step S4 includes:
allocating different numbers of tokens for key nodes and common nodes;
Voting to obtain key nodes through an improved stock authorization proving mechanism, wherein the key nodes comprise node B and node C, the node B is a node for determining address attribute information, the node C is a node for determining address space position information, and the rest nodes are common nodes;
the key node collects transaction information, wherein the transaction information comprises address information data to be uploaded or address information data to be updated;
the key node confirms endorsement of the collected transaction information, packages the transaction information into blocks for uplink storage after consensus is achieved, and broadcasts the blocks to other common nodes;
and after verifying the received block, other common nodes are added into the corresponding database.
8. An address information management system based on a blockchain technique, comprising:
the platform construction module is used for establishing a block chain address data management platform, deploying all clients as distributed nodes of a block chain by adopting a block chain address data management platform mechanism, wherein the block chain address data management platform mechanism is an improved stock authorization proving mechanism, the mechanism takes nodes for determining address attribute information as B nodes, takes nodes for determining address space position information as C nodes, takes other nodes as common nodes, takes B nodes and C nodes as key nodes, is used for endorsing address information data, and broadcasts a block to other common nodes after the key nodes achieve consensus;
The key distribution module is used for receiving a registration request sent by the client and distributing a user account, a public key, a private key and a decryption authorization certificate for each client based on the registration request;
the data request module is used for receiving an address information data request sent by the client, wherein the address information data comprises a user account, address information data and timestamp information, authenticating the identity of the client according to the user account in the address information data, encrypting the address information data by utilizing a public key corresponding to the client and then transmitting the encrypted address information data to other clients;
and the data uplink module is used for each client side carrying out endorsement confirmation on the address information data through an improved share authorization proving mechanism and storing the address information data.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when executed, implements the method of any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when the program is executed.
CN202310629919.6A 2023-05-30 2023-05-30 Address information management method and system based on block chain technology Pending CN116668458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310629919.6A CN116668458A (en) 2023-05-30 2023-05-30 Address information management method and system based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310629919.6A CN116668458A (en) 2023-05-30 2023-05-30 Address information management method and system based on block chain technology

Publications (1)

Publication Number Publication Date
CN116668458A true CN116668458A (en) 2023-08-29

Family

ID=87727332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310629919.6A Pending CN116668458A (en) 2023-05-30 2023-05-30 Address information management method and system based on block chain technology

Country Status (1)

Country Link
CN (1) CN116668458A (en)

Similar Documents

Publication Publication Date Title
JP7292365B2 (en) Cryptographic methods and systems for secure extraction of data from blockchains
Fernández-Caramés et al. A Review on the Use of Blockchain for the Internet of Things
CN110391911B (en) System and method for anonymously voting block chain
CN110337665B (en) System and method for information protection
EP3627797B1 (en) Manicoding for access verification
CN111914027B (en) Block chain transaction keyword searchable encryption method and system
Chaieb et al. Verify-your-vote: A verifiable blockchain-based online voting protocol
CN111159288A (en) Method, system, device and medium for storing, verifying and realizing chain structure data
Khovratovich et al. Sovrin: digital identities in the blockchain era
CN112418860A (en) Block chain efficient management framework based on cross-chain technology and working method
US10846372B1 (en) Systems and methods for trustless proof of possession and transmission of secured data
KR20180116278A (en) Common information secrets for secure information exchange and hierarchical and deterministic cryptographic keys
CN110011781A (en) A kind of homomorphic cryptography method encrypting and support zero-knowledge proof for transaction amount
CN110769035A (en) Block chain asset issuing method, platform, service node and storage medium
CN111556120A (en) Data processing method and device based on block chain, storage medium and equipment
Li et al. Synchronized provable data possession based on blockchain for digital twin
CN110414981A (en) A kind of homomorphic cryptography method that supporting ZKPs and block chain transaction amount encryption method
EP3869376B1 (en) System and method for blockchain based decentralized storage with dynamic data operations
Patsonakis et al. Towards a smart contract-based, decentralized, public-key infrastructure
CN112565264B (en) Cloud storage data integrity detection method based on block chain
CN112291062B (en) Voting method and device based on block chain
Qu et al. A electronic voting protocol based on blockchain and homomorphic signcryption
CN115208628B (en) Data integrity verification method based on block chain
KR20230093432A (en) Identification of Denial of Service Attacks
Blum et al. Superlight–A permissionless, light-client only blockchain with self-contained proofs and BLS signatures

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