User information processing method and device based on distributed storage

By performing user information operation verification and storage on the blockchain network, it solves the problem of difficulty in ensuring the security and integrity of user identity information in traditional systems, realizes distributed storage of the entire network and all nodes, and ensures that data is protected from attacks. security and integrity.

CN113836573BInactive Publication Date: 2024-10-11BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110916990.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The security and integrity of user identity information in traditional systems is difficult to guarantee, especially in the case of data leaks and attacks, which may lead to heavy losses.

Method used

Using a blockchain-based distributed storage method, the current node receives user information operation requests, generates verification requests and sends them to the blockchain network. Other nodes verify the validity and store the processing results to ensure that when the verification results reach the preset threshold Perform storage and transmission to achieve distributed storage of the entire network and all nodes.

Benefits of technology

It improves the security and integrity of user information. Even if some nodes are attacked, the security and integrity of the entire network data can be guaranteed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113836573B_ABST
    Figure CN113836573B_ABST
Patent Text Reader

Abstract

The present invention discloses a user information processing method and device based on distributed storage, which relates to the field of distributed technology, wherein the method comprises: the current node generates a verification request for the user information operation according to the operation request for the user information, and sends the verification request to the blockchain network; after receiving the verification request, each other node verifies the validity of the user information operation, and sends the verification result to the blockchain network; the current node receives the verification result sent by each other node, and when the proportion of the verification result being valid exceeds a preset threshold, the processing result of the operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network; each other node receives the sent result and stores it. The present invention can perform distributed storage on the processing result of the user information operation request, realizes the distributed storage of the user information in the whole network and all nodes, and ensures the security and integrity of the user information storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed technology, and in particular to a user information processing method and device based on distributed storage. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.

[0003] Traditional system backends are supported by centralized or distributed databases. It is necessary to establish HTTP connections and databases to achieve read and write interactions. All data is stored in certain fixed databases. However, in this mode, various failures often occur, such as deadlock problems caused by unreasonable data table design, data leakage caused by attacks, and data integrity problems. User identity information is usually the most secure data in the database. If leakage occurs, it will cause significant losses. Summary of the invention

[0004] An embodiment of the present invention provides a user information processing method based on distributed storage, which is used to implement distributed storage of processing results of user information operation requests. The method includes:

[0005] The current node receives an operation request for user information; generates a verification request for the user information operation based on the operation request for user information, and sends the verification request for the user information operation to the blockchain network;

[0006] After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network;

[0007] The current node receives the verification results sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing results of the operation request on the user information in the current node and sends the processing results to the blockchain network.

[0008] Each other node receives and stores the processing result sent through the blockchain network.

[0009] The embodiment of the present invention further provides a user information processing device based on distributed storage, which is used to implement distributed storage of processing results of user information operation requests, and the device includes:

[0010] The current node is used to receive an operation request for user information; generate a verification request for the user information operation according to the operation request for user information, and send the verification request for the user information operation to the blockchain network; receive the verification result sent by each other node through the blockchain network, and when the proportion of the verification results being valid exceeds a preset threshold, store the processing result of the operation request for user information in the current node, and send the processing result to the blockchain network;

[0011] Each other node is used to verify the validity of the user information operation after receiving the verification request for the user information operation sent through the blockchain network, and send the verification result to the blockchain network; receive and store the processing result sent through the blockchain network.

[0012] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned user information processing method based on distributed storage when executing the computer program.

[0013] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned user information processing method based on distributed storage.

[0014] In an embodiment of the present invention, a user information processing scheme based on distributed storage is as follows: a current node receives an operation request for user information; based on the operation request for user information, a verification request for the user information operation is generated, and the verification request for the user information operation is sent to the blockchain network; after receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network; the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of the verification result being valid exceeds a preset threshold, the processing result of the operation request for user information is stored in the current node, and the processing result is sent to the blockchain network; each other node receives and stores the processing result sent through the blockchain network, and the processing result of the user information operation request can be distributedly stored, thereby realizing distributed storage of user information across the entire network and across all nodes, and even if some nodes are attacked, the security and integrity of the data across the entire network can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0016] Figure 1 Schematic diagram of the process of a user information processing method based on distributed storage in an embodiment of the present invention;

