An encrypted accounting method based on distributed technology

By using multiple encryption methods and blockchain technology in distributed accounting, plain-text ledger data is converted into binary data, solving the problems of ledger data confidentiality and resource waste, achieving security and immutability, and reducing hardware Consumption and application thresholds have promoted the popularization of encrypted accounting methods.

CN118735517BActive Publication Date: 2024-11-12JIAYING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411223235.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-11-12
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

In distributed accounting applications, the public dissemination of ledger data and large file volume lead to data confidentiality and resource waste, with a high threshold, which is not conducive to the popularization of technology.

Method used

By introducing distributed technology in the process of ledger data encryption, plain-text ledger data is converted into binary data for storage, and multiple encryption methods and blockchain technology are used to combine the continuity characteristics of ledger data to ensure the security and immutability of data. , and save hardware resources.

Benefits of technology

实现了账本数据的安全性和不可篡改性,同时减少了硬件资源消耗,降低了应用门槛,促进了加密记账方法的普及使用。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735517B_ABST
    Figure CN118735517B_ABST
Patent Text Reader

Abstract

The present invention provides an encrypted accounting method based on distributed technology, which is used to convert plaintext account book data into binary data for storage. Multiple encryption technologies are applied in the conversion process, and encryption means based on distributed technology are introduced therein. Compared with directly applying distributed technology to the account book data itself, the distributed technology is introduced in the encryption process of the account book data, which can achieve the purposes of preventing data from being tampered with and reducing resource waste.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an encrypted accounting method based on distributed technology. Background Art

[0002] Compared with centralized accounting, the main purpose of using distributed accounting methods such as blockchain technology is to prevent the ledger data from being tampered with. In the current distributed accounting applications, distributed technology is directly used to store and record the ledger data. On the one hand, the use of distributed technology to store and record ledger data will cause the ledger data to be publicly disseminated, which is not conducive to the confidentiality of the ledger data. On the other hand, the file size of the ledger data itself is large, and a large amount of resources are required for distributed storage and recording. The application threshold is high, which is not conducive to the popularization of distributed technology. Summary of the invention

[0003] Based on the purpose of preventing the ledger data from being tampered with, the present invention provides an encrypted accounting method based on distributed technology. Compared with directly applying distributed technology to the ledger data itself, introducing distributed technology in the encryption process of the ledger data can achieve the purposes of preventing data from being tampered with and reducing resource waste.

[0004] Accordingly, the present invention provides an encrypted accounting method based on distributed technology, which is used to convert plaintext ledger data into binary data for storage, including:

[0005] In a storage module, the natural number Based on actual parsing encoding Parse it into corresponding binary data for storage, where: , ;

[0006] A button layout is set, the button layout includes Buttons, buttons With corresponding coding bits and the preset representation number ,in, , , ;

[0007] Select a reference blockchain , For the reference blockchain Sort by Blocks, blocks With corresponding parsing code ,and ;

[0008] Receives the path track specified by the user in the button layout ,in, , , ;

[0009] Synchronizing the reference blockchain in real time;

[0010] Parse the encoding , parsing code , , parsing code , parsing code Assign buttons in sequence Coded bits, buttons The coding bits, , button Coded bits, buttons The coding bit of

[0011] According to the preset analysis trajectory The coding position and the characterizing number of the corresponding button on the button layout are read in sequence, and the corresponding actual parsing code in the storage module is overwritten with the parsing code in the corresponding coding position according to the characterizing number, wherein: , , ;

[0012] Based on the storage module, the plaintext ledger data is parsed into binary data for storage.

[0013] In an optional embodiment, in the storage module, the digital With preset raw parsing encoding .

[0014] In an optional implementation manner, the block With corresponding parsing code include:

[0015] Blocks have corresponding block numbers , the blocks are numbered based on the preset mapping method Convert to the corresponding parsing code .

[0016] In an optional embodiment, the parsing trajectory With the path trajectory same.

[0017] In an optional embodiment, the path trajectory The length of the trajectory , is the default value;

[0018] In the reference blockchain Any There are no identical parsed codes in consecutive blocks.

[0019] In an optional embodiment, the parsing trajectory Iterates over all buttons in the button layout.

[0020] In an optional implementation manner, in the button layout, the representation numbers corresponding to any two buttons are different.

[0021] In an optional implementation manner, parsing the account book into binary data for storage based on the storage module includes:

[0022] Based on the storage module, the account book is parsed into binary data for distributed storage.

[0023] In an optional implementation manner, the button layout is arranged on an unlocking interface of a mobile device, and the path track is an unlocking gesture track of the mobile device on the unlocking interface.

