A distributed accounting method and system

By distributing the general ledger to the sub-blockchain and recording the balance information of the sub-blockchain in the total blockchain, the problems of low efficiency and high maintenance costs of blockchain transaction records are solved, and efficient bookkeeping and low cost are achieved The distributed accounting method has promoted the promotion of blockchain accounting technology.

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

Patent Information

Application Number
CN202411215594.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-26
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

The inefficient transaction records of blockchain and high user maintenance costs have led to limited promotion and use of blockchain accounting technology.

Method used

By distributing the general ledger accounting to each sub-blockchain, using transaction numbers to perform algebraic conversion, accounting on the sub-blockchain is realized, and the balance information of the sub-blockchain is traversed and recorded when the total blockchain is generated, reducing the User maintenance costs.

Benefits of technology

It improves the accounting efficiency of transaction records, reduces the maintenance costs of users, and ensures the immutability and accuracy of data through the correlation of the total blockchain, which promotes the popularization and diffusion of distributed accounting methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761772B_ABST
    Figure CN118761772B_ABST
Patent Text Reader

Abstract

The present invention provides a distributed accounting method and system for recording the general ledger #imgabs1# of a preset user group #imgabs0#. The distributed accounting method and system record the general ledger by combining the characteristics of blockchain, disperse the accounting operations of the general ledger into various sub-blockchains, and use the main blockchain to associate the various sub-blockchains. On the one hand, the accounting efficiency of transaction records can be guaranteed, and on the other hand, the use cost of users when applying the distributed accounting method and system can be reduced, and the distributed accounting method and system have good practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of bookkeeping, and in particular to a distributed bookkeeping method and system. Background Art

[0002] By recording transaction records in the blocks of the blockchain, the tamper-proof characteristics of the blockchain can be used to ensure the accuracy and reliability of the transaction records. In existing applications, the recording function of the ledger is generally achieved by recording transaction records in blocks or using blockchain technology for transfers. Due to the limitations of blockchain technology, the information recorded in each block of the blockchain is limited. At the same time, since the generation rate of each block on the blockchain is limited, this leads to low efficiency in recording transaction records on the blockchain. In addition, for specific users, participating in the maintenance of the blockchain also requires recording transaction information that is not related to them, which increases the user's maintenance cost for the blockchain and is not conducive to the promotion and use of blockchain accounting technology. Summary of the invention

[0003] The present invention provides a distributed accounting method and system, which combines the characteristics of blockchain to record the general ledger and distributes the accounting operations of the general ledger to each sub-blockchain. On the one hand, it can ensure the accounting efficiency of transaction records, and on the other hand, it can reduce the cost of users participating in the distributed accounting method, and has good practicality.

[0004] Accordingly, the present invention provides a distributed accounting method for recording preset user groups. General Ledger , the preset user group include users, Users are ,user ,……,user , the general ledger Includes several transaction records , each of the transaction records Include transaction number 、Payer , Payee and transaction amount , the transaction number Unique, is a natural number greater than 2, , ;

[0005] user With corresponding sub-blockchain ,user In the sub-blockchain There is a corresponding wallet on , the sub-blockchain Has a preset payment record address and payment record address , ;

[0006] In the transaction record When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number , in the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated The amount of Through wallet To the payment record address Transfer in the same number of fusions as stated The amount of the fusion Include transaction number information;

[0007] One Blockchain When a new block is generated, the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains are traversed, extracted and recorded.

[0008] In an optional implementation, in each of the transaction records The transaction amount The minimum accounting unit is the decimal point. Bit, is a natural number;

[0009] The transaction record When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number include:

[0010] The transaction number The number of digits is , the fusion number .

[0011] An optional implementation method based on the payer and the recipient The agreed encryption method for transaction records When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number include:

[0012] The transaction amount In the conversion to fusion number The encryption process is based on the agreed encryption method.

[0013] In an optional implementation, in the total blockchain When a new block is generated, the payment record address of each sub-blockchain and the payment record address of each sub-blockchain are re-designated based on preset rules.