[0017] Figure 2 This is a schematic diagram of the principle of interaction between the front end and the smart contract in an embodiment of the present invention;

[0018] Figure 3 A schematic diagram of a system architecture for processing user information in an embodiment of the present invention;

[0019] Figure 4 A schematic diagram of the principle of recording the processing of an operation request for user information in an embodiment of the present invention;

[0020] Figure 5 It is a schematic diagram of the structure of a user information processing device based on distributed storage in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0022] Before introducing the embodiments of the present invention, the terms involved in the embodiments of the present invention are first introduced.

[0023] 1.web3.js: web3.js is a collection of libraries that can interact with local or remote Ethereum nodes using HTTP or IPC. The web3 JavaScript library is able to interact with the Ethereum blockchain. It can retrieve user accounts, send transactions, interact with smart contracts, etc.

[0024] 2. Testrpc: This is a complete blockchain in memory and only exists on the current development device. Compared with the Geth private chain environment, TestRPC returns in real time when executing transactions, without waiting for the default block time, so that the code can be verified quickly and feedback can be obtained immediately when errors occur.

[0025] 3.Truffle: Truffle is a development framework for the Solidity language based on Ethereum. It is based on Javascript and provides built-in smart contract compilation, linking, deployment and binary file management. It is scriptable and extensible.

[0026] The inventor found that traditional Internet transactions require the help of third-party institutions to process electronic payment information, but this increases transaction costs and also poses the risk of exposing privacy. User identity information is usually the most secure data in the database, and leakage can lead to significant losses.

[0027] The embodiment of the present invention provides a user information processing solution based on distributed storage, which mainly improves the security of transactions and solves the problem of information tampering through a globally synchronized distributed ledger. Based on the decentralized development of blockchain, any two parties who reach an agreement can directly conduct transactions without the intervention of a trusted third party. It can realize a globally synchronized distributed ledger that records all transactions and has the characteristics of high transparency, non-tamperability, and traceability, which effectively improves the security of transactions. That is, the inventor considers putting identity authentication on a blockchain with a higher security level, and through a distributed ledger, realizes basic functions such as registration and login based on the Truffle framework, realizes the distributed storage of information across the entire network and all nodes, and even if some nodes are attacked, the security and integrity of the data of the entire network can be guaranteed.

[0028] The user information processing solution based on distributed storage is introduced in detail below.

[0029] Figure 1 FIG. 1 is a flow chart of a method for processing user information based on distributed storage in an embodiment of the present invention. The user information processing participant nodes constitute a blockchain network. Figure 1 As shown, the method comprises the following steps:

[0030] Step 101: The current node receives an operation request for user information; generates a verification request for the user information operation according to the operation request for the user information, and sends the verification request for the user information operation to the blockchain network;

[0031] Step 102: After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network;

[0032] Step 103: The current node receives the verification results sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the processing result of the operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network;

[0033] Step 104: Each other node receives and stores the processing result sent through the blockchain network.

[0034] The user information processing method based on distributed storage provided by the embodiment of the present invention can perform distributed storage on the processing results of user information operation requests, thereby realizing the distributed storage of user information in the entire network and all nodes. Even if some nodes are attacked, the security and integrity of the data in the entire network can be guaranteed. Figures 2 to 4 Provide a detailed introduction.

[0035] 1. First, the preparatory steps before implementing the present invention are introduced.

[0036] 1. The present invention mainly uses the following related technical tools and protocols:

[0037] (1) P2P network:

[0038] The P2P (Peer to Peer) network is the basic network architecture of the entire blockchain. It does not require a centralized server or centralized router. All nodes are completely equal. The loss of one or more nodes in the network will not affect the integrity of the network data. At the same time, P2P can realize the sharing of storage resources and computing resources, effectively improving resource utilization.

[0039] (2) Blockchain Cryptography

[0040] Commonly used cryptographic algorithms include symmetric encryption algorithms, asymmetric encryption algorithms and message digests.

[0041] Symmetric encryption algorithms have the characteristics of high encryption and decryption efficiency, easy operation, and convenient standardization. They are commonly used data encryption technologies in cyberspace and information processing.

[0042] Compared with symmetric encryption algorithms, asymmetric encryption has lower encryption and decryption efficiency but higher security. It is a commonly used encryption algorithm in blockchain technology.

[0043] A message digest can convert a message of any length into a hash value of fixed length through a hash algorithm within a certain period of time, that is, h=H(m). Hash functions are often used to verify data integrity and identity authentication.

[0044] (3) Merkle Tree Algorithm

[0045] In the blockchain, Merkle Tree is used to summarize all transactions in a block and generate a fingerprint of all transaction sets in a block. In the Merkle tree, any change in a node will affect the value of the root node, thus ensuring the immutability of transactions on the blockchain. When the previous transaction changes, it can be cut from the tree, so that the old block can be compressed.

[0046] (4) Consensus Algorithm

[0047] A mechanism for each node in the blockchain to reach a consensus in order to verify the accounting. The blockchain is built on a P2P network. How to make all nodes in the entire network reach a consensus on the accounting and make the final result credible in the absence of a trusted third party and traitors? This is the consensus algorithm, which is also the core content of the blockchain.

[0048] (5) Ethereum

[0049] Ethereum is a smart contract development platform that provides the basic conditions necessary for contract development, including smart contract scripts, contract programming languages, Ethereum virtual machines (EVM), Whisper communication systems, Swarm information management systems, IPFS file systems, and graphical clients and command line operation interfaces based on multiple languages. With the help of the Ethereum platform, decentralized applications DApp can be developed easily.

[0050] 2. Figure 2 Schematic diagram of the principle of interaction between the front end and the smart contract in an embodiment of the present invention. Figure 2 As shown, the steps of the present invention for user information management include:

[0051] 1) Use the solidity language to write a smart contract (the contract file ends with .sol), send it to the smart contract compiler through the interface provided by web3.js, and obtain the binary code;

[0052] 2) Feedback the binary content of the contract to the system front end;

[0053] 3) Deploy the compiled smart contract to the network, obtain the hash address and ABI (ABI is the binary representation of the contract interface) of the smart contract in the blockchain. For the convenience of development, it will be deployed to the test network through testrpc;

[0054] 4) After the contract is deployed to the blockchain network, the contract address and ABI are fed back to the front end;

[0055] 5) The front end calls the smart contract through Address+ABI+nonce to complete the operation of interacting with the contract, where nonce is the transaction number, which will automatically increase by 1 after each interaction to prevent duplicate transactions.

[0056] 3. In addition, in order to facilitate understanding of how the present invention is implemented, the following Figure 3 , and then introduce the system architecture of user information processing.

[0057] The first layer is mainly the technical environment that blockchain relies on, such as the P2P network and cryptography introduced above;

[0058] The second layer is the operations, operation objects and environment involved in the blockchain, among which the consensus algorithm determines the consensus mechanism of the entire blockchain network, and all nodes must work in accordance with this mechanism. The consensus mechanism used in this invention is proof of work (POW);

[0059] The third layer is the Ethereum virtual machine and the remote procedure call protocol RPC (Remote Procedure Call). The Ethereum virtual machine is similar to the Java virtual machine, providing a running environment for programs developed based on Ethereum, while RPC ensures the communication between programs developed based on Ethereum on the network.