[0024] In summary, the present invention provides an encrypted accounting method based on distributed technology. First, through the use of multiple encryption means, plaintext account data can be converted into encrypted binary data for storage, thereby ensuring the security of the account data; in the encryption process, an encryption method based on blockchain technology is introduced, and at the same time, combined with the continuity characteristics of the account data, the encryption method is guaranteed to be tamper-proof. From another aspect, the tamper-proof nature of the account data is guaranteed, which can effectively save the consumption of hardware resources and is conducive to the popularization of the encrypted accounting method; the reference blockchain introduced in the encryption process can be obtained by improving the existing blockchain, without consuming too many additional resources for maintenance, further reducing the consumption of hardware. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.

[0026] Figure 1 The present invention is a flowchart of an encrypted accounting method based on distributed technology according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] Figure 1 The present invention is a flowchart of an encrypted accounting method based on distributed technology according to an embodiment of the present invention.

[0029] The present invention provides an encrypted accounting method based on distributed technology, which is used to convert plaintext account book data into binary data for storage.

[0030] Specifically, the pre-preparation for the actual application of the encrypted accounting method includes:

[0031] Design a storage module, which mainly defines the conversion mechanism when converting plain text numbers into binary codes. Specifically, in this storage module, natural numbers Based on the actual parsing encoding Parse it into corresponding binary data for storage, where: , The numbers 0 to 9 are basic components in the decimal calculation rule. The actual limiting condition of the storage module in the embodiment of the present invention is that the numbers 0 to 9 have corresponding actual parsed codes respectively.

[0032] It should be noted that, on the one hand, the accounting method of the embodiment of the present invention is mainly aimed at the ledger object, which is actually mainly composed of digital parts, such as customer number, amount and other information. Therefore, the storage module is only designed for the storage conversion mechanism of numbers 0 to 9 during design; in addition, based on the encryption perspective, only encrypting the digital part in the ledger object can meet the encryption requirements. Therefore, the storage module is only designed for the storage conversion mechanism of numbers 0 to 9 during design.

[0033] Specifically, the storage module can be understood as a parser. After the plain text ledger data is input into the storage module, the storage module converts the plain text ledger data into binary data according to the conversion mechanism defined inside it, and then outputs and stores it in the hardware device. It should be noted that binary data is the actual storage data of the hardware device. The basic functions of the storage module of the embodiment of the present invention are similar to those of the existing related modules. The difference is mainly reflected in the conversion mechanism of the digital part. Therefore, the storage module can be understood as a storage module that improves the conversion mechanism of the digital part on the basis of the storage module of the prior art. The storage module of the embodiment of the present invention only improves the relevant content of the digital conversion mechanism, and the conversion mechanism of the remaining data can remain consistent with the original conversion mechanism.

[0034] Specifically, the improvement of the digital conversion mechanism by the storage module of the embodiment of the present invention is mainly that the actual parsing code of each number is changeable, which increases the difficulty of reverse deciphering the binary data output by the storage module.

[0035] Design a button layout. Specifically, the button layout can be a physical button or a virtual button, and the structure of the button layout is fixed.

[0036] Specifically, the button layout includes Buttons, buttons With corresponding coding bits and the preset representation number ,in, , , It should be noted that, without any additional restrictions, in the button layout, different buttons can have the same representative numbers.

[0037] Specifically, the encoding bit and characterizing numbers Can be understood as a button Two sets of data are internally associated. Specifically, the main function of the button layout is to provide a tool for users to input path trajectories. By setting the characterization numbers and coding bits, the path trajectories specified by the user are associated with other information data. Specifically, the actual function of the button layout will be explained in conjunction with the application later.

[0038] Select a reference blockchain , For the reference blockchain Sort by Blocks, blocks With corresponding parsing code ,and .

[0039] Specifically, the reference blockchain can select a blockchain with parsing codes in the block as the reference blockchain according to requirements; or it can select any blockchain as the reference blockchain according to requirements, and allocate parsing codes to the blocks on the blockchain according to fixed rules.

[0040] It should be noted that the implementation form of selecting any blockchain as the reference blockchain is designed according to the practical application of the encrypted accounting method of the embodiment of the present invention. Since the ledger data itself is continuous, that is, the ledger data recorded multiple times has a logical association in data, which makes it impossible for users to arbitrarily define the encryption method and decryption method of the ledger data. Therefore, it is only necessary to assign a fixed parsing code to the block before use to meet the use requirements, and the parsing code on the block cannot be changed after use.