[0014] In an optional implementation, the total blockchain After the new block is generated, each of the sub-blockchains Transfer the balance in the payment record address to the wallet .

[0015] In an alternative implementation, each user In the total blockchain With a corresponding wallet address , the total blockchain Also includes a wallet;

[0016] Each user According to the set period, the total blockchain Transfer the preset amount and attach the corresponding sub-blockchain Information about how to access the website;

[0017] The total blockchain When a new block is generated, based on the sub-blockchain The access path information traverses, extracts and records the balance information of the payment record addresses in all the sub-blockchains, and the balance information of the payment record addresses in all the sub-blockchains.

[0018] An optional implementation further includes:

[0019] In the total blockchain After the new block is generated, the balance information of the payment record addresses in all the sub-blockchains is summed up to obtain the total amount of expenditure, and the balance information of the payment record addresses in all the sub-blockchains is summed up to obtain the total amount of income;

[0020] The total amount of expenditure is compared with the total amount of income to determine whether it is equal to the total amount of income. Real-time accuracy.

[0021] An optional implementation manner further includes:

[0022] When the total amount of expenditures and the total amount of income are not equal, the transaction number For matching codes, the transfer records in the payment record addresses in all sub-blockchains are matched with the transfer records in the payment record addresses in all sub-blockchains, and / or the transfer records in the payment record addresses in all sub-blockchains are matched with the transfer records in the payment record addresses in all sub-blockchains;

[0023] The transaction records corresponding to the transfer records that are not matched successfully or are matched repeatedly are erroneous transaction records.

[0024] Accordingly, the present invention also provides a distributed accounting system for implementing the distributed accounting method, comprising:

[0025] Main blockchain;

[0026] Sub-blockchain , with wallet , the default payment record address and payment record address ;

[0027] External program for recording transactions When accounting, based on the transaction number The transaction amount Algebraic conversion to fused numbers , in the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated The amount of Through wallet To the payment record address Transfer in the same number of fusions as stated Amount, and used in the total blockchain When a new block is generated, the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains are traversed, extracted and recorded in the new block.

[0028] The distributed accounting method and system provided by the present invention play the most basic anti-tampering accounting function. By distributing the general ledger to the sub-blockchain for accounting, the accounting rate of the ledger can be improved; in addition, for users, each user only needs to maintain the corresponding sub-blockchain, and the transaction record information related to it is recorded on the sub-blockchain. Users only need the most basic hardware conditions to participate in the accounting, which reduces the entry threshold for accounting and is conducive to the popularization and application of the distributed accounting method; the total blockchain can associate all sub-blockchains, and users can intermittently participate in the maintenance of the total blockchain. The more users participate in the distributed accounting method, the more stable the operation of the main blockchain, and the less hardware consumption required for each user to participate in the maintenance of the total blockchain. The two play a mutually positive role in promoting each other, which is conducive to the diffusion and use of the distributed accounting method. In addition to the most basic accounting function, it can also realize functions such as transaction encryption accounting, accounting verification, and accounting error correction, and has good application scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] 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.

[0030] Figure 1 This is a flow chart of a distributed accounting method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] 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.

[0032] The embodiment of the present invention provides a distributed accounting method for recording preset user groups General Ledger .

[0033] Basically, the preset user groups include users, Users are ,user ,……,user , A natural number greater than 2, that is, the preset user group The number of users in the transaction must be greater than two to meet the most basic transaction accounting conditions.

[0034] The general ledger Includes several transaction records , each of the transaction records Include transaction number 、Payer , Payee and transaction amount , the transaction number Unique, , In each transaction record, the transaction number The identification code of the transaction record, the payer and the recipient All of them are the preset user groups Users in .

[0035] In the embodiment of the present invention, the user With corresponding sub-blockchain , that is, each user has a sub-blockchain corresponding to his or her identity. In the sub-blockchain There is a corresponding wallet on , the sub-blockchain Has a preset payment record address and payment record address , .