[0060] The fourth layer is the smart contract layer. All business logics that need to interact with the blockchain in this layer need to be implemented by writing smart contracts. The implementation of smart contracts in this invention uses the solidity language;

[0061] The fifth layer is the application layer. The business logic written in the smart contract supports the entire application layer and provides services and interfaces for it. The application layer needs to encapsulate the interface and implement interaction with the smart contract layer.

[0062] 2. Next, the above steps 101 to 104 are introduced.

[0063] All operations interact with the underlying blockchain and generate corresponding hash values, which are recorded in the blockchain as transactions. The so-called identity information maintenance includes the maintenance of user addresses, user names, user roles, passwords and other identity information. The above information will use mapping to form a one-to-one mapping from address to identity information to record relevant information, such as Figure 4 As shown. Figure 4 In the blockchain, a node refers to a node in the blockchain. Any computer connected to the blockchain can be called a node. For example, a user's mobile terminal can be regarded as a node. In addition, a single transaction is a basic element in the entire blockchain, including two actions: the current node initiates the transaction and other nodes verify the transaction. The "transaction" here generally refers to the action of changing the information stored on the chain, such as changing the user's password. Figure 4 The "request" in can be regarded as a "transaction". Specifically:

[0064] 1. Account registration.

[0065] After the smart contract is successfully deployed, only unregistered addresses can be registered, because it is stipulated that one address can only register one account, that is, the address and account information correspond one to one. When registering, you need to fill in the user's address, which is a string of hash values. The registered fields include user role, user name and password. The user's registration operation is verified by each node on the blockchain network, and finally stored in the distributed ledger in the form of a transaction, synchronized to each node of the blockchain, and provides credentials for subsequent verification of the transaction link.

[0066] As can be seen from the above, in one embodiment, the current node receives an operation request for user information; generates a verification request for the user information operation according to the operation request for the user information, and sends the verification request for the user information operation to the blockchain network, which may include: the current node receives a registration operation request for the user information; generates a verification request for the user information registration operation according to the registration operation request for the user information, and sends the verification request for the user information registration operation to the blockchain network;

[0067] After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, including: after receiving the verification request for the user information registration operation sent through the blockchain network, each other node verifies the validity of the user information registration operation and sends the verification result to the blockchain network;

[0068] The current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network. It may include: the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the registration operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network.

[0069] In the specific implementation, the steps for distributed storage of the registration operation of the user information are given as an example: a user ① sets a password ② changes the password. ① is used as the previous transaction of ②. Transaction ② uses the private key of the current node to make a digital signature, that is, the information Y in the previous transaction (including the unique hash value of transaction ①, the hash of the public key address of transaction ①, and the password set in transaction ①) is used as plain text to calculate the ciphertext X. The current node attaches X as a digital signature and the public key address of the node to transaction ②. After transaction ② is initiated, each node needs to verify whether transaction ② is valid. The verification node uses the public key address provided by the current node to decrypt the digital signature X to obtain the plaintext Y, and compares it with the content recorded on the blockchain to verify whether the public key address is held by the user; at the same time, the public key address hash provided by the current node is calculated, and it is continued to be compared with the public key address hash in Y to verify whether the public key address of the current node is the address of the previous transaction, and then verify whether transaction ② can be traced back to transaction ①. If the two comparisons are consistent, transaction ② is valid. Once the verification is passed and the transaction is confirmed, the transaction will be recorded on the blockchain to form a new block. This process can be called mining.

[0070] 2. Account login

[0071] Only registered accounts can log in, otherwise the system will prompt that it is not registered, because the unregistered address does not store any matching identity information in the distributed ledger, so it cannot log in. Similarly, the login operation will also interact with the smart contract to generate transaction credentials, record them in the new block, and broadcast them to other nodes in the entire network, synchronize them to the ledgers of all nodes, and synchronize them to each node of the blockchain to provide credentials for subsequent verification of transactions.

