TWI759171B - A method for processing accounting records in accounting public ledger using blockchain - Google Patents

A method for processing accounting records in accounting public ledger using blockchain Download PDF

Info

Publication number
TWI759171B
TWI759171B TW110113713A TW110113713A TWI759171B TW I759171 B TWI759171 B TW I759171B TW 110113713 A TW110113713 A TW 110113713A TW 110113713 A TW110113713 A TW 110113713A TW I759171 B TWI759171 B TW I759171B
Authority
TW
Taiwan
Prior art keywords
node
verification
accounting
nodes
level
Prior art date
Application number
TW110113713A
Other languages
Chinese (zh)
Other versions
TW202218394A (en
Inventor
陳兆伸
陳志誠
蒙麗晴
何旻謙
Original Assignee
陳兆伸
陳志誠
蒙麗晴
何旻謙
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 陳兆伸, 陳志誠, 蒙麗晴, 何旻謙 filed Critical 陳兆伸
Priority to TW110113713A priority Critical patent/TWI759171B/en
Application granted granted Critical
Publication of TWI759171B publication Critical patent/TWI759171B/en
Publication of TW202218394A publication Critical patent/TW202218394A/en

Links

Images

Abstract

This is a system and method for processing accounting records in public accounting ledger using blockchain, characterized in relying on the synchronization and recording mechanism of accounting files through blockchain, so that accounting data can be transparent, real-time updated and tamper-resistant. The invention includes the following steps: we construct a ring network of multiple first-level nodes; in the ring a synchronous token is transmitted among these first-level nodes. A first-level node connects at least one second-level node which is authorized to upload transaction data in the form of accounting entry for verification. A second-level node uploads accounting information to its associated first-level node. The first-level node randomly selects several second-level nodes and define them as authentication nodes. A first-level node becomes a primary node upon the receival of the synchronous token of the ring. The primary node sends the accounting information to the authentication nodes. After examination the verification nodes generate verification results and send them back to the primary node, which will summarize the verification results by majority decision. Upon successful verification, the primary node will attach the accounting information to the blockchain. A blockchain constructed in this way can serve as a third-party public ledger, and financial auditing accountants can directly verify transaction records on it.

Description

會計記錄的區塊鏈公共帳本化處理方法Blockchain Public Ledger Processing Method for Accounting Records

本發明是關於一種網路化的會計記錄系統,尤指一種會計記錄的區塊鏈公共帳本化處理系統。The present invention relates to a networked accounting record system, especially a blockchain public account book processing system for accounting records.

傳統的商業型態主要可分為企業對企業(Business-to-Business,B2B)與企業對客戶(Business-to-Customer, B2C)兩種。財務資料的正確性、安全性、可信賴性及審計稽核的效率,一直是會計追求的目標。在B2B的商業型態裡,雙方企業都記帳,將來可以勾稽核實;但在B2C裡,只有企業單方記帳,一般顧客端都不記帳,留給企業端很大的「偽造和作弊」空間。Traditional business models can be divided into two types: Business-to-Business (B2B) and Business-to-Customer (B2C). The accuracy, security, reliability and efficiency of auditing and auditing of financial information have always been the goals pursued by accounting. In the B2B business model, both companies keep accounts, which can be checked and verified in the future; but in B2C, only the company keeps accounts unilaterally, and the general customer does not keep accounts, leaving a lot of room for "forgery and cheating" on the corporate side.

會計學是一門500年古老成熟而穩定的學科。傳統的會計記帳方式是以交易雙方各自記錄所交易內容與金額等資訊。但是交易雙方所記錄的會計資料可能會出現造假,使得另一方的權益受到損害。「現代會計學之父」Luca Pacioli在1494年結合數學原理從理論上加以概括系統性描述「複式記帳法(Double-Entry System)」,自此奠定並成為會計學的重要基礎;然而,從那以後的五百年來,現代會計的本質及基礎架構再也沒有重大改變。Accounting is a 500-year-old mature and stable discipline. The traditional accounting method is to record the transaction content and amount of information on both sides of the transaction. However, the accounting information recorded by both parties may be falsified, which may damage the rights and interests of the other party. In 1494, Luca Pacioli, the "father of modern accounting", summarized and systematically described the "Double-Entry System" in combination with mathematical principles. Since then, he has laid and became an important foundation of accounting; For the next five hundred years, the nature and infrastructure of modern accounting have not changed significantly.

一直到了1986年,井尻雄士建議利用當量會計學(Momentum Accounting)的三式簿記法(Triple-Entry Bookkeeping System) 以提高財務資料的可信賴性,除了借方、貸方之外,還加入協力廠商輸入資訊,以表明公司財務的動能,以預測未來財務收入會加速或降緩。雖然三式簿記法會計資料可以透過第三方進行驗證,但是由於資料龐雜無法快速的檢驗、還需要由專門的公司進行檢驗,所以三式簿記法的會計記錄系統至今仍然是是無法被一般使用者所接受。另一方面,為了提供財務報表的可信度,目前一般是由會計師進行對帳(Account Reconciliation) ,以核實帳務。然而,會計對帳所需要的人力成本、時間成本、金錢成本對於一般大眾而言是相當沈重的。更且,由於會計對帳,並非是一種基於公共帳簿與節點對資料的交互驗證,因此使用者很難循著會計記錄軌跡來取得所欲查詢的會計記錄,使得公開資料仍存在著容易被竄改之疑慮,而且也無法實現公開資料的完整性與一致性。Until 1986, Yuji Ijiri proposed to use the Triple-Entry Bookkeeping System of Momentum Accounting to improve the reliability of financial data. In addition to debits and credits, third-party input information was also added. , to indicate the kinetic energy of the company's finances to predict future financial revenue will accelerate or decelerate. Although the accounting data of the triple-entry bookkeeping method can be verified by a third party, the accounting record system of the triple-entry bookkeeping method is still unable to be used by ordinary users due to the complexity of the data, which cannot be quickly checked and needs to be checked by a specialized company. accepted. On the other hand, in order to provide the credibility of financial statements, accountants are generally reconciled (Account Reconciliation) to verify the accounts. However, the labor cost, time cost, and money cost required for accounting reconciliation are quite heavy for the general public. Moreover, since accounting reconciliation is not a kind of interactive verification of data based on public account books and nodes, it is difficult for users to follow the accounting record track to obtain the accounting records they want to query, making public data still easy to be tampered with. concerns, and the integrity and consistency of public information cannot be achieved.

因此,會計學如何轉型引領經濟的發展、反映企業價值是一個企待解決的問題。在過去的歷史裡,會計學一直順應著技術的發展而作調整,如今經濟及技術環境也在催促著會計的加速變革。Therefore, how to transform accounting to lead the development of the economy and reflect the value of enterprises is a problem to be solved. Historically, accounting has been adjusted to the development of technology, and today's economic and technological environment is also urging accelerated changes in accounting.

從而,業界莫不期待能夠開發出一種不但能夠支援會計資訊管理並能夠適應稅務管理,而且具備自動化、高安全性、高信靠性、和高成本效益的會計系統,以將會計學及會計實務推向一個新的境界。Therefore, the industry can not expect to develop an accounting system that can not only support accounting information management and adapt to tax management, but also have automation, high security, high reliability, and high cost-effectiveness, so as to promote accounting and accounting practice. to a new realm.

是以,本發明人等經過多年的朁心研究,戮力檢討現在會計軟體的缺陷,發現借用「A向B買東西: A必須給付區塊資料的發行人(亦即,會計分錄上的貸方」之思考邏輯,將貸方做為區塊的發行者(Issuer),借方當作交易對方(Counterpart)之區塊鏈的公共帳本記帳,可以改善井尻雄士的第三方輸入的缺陷;終於開發出一種採取三式記帳法(Triple Entry System for Accounting)架構可以區塊鏈實現第三方公共帳本之區塊鏈會計系統(以下,亦稱為「H-Diamond網絡會計系統」),不但能夠支援會計資訊管理並能夠適應稅務管理,而且具備自動化、高安全性、高信靠性、和高成本效益的會計系統。Therefore, after years of intensive research, the inventors of the present invention tried their best to review the defects of the current accounting software, and found that borrowing "A to buy something from B: A must pay the issuer of the block data (that is, the issuer on the accounting entry) The thinking logic of "creditor", which takes the lender as the issuer of the block (Issuer) and the debit as the counterparty (Counterpart) of the blockchain's public ledger bookkeeping, can improve the defects of Yuji Ijiri's third-party input; finally developed A blockchain accounting system (hereinafter, also referred to as "H-Diamond Network Accounting System") that adopts the Triple Entry System for Accounting framework to realize a third-party public ledger by blockchain, which not only supports Accounting information management and can adapt to tax management, and has an automated, high-security, high-reliability, and cost-effective accounting system.

又,根據本發明之區塊鏈會計系統(H-Diamond網絡會計系統),能夠大幅提升財務資料的正確性、安全性、可信賴性及審計稽核的效率。更具體而言,根據本發明,至少能夠達成以下的優異的效果,例如,可以在會計實務中依照「會計法」做成符合法規具備合規性(Compliance)的財務報告,並且能夠以分散式儲存;具備可全體成員監控機制、難以竄改的優良特性;不但可以提高資料安全性、更可確保資料的真確性,交易資訊的透明性。In addition, according to the blockchain accounting system (H-Diamond network accounting system) of the present invention, the accuracy, security, reliability and efficiency of auditing and auditing of financial data can be greatly improved. More specifically, according to the present invention, at least the following excellent effects can be achieved. For example, in the accounting practice, according to the "Accounting Law", a financial report that complies with regulations and has compliance (Compliance) can be created, and a decentralized system can be used. Storage; it has the excellent characteristics of a monitoring mechanism for all members and is difficult to tamper with; it can not only improve data security, but also ensure the authenticity of data and the transparency of transaction information.

其次,根據本發明的區塊鏈會計系統,能夠透過網際網路,利用區塊鏈(blockchain)技術,在資料區塊形成時就可透過網絡成員加以即時確認,收到「即時審計(實時會計)」的效益。又,根據本發明的思想概念,在本發明之區塊鏈會計系統中所使用的會計計量單位並沒有特別限制,例如,可以是法定貨幣、電子數位貨幣、實體貨幣等;也可以是經合法認可之其他可轉換的貨幣計量單位,例如,合法使用之儲存支付貨幣。Secondly, according to the blockchain accounting system of the present invention, it is possible to use the blockchain technology through the Internet, when the data block is formed, it can be confirmed by network members in real time, and the "real-time audit (real-time accounting") can be received. )" benefit. In addition, according to the concept of the present invention, the accounting unit of measurement used in the blockchain accounting system of the present invention is not particularly limited, for example, it can be legal currency, electronic digital currency, physical currency, etc.; it can also be legal currency Other acceptable convertible currency units of measurement, for example, legal use of stored payment currency.