[0036] In the embodiment of the present invention, when the transaction record is When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number , in the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated The amount of Through wallet To the payment record address Transfer in the same number of fusions as stated The amount of the fusion Include transaction number information.

[0037] Specifically, in order to make the transaction number The information can be efficiently recorded. In the embodiment of the present invention, when the transaction record is When recording, first write the transaction number and transaction amount Perform information fusion to obtain a fusion number For payers , payer Need to be in its corresponding sub-blockchain On, use the payment method of Payment to the address of record Transfer in the same number of fusions as stated Amount of , the recipient Need to be in its corresponding sub-blockchain On, use the recipient Wallet To the payment record address Transfer in the same number of fusions as stated In other words, the payment record address on each user's sub-blockchain records all transaction records when the user is the payer, and the payment record address on each user's sub-blockchain records all transaction records when the user is the payee.

[0038] It should be noted that due to the fusion number Both are applied to the transfer of payment record addresses and the transfer of payment record addresses. Therefore, the subsequent blockchain The statistical application of the relevant data is unaffected.

[0039] In order to verify the validity and accuracy of different sub-blockchains, a total blockchain is also provided in the embodiment of the present invention. , in the blockchain When a new block is generated, the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains are traversed, extracted and recorded.

[0040] Specifically, in the embodiment of the present invention, the total blockchain is set The purpose is to link all sub-blockchains, and at the same time determine whether the general ledger is balanced by counting the receipt amounts of the payment record addresses in all sub-blockchains and the payment amounts of the payment record addresses in all sub-blockchains, thereby determining the validity and accuracy of the sub-blockchain at the current time point.

[0041] In the embodiment of the present invention, basically, the blockchain that each user needs to maintain is the corresponding sub-blockchain. The valid data in the sub-blockchain is mainly the relevant information in the payment record address and the receipt record address. The data in the sub-blockchain is related to the corresponding user. On the one hand, the sub-blockchain that the user needs to maintain has the advantages of small data volume, which can save the user's maintenance consumption. On the other hand, in order to ensure the availability of its data, the user needs to spontaneously maintain the corresponding sub-blockchain to ensure the survival of the sub-blockchain; although each sub-blockchain has only a single user (which can be multiple devices) who needs to maintain it, but due to the total blockchain The existence of different sub-blockchains means that the sub-blockchains are associated with each other, which is equivalent to the fact that they are maintained by multiple people, that is, they are tamper-proof to a certain extent.

[0042] For the total blockchain In terms of total blockchain The data to be recorded is the balance information of the payment record address and the payment record address in all sub-blockchains. Compared with the complete record of the general ledger, the total blockchain Less information needs to be recorded, which is conducive to the simplicity of maintenance; secondly, the total blockchain The maintenance of the blockchain is also due to the spontaneous maintenance of users. The main reason is that It is of practical use to every user, and every user needs to ensure the total blockchain The sustainability of the blockchain is guaranteed. In actual implementation, it is not necessary for all users to participate in maintaining the blockchain all the time. , users can intermittently access the total blockchain Maintenance; generally speaking, users synchronize the total blockchain The hardware consumption required to maintain the data on the blockchain is less than that required to maintain the total blockchain Required hardware consumption.

[0043] The distributed accounting method provided in the embodiment of the present invention can reduce the user's maintenance cost of the blockchain by distributing the transaction records in the general ledger through the sub-blockchain; the setting of the general blockchain enables the data in each sub-blockchain to be associated, thereby ensuring the data cannot be tampered with.

[0044] Figure 1 This is a flow chart of a distributed accounting method according to an embodiment of the present invention.

[0045] In combination with the above description, in actual accounting, the distributed accounting method of the embodiment of the present invention includes the following steps:

[0046] S101: In the transaction record When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number ;

[0047] S102: In the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated the amount of

[0048] S103: In the sub-blockchain Through wallet To the payment record address Transfer in the same number of fusions as stated the amount of

[0049] S104: In the total blockchain When a new block is generated, the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains are traversed, extracted and recorded.

[0050] Through the accounting steps described in step S101 to step S104, the distributed accounting method of the embodiment of the present invention can realize the most basic accounting function.