[0072] As can be seen from the above, in one embodiment, the current node receives an operation request for user information; generates a verification request for the user information operation according to the operation request for the user information, and sends the verification request for the user information operation to the blockchain network, which may include: the current node receives a login operation request for the user information; generates a verification request for the user information login operation according to the login operation request for the user information, and sends the verification request for the user information login operation to the blockchain network;

[0073] After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, which may include: after receiving the verification request for the user information login operation sent through the blockchain network, each other node verifies the validity of the user information login operation and sends the verification result to the blockchain network;

[0074] The current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network. It may include: the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the login operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network.

[0075] 3. Account maintenance

[0076] Users who have registered and successfully logged in can modify their personal account information, but only the username and password can be modified. The user address is the unique identifier of the user in the blockchain and cannot be modified. Modifying information requires interaction with the smart contract, so after the modification operation is successfully executed, a string of hash value transaction vouchers will be generated, recorded in the new block, and broadcast to other nodes in the entire network, and synchronized to the ledgers of all nodes.

[0077] As can be seen from the above, in one embodiment, the current node receives an operation request for user information; generates a verification request for the user information operation according to the operation request for user information, and sends the verification request for the user information operation to the blockchain network, which may include: the current node receives a maintenance operation request for user information; generates a verification request for the user information maintenance operation according to the maintenance operation request for user information, and sends the verification request for the user information maintenance operation to the blockchain network;

[0078] After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, which may include: after receiving the verification request for the user information maintenance operation sent through the blockchain network, each other node verifies the validity of the user information maintenance operation and sends the verification result to the blockchain network;

[0079] The current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network. It may include: the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the maintenance operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network.

[0080] 4. Account cancellation

[0081] When an account is registered and logged into the homepage, the account cancellation operation can be performed. This operation will also interact with the smart contract. In the smart contract, the delete keyword is used to delete all identity information corresponding to the current address. If the above operation is successful, a transaction certificate will be generated, added to a new block, and broadcast to the entire network through the P2P network, and synchronized to the ledgers of all nodes.

[0082] As can be seen from the above, in one embodiment, the current node receives an operation request for user information; generates a verification request for the user information operation according to the operation request for the user information, and sends the verification request for the user information operation to the blockchain network, which may include: the current node receives a deregistration operation request for the user information; generates a verification request for the user information deregistration operation according to the deregistration operation request for the user information, and sends the verification request for the user information deregistration operation to the blockchain network;

[0083] After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, which may include: after receiving the verification request for the user information deregistration operation sent through the blockchain network, each other node verifies the validity of the user information deregistration operation and sends the verification result to the blockchain network;

[0084] The current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network. It may include: the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, the processing result of the cancellation operation request for the user information is stored in the current node, and the processing result is sent to the blockchain network.

[0085] In addition, in the embodiment of the present invention, after the operation is successfully executed, a string of transaction vouchers with hash values ​​will be generated, recorded in a new block, broadcast to other nodes in the entire network, and synchronized to the ledgers of all nodes.

[0086] In summary, the user information processing method based on distributed storage provided by the embodiment of the present invention realizes:

[0087] 1) Private chain construction

[0088] The present invention chooses to run in a private chain network. The construction of the private chain network is mainly divided into two steps. The first step is the private chain configuration of a single node to ensure that a single node can normally access the private chain network; the second step is the construction of a multi-node cluster in the private chain.

[0089] 2) Smart Contract Development

[0090] Smart contracts are written in Solidity (contract files end with .sol) and sent to the smart contract compiler through the interface provided by web3.js to implement the business logic of decentralized applications.

[0091] 3) Get the hash address

[0092] Deploy the compiled smart contract to the network and obtain the hash address and ABI (ABI is the binary representation of the contract interface) of the smart contract in the blockchain.

[0093] In summary, the advantages of the user information processing method based on distributed storage in the embodiment of the present invention are:

[0094] By placing identity authentication on a blockchain with a higher security level, distributed storage of information across the entire network and all nodes can be achieved. Even if some nodes are attacked, the security and integrity of data across the entire network can be guaranteed.

[0095] Based on the decentralized development of blockchain, any two parties who reach an agreement can conduct transactions directly without the intervention of a trusted third party. It can realize a globally synchronized distributed ledger that records all transactions and has the characteristics of high transparency, non-tamperability, and traceability, which effectively improves the security of transactions.

[0096] The embodiment of the present invention also provides a user information processing device based on distributed storage, as described in the following embodiment. Since the principle of solving the problem by the device is similar to that of the user information processing method based on distributed storage, the implementation of the device can refer to the implementation of the user information processing method based on distributed storage, and the repeated parts will not be repeated.

[0097] Figure 5 FIG. 1 is a schematic diagram of the structure of a user information processing device based on distributed storage in an embodiment of the present invention. Figure 5 As shown, the user information processing participant nodes constitute a blockchain network; the user information processing device based on distributed storage includes:

[0098] The current node 01 is used to receive an operation request for user information; generate a verification request for the user information operation according to the operation request for user information, and send the verification request for the user information operation to the blockchain network; receive the verification result sent by each other node through the blockchain network, and when the proportion of the verification results being valid exceeds a preset threshold, store the processing result of the operation request for user information in this node, and send the processing result to the blockchain network;

[0099] Each other node 02 is used to verify the validity of the user information operation after receiving the verification request for the user information operation sent through the blockchain network, and send the verification result to the blockchain network; receive and store the processing result sent through the blockchain network.

[0100] In one embodiment, the current node is specifically used to: receive a registration operation request for user information; generate a verification request for the user information registration operation according to the registration operation request for user information, and send the verification request for the user information registration operation to the blockchain network; receive the verification result sent by each other node through the blockchain network, and when the proportion of the verification results being valid exceeds a preset threshold, store the processing result of the registration operation request for user information in the current node, and send the processing result to the blockchain network;

[0101] Each other node is specifically used to: after receiving a verification request for a user information registration operation sent through the blockchain network, verify the validity of the user information registration operation, and send the verification result to the blockchain network.

[0102] In one embodiment, the current node is specifically used to: receive a login operation request for user information; generate a verification request for the user information login operation according to the login operation request for user information, and send the verification request for the user information login operation to the blockchain network; the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of the verification results being valid exceeds a preset threshold, the current node stores the processing result of the login operation request for user information in the current node, and sends the processing result to the blockchain network;

[0103] Each other node is specifically used to: after receiving a verification request for a user information login operation sent through the blockchain network, verify the validity of the user information login operation, and send the verification result to the blockchain network.

[0104] In one embodiment, the current node is specifically used to: receive a maintenance operation request for user information; generate a verification request for the user information maintenance operation according to the maintenance operation request for user information, and send the verification request for the user information maintenance operation to the blockchain network; the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of the verification results being valid exceeds a preset threshold, the current node stores the processing result of the maintenance operation request for user information in the current node, and sends the processing result to the blockchain network;

[0105] Each other node is specifically used for: after receiving a verification request for a user information maintenance operation sent through the blockchain network, each other node verifies the validity of the user information maintenance operation and sends the verification result to the blockchain network.

[0106] In one embodiment, the current node is specifically used to: receive a request for a deregistration operation on user information; generate a verification request for the deregistration operation on user information according to the request for the deregistration operation on user information, and send the verification request for the deregistration operation on user information to the blockchain network; receive the verification result sent by each other node through the blockchain network, and when the proportion of the verification results being valid exceeds a preset threshold, store the processing result of the deregistration operation request on user information in the current node, and send the processing result to the blockchain network;

[0107] Each other node is specifically used to: after receiving a verification request for a user information deregistration operation sent through the blockchain network, verify the validity of the user information deregistration operation, and send the verification result to the blockchain network.