[0041] For example, when the binary data obtained by encrypting the ledger data by method one is reversely decrypted, the ledger data obtained by decrypting by method two cannot correspond to the previously recorded ledger data or the subsequently recorded ledger data, which makes it impossible for the user to change the encryption method and decryption method at will. In the application of the embodiment of the present invention, the user can select any blockchain for transformation and assign a parsing code to each of its blocks according to a certain logic. If the parsing codes used to parse the plaintext ledger data into binary data and the reverse parsing of the binary data into plaintext ledger data are different, firstly, the plaintext ledger data obtained by reverse parsing may have logical errors, such as numerical errors, etc.; secondly, data discontinuity will occur when compared with other ledger data, which means that the user cannot change it after specifying the parsing code for the block and applying the parsing code.

[0042] It can be seen that users can define parsing codes based on any blockchain to make it a reference blockchain.

[0043] In summary, the storage module, button layout and reference blockchain are tools involved in the encrypted accounting method of the embodiment of the present invention. The encrypted accounting method of the embodiment of the present invention includes:

[0044] S101: receiving a path track specified by a user in the button layout ,in, , , .

[0045] Specifically, the user specifies a path track in the button layout, and the path track is actually an ordered sequence of a series of buttons.

[0046] In order to improve the usability for users, in the embodiment of the present invention, there is no restriction on the length of the path track, and there is no restriction on whether the buttons involved in the path track are repeated.

[0047] For the user, since the buttons in the button layout have corresponding representative numbers, the user's understanding of the path trajectory is actually a trajectory pattern. The path trajectory is equivalent to the encrypted information defined by the user. Under normal conditions, the data content is only known to the user.

[0048] S102: Real-time synchronization of reference blockchain;

[0049] The reference blockchain changes in real time according to time. The embodiments of the present invention introduce the reference blockchain and use the reference blockchain to introduce encryption means, and can use the real-time change characteristics of the reference blockchain to obtain dynamic encryption change means. When a third party cannot know the exact time of applying the encrypted accounting method, even if the regional encryption means of the encrypted accounting method is known, it cannot obtain effective information from the reference blockchain, which can improve the security of the account data.

[0050] S103: Parse the code , parsing code , , parsing code , parsing code Assign buttons in sequence Coded bits, buttons The coding bits, , button Coded bits, buttons The coding bit of

[0051] The purpose of this step is to select the blocks in reverse order from the end block of the reference blockchain according to the real-time situation of the reference blockchain. blocks, extract the parsed code corresponding to the block, and assign the parsed code to the code position of the corresponding button according to the path trajectory.

[0052] When a parsed code is assigned to the coding position of a corresponding button, the coding position of the corresponding button is actually copied using the parsed code. On the one hand, this implementation ensures the functional stability of the coding position. On the other hand, it does not limit whether the button is repeated when the user sets the path trajectory, thereby improving the ease of use on the user side.

[0053] In addition, since there is no limit on the repeatability of button usage when the user sets the path trajectory, the length of the path trajectory can exceed the number of buttons in the button layout when the user sets the path trajectory, which can further increase the difficulty of data cracking.

[0054] In addition, regarding the length relationship between the reference blockchain and the button track, according to the above description, the embodiment of the present invention does not limit the path length of the user-specified path track. In actual implementation, the length of the user-specified path track is generally within two digits, while the number of blocks (i.e., the length of the blockchain) of the reference blockchain in actual application is generally above three digits. Therefore, the embodiment of the present invention does not limit the length of the path track for general use. When extreme situations occur, the form of reusing blocks can be adopted, that is, when the block cycle of the reference blockchain is completed, a new block is re-extracted from the end of the reference blockchain for use.

[0055] In actual use, a blockchain with a sufficient number of blocks is generally used as a reference blockchain.

[0056] S104: According to the preset analysis track The coding position and the characterizing number of the corresponding button on the button layout are read in sequence, and the corresponding actual parsing code in the storage module is overwritten with the parsing code in the corresponding coding position according to the characterizing number, wherein: , , .

[0057] Specifically, according to the parsing trajectory, the coding bits and representation numbers of the buttons involved in the parsing trajectory are read in sequence, and the block codes in the coding bits are copied into the actual parsing codes of the storage module according to the representation numbers; since the buttons are read in sequence and the block codes are written into the actual parsing codes in a copy manner, and different buttons may have the same representation numbers, on the one hand, this makes the buttons in the parsing trajectory repeatable and the length of the parsing trajectory is not limited; on the other hand, the actual parsing codes in the storage module are copied, which can effectively increase the difficulty of deciphering.

