Account information protection method based on block chain, terminal and storage mediumTechnical Field
The invention relates to the field of block chains, in particular to an account information protection method based on a block chain, a terminal and a storage medium.
Background
In the current social life, various platforms and software are layered endlessly, and various valuable accounts are generated, such as: WeChat, Payment treasures, today's headlines, bank card accounts, and the like. At present, the final interpretation right of the account information to which the individual belongs is in the hands of various developers, and the account information of the individual is likely to face the following problems:
1. the account information data of each manufacturer has the risk that the information is modified at any time and account numbers are cancelled;
2. because the account numbers in our hands become more valuable and derive many people who steal or cheat numbers, the account numbers can be easily transferred to cash when lost.
Based on the above analysis, how to realize the protection of the user account information and the judgment of the attribution dispute is a technical problem to be solved.
Disclosure of Invention
The technical task of the present invention is to provide an account information protection method, a terminal and a storage medium based on a block chain to solve the problem of how to protect user account information and determine affiliation dispute.
In a first aspect, the invention provides an account information protection method based on a block chain, which takes the block chain as an information carrier, and records user account information through the block chain, wherein the user account information is information related to a user account in a using process.
Preferably, the protection method comprises the following steps:
deploying a block chain, and distributing accounting nodes for users;
writing an intelligent convention, and deploying the intelligent convention for each accounting node, wherein the intelligent convention is used for verifying logic of user account information;
and uploading the user account information to a billing node.
Preferably, the user account information includes identity information of the user and usage information generated in a user account usage process.
Preferably, the use information generated in the use process of the user account number comprises text information, picture information, video information and transaction information generated by transferring accounts with other people.
Preferably, the application range of the user account information includes but is not limited to WeChat, Paibao, today's first-line and bank card accounts.
Preferably, a plurality of accounting nodes are distributed for the user, the plurality of accounting nodes are distributed, and the user account information is stored in the distributed accounting nodes.
In a second aspect, the present invention provides a terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, and the memory is used to store a computer program, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the block chain-based account information protection method according to any one of the first aspects.
In a third aspect, the present invention provides a storage medium, which is a computer-readable storage medium storing a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method for protecting account information based on a block chain according to any one of the first aspect.
The account information protection method, the terminal and the storage medium based on the block chain have the following advantages that:
1. based on the technical advantages of the block chain, the user account information cannot be tampered, and the data reliability is improved;
2. based on the technical advantages of the block chain, the user account information is stored in a multi-node distributed mode, and the tampering difficulty is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
The invention is further described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of an account information protection method based on a block chain in embodiment 1.
Detailed Description
The present invention is further described in the following with reference to the drawings and the specific embodiments so that those skilled in the art can better understand the present invention and can implement the present invention, but the embodiments are not to be construed as limiting the present invention, and the embodiments and the technical features of the embodiments can be combined with each other without conflict.
The embodiment of the invention provides an account information protection method based on a block chain, a terminal and a storage medium, which are used for solving the technical problems of how to realize the protection of user account information and the judgment of affiliation dispute.
Example 1:
the invention relates to an account information protection method based on a block chain, which takes the block chain as an information carrier, records user account information through the block chain, and the user account information is information related to the user account in the using process.
The method comprises the following steps:
s100, deploying a block chain, and distributing accounting nodes for users;
s200, compiling an intelligent convention, and deploying the intelligent convention for each accounting node, wherein the intelligent convention is used for verifying logic of user account information;
and S300, uploading the user account information to a billing node.
The user account information comprises identity information of a user and use information generated in the use process of the user account. The use information generated in the use process of the user account number comprises character information, picture information, video information and transaction information generated by transferring accounts with other people.
User account information applications include, but are not limited to, WeChat, Payment treasures, today's first-line and bank card accounts.
In view of the wide application range of the user account information, when the block chain is deployed, a plurality of accounting nodes are distributed for the user, the plurality of accounting nodes are distributed, and the user account information is stored in the distributed accounting nodes.
The blockchain is a decentralized distributed storage technology and has the characteristics of credibility, non-falsification, safety and privacy and the like, and the characteristics determine attribution information particularly suitable for storing accounts and accessory information generated in the using process; data recorded on the blockchain can be stored in distributed accounting nodes, and data modification of a single node or a few nodes can not be effective, so that the data on the blockchain cannot be tampered.
Smart contracts (english: Smart contracts) are a computer protocol intended to propagate, verify or execute contracts in an informative way. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. An intelligent contract is a "computer trading agreement to execute contract terms". All users on the blockchain can see the intelligent contracts based on the blockchain.
For writing user account information, a set of universal formats needs to be specified to ensure completeness, readability and objectivity of data, so that all necessary aspects of the information need to be verified, such as whether identity information of a person to which the user account belongs is provided or not. The intelligent contracts of the block chains are public, each node can examine whether the logic accords with the agreement or not, the intelligent contracts are deployed on the accounting nodes, the intelligent contracts can be changed only in an upgrading mode, the nodes need to be deployed synchronously, and once the rules are changed, related parties can know and execute the contracts in time. Once deployed, the intelligent contracts can be executed only through programs without interference of human factors, and reliability of data is enhanced.
When a user logs in and uses software such as WeChat, Payment treasure, today's first note, bank card account and the like, user identity information and use information are related.
Through the deployed block chain, identity information of a person to which the user account belongs, and creation information such as character information, picture information, video information and the like and cash transaction information which are generated in the using process of the user account are uploaded to the block chain and stored in the distributed accounting nodes; the user account information stored in the block chain can be used for account attribution judgment, text, picture and video ownership judgment and cash transaction guarantee.
Example 2:
the terminal comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected with each other, the memory is used for storing a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the account information protection method based on the block chain disclosed in embodiment 1.
Example 3:
a storage medium of the present invention is a computer-readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes an account information protection method based on a block chain as disclosed in embodiment 1.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.