[0108] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned user information processing method based on distributed storage when executing the computer program.

[0109] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above-mentioned user information processing method based on distributed storage.

[0110] In an embodiment of the present invention, a user information processing scheme based on distributed storage is as follows: a current node receives an operation request for user information; based on the operation request for user information, a verification request for the user information operation is generated, and the verification request for the user information operation is sent to the blockchain network; after receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network; the current node receives the verification result sent by each other node through the blockchain network, and when the proportion of the verification result being valid exceeds a preset threshold, the processing result of the operation request for user information is stored in the current node, and the processing result is sent to the blockchain network; each other node receives and stores the processing result sent through the blockchain network, and the processing result of the user information operation request can be distributedly stored, thereby realizing distributed storage of user information across the entire network and across all nodes, and even if some nodes are attacked, the security and integrity of the data across the entire network can be guaranteed.

[0111] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0112] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0113] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0115] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A user information processing method based on distributed storage, It is characterized in that The user information processing participant nodes constitute a blockchain network; the user information processing method based on distributed storage includes: The current node receives the operation request for the user information; based on the operation request for the user information, it generates a verification request for the user information operation, and sends the verification request for the user information operation to the blockchain network; all operations interact with the underlying blockchain, and will generate corresponding hash values, which will be recorded in the blockchain in the form of transactions; the request can be regarded as a transaction; After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network; The current node receives the verification results sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing results of the operation request on the user information in the current node and sends the processing results to the blockchain network. Each other node receives and stores the processing result sent through the blockchain network.

2. The user information processing method based on distributed storage as claimed in claim 1, It is characterized in that The current node receives an operation request for user information; Generating a verification request for the user information operation according to the operation request for the user information, and sending the verification request for the user information operation to the blockchain network, including: the current node receiving the registration operation request for the user information; generating a verification request for the user information registration operation according to the registration operation request for the user information, and sending the verification request for the user information registration operation to the blockchain network; After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, including: after receiving the verification request for the user information registration operation sent through the blockchain network, each other node verifies the validity of the user information registration operation and sends the verification result to the blockchain network; The current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the operation request for user information in the current node, and sends the processing result to the blockchain network, including: the current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the registration operation request for user information in the current node, and sends the processing result to the blockchain network.

3. The user information processing method based on distributed storage as claimed in claim 1, It is characterized in that The current node receives an operation request for user information; Generating a verification request for the user information operation according to the operation request for the user information, and sending the verification request for the user information operation to the blockchain network, including: the current node receiving the login operation request for the user information; generating a verification request for the user information login operation according to the login operation request for the user information, and sending the verification request for the user information login operation to the blockchain network; After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, including: after receiving the verification request for the user information login operation sent through the blockchain network, each other node verifies the validity of the user information login operation and sends the verification result to the blockchain network; The current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the operation request for the user information in the current node, and sends the processing result to the blockchain network, including: the current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the login operation request for the user information in the current node, and sends the processing result to the blockchain network.

4. The user information processing method based on distributed storage as claimed in claim 1, It is characterized in that The current node receives an operation request for user information; Generating a verification request for the user information operation according to the operation request for the user information, and sending the verification request for the user information operation to the blockchain network, including: the current node receiving the maintenance operation request for the user information; generating a verification request for the user information maintenance operation according to the maintenance operation request for the user information, and sending the verification request for the user information maintenance operation to the blockchain network; After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, including: after receiving the verification request for the user information maintenance operation sent through the blockchain network, each other node verifies the validity of the user information maintenance operation and sends the verification result to the blockchain network; The current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the operation request for user information in the current node, and sends the processing result to the blockchain network, including: the current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the maintenance operation request for user information in the current node, and sends the processing result to the blockchain network.