[0058] S105: Parsing the plaintext ledger data into binary data for storage based on the storage module.

[0059] After step S104, the actual parsing code in the storage module is redefined, and the storage module converts the plaintext account data into binary data for storage.

[0060] In the encrypted accounting method, in step S101, the path trajectory is specified by the user, which can be understood as the first encryption method; in step S103, the coded bit data of the button changes in real time according to the reference blockchain, which can be understood as the second encryption method; in step S104, the setting of the parsing trajectory can be understood as the third encryption method. Through the use of triple encryption methods, the reverse decryption of binary data is difficult and the binary data has high data security; the reference blockchain used in step S102 can make the entire data encryption system have distributed application characteristics. The introduction and use of the reference blockchain makes it impossible for users to tamper with the encryption method. Combined with the use of the continuity of the ledger itself, it is ensured that the reverse parsing method of the binary data cannot be tampered with, and the binary data obtained by the encryption method cannot be tampered with. The encrypted accounting method provided by the embodiment of the present invention can ensure the data stability of the ledger data itself without distributing the ledger data itself, avoid the consumption of a large amount of hardware resources, and ensure the security of the ledger data itself; in addition, compared with the prior art, the additional resource used by the encrypted accounting method is the reference blockchain. According to the description, the reference blockchain can select any blockchain for transformation without consuming too many additional hardware resources, which is conducive to reducing the use cost of the encrypted accounting method and is conducive to the promotion and use of the encrypted accounting method.

[0061] Further, in the description of step S101, the path track does not limit the repeatability of the buttons in the button layout, and there may also be a situation where the path track does not pass through the buttons in the button layout. In order to avoid affecting the implementation of subsequent steps, the digital With preset raw parsing encoding Even if the path track does not pass through some buttons, the original parsing code can be used as the actual parsing code for these buttons.

[0062] Furthermore, in the selection of reference blockchains, by definition, blocks With corresponding parsing code ,If you want to transform an ordinary blockchain into a reference blockchain, basically,in any blockchain, each block has a corresponding block number, i.e. Blocks have corresponding block numbers , and the parsed code in the block can be the block number Based on the preset mapping method, there are many mapping methods, which can be selected under the existing technology, such as Convert it to binary data, and then select bytes of a specific length as parsing code. It should be noted that the mapping process actually converts the block number into binary data with a specific byte length.

[0063] Furthermore, based on practical considerations, the preset analysis trajectory With the path trajectory The same means that the user specifies the path track simultaneously when specifying the parsing track, so that the parsing code of the button changed by the path track can be applied to the storage module every time, thereby ensuring the variability of the encryption method.

[0064] In addition, in step S104, it is necessary to extract the parsing code from the block in the reference blockchain and apply the parsing code to the storage module. Without special restrictions, since the same parsing code may exist on different blocks, in the storage module, different numbers have a very small probability of having the same parsing code; combined with the actual calculation results, combined with the hardware performance under the existing technology, through the continuity characteristics of the ledger data, when two to four numbers have the same parsing code, the binary data parsed by the storage module can still be de-parsed in a reasonable time to obtain accurate ledger data through exhaustive enumeration when performing de-parsing.

[0065] In actual implementation, the total number of parsing codes depends on the number of bytes of binary data corresponding to a single character. In today's hardware systems, a single character is generally stored in two bytes. Correspondingly, the total number of parsing codes is 2 to the sixteenth power, that is, 65,536. The reuse of parsing codes is an event with a very low probability. In theory, if it is necessary to completely eliminate the low probability event of repeated application of parsing codes, in specific implementation, the parsing codes can be limited in the reference blockchain, and the content of button layout, path trajectory, etc. can also be limited. For example, according to actual needs, in the reference blockchain, it can be limited that the same parsing codes are not allowed to exist in a specific number of consecutive blocks; or in step S104, when assigning the parsing code to the coding bit, the coding bit profile of the button in the existing button layout can be first determined. When the same parsing code exists, the parsing code of the corresponding button may not be replaced.

[0066] Specifically, the path length of the path trajectory can be fixed, that is, the path trajectory The length of the trajectory , is a preset value, in the reference blockchain Any There is no same parsing code in the consecutive blocks, and due to the preset parsing track With the path trajectory Similarly, through this implementation, it is possible to avoid different numbers having the same parsed code in one application of the encrypted accounting method.