再者,根據本發明的區塊鏈會計系統,所有的會計交易資料都可以記錄於區塊鏈之中,使用者能夠基於公共帳簿與節點對資料的交互驗證,而且使用者還可以公開密碼沿著區塊鏈的記錄軌跡而取得所欲查詢的會計記錄,使得公開資料無法被竄改,進而實現公開資料的完整性與一致性。Furthermore, according to the blockchain accounting system of the present invention, all accounting transaction data can be recorded in the blockchain, the user can interactively verify the data based on the public account book and the node, and the user can also disclose the password along the way. The accounting records to be queried can be obtained by following the record track of the blockchain, so that the public information cannot be tampered with, thereby achieving the integrity and consistency of the public information.

本發明揭露一種會計記錄的區塊鏈公共帳本化處理系統,其特徵在於透過區塊鏈的會計文件的同步與記錄系統,以使會計資料可以實現公開、同步與不可隨意竄改的特點。The invention discloses a blockchain public account book processing system for accounting records, which is characterized by the synchronization and recording system of accounting documents through the blockchain, so that the accounting data can be disclosed, synchronized and cannot be arbitrarily tampered with.

本發明的會計記錄的區塊鏈公共帳本化處理系統包括多個一級節點、若干個二級節點與會計區塊鏈。所述一級節點網路串接並形成環狀網路,環狀網路傳輸同步令牌,將取得同步令牌的一級節點定義為主要節點,其餘的一級節點定義為次要節點,每一個一級節點網路連接於若干個二級節點,任一個二級節點可將資料分片上傳至所連接的一級節點,次要節點選擇若干個二級節點並用於檢驗來自於主要節點的資料區塊,將次要節點所選出的二次節點定義為驗證節點,主要節點獲取同步令牌,主要節點從其餘的次要節點中隨機選擇至少一個次要節點,主要節點將資料區塊發送至所選的次要節點,由次要節點隨機選出至少一驗證節點,被選出的驗證節點檢驗資料區塊後發出驗證結果至主要節點,主要節點以私密金鑰對資料區塊進行簽章並產生結果區塊,主要節點將結果區塊附加會計區塊鏈。The blockchain public ledger processing system for accounting records of the present invention includes a plurality of primary nodes, several secondary nodes and an accounting blockchain. The first-level node network is connected in series to form a ring network, the ring network transmits the synchronization token, the first-level node that obtains the synchronization token is defined as the primary node, and the remaining first-level nodes are defined as secondary nodes. The node network is connected to several secondary nodes. Any secondary node can upload data fragments to the connected primary node. The secondary node selects several secondary nodes and uses it to check the data blocks from the primary node. The secondary node selected by the secondary node is defined as the verification node, the primary node obtains the synchronization token, the primary node randomly selects at least one secondary node from the remaining secondary nodes, and the primary node sends the data block to the selected Secondary node, at least one verification node is randomly selected by the secondary node. The selected verification node checks the data block and sends the verification result to the main node. The main node signs the data block with the private key and generates the result block. , the main node appends the resulting block to the accounting blockchain.