5. The user information processing method based on distributed storage as claimed in claim 1, It is characterized in that The current node receives an operation request for user information; Generating a verification request for the user information operation according to the operation request for the user information, and sending the verification request for the user information operation to the blockchain network, including: the current node receiving the cancellation operation request for the user information; generating a verification request for the user information cancellation operation according to the cancellation operation request for the user information, and sending the verification request for the user information cancellation operation to the blockchain network; After receiving the verification request for the user information operation sent through the blockchain network, each other node verifies the validity of the user information operation and sends the verification result to the blockchain network, including: after receiving the verification request for the user information deregistration operation sent through the blockchain network, each other node verifies the validity of the user information deregistration operation and sends the verification result to the blockchain network; The current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the operation request for the user information in the current node, and sends the processing result to the blockchain network, including: the current node receives the verification result sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the cancellation operation request for the user information in the current node, and sends the processing result to the blockchain network.

6. A user information processing device based on distributed storage, It is characterized in that The nodes of the user information processing participants constitute the blockchain network; The user information processing device based on distributed storage includes: The current node is used to receive operation requests for user information; based on the operation requests for user information, generate a verification request for the operation of user information, and send the verification request for the operation of user information to the blockchain network; receive the verification results sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, store the processing results of the operation request for user information in this node, and send the processing results to the blockchain network; all operations interact with the underlying blockchain, and will generate corresponding hash values, which will be recorded in the blockchain in the form of transactions; the request can be regarded as a transaction; Each other node is used to verify the validity of the user information operation after receiving the verification request for the user information operation sent through the blockchain network, and send the verification result to the blockchain network; receive and store the processing result sent through the blockchain network.

7. The user information processing device based on distributed storage as claimed in claim 6, It is characterized in that The current node is specifically used to: receive a registration operation request for user information; generate a verification request for the user information registration operation according to the registration operation request for user information, and send the verification request for the user information registration operation to the blockchain network; Receive the verification results sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, store the processing result of the registration operation request for the user information in the local node, and send the processing result to the blockchain network; Each other node is specifically used to: after receiving a verification request for a user information registration operation sent through the blockchain network, verify the validity of the user information registration operation, and send the verification result to the blockchain network.

8. The user information processing device based on distributed storage as claimed in claim 6, It is characterized in that The current node is specifically used to: receive a login operation request for user information; generate a verification request for the user information login operation according to the login operation request for user information, and send the verification request for the user information login operation to the blockchain network; The current node receives the verification results sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the login operation request for the user information in the current node and sends the processing result to the blockchain network. Each other node is specifically used to: after receiving a verification request for a user information login operation sent through the blockchain network, verify the validity of the user information login operation, and send the verification result to the blockchain network.

9. The user information processing device based on distributed storage as claimed in claim 6, It is characterized in that The current node is specifically used to: receive a maintenance operation request for user information; generate a verification request for the user information maintenance operation according to the maintenance operation request for user information, and send the verification request for the user information maintenance operation to the blockchain network; The current node receives the verification results sent by each other node through the blockchain network. When the proportion of valid verification results exceeds a preset threshold, the current node stores the processing result of the maintenance operation request for the user information in the current node and sends the processing result to the blockchain network. Each other node is specifically used for: after receiving a verification request for a user information maintenance operation sent through the blockchain network, each other node verifies the validity of the user information maintenance operation and sends the verification result to the blockchain network.

10. The user information processing device based on distributed storage according to claim 6, It is characterized in that The current node is specifically used to: receive a request for a deregistration operation on user information; generate a verification request for the deregistration operation on user information according to the request for a deregistration operation on user information, and send the verification request for the deregistration operation on user information to the blockchain network; Receive the verification results sent by each other node through the blockchain network, and when the proportion of valid verification results exceeds a preset threshold, store the processing result of the cancellation operation request for the user information in the local node, and send the processing result to the blockchain network; Each other node is specifically used to: after receiving a verification request for a user information deregistration operation sent through the blockchain network, verify the validity of the user information deregistration operation, and send the verification result to the blockchain network.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 5.