[0067] Furthermore, if the analytical trajectory With the path trajectory If they are not the same, then in the application of the encrypted accounting method, the parsing code of the button read by the parsing track may be the same as the parsing code of the button in the previous encrypted accounting method, which reduces the encryption performance of the plain text account data; therefore, in actual applications, the parsing track Iterates over all buttons in the button layout.

[0068] Furthermore, based on the simplification of the button layout, in the button layout, the characterization numbers corresponding to any two buttons are different. In fact, in combination with the above description, the path trajectory and the analysis trajectory do not limit the repeatability of button selection. Regardless of whether there are buttons with the same characterization numbers in the button layout, the relevant effects of multiple buttons with the same characterization numbers can be generated in actual applications.

[0069] Furthermore, if the hardware burden performance is not considered, the storage module is used to parse the account book into binary data for storage, including:

[0070] Based on the storage module, the ledger is parsed into binary data for local storage, and / or based on the storage module, the ledger is parsed into binary data for cloud storage, which can provide an additional anti-damage function for the ledger on the basis of ensuring the anti-tampering performance of the data.

[0071] Furthermore, in combination with actual applications, the button layout is set on the unlocking interface of the mobile device, and the path trajectory is the unlocking gesture trajectory of the mobile device on the unlocking interface. Through this implementation, the encrypted accounting method of the embodiment of the present invention can be well applied to a wide range of mobile devices, which has a beneficial effect on the popularization of the encrypted accounting method of the embodiment of the present invention.

[0072] In summary, the present invention provides an encrypted accounting method based on distributed technology. First, through the use of multiple encryption means, plaintext account data can be converted into encrypted binary data for storage, thereby ensuring the security of the account data; in the encryption process, an encryption method based on blockchain technology is introduced, and at the same time, combined with the continuity characteristics of the account data, the encryption method is guaranteed to be tamper-proof. From another aspect, the tamper-proof nature of the account data is guaranteed, which can effectively save the consumption of hardware resources and is conducive to the popularization of the encrypted accounting method; the reference blockchain introduced in the encryption process can be obtained by improving the existing blockchain, without consuming too many additional resources for maintenance, further reducing the consumption of hardware.

[0073] The above is a detailed introduction to an encrypted accounting method based on distributed technology provided by an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An encrypted accounting method based on distributed technology, used to convert plaintext ledger data into binary data for storage, characterized in that: include: In a storage module, the natural number Based on actual parsing encoding Parse it into corresponding binary data for storage, where: , ; A button layout is set, the button layout includes Buttons, buttons With corresponding coding bits and the preset representation number ,in, , , ; Select a reference blockchain , For the reference blockchain Sort by Blocks, blocks With corresponding parsing code ,and ; Receives the path track specified by the user in the button layout ,in, , , ; Synchronizing the reference blockchain in real time; Parse the encoding , parsing code , , parsing code , parsing code Assign buttons in sequence Code bit, button The coding bits, , button Coded bits, buttons The coding bit of According to the preset analysis trajectory The coding position and the characterizing number of the corresponding button on the button layout are read in sequence, and the corresponding actual parsing code in the storage module is overwritten with the parsing code in the corresponding coding position according to the characterizing number, wherein: , , ; Based on the storage module, the plaintext ledger data is parsed into binary data for storage.

2. The distributed technology-based encrypted accounting method according to claim 1, characterized in that: In the storage module, the digital With preset raw parsing encoding .

3. The distributed technology-based encrypted accounting method according to claim 1, characterized in that: The block With corresponding parsing code include: Blocks have corresponding block numbers , the blocks are numbered based on the preset mapping method Convert to the corresponding parsing code .

4. The encrypted accounting method based on distributed technology as claimed in claim 1, characterized in that: The analytical trajectory With the path trajectory same.

5. The distributed technology-based encrypted accounting method according to claim 4, characterized in that: The path trajectory The length of the trajectory , is the default value; In the reference blockchain Any There are no identical parsed codes in consecutive blocks.

6. The distributed technology-based encrypted accounting method according to claim 1, characterized in that: The analytical trajectory Iterates over all buttons in the button layout.

7. The distributed technology-based encrypted accounting method according to claim 1, characterized in that: In the button layout, the representation numbers corresponding to any two buttons are different.

8. The distributed technology-based encrypted accounting method according to claim 1, characterized in that: Parsing the account book into binary data for storage based on the storage module includes: Based on the storage module, the account book is parsed into binary data for distributed storage.

9. The distributed technology-based encrypted accounting method according to claim 1, characterized in that: The button layout is set on an unlocking interface of a mobile device, and the path track is an unlocking gesture track of the mobile device on the unlocking interface.