本發明另提供一種會計記錄的區塊鏈公共帳本化處理方法包括以下步驟:將多個一級節點網路串接並建立環狀網路,一級節點傳輸同步令牌,將取得同步令牌的一級節點定義為主要節點,其餘的一級節點定義為次要節點;每一個一級節點網路連接至少一個二級節點;二級節點完成交易處理後,二級節點上傳資料分片至所連接的一級節點;當一級節點接獲同步令牌時,就成為主要節點;主要節點隨機選擇至少一個次要節點;由所選的次要節點隨機選擇至少一個二級節點,並定義所選出的二級節點為驗證節點;主要節點將資料分片發送至驗證節點;由驗證節點檢驗資料分片,並產生驗證結果;驗證節點將驗證結果回傳至主要節點;主要節點以多數原則決定驗證結果;主要節點以私密金鑰對資料分片進行簽章並產生結果區塊;主要節點將結果區塊附加(append)會計區塊鏈之後。The present invention also provides a blockchain public accounting processing method for accounting records. The primary node is defined as the primary node, and the remaining primary nodes are defined as secondary nodes; each primary node network is connected to at least one secondary node; after the secondary node completes the transaction processing, the secondary node uploads data fragments to the connected primary node node; when the primary node receives the synchronization token, it becomes the primary node; the primary node randomly selects at least one secondary node; the selected secondary node randomly selects at least one secondary node, and defines the selected secondary node It is the verification node; the main node sends the data shards to the verification node; the verification node checks the data fragmentation and generates the verification result; the verification node sends the verification result back to the main node; the main node decides the verification result by majority principle; the main node The data shard is signed with the private key and the result block is generated; the main node appends the result block to the accounting blockchain.

本發明的會計記錄的區塊鏈公共帳本化處理系統與方法可以透過去中心化與分散式公開記錄帳簿的特性,使得網路上的每一個節點都可以取得會計資料並驗證會計資訊的正確性。本發明的區塊鏈會計記錄系統透過分層式的資料傳輸與隨機指名驗證的多數決機制,除了可以提高會計資料檢驗的速度,並且確保資料檢驗的可靠性。The blockchain public account book processing system and method for accounting records of the present invention can enable every node on the network to obtain accounting data and verify the correctness of accounting information through the characteristics of decentralization and distributed public record books. . The blockchain accounting record system of the present invention can not only improve the speed of accounting data inspection, but also ensure the reliability of data inspection through the hierarchical data transmission and random designation and verification of the majority decision mechanism.

茲有關本發明之詳細內容及技術說明,現以實施例來做進一步說明,但應瞭解的是,該等實施例僅為例示說明之用,而不應被解釋為本發明實施之限制。Hereinafter, the detailed content and technical description of the present invention will be further described with reference to the embodiments, but it should be understood that these embodiments are only used for illustration and should not be construed as a limitation of the implementation of the present invention.

以下,本發明中所使用的「H-Diamond網絡」係指一種之由全體節點組成之包括「多中心設置」及「分散式驗證」特性的區塊鏈網路。「H-Diamond網絡」的每個節點都對應於一個依據國家法規所製作的財務報表的「帳戶」。又,「節點」可區分為一般用戶節點、特殊用戶節點之兩種型態。Hereinafter, the "H-Diamond network" used in the present invention refers to a blockchain network composed of all nodes including the characteristics of "multi-center setting" and "decentralized verification". Each node of the "H-Diamond Network" corresponds to an "account" of financial statements prepared in accordance with national regulations. In addition, "node" can be divided into two types of general user node and special user node.

一般用戶節點也稱為輕節點(Light Node) 或二級節點,可以由POS系統、手持端點設備(手機或其它手持設備)、平板、電腦或AIOT系統收集齊全區塊鏈會計要求之資料項目,請求確認該交易。開立帳戶時必須採實名制,且必須嚴格確認其自然人或是法人的身分。每個帳戶將得到一對公私鑰,並以公鑰做為對外公開的帳號。私鑰則以自行選定的通行碼加密存儲。General user nodes are also called light nodes or secondary nodes, which can collect complete data items required by blockchain accounting from POS systems, handheld endpoint devices (mobile phones or other handheld devices), tablets, computers or AIOT systems , request confirmation of the transaction. The real-name system must be adopted when opening an account, and the identity of its natural or legal person must be strictly confirmed. Each account will get a pair of public and private keys, and use the public key as the public account. The private key is encrypted and stored with a passcode of your choice.

特殊用戶節點也稱為全節點(Complete Node)或一級節點:為了維護H-Diamond區塊鏈系統的運作,系統中有多個全節點,做為服務中心;它們除了具有輕節點的功能外,還須至少提供以下四種服務,即,(1) 註冊服務: 受理新的一般節點的帳戶申請,在平日系統運作時,確認一般節點上線者之身分;(2) 目錄服務: 管理節點之認證、撤銷、網絡內節點之聯繫;(3) 協助新的會計資料之認證。輕節點可以請求全節點協助處理其交易資料的認證工作;以及(4) 完整數據區塊之保存: 做為全節點必須保留完整的區塊資料,其年限以法令之要求為準。Special user nodes are also called complete nodes or first-level nodes: in order to maintain the operation of the H-Diamond blockchain system, there are multiple full nodes in the system as service centers; in addition to their functions as light nodes, It must also provide at least the following four services, namely, (1) registration service: accepting account applications for new general nodes, and confirming the identity of the online users of general nodes when the system is running on weekdays; (2) directory services: managing the authentication of nodes , revocation, connection of nodes in the network; (3) assist in the certification of new accounting data. Light nodes can request full nodes to assist in the authentication of their transaction data; and (4) Preservation of complete data blocks: As a full node, complete block data must be retained, and the age is subject to the requirements of the law.

此外,在本發明的「H-Diamond網絡」中,全節點可以有多個,以提升系統的服務效率和安全性;所有的全節點必須儘量保持在線(Online)狀態,以服務網絡中的所有節點。全節點必須保存一條完整的區塊鏈和所有交易文件的副本,以昭公信,以符合現行監管法令規範。In addition, in the "H-Diamond network" of the present invention, there can be multiple full nodes to improve the service efficiency and security of the system; all full nodes must be kept online as much as possible to serve all the node. Full nodes must keep a complete blockchain and copies of all transaction documents for public trust and compliance with current regulatory laws and regulations.

又,本發明之區塊鏈會計系統中,可以做為全節點服務中心可以是法院、會計師公會、稅捐機關…等。又,在本發明的區塊鏈會計系統中,一般節點只要有能力提供以上的服務者,也可以成為擔任「服務中心」之全節點。又,根據本發明,一個數據區塊用來記錄一個會計分錄; 一個區塊可分為表頭(Block Header)和表身(Block Body)兩部分。表身主要承載會計分錄信息,而表頭則包含區塊鏈的管理信息。In addition, in the blockchain accounting system of the present invention, the service center of the full node can be a court, an accounting association, a taxation authority, etc. In addition, in the blockchain accounting system of the present invention, as long as a general node has the ability to provide the above services, it can also become a full node serving as a "service center". Also, according to the present invention, one data block is used to record one accounting entry; one block can be divided into two parts: block header and block body. The body of the table mainly carries the accounting entry information, while the header contains the management information of the blockchain.

