Disclosure of Invention
The embodiment of the invention provides a user data security protection method based on a block chain, which can protect the security of user data, reduce the risk of data tampering and improve the security of accounting data.
An embodiment of the present invention provides a user data security protection method based on a block chain, including:
receiving transaction information sent by a commercial user terminal;
generating tax accounts to be paid by each commercial user within a preset time period according to the transaction information;
paying tax amount to a tax platform according to a commercial user signature corresponding to the identity of the commercial user in a preset intelligent contract, and receiving a returned tax payment certificate;
distributing a secret key to an accounting unit of each access network so that the accounting unit can address the subject system after acquiring the secret key;
generating a billing record according to the tax payment voucher so that each accounting unit can independently check blocks and verify whether the billing record in each block is legal or not;
and calculating the balance of the accounting subject of each accounting subject according to the tax payment voucher and generating a billing statement.
As an improvement of the above solution, the transaction information includes:
the system comprises first transaction information containing commercial user identification, second transaction information containing commercial user identification sent by a third-party payment platform and third transaction information containing commercial user identification sent by a consumer terminal.
As an improvement of the above scheme, the allocating a key to an accounting unit of each access network specifically includes:
calling the packaged Secp256k1 and ECDSA algorithms to generate a pair of private key and public key;
and distributing a secret key to the accounting unit of each access network according to the private key and the public key.
As an improvement of the above scheme, the generating of the accounting record according to the tax payment voucher specifically includes:
and carrying out UTX0 accounting according to the tax payment voucher to generate an accounting record.
The embodiment of the invention correspondingly provides a user data security protection system based on a block chain, which comprises the following steps:
the information receiving unit is used for receiving the transaction information sent by the commercial user terminal;
the amount calculation unit is used for generating tax accounts to be paid by each commercial user within a preset time period according to the transaction information;
the amount payment unit is used for paying tax amount to the tax platform according to a commercial user signature corresponding to the identity of the commercial user in a preset intelligent contract and receiving a returned tax payment certificate;
the system comprises a secret key distribution unit, a secret key distribution unit and a management unit, wherein the secret key distribution unit is used for distributing a secret key to an accounting unit of each access network so that the accounting unit can perform addressing on the subject system after acquiring the secret key;
the record verification unit is used for generating accounting records according to the tax payment voucher so that each accounting unit can independently check blocks and verify whether the accounting records in each block are legal or not;
and the report generation unit is used for calculating the balance of the accounting subject of each accounting subject according to the tax payment voucher and generating a bookkeeping report.
As an improvement of the above solution, the transaction information includes:
the system comprises first transaction information containing commercial user identification, second transaction information containing commercial user identification sent by a third-party payment platform and third transaction information containing commercial user identification sent by a consumer terminal.
As an improvement of the above scheme, the allocating a key to an accounting unit of each access network specifically includes:
calling the packaged Secp256k1 and ECDSA algorithms to generate a pair of private key and public key;
and distributing a secret key to the accounting unit of each access network according to the private key and the public key.
As an improvement of the above scheme, the generating of the accounting record according to the tax payment voucher specifically includes:
and carrying out UTX0 accounting according to the tax payment voucher to generate an accounting record.
Correspondingly, a third embodiment of the present invention provides a block chain-based user data security protection system, including: the block chain based user data security protection method comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to realize the block chain based user data security protection method according to the first embodiment of the invention.
Correspondingly, the fourth embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the user data security protection method based on a block chain according to the first embodiment of the present invention.
The user data security protection method based on the block chain provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps that tax amount which each business user should pay within a preset time period is generated according to transaction information sent by a business user terminal, the tax amount is paid to a tax platform according to a business user signature corresponding to an identity of the business user in a preset intelligent contract, a returned tax payment certificate is received, a unified business user recording system is formed by applying a central digital currency system, and transaction information is recorded based on a block chain, so that comprehensive and accurate enterprise tax information collection is realized, the tax amount is automatically calculated, the tax amount is paid, and the efficiency and the reliability are improved; the financial accounting method based on the block chain technology can realize decentralization of financial accounting, protect the safety of user data, reduce the risk of data tampering and improve the safety of accounting data.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flowchart of a block chain-based user data security protection method according to an embodiment of the present invention includes the following steps:
s101, receiving transaction information sent by a commercial user terminal;
s102, generating tax accounts to be paid by each commercial user within a preset time period according to the transaction information;
s103, paying taxable amount to a tax platform according to a commercial user signature corresponding to the identity of the commercial user in a preset intelligent contract, and receiving a returned tax payment certificate;
s104, distributing a secret key to an accounting unit of each access network, so that the accounting unit can address the subject system after acquiring the secret key;
s105, generating accounting records according to the tax payment voucher, so that each accounting unit can independently check blocks, and whether the accounting records in each block are legal or not is verified;
s106, calculating the balance of the accounting subject of each accounting subject according to the tax payment voucher, and generating a billing statement.
Specifically, transaction information sent by a commercial user terminal is received through a blockchain system; generating tax accounts to be paid by each commercial user within a preset time period according to the transaction information; and paying the taxable amount to a tax platform according to the commercial user signature corresponding to the identity of the commercial user in the preset intelligent contract, and receiving the returned tax payment certificate.
Further, the transaction information includes:
the system comprises first transaction information containing commercial user identification, second transaction information containing commercial user identification sent by a third-party payment platform and third transaction information containing commercial user identification sent by a consumer terminal.
Further, the allocating a key to each access network accounting unit specifically includes:
calling the packaged Secp256k1 and ECDSA algorithms to generate a pair of private key and public key;
and distributing a secret key to the accounting unit of each access network according to the private key and the public key.
Further, according to the tax payment voucher generates a billing record, specifically including:
and carrying out UTX0 accounting according to the tax payment voucher to generate an accounting record.
Specifically, the UTXO, i.e., the unscent transaction Output, is the unconsumed transaction Output.
The financial accounting method based on the block chain technology adopts a decentralized design, adopts an accounting thought design of unconsumed Transaction Output (UTX 0 for short) to realize a loan accounting method based on UTXO, and combines the block chain encryption technology, so that each accounting unit accessing the network has all control rights of the account and can access the account book of the whole group, and each accounting unit is safe and traceable. This design can be with financial system decentralization, and any accounting main part all can freely insert, can guarantee financial system more reliable safety simultaneously, easily extension more.
The database for billing by the UXT0 scheme records not the change of balance of accounting but the loan itself. According to the financial accounting debit and credit accounting method, each account has a debit and a credit which must be equal. In the most primitive concept of UXT0,
the transaction must have a source of funds called the transaction input and a destination of funds called the transaction output, each transaction must spend the input to produce the output, and one such record is called the "unspent transaction output" or UTXO, which in the original UTX0 concept must equal the transaction output.
The user data security protection method based on the block chain provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps that tax amount which each business user should pay within a preset time period is generated according to transaction information sent by a business user terminal, the tax amount is paid to a tax platform according to a business user signature corresponding to an identity of the business user in a preset intelligent contract, a returned tax payment certificate is received, a unified business user recording system is formed by applying a central digital currency system, and transaction information is recorded based on a block chain, so that comprehensive and accurate enterprise tax information collection is realized, the tax amount is automatically calculated, the tax amount is paid, and the efficiency and the reliability are improved; the financial accounting method based on the block chain technology can realize decentralization of financial accounting, protect the safety of user data, reduce the risk of data tampering and improve the safety of accounting data.
Referring to fig. 2, an embodiment of the present invention correspondingly provides a block chain-based user data security protection system, including:
aninformation receiving unit 201 for receiving transaction information sent by a commercial user terminal;
theamount calculation unit 202 is configured to generate taxable amounts that each business user should pay within a preset time period according to the transaction information;
theamount payment unit 203 is used for paying tax amount to the tax platform according to a commercial user signature corresponding to the identity of the commercial user in a preset intelligent contract and receiving a returned tax payment certificate;
akey distribution unit 204, configured to distribute a key to an accounting unit of each access network, so that the accounting unit obtains the key and then performs addressing on a subject system;
therecord verification unit 205 is configured to generate an accounting record according to the tax payment voucher, so that each accounting unit performs independent auditing of blocks, and verifies whether the accounting record in each block is legal;
and thereport generation unit 206 is configured to calculate an accounting subject balance of each accounting subject according to the tax payment voucher, and generate a billing report.
Further, the transaction information includes:
the system comprises first transaction information containing commercial user identification, second transaction information containing commercial user identification sent by a third-party payment platform and third transaction information containing commercial user identification sent by a consumer terminal.
Further, the allocating a key to each access network accounting unit specifically includes:
calling the packaged Secp256k1 and ECDSA algorithms to generate a pair of private key and public key;
and distributing a secret key to the accounting unit of each access network according to the private key and the public key.
Further, according to the tax payment voucher generates a billing record, specifically including:
and carrying out UTX0 accounting according to the tax payment voucher to generate an accounting record.
Correspondingly, the third embodiment of the present invention provides a user data security protection system based on a block chain, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the block chain-based user data security protection method according to the first embodiment of the present invention is implemented. The user data safety protection system based on the block chain can be computing equipment such as a desktop computer, a notebook computer, a palm computer and a cloud server. The user data security protection system based on the block chain can include, but is not limited to, a processor and a memory.
Correspondingly, the fourth embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute the user data security protection method based on a block chain according to the first embodiment of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor is a control center of the user data safety protection system based on the block chain, and various interfaces and lines are used for connecting various parts of the user data safety protection system based on the block chain.
The memory may be used for storing the computer programs and/or modules, and the processor may implement various functions of the user data security protection system based on the blockchain by executing or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module/unit integrated by the user data safety protection system based on the block chain can be stored in a computer readable storage medium if being implemented in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or system capable of carrying said computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc.
It should be noted that the above-described system embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the system provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.