[0051] Furthermore, in the field of mathematics, there are many ways to fuse two data into a new data. There are various ways to generate , in the embodiment of the present invention, considering the fusion number One of the data is the amount data, and the amount counting unit is limited. Specifically, in each transaction record Assuming the transaction amount The minimum accounting unit is the decimal point. Bit, is a natural number; When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number Include: the transaction number The number of digits is , the fusion number The fusion data provided by the embodiment of the present invention The generation method can be understood as converting the transaction number The number added to the transaction amount (keeping valid accounting units).

[0052] It should be noted that the fusion number generation method provided in the embodiment of the present invention is only the simplest generation method. and the recipient The agreed encryption method for transaction records When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number Includes: The transaction amount In the conversion to fusion number The encryption process is based on the agreed encryption method.

[0053] Specifically, in general applications, in order to facilitate the retrieval of applications, transaction numbers In the conversion to fusion number No encryption is performed when converting the transaction number into a fusion number, or it can be understood that the encryption method of the transaction number is public; the specific transaction amount Generally, it is confidential, so the transaction amount Convert to fusion number When the payment is made, it needs to be encrypted using the agreed encryption method agreed upon by the payer and the payee.

[0054] In order to further improve the tamper-proofness of each sub-blockchain, the total blockchain When a new block is generated, the payment record address of each sub-blockchain and the receipt record address of each sub-blockchain are re-designated based on preset rules, that is, after the total blockchain reads the balance of the payment record address and the receipt record address of each sub-blockchain, a new payment record address and the receipt record address are designated for each sub-blockchain to strengthen the connection between the total blockchain and the sub-blockchain. On the one hand, it can avoid the transaction records with accounting errors affecting the accounting of the new block. On the other hand, the original balance of the new payment record address and the receipt record address designated each time is zero, which can avoid the invalid accumulation of data and reduce the computing pressure of the total blockchain.

[0055] In addition, considering that in the sub-blockchain, the user needs to transfer money to the payment record address through his wallet, and this part of the transfer is not an actual expenditure transfer, therefore, in the sub-blockchain, the user's total blockchain After the new block is generated, each of the sub-blockchains Transfer the balance in the payment record address to the wallet , through this implementation, the wallet It can be used to actually represent the user's balance to help the user better plan the actual payment plan.

[0056] Specifically, the main blockchain and sub-blockchain only refer to the blockchain itself. Operations related to the main blockchain and sub-blockchain generally need to be implemented through external programs. In practical applications, in order to give full play to the security characteristics of the blockchain, some data needs to be migrated to the blockchain, and the external program does not perform operations that affect the security characteristics of the blockchain. In this embodiment of the present invention, each user In the total blockchain With a corresponding wallet address , the total blockchain Also includes a wallet;

[0057] Each user According to the set period, the total blockchain is regularly Transfer the preset amount and attach the corresponding sub-blockchain Information about how to access the website;

[0058] The total blockchain When a new block is generated, based on the sub-blockchain The access path information traverses, extracts and records the balance information of the payment record addresses in all the sub-blockchains, and the balance information of the payment record addresses in all the sub-blockchains.

[0059] Specifically, the total blockchain To access a sub-blockchain, the external program needs to obtain the access path to the sub-blockchain. The access path can theoretically be saved in the external program, but for reliability reasons, saving the access path on the main blockchain can ensure the validity of the sub-blockchain and avoid omissions and additions of sub-blockchains. At the same time, due to the preset user group The number of users is not constant, and this implementation can also be understood as joining a preset user group. entry and exit mechanisms.

[0060] In addition, this setting method is conducive to users to participate more actively in the overall blockchain maintenance to meet its daily consumption; at the same time, this setting method will not cause users to worry about the total blockchain Competitive computing power maintenance, users participate in maintaining the overall blockchain The rewards obtained are only used to meet their basic usage needs.