又,根據本發明的H-Diamond網絡,所有一般輕節點都必須在一個服務中心註冊,註冊之資訊將傳給其他所有的服務中心,所有全節點服務中心都有義務、且必須有能力擔任目錄服務的工作;因此,能夠大幅地減少參與驗證的網站數量,進而提升驗證之速度,並可以達到理論上同樣的有效驗證。In addition, according to the H-Diamond network of the present invention, all general light nodes must be registered in one service center, and the registered information will be transmitted to all other service centers. All full-node service centers are obligated and must have the ability to serve as a directory Therefore, the number of websites participating in the verification can be greatly reduced, thereby improving the speed of verification, and can achieve the same effective verification in theory.

請參考圖1A與圖1B所示,其係為本發明的會計區塊鏈160系統架構圖與一級節點與二級節點的網路連接示意圖。本發明的區塊鏈會計處理系統包括:多個一級節點110與多個二級節點120。多個一級節點110網路串接並形成環狀網路。而每一個一級節點110網路連接多個二級節點120。其中,二級節點120可以通過註冊的方式指定連接至特定的一級節點110。因此,二級節點120可能是透過區域網路或網際網路連接於一級節點110。Please refer to FIG. 1A and FIG. 1B , which are schematic diagrams of the system architecture diagram of the accounting block chain 160 and the network connection diagrams of the primary nodes and the secondary nodes of the present invention. The blockchain accounting processing system of the present invention includes: a plurality of primary nodes 110 and a plurality of secondary nodes 120 . A plurality of primary nodes 110 are connected in series to form a ring network. And each primary node 110 is connected to a plurality of secondary nodes 120 in the network. Wherein, the secondary node 120 may be designated to be connected to a specific primary node 110 by means of registration. Therefore, the secondary node 120 may be connected to the primary node 110 through a local area network or the Internet.

廣義而言一級節點110與二級節點120所指的是具有會計資料生成、驗證能力與連網能力的計算機裝置。在本發明中為方便說明兩者的差異,因此劃分一級節點110與二級節點120的應用種類。舉例來說,一級節點110可以是伺服器或個人電腦,而二級節點120可以是銷售機(Point of Sale,POS)、個人電腦或行動計算裝置。In a broad sense, the primary node 110 and the secondary node 120 refer to computer devices with accounting data generation, verification capabilities and networking capabilities. In the present invention, for the convenience of explaining the difference between the two, the application types of the first-level node 110 and the second-level node 120 are divided. For example, the primary node 110 may be a server or a personal computer, and the secondary node 120 may be a point of sale (POS), a personal computer or a mobile computing device.

本發明的一級節點110包括:第一網路模塊111、第一加解密模塊112、第一驗證模塊113、帳戶管理模塊114、目錄管理模塊115與儲存模塊116。第一網路模塊111連接於第一加解密模塊112、第一驗證模塊113、帳戶管理模塊114、目錄管理模塊115與儲存模塊116。第一網路模塊111對外網路連接於其他一級節點110與二級節點120。第一網路模塊111除了接收來自於二級節點120的資料分片141(slice),更用於傳輸一級節點110間的同步令牌150(token)與會計區塊鏈160的相關資訊。一級節點110會將單位時間內所收集到的資料分片141封裝為一組資料區塊142。例如:會計區塊鏈160的待驗證資料或傳輸公開帳簿等。其中,會計區塊鏈160的作用在於記錄每一個二級節點120的會計資料,而所述的會計資料則是由多個結果區塊144串列所形成的。The primary node 110 of the present invention includes: a first network module 111 , a first encryption and decryption module 112 , a first verification module 113 , an account management module 114 , a directory management module 115 and a storage module 116 . The first network module 111 is connected to the first encryption/decryption module 112 , the first verification module 113 , the account management module 114 , the directory management module 115 and the storage module 116 . The first network module 111 is connected to the other first-level nodes 110 and the second-level nodes 120 to the external network. The first network module 111 not only receives the data slice 141 (slice) from the secondary node 120 , but also transmits the synchronization token 150 (token) between the primary nodes 110 and the related information of the accounting block chain 160 . The first-level node 110 encapsulates the data fragments 141 collected in a unit time into a set of data blocks 142 . For example: the data to be verified in the accounting blockchain 160 or the transmission of public account books, etc. The function of the accounting block chain 160 is to record the accounting data of each secondary node 120 , and the accounting data is formed by a series of a plurality of result blocks 144 .

第一加解密模塊112用於對已驗證完成的結果區塊144進行簽章。完成簽章的結果區塊144會透過第一網路模塊111廣播至其他一級節點110,使得新的結果區塊144加入會計區塊鏈160中。一級節點110會將結果區塊144與公開帳簿記錄至儲存模塊116中,使得會計區塊鏈160可以被儲存於各一級節點110之中。第一驗證模塊113用於計數被指派的二級節點120對於資料區塊142的檢驗。在本發明的區塊鏈中,一級節點110會選擇出多個二級節點120,並由所選出的二級節點120檢驗資料區塊142是否正確。一級節點110會統計相同結果的二級節點120的數量。當具有相同結果的二級節點120的數量超過所選出數量的二級節點120的一半時,第一驗證模塊113才會記錄該筆資料區塊142為新的結果區塊144。The first encryption and decryption module 112 is used to sign the verified result block 144 . The signed result block 144 is broadcast to other first-level nodes 110 through the first network module 111 , so that the new result block 144 is added to the accounting block chain 160 . The primary node 110 records the result block 144 and the public account book in the storage module 116 , so that the accounting block chain 160 can be stored in each primary node 110 . The first verification module 113 is used to count the verification of the data block 142 by the assigned secondary node 120 . In the blockchain of the present invention, the primary node 110 selects a plurality of secondary nodes 120, and the selected secondary nodes 120 check whether the data block 142 is correct. The primary node 110 will count the number of secondary nodes 120 with the same result. When the number of secondary nodes 120 with the same result exceeds half of the selected number of secondary nodes 120 , the first verification module 113 will record the data block 142 as a new result block 144 .

帳戶管理模塊114用於記錄一級節點110與所相連的二級節點120。在本發明中每一個一級節點110連接至少兩個以上的二級節點120。而所述的連接除了需要網路訊號的傳輸外,也同時要完成向一級節點110進行註冊的動作。目錄管理模塊115用於管理所連接的二級節點120的網路傳輸狀態,以便確認二級節點120的在線情況與資料傳輸效率是否異動。儲存模塊116用以記錄會計區塊鏈160的相關資料與智能合約(smart contract)。The account management module 114 is used to record the primary node 110 and the connected secondary node 120 . In the present invention, each primary node 110 is connected to at least two or more secondary nodes 120 . In addition to the transmission of network signals, the connection also needs to complete the registration to the primary node 110 at the same time. The directory management module 115 is used to manage the network transmission status of the connected secondary node 120, so as to confirm whether the online status of the secondary node 120 and the data transmission efficiency are different. The storage module 116 is used to record relevant data and smart contracts of the accounting block chain 160 .

智能合約是一種智慧型的自動處理機制,智能合約可以自動執行部分或全部任務的協定。智能合約將減少執行過程中的人工干預。例如,一份能自動計算合夥當事人應付金額,並安排支付這筆金額的合約。區塊鏈會計中人們可依照智慧合約的規定,進行交易,產生會計分錄,經過確認之後,寫入會計區塊鏈160。A smart contract is an intelligent automatic processing mechanism, and a smart contract can automatically execute some or all of the tasks of the agreement. Smart contracts will reduce human intervention in the execution process. For example, a contract that automatically calculates the amount due from the partners and arranges for payment of that amount. In blockchain accounting, people can conduct transactions according to the provisions of the smart contract, generate accounting entries, and after confirmation, write them into the accounting blockchain 160.

本發明的二級節點120包括:第二網路模塊121、資料生成模塊122、第二加解密模塊123與第二驗證模塊124。第二網路模塊121連接資料生成模塊122、第二加解密模塊123與二級模塊。第二網路模塊121在完成每次的交易處理後,第二網路模塊121用於傳輸資料分片141至所連接的一級節點110,並且第二網路模塊121會廣播交易完成通知給其他的二級節點120。交易處理所產生的資料分片141意即為會計分錄。資料生成模塊122用於決定交易時的內容生成與記錄,並將交易結果記錄為資料分片141。第二加解密模塊123可以將私有金鑰對已完成檢驗的資料區塊142進行簽章並產生對應的確認碼,以便寫入公開帳簿中。第二驗證模塊124用於對所接收的資料區塊142進行檢驗,並輸出檢驗結果至對應的一級節點110。The secondary node 120 of the present invention includes: a second network module 121 , a data generation module 122 , a second encryption and decryption module 123 and a second verification module 124 . The second network module 121 connects the data generation module 122 , the second encryption and decryption module 123 and the secondary module. After the second network module 121 completes each transaction processing, the second network module 121 is used to transmit the data fragment 141 to the connected first-level node 110, and the second network module 121 broadcasts a transaction completion notification to other the secondary node 120. The data fragments 141 generated by transaction processing are meant to be accounting entries. The data generation module 122 is used to determine the content generation and recording during the transaction, and record the transaction result as the data fragment 141 . The second encryption/decryption module 123 can sign the verified data block 142 with the private key and generate a corresponding confirmation code, so as to be written into the public account book. The second verification module 124 is used to verify the received data block 142 and output the verification result to the corresponding primary node 110 .

在本發明中為能進一步說明不同情況的一級節點110與二級節點120,因此根據以下情況對該一級節點110與二級節點120提出相關定義。對於取得同步令牌150的一級節點110定義為主要節點411,其餘的一級節點110則定義為次要節點412。對於被選出檢驗資料區塊142的二級節點120則定義為驗證節點421。為清楚說明本發明的整體運作過程,請配合參考圖2,其係為本發明的區塊鏈記錄會計資料的處理流程示意圖。本發明的會計記錄的區塊鏈公共帳本化處理方法,包括以下步驟: 步驟S210:將多個一級節點網路串接並建立環狀網路,這些一級節點傳輸同步令牌; 步驟S220:每一個一級節點網路連接至少一個二級節點; 步驟S230:在二級節點完成交易處理後,二級節點上傳資料分片至所連接的一級節點; 步驟S240:當一級節點接獲同步令牌時,主要節點隨機選擇至少一個次要節點; 步驟S250:由所選的這些次要節點隨機選擇至少一驗證節點; 步驟S260:主要節點將所收集的資料分片封裝為資料區塊,並將資料區塊發送至這些驗證節點; 步驟S270:由這些驗證節點檢驗資料區塊,並產生驗證結果; 步驟S280:這些驗證節點將驗證結果回傳至主要節點; 步驟S290:主要節點以多數決定原則彙整驗證決果;主要節點以私密金鑰對資料區塊進行簽章並產生結果區塊;以及 步驟S300:主要節點將結果區塊附加會計區塊鏈之後。 In the present invention, the first-level node 110 and the second-level node 120 can be further described in different situations. Therefore, the first-level node 110 and the second-level node 120 are defined according to the following situations. The first-level node 110 that obtains the synchronization token 150 is defined as the primary node 411 , and the remaining first-level nodes 110 are defined as the secondary node 412 . The secondary node 120 selected to check the data block 142 is defined as a verification node 421 . In order to clearly illustrate the overall operation process of the present invention, please refer to FIG. 2 , which is a schematic diagram of the processing flow of the blockchain recording accounting data of the present invention. The blockchain public ledger processing method for accounting records of the present invention includes the following steps: Step S210: Connect multiple first-level node networks in series to establish a ring network, and these first-level nodes transmit synchronization tokens; Step S220: each primary node network is connected to at least one secondary node; Step S230: After the secondary node completes the transaction processing, the secondary node uploads the data shards to the connected primary node; Step S240: when the primary node receives the synchronization token, the primary node randomly selects at least one secondary node; Step S250: randomly select at least one verification node from the selected secondary nodes; Step S260: The main node encapsulates the collected data fragments into data blocks, and sends the data blocks to these verification nodes; Step S270: verify the data block by these verification nodes, and generate verification results; Step S280: These verification nodes transmit the verification results back to the main node; Step S290: the main node assembles the verification results according to the principle of majority decision; the main node signs the data block with the private key and generates the result block; and Step S300: The main node appends the result block to the accounting block chain.

首先,將所有的一級節點110網路串接並形成一個環狀網路,在此所稱的環狀網路並非為物理上連接的網路架構,而是以網路拓樸連接所形成的網路架構。在環狀網路中,一級節點110會傳輸同步令牌150、資料區塊142與會計區塊鏈160。每一個一級節點110各自連接數量不等的二級節點120,如圖2所示。一般而言,一級節點110可以由政府機關或大型企業提供高運算力與可信賴的計算機設備。First, all the first-level nodes 110 are connected in series to form a ring network. The ring network here is not a network structure that is physically connected, but is formed by a network topology connection. network architecture. In the ring network, the primary node 110 transmits the synchronization token 150 , the data block 142 and the accounting block chain 160 . Each primary node 110 is connected to a different number of secondary nodes 120, as shown in FIG. 2 . Generally speaking, the first-level node 110 can provide high computing power and reliable computer equipment by government agencies or large enterprises.

不同區域的二級節點120可以透過註冊的方式選定所依附一級節點110。以百貨商場為例,一級節點110可以是商場所提供的後台伺服器,而二級節點120可以是櫃臺的銷售機台或平板電腦等裝置。一般而言,二級節點120僅會連接單一個一級節點110。二級節點120在完成每一次交易時,二級節點120會產生該筆交易的資料分片141。而且二級節點120在生成資料分片141後,二級節點120會透過所連接的一級節點110將交易完成的訊息廣播至其他一級節點110與二級節點120。Secondary nodes 120 in different areas can select the attached primary node 110 through registration. Taking a department store as an example, the primary node 110 may be a backend server provided by the mall, and the secondary node 120 may be a device such as a sales machine or a tablet computer at the counter. Generally speaking, the secondary node 120 is only connected to a single primary node 110 . When the secondary node 120 completes each transaction, the secondary node 120 will generate a data fragment 141 of the transaction. Moreover, after the secondary node 120 generates the data fragment 141 , the secondary node 120 broadcasts the transaction completion message to the other primary nodes 110 and the secondary node 120 through the connected primary node 110 .