[0061] Furthermore, the distributed accounting method is described in the blockchain After a new block is generated, the new block can be The data in the application, the most basic, first need to consider whether the general ledger is balanced, in the embodiment of the present invention, in the general blockchain After the new block is generated, the balance information of the payment record addresses in all the sub-blockchains is summed to obtain the total amount of expenditure, and the balance information of the payment record addresses in all the sub-blockchains is summed to obtain the total amount of income; by comparing whether the total amount of expenditure is equal to the total amount of income, the total amount of income in the general ledger is determined. Real-time accuracy.

[0062] When the total amount of expenditures is equal to the total amount of income, it means that the general ledger is balanced and the transaction records on all sub-blockchains are accurate.

[0063] Similarly, when the total amount of expenditure is not equal to the total amount of income, it means that the general ledger is not balanced and there are errors in the transaction records on the sub-blockchain. The main reasons for the errors include repeated entry of unilateral transaction records, failure to record unilateral transaction records, etc.

[0064] Therefore, in order to find the specific cause of the error, an optional implementation method is to use the transaction number The matching code is used to match the transfer records in the payment record addresses in all sub-blockchains with the transfer records in the payment record addresses in all sub-blockchains, and / or the transfer records in the payment record addresses in all sub-blockchains are matched with the transfer records in the payment record addresses in all sub-blockchains. The transaction records corresponding to the transfer records that are not matched successfully or are duplicated are incorrect transaction records.

[0065] Further, relevant subsequent operations are performed according to the error type of the erroneous transaction record. In practical applications, it is necessary to consider that the erroneous transaction record has been recorded on the total blockchain. Therefore, the correction of the erroneous transaction record needs to be carried out simultaneously on the payee and the payee, that is, the erroneous transaction record is re-entered according to the conventional accounting method.

[0066] It should be noted that the additional expenses caused by this need to be paid by the party that generates the erroneous transaction records, such as additional operating costs of the program, etc. The payment method can be transferred to the coordinating wallet on the total blockchain, and the coordinating wallet will then compensate the maintainer of the main blockchain based on the contribution.

[0067] Accordingly, an embodiment of the present invention further provides a distributed accounting system for implementing the aforementioned distributed accounting method, including:

[0068] Main blockchain;

[0069] Sub-blockchain , with wallet , the default payment record address and payment record address ;

[0070] External program for recording transactions When accounting, based on the transaction number The transaction amount Algebraic conversion to fused numbers , in the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated The amount of Through wallet To the payment record address Transfer in the same number of fusions as stated Amount, and used in the total blockchain When a new block is generated, the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains are traversed, extracted and recorded.

[0071] Specifically, the distributed accounting method of the embodiment of the present invention mainly relies on the main blockchain and the sub-blockchain. In fact, the distributed accounting method requires an external program to perform actual logical operations. In specific applications, the maintenance program of the sub-blockchain, the maintenance program of the main blockchain and the external program can be packaged into an integral program for use by users and third-party users.

[0072] The distributed accounting method and system provided by the present invention play the most basic anti-tampering accounting function. By distributing the general ledger to the sub-blockchain for accounting, the accounting rate of the ledger can be improved; in addition, for users, each user only needs to maintain the corresponding sub-blockchain, and the transaction record information related to it is recorded on the sub-blockchain. Users only need the most basic hardware conditions to participate in the accounting, which reduces the entry threshold for accounting and is conducive to the popularization and application of the distributed accounting method; the total blockchain can associate all sub-blockchains, and users can intermittently participate in the maintenance of the total blockchain. The more users participate in the distributed accounting method, the more stable the operation of the main blockchain, and the less hardware consumption required for each user to participate in the maintenance of the total blockchain. The two play a mutually positive role in promoting each other, which is conducive to the diffusion and use of the distributed accounting method. In addition to the most basic accounting function, it can also realize functions such as transaction encryption accounting, accounting verification, and accounting error correction, and has good application scalability.

[0073] It should be noted that the distributed accounting method and system provided by the present invention are only implemented within a reasonable and legal scope. In actual applications of the blockchain technology described in the embodiments of the present invention, the rewards obtained by users for participating in the maintenance of sub-blockchains and main blockchains are only used as counting values ​​and have no actual value.