而二級節點120會將資料分片141上傳至所屬的一級節點110。一級節點110會在收到同步令牌150時將已收到的所有資料分片141封裝為資料區塊142。資料區塊142的內容可以參考圖3A所示,其係為本發明的資料區塊的資料結構示意圖。在資料區塊142包括表頭資訊與表身資訊。表頭資訊至少包括以下欄位與內容: ◉  資料區塊序號; ◉  前一區塊的表頭雜湊值; ◉  資料區塊發布的日期與時間; ◉  借方的ID,即借方的公開金鑰; ◉  貸方的ID,即貸方的公開金鑰; The secondary node 120 will upload the data fragment 141 to the primary node 110 to which it belongs. The first-level node 110 will encapsulate all the received data fragments 141 into data blocks 142 when receiving the synchronization token 150 . The content of the data block 142 can be referred to as shown in FIG. 3A , which is a schematic diagram of the data structure of the data block of the present invention. The data block 142 includes header information and watch body information. The header information includes at least the following fields and contents: ◉ Data block serial number; ◉ The hash value of the header of the previous block; ◉ Date and time of the release of the data block; ◉ The ID of the borrower, the public key of the borrower; ◉ ID of the lender, which is the public key of the lender;

而表身資訊係為會計分錄的交易內容: ◉  傳票; ◉  交易日期; ◉  借方會計科目; ◉  借方金額; ◉  對借方會計科目之備註; ◉  貸方會計科目; ◉  貸方金額; ◉  對貸方會計科目之備註; ◉  與此一會計分錄相關佐證資料文件名做成一個連結串列(Linked List); ◉  所有佐證資料將形成一株雜湊樹(Merkle Tree),然後對其根製作雜湊值並放置於表身 ◉  數位簽章。 The body information is the transaction content of the accounting entry: ◉ Subpoena; ◉ Transaction date; ◉ Debit accounting subject; ◉ Debit amount; ◉ Remarks to the debit account; ◉ Credit accounting subjects; ◉ Credit amount; ◉ Remarks to the credit account; ◉ Make a Linked List with the file name of the supporting data related to this accounting entry; ◉ All supporting data will form a Merkle Tree, and then make a hash value for its root and place it on the watch body ◉ Digital signature.

並請配合圖3B與圖3C所示,本發明的資料區塊可包含多個會計分錄,並且根據會計分錄產生相應的雜湊值。圖3B中為各資料區塊透過區塊的雜湊值的串列示意圖。圖3B中箭頭所指處係表示該資料區塊的表頭資訊所生成的雜湊值為次一資料區塊所記錄的前一區塊雜湊值。本發明藉由多組會計分錄產生如圖3B的多階雜湊樹狀結構。在每一階層中,以兩節點內容進行雜湊計算並得到兩節點的雜湊值。在圖3C最底下的就是該資料區塊中的所有的會計分錄。其中,圖3C中的雜湊樹為完全二元樹(Full Binary Tree),並雜湊樹具有k個節點,且樹高為h,其中

Figure 02_image001
。 Please cooperate with FIG. 3B and FIG. 3C , the data block of the present invention may include a plurality of accounting entries, and corresponding hash values are generated according to the accounting entries. FIG. 3B is a schematic diagram showing a series of hash values of each data block through the block. The arrow in FIG. 3B indicates that the hash value generated by the header information of the data block is the hash value of the previous block recorded in the next data block. The present invention generates a multi-level hash tree structure as shown in FIG. 3B by using multiple sets of accounting entries. In each level, hash calculation is performed with the contents of the two nodes and the hash value of the two nodes is obtained. At the bottom of Figure 3C are all the accounting entries in the data block. Among them, the hash tree in Figure 3C is a full binary tree (Full Binary Tree), and the hash tree has k nodes, and the tree height is h, where
Figure 02_image001
.

在本發明中,主要節點411會以次一目的地的一級節點110的公開金鑰對同步令牌150進行加密,藉以確保收到同步令牌150的一級節點110的身份。當新的主要節點411接獲同步令牌150,主要節點411會從其他次要節點412中選擇出至少一個節點。在圖4中,將主要節點411以粗黑長虛線框做為示意,而選出的次要節點412以粗黑虛短線框做為示意,被選出的驗證節點421則以細黑虛線框為示意。在圖4中僅是表示所選擇的主要節點411與其他節點,但並非侷限於此一數量。In the present invention, the primary node 411 encrypts the synchronization token 150 with the public key of the primary node 110 of the next destination, so as to ensure the identity of the primary node 110 that receives the synchronization token 150 . When the new primary node 411 receives the synchronization token 150 , the primary node 411 selects at least one node from the other secondary nodes 412 . In FIG. 4 , the main node 411 is represented by a thick black dashed box, the selected secondary node 412 is represented by a thick black dashed short line, and the selected verification node 421 is represented by a thin black dashed box . In FIG. 4 , only the selected main node 411 and other nodes are shown, but not limited to this number.

主要節點411將資料區塊142發送至所選的次要節點412。次要節點412的選擇數量可以是一個或是全部節點。在本發明的圖5A中係以全部次要節點412為例。次要節點412接獲資料區塊142後,次要節點412會選擇出若干個驗證節點421並做為資料區塊142驗證之用。本發明的次要節點412根據一定門檻比例從所連接的二級節點120中選出驗證節點421。The primary node 411 sends the data block 142 to the selected secondary node 412 . The selected number of secondary nodes 412 may be one or all nodes. In FIG. 5A of the present invention, all secondary nodes 412 are taken as an example. After the secondary node 412 receives the data block 142 , the secondary node 412 selects a number of verification nodes 421 for verification of the data block 142 . The secondary node 412 of the present invention selects the verification node 421 from the connected secondary nodes 120 according to a certain threshold ratio.

門檻比例可以根據主要節點411的數量或由各次要節點412所連接的二級節點120的數量所決定。舉例來說,若一級節點110的數量為m個,則次要節點412可以選出m個二級節點120並視為驗證節點421。亦或者二級節點120的數量每超過一定級距時,則次要節點412則增加固定數量的驗證節點421。各次要節點412決定驗證節點421的數量後,次要節點412會將驗證節點421的數量回傳至主要節點411。本發明中驗證節點421的數量不大於一級節點110的總數量。The threshold ratio may be determined according to the number of primary nodes 411 or by the number of secondary nodes 120 to which each secondary node 412 is connected. For example, if the number of primary nodes 110 is m, the secondary node 412 can select m secondary nodes 120 and regard it as the verification node 421 . Alternatively, every time the number of secondary nodes 120 exceeds a certain level distance, the secondary node 412 increases by a fixed number of verification nodes 421 . After each secondary node 412 determines the number of verification nodes 421 , the secondary node 412 sends back the number of verification nodes 421 to the primary node 411 . In the present invention, the number of verification nodes 421 is not greater than the total number of primary nodes 110 .

每一個驗證節點421將會對資料區塊142進行檢驗,並產生驗證結果143,圖5B。驗證結果143將會被發送至主要節點411。主要節點411根據各次要節點412所回報的驗證節點421數量與驗證結果143的數量進行比對與統計。本發明的主要節點411會判斷所回傳的驗證結果143的數量是否與驗證節點421是否一致。請配合圖6所示,其係為本發明的檢驗驗證結果的流程示意圖。 步驟S610:由主要節點判斷驗證結果的數量是否大於第一驗證門檻; 步驟S620:若驗證結果的數量小於第一驗證門檻,則主要節點要求次要節點重新檢驗資料區塊; 步驟S630:若驗證結果的數量大於或等於第一驗證門檻,則主要節點統計相同內容的驗證結果的數量是否大於第二驗證門檻; 步驟S640:若驗證結果的相同數量大於或等於第二驗證門檻,則主要節點對資料區塊進行簽章;以及 步驟S650:若驗證結果的相同數量小於第二驗證門檻,則主要節點不對資料區塊進行簽章。 Each verification node 421 will verify the data block 142 and generate a verification result 143, Figure 5B. The verification result 143 will be sent to the primary node 411 . The primary node 411 compares and counts the number of verification nodes 421 reported by each secondary node 412 with the number of verification results 143 . The main node 411 of the present invention determines whether the number of the returned verification results 143 is consistent with the verification node 421 . Please cooperate with FIG. 6 , which is a schematic flowchart of the inspection and verification results of the present invention. Step S610: the main node determines whether the number of verification results is greater than the first verification threshold; Step S620: if the number of verification results is less than the first verification threshold, the primary node requests the secondary node to re-verify the data block; Step S630: if the number of verification results is greater than or equal to the first verification threshold, the main node counts whether the number of verification results of the same content is greater than the second verification threshold; Step S640: If the same number of verification results is greater than or equal to the second verification threshold, the primary node signs the data block; and Step S650: If the same number of verification results is less than the second verification threshold, the main node does not sign the data block.

若驗證結果143數量與驗證節點421數量不一致時,主要節點411會進一步判斷驗證結果143的數量是否大於第一驗證門檻。若是驗證結果143的數量小於第一驗證門檻,則主要節點411會重新發出資料區塊142至次要節點412並重新取得新的驗證結果143。If the number of verification results 143 is inconsistent with the number of verification nodes 421, the main node 411 will further determine whether the number of verification results 143 is greater than the first verification threshold. If the number of verification results 143 is less than the first verification threshold, the primary node 411 will resend the data block 142 to the secondary node 412 and obtain a new verification result 143 again.

若驗證結果143的數量大於第一驗證門檻,主要節點411會統計驗證結果143的內容數量。主要節點411會統計相同內容的驗證結果143,並判斷累積數量是否大於第二驗證門檻。一般而言,第二驗證門檻至少設定為所有驗證節點421的一半。If the number of verification results 143 is greater than the first verification threshold, the main node 411 will count the number of contents of the verification results 143 . The main node 411 will count the verification results 143 of the same content, and determine whether the accumulated number is greater than the second verification threshold. Generally speaking, the second verification threshold is set to at least half of all verification nodes 421 .

當相同內容的驗證結果143的數量大於第二驗證門檻,則主要節點411確認該筆資料區塊142為合法。主要節點411將會以自身的私密金鑰對合法的資料區塊142進行簽章,並將簽章後的資料區塊142定義為結果區塊144。主要節點411將結果區塊144附加會計區塊鏈160之後,如圖7所示。主要節點411完成新的結果區塊144的附加後,主要節點411會向其他次要節點412廣播並更新會計區塊鏈160。When the number of verification results 143 of the same content is greater than the second verification threshold, the main node 411 confirms that the data block 142 is valid. The main node 411 will sign the legal data block 142 with its own private key, and define the signed data block 142 as the result block 144 . The primary node 411 appends the result block 144 to the accounting block chain 160, as shown in FIG. 7 . After the primary node 411 completes the appending of the new result block 144 , the primary node 411 broadcasts and updates the accounting blockchain 160 to the other secondary nodes 412 .

本發明的會計記錄的區塊鏈公共帳本化處理系統與方法可以透過去中心化與分散式公開記錄帳簿的特性,使得網路上的每一個節點都可以取得會計資料並驗證會計資訊的正確性。本發明的區塊鏈會計記錄系統透過分層式的資料傳輸與隨機指名驗證的多數決機制,除了可以提高會計資料檢驗的速度,並且確保資料檢驗的可靠性。The blockchain public account book processing system and method for accounting records of the present invention can enable every node on the network to obtain accounting data and verify the correctness of accounting information through the characteristics of decentralization and distributed public record books. . The blockchain accounting record system of the present invention can not only improve the speed of accounting data inspection, but also ensure the reliability of data inspection through the hierarchical data transmission and random designation and verification of the majority decision mechanism.

惟,以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above descriptions are only preferred embodiments of the present invention, and should not limit the scope of the present invention, that is, simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the contents of the description of the invention. , all still fall within the scope covered by the patent of the present invention.

110:一級節點 111:第一網路模塊 112:第一加解密模塊 113:第一驗證模塊 114:帳戶管理模塊 115:目錄管理模塊 116:儲存模塊 120:二級節點 121:第二網路模塊 122:資料生成模塊 123:第二加解密模塊 124:第二驗證模塊 141:資料分片 142:資料區塊 143:驗證結果 144:結果區塊 150:同步令牌 160:會計區塊鏈 411:主要節點 412:次要節點 421:驗證節點 S210~S300:步驟110: Level 1 Node 111: The first network module 112: The first encryption and decryption module 113: The first verification module 114: Account Management Module 115: Directory Management Module 116: Storage Module 120: secondary node 121: Second network module 122: Data generation module 123: Second encryption and decryption module 124: Second verification module 141:Data fragmentation 142:Data block 143: Verification result 144: result block 150:Sync token 160: Accounting Blockchain 411: Main Node 412: Minor Node 421: Verification Node S210~S300: Steps

圖1A係為本發明的會計記錄的區塊鏈公共帳本化處理系統架構圖。 圖1B係為本發明的各級節點的網路連接示意圖。 圖2係為本發明的會計記錄的區塊鏈公共帳本化處理方法。 圖3A係為本發明的資料區塊的資料結構示意圖。 圖3B係為本發明的資料區塊與雜湊值之關連示意圖。 圖3C係為本發明的各會計分錄與雜湊樹的生成關係示意圖。 圖4係為本發明的主要節點與次要節點的架構示意圖。 圖5A係為本發明的主要節點與資料區塊的發送示意圖。 圖5B係為本發明的次要節點與驗證結果的回覆的示意圖。 圖6係為本發明的檢驗驗證結果的流程示意圖。 圖7係為本發明的會計區塊鏈與新增結果區塊的示意圖。 FIG. 1A is an architectural diagram of a blockchain public ledger processing system for accounting records according to the present invention. FIG. 1B is a schematic diagram of network connections of nodes at all levels of the present invention. FIG. 2 is a block chain public book processing method for accounting records of the present invention. FIG. 3A is a schematic diagram of a data structure of a data block of the present invention. FIG. 3B is a schematic diagram showing the relationship between the data block and the hash value of the present invention. FIG. 3C is a schematic diagram of the generation relationship between each accounting entry and the hash tree according to the present invention. FIG. 4 is a schematic structural diagram of a primary node and a secondary node of the present invention. FIG. 5A is a schematic diagram of the transmission of main nodes and data blocks according to the present invention. FIG. 5B is a schematic diagram of the secondary node and the reply of the verification result of the present invention. FIG. 6 is a schematic flowchart of the inspection and verification results of the present invention. FIG. 7 is a schematic diagram of the accounting block chain and the newly added result block of the present invention.