[0074] The above is a detailed introduction to a distributed accounting method and system provided by an embodiment of the present invention. This article uses specific examples 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 and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A distributed accounting method for recording preset user groups General Ledger , the preset user group include users, Users are ,user ,……,user , the general ledger Includes several transaction records , each of the transaction records Include transaction number 、Payer , Payee and transaction amount , the transaction number Unique, is a natural number greater than 2, , ; It is characterized in that user With corresponding sub-blockchain ,user In the sub-blockchain There is a corresponding wallet on , the sub-blockchain Has a preset payment record address and payment record address , ; In the transaction record When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number , in the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated The amount of Through wallet To the payment record address Transfer in the same number of fusions as stated The amount of the fusion Include transaction number information; One Blockchain When a new block is generated, traverse, extract and record the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains; Among them, in each of the transaction records The transaction amount The minimum accounting unit is the decimal point. Bit, is a natural number; When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number Include: the transaction number The number of digits is , the fusion number .

2. The distributed accounting method according to claim 1, It is characterized in that Based on payer and the recipient The agreed encryption method for transaction records When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number include: The transaction amount In the conversion to fusion number The encryption process is based on the agreed encryption method.

3. The distributed accounting method according to claim 1, It is characterized in that The total blockchain When a new block is generated, the payment record address of each sub-blockchain and the payment record address of each sub-blockchain are re-designated based on preset rules.

4. The distributed accounting method according to claim 1, It is characterized in that The total blockchain After the new block is generated, each of the sub-blockchains Transfer the balance in the payment record address to the wallet .

5. The distributed accounting method according to claim 1, It is characterized in that Each user In the total blockchain With a corresponding wallet address , the total blockchain Also includes a wallet; Each user According to the set period, the total blockchain is regularly Transfer the preset amount and attach the corresponding sub-blockchain Information about how to access the website; The total blockchain When a new block is generated, based on the sub-blockchain The access path information traverses, extracts and records the balance information of the payment record addresses in all the sub-blockchains, and the balance information of the payment record addresses in all the sub-blockchains.

6. The distributed accounting method according to claim 1, It is characterized in that Also includes: In the total blockchain After the new block is generated, the balance information of the payment record addresses in all the sub-blockchains is summed up to obtain the total amount of expenditure, and the balance information of the payment record addresses in all the sub-blockchains is summed up to obtain the total amount of income; The total amount of expenditure is compared with the total amount of income to determine whether it is equal to the total amount of income. Real-time accuracy.

7. The distributed accounting method according to claim 6, It is characterized in that Also includes: When the total amount of expenditures and the total amount of income are not equal, the transaction number For matching codes, the transfer records in the payment record addresses in all sub-blockchains are matched with the transfer records in the payment record addresses in all sub-blockchains, and / or the transfer records in the payment record addresses in all sub-blockchains are matched with the transfer records in the payment record addresses in all sub-blockchains; The transaction records corresponding to the transfer records that are not matched successfully or are matched repeatedly are erroneous transaction records.

8. A distributed accounting system, It is characterized in that A distributed accounting method for implementing any one of claims 1 to 7, comprising: Main blockchain; Sub-blockchain , with wallet , preset payment record address and payment record address ; External program for recording transactions When accounting, based on the transaction number The transaction amount Algebraic conversion to fused numbers , in the sub-blockchain Through wallet Payment to the address of record Transfer in the same number of fusions as stated The amount of Through wallet To the payment record address Transfer in the same number of fusions as stated Amount, and used in the total blockchain When a new block is generated, the balance information of the payment record addresses in all the sub-blockchains and the balance information of the payment record addresses in all the sub-blockchains are traversed and extracted and recorded in the new block; Among them, in each of the transaction records The transaction amount The minimum accounting unit is the decimal point. Bit, is a natural number; When accounting, based on the transaction number The transaction amount Performing algebraic transformation, the transaction amount Converted to fusion number Include: the transaction number The number of digits is , the fusion number .