S210~S300:步驟 S210~S300: Steps

Claims (3)

一種會計記錄的區塊鏈公共帳本化處理方法,其特徵在於利用階層結構網路用於驗證會計資料並將驗證結果同步至區塊鏈中,該會計記錄的區塊鏈公共帳本化處理方法包括: 將多個一級節點網路串接並建立一環狀網路,該些一級節點傳輸一同步令牌,將取得該同步令牌的該一級節點定義為一主要節點,其餘該些一級節點定義為一次要節點; 每一該一級節點網路連接至少一個二級節點; 該二級節點完成一交易處理後,該二級節點上傳一資料分片至所連接的該一級節點; 當該一級節點接獲該同步令牌時,該主要節點將所收集的該些資料分片封裝為一資料區塊; 該主要節點隨機選擇至少一個該次要節點; 由所選的該些次要節點隨機選擇至少一該二級節點,並定義所選出的該二級節點為一驗證節點; 該主要節點將該資料區塊發送至該些驗證節點; 由該些驗證節點檢驗該資料區塊,並產生一驗證結果; 該些驗證節點將該驗證結果回傳至該主要節點; 該主要節點以一私密金鑰對該資料區塊進行簽章並產生一結果區塊;以及 該主要節點將該結果區塊附加(append)一會計區塊鏈之後;其中 該主要節點收集該些驗證結果後包括: 由該主要節點判斷該些驗證結果的數量是否大於一第一驗證門檻; 若該些驗證結果的數量小於該第一驗證門檻,則該主要節點要求該些次要節點重新檢驗該資料區塊; 若該些驗證結果的數量大於或等於該第一驗證門檻,則該主要節點統計相同內容的該些驗證結果的數量是否大於一第二驗證門檻; 若該些驗證結果的相同數量大於該第二驗證門檻,則該主要節點對該資料區塊進行簽章;以及 若該些驗證結果的相同數量小於該第二驗證門檻,則該主要節點不對該資料區塊進行簽章。 A blockchain public ledger processing method for accounting records, which is characterized in that a hierarchical network is used for verifying accounting data and synchronizing the verification results to the blockchain, and the blockchain public ledger processing of the accounting records Methods include: A plurality of first-level node networks are connected in series to establish a ring network, these first-level nodes transmit a synchronization token, the first-level node that obtains the synchronization token is defined as a main node, and the other first-level nodes are defined as primary node; Each of the primary node network connects at least one secondary node; After the secondary node completes a transaction processing, the secondary node uploads a data fragment to the connected primary node; When the primary node receives the synchronization token, the primary node encapsulates the collected data fragments into a data block; the primary node randomly selects at least one of the secondary nodes; randomly select at least one of the secondary nodes from the selected secondary nodes, and define the selected secondary node as a verification node; the primary node sends the data block to the validating nodes; verifying the data block by the verification nodes, and generating a verification result; The verification nodes return the verification result to the primary node; The primary node signs the data block with a private key and produces a result block; and The primary node appends the resulting block to an accounting blockchain; wherein After the main node collects the verification results, it includes: Judging by the main node whether the number of the verification results is greater than a first verification threshold; If the number of the verification results is less than the first verification threshold, the primary node requests the secondary nodes to re-verify the data block; If the number of the verification results is greater than or equal to the first verification threshold, the main node counts whether the number of the verification results of the same content is greater than a second verification threshold; If the same number of verification results is greater than the second verification threshold, the primary node signs the data block; and If the same number of verification results is less than the second verification threshold, the primary node does not sign the data block. 如請求項1所述之會計記錄的區塊鏈公共帳本化處理方法,其中該二級節點完成該交易處理後,該二級節點向所有該些一級節點廣播一交易通知並上傳該資料分片至該一級節點。The blockchain public ledger processing method for accounting records as described in claim 1, wherein after the second-level node completes the transaction processing, the second-level node broadcasts a transaction notification to all the first-level nodes and uploads the data slice to the first-level node. 如請求項1所述之會計記錄的區塊鏈公共帳本化處理方法,其中該主要節點完成該結果區塊的附加處理後,該主要節點將該同步令牌發送至次一該一級節點。The method for processing accounting records in a blockchain public ledger according to claim 1, wherein after the main node completes the additional processing of the result block, the main node sends the synchronization token to the next-level node.
TW110113713A 2020-10-23 2020-10-23 A method for processing accounting records in accounting public ledger using blockchain TWI759171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110113713A TWI759171B (en) 2020-10-23 2020-10-23 A method for processing accounting records in accounting public ledger using blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110113713A TWI759171B (en) 2020-10-23 2020-10-23 A method for processing accounting records in accounting public ledger using blockchain

Publications (2)

Publication Number Publication Date
TWI759171B true TWI759171B (en) 2022-03-21
TW202218394A TW202218394A (en) 2022-05-01

Family

ID=81710878

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110113713A TWI759171B (en) 2020-10-23 2020-10-23 A method for processing accounting records in accounting public ledger using blockchain

Country Status (1)

Country Link
TW (1) TWI759171B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3405862A1 (en) * 2016-01-19 2018-11-28 Priv8Pay, Inc. Network node authentication

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3405862A1 (en) * 2016-01-19 2018-11-28 Priv8Pay, Inc. Network node authentication

Also Published As

Publication number Publication date
TW202218394A (en) 2022-05-01

Similar Documents

Publication Publication Date Title
US20240005304A1 (en) Computer-implemented methods and systems for validating tokens for blockchain-based cryptocurrencies
CN108833081B (en) Block chain-based equipment networking authentication method
CN108924092B (en) Public arbitration distributed cloud storage method and system based on block chain
Lemieux Evaluating the use of blockchain in land transactions: An archival science perspective
US11159537B2 (en) Multicomputer processing for data authentication and event execution using a blockchain approach
US11238549B2 (en) Blockchain-based judgment execution
CN109102269B (en) Transfer method and device based on block chain, block chain node and storage medium
EP3413251B1 (en) Method and server for providing notary service for file and verifying file recorded by notary service
US11676117B2 (en) Blockchain compliance verification network
US11120517B2 (en) Blockchain-based dispute resolution
CN109636569B (en) Credit investigation data management method and system based on block chain
CN112801778B (en) Alliance type bad asset block chain system
Agbesi et al. Electronic voting recording system based on blockchain technology
US11599858B2 (en) Blockchain settlement network
CN113438084A (en) Green power source tracing method and system based on R-PBFT consensus algorithm and timestamp
CN114020839B (en) Academic achievement publishing and right authentication system and method based on block chain
CN113302610B (en) Trusted platform based on blockchain
CN114900290A (en) Data transaction model and privacy protection method based on block chain
CN115380303A (en) Trusted platform based on block chain
CN114913013A (en) House renting transaction system and house renting transaction method based on block chain
CN111444261A (en) Enterprise data sharing model based on block chain
CN113302612B (en) Computer implementation method, system and device for cross-chain and cross-network data transmission
JP2023530594A (en) Permitted Event Processing in Distributed Databases
CN113597608A (en) Trusted platform based on block chain
TWI759171B (en) A method for processing accounting records in accounting public ledger using blockchain