[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

TW201801009A - Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery - Google Patents

Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery Download PDF

Info

Publication number
TW201801009A
TW201801009A TW105120856A TW105120856A TW201801009A TW 201801009 A TW201801009 A TW 201801009A TW 105120856 A TW105120856 A TW 105120856A TW 105120856 A TW105120856 A TW 105120856A TW 201801009 A TW201801009 A TW 201801009A
Authority
TW
Taiwan
Prior art keywords
block
electronic invoice
electronic
invoices
hash value
Prior art date
Application number
TW105120856A
Other languages
Chinese (zh)
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 TW105120856A priority Critical patent/TW201801009A/en
Publication of TW201801009A publication Critical patent/TW201801009A/en

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

A method for storing electronic invoices by using a blockchain, comprising the steps of: generating a block; storing one or a plurality of electronic invoices in the block, and generating a corresponding electronic invoice hash value based on the content of each electronic invoice; chain-linking each electronic invoice with zero or one or more other related electronic invoices based on the corresponding electronic invoice hash value; generating a corresponding block hash value based on the content of the block when the block is full with these electronic invoices, and recording a current time stamp showing the time when the block is concurrently established in order to complete the establishment of the block; and string-linking the block with the adjacent previous block according to the hash value of the previous block that is adjacent to the block in order to establish the described blockchain; thereby ensuring the information of each block or each electronic invoice not to be tampered and improving the security of electronic invoices.

Description

利用區塊鏈存放電子發票之方法Method for storing electronic invoices using blockchain

本創作係有關一種存放電子發票之方法,尤指一種利用區塊鏈存放電子發票之方法。This creation is about a method for storing electronic invoices, especially a method for storing electronic invoices using blockchain.

基於節省成本和節能減碳環保的考量,以電子發票(e-invoice)取代傳統紙本發票的方案已成為政府與業者甚至全民重視的議題。更深層的影響涉及諸多方面,例如,對業者來說,使用電子發票不僅可以節省開立、郵寄或遞送發票之各項作業成本與時程,也可加速其對帳及請款的效率。對政府而言,透過電子發票的整合服務平台,可提供更多元的稅務服務以及執行更縝密的查核稅捐作業與對市場上通路商品更嚴格的監控。對民眾來說,除了可降低紙本發票蒐集、整理的不便性以及遺失、損毀的可能性之外,更可保障個人的消費權益,以避免業者發生漏開或誤開發票之情事。Based on the consideration of cost saving, energy saving, carbon reduction and environmental protection, the proposal of replacing traditional paper invoices with electronic invoices (e-invoice) has become a topic that governments, industry and even the whole people pay attention to. The deeper impact involves many aspects. For example, for the operators, the use of electronic invoices can not only save the costs and schedules of issuing, mailing or delivering invoices, but also speed up the efficiency of reconciliation and payment. For the government, through the integrated service platform of electronic invoicing, it can provide more tax services, perform more rigorous tax checking operations and stricter monitoring of goods on the market. For the public, in addition to reducing the inconvenience of collecting and sorting paper invoices and the possibility of loss and damage, it can also protect individual consumer rights and interests, so as to avoid accidents of false or invoicing by the industry.

雖然電子發票存在著諸多的優勢,然而,電子發票技術所面臨到安全性(security)的考驗,確實是電子發票推動的主要障礙與瓶頸。具體言之,若電子發票在傳送或發布的過程中發生安全漏洞,例如電子發票發生偽造、竄改、冒名傳送或重送等情事,將對使用電子發票的相關單位造成嚴重的影響。此外,對食品安全或產品品質的追蹤與追溯而言,當發生食品安全問題或產品品質問題時,現行不論紙本或電子發票皆有不易追溯其上、下游相關廠商之問題。因此,如何改善甚至解決電子發票技術所存在安全性與追溯性的問題,乃為政府機關與相關業者共同推動電子發票,所欲尋求突破的首要關鍵。Although there are many advantages to electronic invoices, the security challenges faced by electronic invoice technology are indeed the main obstacles and bottlenecks in the promotion of electronic invoices. Specifically, if a security breach occurs in the process of transmitting or publishing an electronic invoice, such as forgery, tampering, transmission or retransmission of an electronic invoice, it will have a serious impact on the relevant unit that uses the electronic invoice. In addition, in terms of food safety or product quality tracking and tracing, when food safety problems or product quality problems occur, current paper or electronic invoices have problems that are not easy to trace to upstream and downstream related manufacturers. Therefore, how to improve and even solve the security and traceability problems of electronic invoice technology is the primary key for government agencies and related businesses to jointly promote electronic invoices.

本創作之目的在於提供一種利用區塊鏈存放電子發票之方法,解決電子發票在傳送或發布的過程中發生偽造、竄改、冒名傳送或重送等情事的問題,並提供可溯源性(traceability),可追溯上下游相關電子發票。The purpose of this creation is to provide a method for storing electronic invoices using the blockchain, to solve the problem of forgery, tampering, transmission or retransmission in the process of transmission or release of electronic invoices, and to provide traceability , Can trace upstream and downstream related electronic invoices.

為達成前揭目的,本創作所提出的利用區塊鏈存放電子發票之方法,在一部或多部網路伺服器上執行,所述利用區塊鏈存放電子發票之方法包含產生一區塊;存放一筆或複數筆電子發票在該區塊中,且根據各該電子發票產生對應之一電子發票雜湊值;各該電子發票根據對應之該電子發票雜湊值鏈結至零筆或一筆以上其他相關聯之電子發票;當該區塊存滿該等電子發票,以該區塊內容產生對應之一區塊雜湊值與記錄該區塊建立當時之一時間戳記,以完成建立該區塊;以及該區塊根據相鄰之前一個該區塊雜湊值與相鄰之前一個該區塊相串鏈結,以建立所述區塊鏈。In order to achieve the purpose of the previous disclosure, the method proposed in this creation for storing electronic invoices using a blockchain is implemented on one or more network servers. The method for storing electronic invoices using a blockchain includes generating a block ; Store one or more electronic invoices in this block, and generate a corresponding one of the electronic invoice hash values according to each of the electronic invoices; each of the electronic invoices is linked to zero or more than one other according to the corresponding electronic invoice hash value Associated electronic invoices; when the block is full of such electronic invoices, a corresponding block hash value is generated from the block content and a timestamp is recorded at the time the block was created to complete the creation of the block; and The block is linked in series with the adjacent previous block according to the hash value of the adjacent previous block to establish the block chain.

藉由所提出的利用區塊鏈存放電子發票之方法,確保各該塊區或各該電子發票的資料無法被竄改,提高電子發票之安全性。With the proposed method of using a blockchain to store electronic invoices, it is ensured that the data of each block or each electronic invoice cannot be tampered with, and the security of the electronic invoice is improved.

為了能更進一步瞭解本創作為達成預定目的所採取之技術、手段及功效,請參閱以下有關本創作之詳細說明與附圖,相信本創作之目的、特徵與特點,當可由此得一深入且具體之瞭解,然而所附圖式僅提供參考與說明用,並非用來對本創作加以限制者。In order to better understand the techniques, methods and effects adopted by this creation to achieve the intended purpose, please refer to the following detailed descriptions and drawings of this creation. I believe that the purpose, characteristics and features of this creation can be in-depth and Specific understanding, however, the drawings are provided for reference and explanation only, and are not intended to limit the creation.

茲有關本創作之技術內容及詳細說明,配合圖式說明如下。The technical content and detailed description of this creation are described below in conjunction with the drawings.

如圖1所示,本案所揭露之區塊鏈(Blockchain)的架構係由複數個區塊,亦即N個區塊(區塊1~區塊N)所形成。相鄰的兩區塊,例如區塊1與區塊2、區塊2與區塊3,依此類推,乃至區塊N-1與區塊N係相串鏈結(chaining),形成所述區塊鏈100。至於兩兩區塊之間的鏈結方式,將在文後有更詳細之說明。其中,所述區塊鏈100及其所具有之區塊可建立與存放在一部或多部網路伺服器上,而各該伺服器以網路相連接,所述網路可為私有網路(private network)、公開網路(public network)或混合式網路(hybrid network)等。然,不以上述該等網路型態為限制本創作之實施。As shown in FIG. 1, the architecture of the blockchain disclosed in this case is formed by a plurality of blocks, that is, N blocks (block 1 to block N). Adjacent two blocks, such as block 1 and block 2, block 2 and block 3, and so on, and even block N-1 and block N are chained in series to form the Blockchain 100. As for the linking method between two blocks, it will be explained in more detail later. The blockchain 100 and its blocks can be established and stored on one or more network servers, and each of the servers is connected by a network, and the network can be a private network. Road (private network), public network (public network) or hybrid network (hybrid network). However, the implementation of this creation is not restricted by these types of networks.

如圖2所示,單一區塊的內容,亦即存放於該單一區塊內的內容,以區塊N為例,係包含該區塊N的前一個區塊之一區塊雜湊值(a hashing value of the previous block),亦即該區塊N的前一區塊N-1之一區塊雜湊值、存放在該區塊N內的一筆或複數筆電子發票之紀錄,亦即n筆電子發票之紀錄(電子發票N1~電子發票Nn)、該區塊N完成建立之一時間戳記(time stamp)以及該區塊N之一區塊雜湊值。其中,該區塊N之該區塊雜湊值係由該區塊N的前一區塊N-1之該區塊雜湊值、所述一筆或複數筆電子發票N1~Nn之紀錄以及該區塊完成建立時之該時間戳記透過一安全雜湊演算法(cryptographic hash function)所產生。在本創作中所採用之該安全雜湊演算法並不以SHA-512演算法為限制。再者,所述SHA-512演算法為現有廣泛使用之能夠將資料運算與轉換為一固定長度值的演算法,因此,在此不再贅述該SHA-512演算法之運算與轉換方式。As shown in Figure 2, the content of a single block, that is, the content stored in the single block, taking block N as an example, is a block hash value (a hashing value of the previous block), that is, a block hash value of one previous block N-1 of the block N, a record of one or more electronic invoices stored in the block N, that is, n records Record of electronic invoice (electronic invoice N1 ~ electronic invoice Nn), a time stamp for the completion of the establishment of the block N, and a hash value of a block of the block N. The hash value of the block N is the hash value of the block N-1 before the block N, the record of the one or more electronic invoices N1 ~ Nn, and the block. The timestamp when the establishment is completed is generated by a cryptographic hash function. The security hash algorithm used in this creation is not limited to the SHA-512 algorithm. Furthermore, the SHA-512 algorithm is a widely used algorithm that can calculate and convert data into a fixed-length value. Therefore, the operation and conversion method of the SHA-512 algorithm will not be repeated here.

以該區塊N為當下做為存放電子發票之區塊為例,是以,定義該區塊N為一操作區塊。在本創作中,由於該操作區塊係為該區塊N,因此,該區塊N之前的所有區塊,亦即區塊1~區塊N-1係已完成建立,換言之,所述N-1個區塊的內容將無法再變更。因此,可透過驗證各該區塊相關聯的區塊之區塊雜湊值是否發生變更,即可判斷所述區塊1~區塊N-1的內容是否遭到竄改。Taking the block N as the current block for storing electronic invoices as an example, the block N is defined as an operation block. In this creation, since the operation block is the block N, all blocks before the block N, that is, block 1 to block N-1 have been established, in other words, the N The contents of -1 blocks can no longer be changed. Therefore, by verifying whether the block hash value of each of the blocks associated with the block has changed, it can be determined whether the contents of the blocks 1 to N-1 have been tampered with.

在本創作中,係透過在該區塊N存放區塊N-1之該區塊雜湊值,因此,使得該區塊N-1與該區塊N相互鏈結。同樣地,該區塊2存放區塊1之該區塊雜湊值、該區塊3存放區塊2之該區塊雜湊值,依此類推,乃至該區塊N存放區塊N-1之該區塊雜湊值,如此,透過相鄰兩兩區塊的鏈結,使得區塊1至區塊N相串鏈結,形成所述區塊鏈100。再者,透過鏈結該區塊N的前一個該區塊N-1之該區塊雜湊值,一旦當該區塊鏈100中任一該區塊的資料內容遭到竄改,可立即地、準確地察覺,藉此判斷資料是否完整,以及確保資料之資料完整性(integrity)。In this creation, the hash value of the block N-1 is stored in the block N. Therefore, the block N-1 and the block N are linked to each other. Similarly, the block 2 stores the hash value of the block 1, the block 3 stores the hash value of the block 2, and so on, and the block N stores the block N-1. The hash value of the block. In this way, through the link of two or two adjacent blocks, blocks 1 to N are serially linked to form the block chain 100. Furthermore, by linking the hash value of the block of the block N-1 immediately before the block N, once the data content of any of the blocks in the block chain 100 has been tampered with, it can be immediately, Precise detection to determine whether the data is complete and to ensure the integrity of the data.

存放於該區塊N的該等電子發票N1~Nn不必然存在著相關聯的關係。以上游供應商與下游通路商之商業交易為例,該上游供應商為開立電子發票的單位,而該下游通路商為接收電子發票的單位,該上游供應商開立給該下游通路商的所有電子發票之間可定義互為相關聯的關係。因此,存放於該區塊N的該等電子發票N1~Nn不必然存在著相關聯的關係,係指該等該上游供應商開立給該下游通路商的所有電子發票不必然存放在同一個區塊中,就實際面而言,開立發票的時間差異,也使得該等相關聯的電子發票不必然存放在同一個區塊中。在本實施例中,該等相關聯的電子發票係隨機地依開立,電子發票的時間存放在當下操作中的該區塊中,亦即,可能部分存放在相同的區塊中,亦可能部分分散在不同的區塊中。The electronic invoices N1 ~ Nn stored in the block N do not necessarily have an associated relationship. Taking the commercial transaction between an upstream supplier and a downstream distributor as an example, the upstream supplier is the unit that issues the electronic invoice, and the downstream distributor is the unit that receives the electronic invoice. The upstream supplier issues the All electronic invoices can be defined as related relationships. Therefore, the electronic invoices N1 ~ Nn stored in the block N do not necessarily have an associated relationship, which means that all electronic invoices issued by the upstream supplier to the downstream distributor are not necessarily stored in the same In the block, the actual time difference of issuing invoices also makes these related electronic invoices not necessarily stored in the same block. In this embodiment, the associated electronic invoices are randomly issued, and the time of the electronic invoice is stored in the block in the current operation, that is, it may be partially stored in the same block, or it may be Partly scattered in different blocks.

該區塊N之該時間戳記係為當該區塊N存滿該等電子發票N1~Nn時,亦即,不再接收其他電子發票存入時,定義該區塊N完成建立,並且該區塊N之該時間戳記即為該區塊N完成建立時當下之日期與時間。此外,該時間戳記係透過以毫秒的時間格式進行記錄與儲存,為各式存取端進行轉換其所需的日期時間格式。透過紀錄不同區塊建立時之時間戳記資訊,搭配區塊鏈100之前後區塊時間順序關係,亦即,建立在後的區塊其時間戳記必晚於建立在前的區塊的時間戳記,換言之,建立在後的區塊其時間戳記之毫秒數必大於建立在前的區塊的時間戳記之毫秒數。藉此,可透過判斷不同區塊間之時間戳記的先後資訊,以驗證是否發生任一區塊遭到竄改或發生偽造的狀況,以及驗證該等區塊的建立時間之合理性(rationality)。The timestamp of the block N is defined when the block N is full of the electronic invoices N1 ~ Nn, that is, when other electronic invoices are no longer received, the definition of the block N is completed, and the zone The time stamp of the block N is the current date and time when the block N is completed. In addition, the time stamp is recorded and stored in the time format of milliseconds, which converts the date and time format required by various access terminals. By recording the timestamp information when different blocks are created, and matching the time sequence relationship of the blocks before and after the blockchain 100, that is, the timestamp of the later block must be later than the timestamp of the previous block. In other words, the number of milliseconds of the timestamp of the later block must be greater than the number of milliseconds of the timestamp of the previous block. In this way, by judging the sequence information of time stamps between different blocks, it is possible to verify whether any block has been tampered with or forged, and to verify the rationality of the establishment time of these blocks.

綜上所述,該區塊N之該區塊雜湊值係由該區塊N-1之該區塊雜湊值、所述複數電子發票N1~Nn之紀錄以及該區塊完成建立時之該時間戳記透過該安全雜湊演算法所產生。In summary, the hash value of the block N is the hash value of the block N-1, the records of the multiple electronic invoices N1 ~ Nn, and the time when the block is completed. The stamp is generated by this secure hash algorithm.

如圖3所示,單一電子發票的內容,以圖2之該電子發票N1為例,係包含該電子發票N1的開立單位之一公開金鑰(issuer’s public key)、該電子發票N1的接收單位之一公開金鑰(receiver’s public key)、該電子發票N1之交易內容、與該電子發票N1相關聯之零筆或一筆以上電子發票之電子發票雜湊值、該電子發票N1開立時之一時間戳記(time stamp)以及該電子發票N1之一電子發票雜湊值。其中,該電子發票N1的開立單位之該公開金鑰與該電子發票N1的接收單位之該公開金鑰可使用RSA演算法(Rivest-Shmir-Adleman cryptography)或橢圓曲線演算法(elliptic curve cryptography, ECC)產生,然,不以上述兩種演算法為限制。其中,該電子發票N1之該電子發票雜湊值係由該電子發票N1的開立單位之該公開金鑰、該電子發票N1的接收單位之該公開金鑰、該電子發票N1之交易內容、與該電子發票N1相關聯之該零筆或一筆以上電子發票之電子發票雜湊值以及該電子發票N1開立時之該時間戳記透過一安全雜湊演算法(cryptographic hash function)所產生。As shown in FIG. 3, the content of a single electronic invoice, taking the electronic invoice N1 of FIG. 2 as an example, includes the issuer's public key of one of the issuing units of the electronic invoice N1, and the receipt of the electronic invoice N1. Receiver's public key of one of the units, transaction content of the electronic invoice N1, the hash value of the electronic invoice of zero or more electronic invoices associated with the electronic invoice N1, and one of the time when the electronic invoice N1 was issued A time stamp and a hash value of one of the electronic invoices N1. Among them, the public key of the issuing unit of the electronic invoice N1 and the public key of the receiving unit of the electronic invoice N1 can use RSA algorithm (Rivest-Shmir-Adleman cryptography) or elliptic curve cryptography , ECC), however, it is not limited by the above two algorithms. The hash value of the electronic invoice N1 is the public key of the issuing unit of the electronic invoice N1, the public key of the receiving unit of the electronic invoice N1, the transaction content of the electronic invoice N1, and The electronic invoice hash value of the zero or more electronic invoices associated with the electronic invoice N1 and the timestamp when the electronic invoice N1 is issued are generated by a cryptographic hash function.

在本創作中所採用之該安全雜湊演算法並不以SHA-512演算法為限制。藉此,透過對該電子發票N1的完整資料(包含開立單位之該公開金鑰、該接收單位之該公開金鑰、該電子發票N1之交易內容、與該電子發票N1相關聯之該零筆或一筆以上電子發票之電子發票雜湊值以及該電子發票N1開立時之該時間戳記)進行計算其安全雜湊值。藉此,由於雜湊值的計算特性,一但該電子發票N1的任一資料遭到竄改,可準確地察覺出來該電子發票N1已遭到破壞,以確保該電子發票N1之資料完整性(integrity)。The security hash algorithm used in this creation is not limited to the SHA-512 algorithm. Through this, through the complete information of the electronic invoice N1 (including the public key of the issuing unit, the public key of the receiving unit, the transaction content of the electronic invoice N1, and the zero associated with the electronic invoice N1 The hash value of the electronic invoice of one or more electronic invoices and the timestamp when the electronic invoice N1 was issued) are calculated. As a result, due to the calculation characteristics of the hash value, once any data of the electronic invoice N1 has been tampered with, it can be accurately detected that the electronic invoice N1 has been destroyed to ensure the integrity of the data of the electronic invoice N1 (integrity ).

該電子發票N1的開立單位之該公開金鑰係為開立該電子發票的單位其所提供之公開金鑰。該電子發票N1的接收單位之該公開金鑰係為接收該電子發票N1的單位所提供之公開金鑰。以前述上、下游廠商之商業交易為例,該上游廠商即為開立該電子發票N1的單位,而該下游廠商為接收該電子發票N1的單位。以該電子發票N1之交易內容其相關原物料所開立之相關電子發票可定義為與該電子發票N1互為相關聯之電子發票。The public key of the issuing unit of the electronic invoice N1 is the public key provided by the issuing unit of the electronic invoice. The public key of the receiving unit of the electronic invoice N1 is the public key provided by the unit receiving the electronic invoice N1. Taking the aforementioned business transactions of the upstream and downstream vendors as an example, the upstream vendor is the unit that issues the electronic invoice N1, and the downstream vendor is the unit that receives the electronic invoice N1. A related electronic invoice issued based on the transaction content of the electronic invoice N1 and its related raw materials may be defined as an electronic invoice that is associated with the electronic invoice N1.

配合圖4所示,以該實施例為例,與該電子發票N1相關聯的電子發票包含電子發票X、電子發票Y以及該電子發票Z三筆。其中,各筆電子發票的內容如圖3所示,因此,圖4僅表示各筆電子發票包含其電子發票雜湊值。其中,電子發票雜湊值的產生方式請配合圖3以及相對應之說明書內容,在此不再贅述。因為該電子發票N1相關聯的電子發票有三筆,因此該電子發票N1相關聯電子發票之電子發票雜湊值也就有三個分別對應電子發票X、電子發票Y以及該電子發票Z的電子發票雜湊值。其中,該電子發票N1可使用索引(index)、陣列(array)或屬性值配對組(attribute-value pair)等方式進行存放所述電子發票X、電子發票Y以及該電子發票Z之雜湊值,然,不以上述該等方式為限制。藉此,透過該電子發票N1連結其他相關聯的電子發票之紀錄(例如與該電子之發票交易內容之相關原物料上游供應商與下游通路商之商業交易),如此可以透過搜尋上游供應商與下游通路商之電子發票的雜湊值,達成追蹤上游與下游之雙向溯源(traceability)的需求。With reference to FIG. 4, taking this embodiment as an example, the electronic invoice associated with the electronic invoice N1 includes three electronic invoices X, electronic invoice Y, and the electronic invoice Z. Among them, the contents of each electronic invoice are shown in FIG. 3, so FIG. 4 only shows that each electronic invoice includes its electronic invoice hash value. For the generation method of the electronic invoice hash value, please refer to FIG. 3 and the corresponding content of the description, which will not be repeated here. Because there are three electronic invoices associated with the electronic invoice N1, the electronic invoice hash value associated with the electronic invoice N1 also has three electronic invoice hash values corresponding to the electronic invoice X, the electronic invoice Y, and the electronic invoice Z. . The electronic invoice N1 may store the hash value of the electronic invoice X, the electronic invoice Y, and the electronic invoice Z by using an index, an array, or an attribute-value pair. However, it is not restricted in the above manner. Through this, the electronic invoice N1 is used to link other related electronic invoice records (such as the business transactions between upstream suppliers and downstream distributors of raw materials related to the electronic invoice transaction content). The hash value of electronic invoices from downstream distributors meets the need to track upstream and downstream bidirectional traceability.

該電子發票N1之該時間戳記係為該電子發票N1開立時當下之日期與時間。此外,該時間戳記係透過以毫秒的時間格式進行記錄與儲存,為各式存取端進行轉換其所需的日期時間格式。The time stamp of the electronic invoice N1 is the current date and time when the electronic invoice N1 was issued. In addition, the time stamp is recorded and stored in the time format of milliseconds, which converts the date and time format required by various access terminals.

該電子發票N1之該交易內容包含該電子發票N1的發票號碼、賣方名稱、賣方統編(例如上游廠商的名稱、統編)、買方名稱、買方統編(例如下游廠商的名稱、統編)、交易項目、交易數量、單價、小計、稅金、金額以及備註之相關交易資訊,然,不以上述該等交易資訊為限制,並且,該電子發票之交易內容之各項相關交易資訊可視實際交易需求增減或不填入值。The transaction content of the electronic invoice N1 includes the invoice number of the electronic invoice N1, the seller's name, the seller's code (such as the name of the upstream manufacturer, the code), the buyer's name, and the buyer's code (such as the name of the downstream company, the code) , Transaction items, transaction quantities, unit prices, subtotals, taxes, amounts, and remarks related transaction information, however, it is not limited by the above-mentioned transaction information, and the relevant transaction information of the transaction content of the electronic invoice can be viewed as actual transactions Demand increases or decreases or no value is entered.

綜上所述,該電子發票N1之該電子發票雜湊值係由該電子發票N1的開立單位之該公開金鑰、該電子發票N1的接收單位之該公開金鑰、該電子發票N1之交易內容、與該電子發票N1相關聯之該零筆或一筆以上電子發票之電子發票雜湊值以及該電子發票N1開立時之該時間戳記透過該安全雜湊演算法所產生。In summary, the electronic invoice hash value of the electronic invoice N1 is the transaction of the public key of the issuing unit of the electronic invoice N1, the public key of the receiving unit of the electronic invoice N1, and the transaction of the electronic invoice N1. The content, the electronic invoice hash value of the zero or more electronic invoices associated with the electronic invoice N1, and the timestamp when the electronic invoice N1 was issued are generated through the secure hash algorithm.

如圖5所示,該電子發票N1之紀錄係可選擇是否進一步附加該電子發票N1之一電子發票數位簽章。附加係指該電子發票數位簽章,非存放於該電子發票N1記錄中,亦即非存放於該電子發票N1記錄本體,而是以外部「附帶加上(附加)」的方式,於該電子發票N1開立後,將兩者(即該電子發票N1紀錄本體與該電子發票N1之該電子發票數位簽章)可選擇是否「一併傳送」提供給該電子發票的接收單位,然,不以上述「附加」以及「一併傳送」為限制,即亦可選擇不付加、不一併傳送,例如可採取分離傳送兩者、分兩次傳送等方式。讓該電子發票的接收單位可以進行此電子發票紀錄之驗證,其驗證方式與流程詳述於後文。如圖6所示,其中,該電子發票N1之該電子發票數位簽章係由該電子發票N1紀錄之雜湊值以該電子發票N1的開立單位之一私密金鑰(issuer’s private key)透過「數位簽章產生作業」進行簽署加密所產生。其中,該電子發票數位簽章產生作業可使用RSA演算法或橢圓曲線演算法,然,不以上述兩種演算法為限制。As shown in FIG. 5, the record of the electronic invoice N1 is a choice of whether to further affix an electronic invoice digital signature of one of the electronic invoices N1. Attachment refers to the digital signature of the electronic invoice, which is not stored in the electronic invoice N1 record, that is, not stored in the electronic invoice N1 record itself, but is externally "attached (added)" to the electronic invoice. After the invoice N1 is issued, the two (that is, the electronic invoice N1 record itself and the electronic invoice digital signature of the electronic invoice N1) can choose whether or not to "send the same" to the receiving unit of the electronic invoice. Subject to the above-mentioned "addition" and "combined transmission" as restrictions, you can also choose not to add, and do not transmit at the same time. For example, you can use two methods such as separate transmission and two transmissions. Allow the receiving unit of the electronic invoice to verify the electronic invoice record. The verification method and process will be detailed later. As shown in FIG. 6, the digital signature of the electronic invoice N1 is obtained by hashing the record of the electronic invoice N1 with the issuer's private key of one of the issuing units of the electronic invoice N1. Digital signature generation operation "is generated by signing encryption. Among them, the digital signature generation operation of the electronic invoice can use RSA algorithm or elliptic curve algorithm, however, the above two algorithms are not limited.

請參見圖7所示。該電子發票N1的開立單位開立該電子發票N1(S11),並且將該電子發票N1傳送至該電子發票N1的接收單位(S12),由該電子發票N1的接收單位接收該電子發票N1(S13)。該開立單位透過前述安全雜湊演算法,計算該電子發票N1之一電子發票雜湊值(S14),並且再將該電子發票N1紀錄之雜湊值以該開立單位的私密金鑰,透過「數位簽章產生作業」進行簽署加密,以產生一電子發票數位簽章(S15)。該開立單位將該電子發票數位簽章傳送至該接收單位(S16)。在上述中,不限制該電子發票N1與該電子發票數位簽章為前後傳送至該接收單位,亦即,可利用將該電子發票數位簽章附加至該電子發票N1,同時傳送至該接收單位,換言之,步驟(S12)與步驟(S16)可整合為同一步驟,且在步驟(S15)之後執行。See Figure 7. The issuing unit of the electronic invoice N1 issues the electronic invoice N1 (S11), and transmits the electronic invoice N1 to the receiving unit (S12) of the electronic invoice N1, and the receiving unit of the electronic invoice N1 receives the electronic invoice N1 (S13). The issuing unit calculates a hash value of one of the electronic invoices N1 (S14) through the aforementioned security hash algorithm, and then uses the hash key of the electronic invoice N1 record as the secret key of the issuing unit to pass the "digital "Signature generation operation" performs signature encryption to generate an electronic invoice digital signature (S15). The issuing unit transmits the digital signature of the electronic invoice to the receiving unit (S16). In the above, the electronic invoice N1 and the digital invoice digital signature are not restricted to be transmitted to the receiving unit before and after, that is, the electronic invoice digital signature can be attached to the electronic invoice N1 and transmitted to the receiving unit at the same time. In other words, step (S12) and step (S16) can be integrated into the same step, and executed after step (S15).

當該接收單位接收到該電子發票N1與該電子發票數位簽章(S17)後,若欲確認所接收到的該電子發票N1是否遭到竄改與驗證該電子發票是否確為開立單位所發行開立,可對其進行驗證。該接收單位透過前述安全雜湊演算法,計算該電子發票N1之一電子發票雜湊值H1(S18)。此外,可利用該開立單位所提供的一公開金鑰對該電子發票數位簽章進行解密,以取得一組解密後的電子發票雜湊值H2(S19)。再對該電子發票雜湊值H1與該電子發票雜湊值H2進行驗證比較(S1A),若該電子發票雜湊值H1與該電子發票雜湊值H2相同時,則可確認該電子發票N1未遭到竄改且確認該電子發票確為開立單位所發行開立。反之,若該電子發票雜湊值H1與該電子發票雜湊值H2相異時,則表示該電子發票N1遭到竄改或該電子發票非開立單位所發行開立,以提供該接收單位進行後續之因應措施。藉此,利用數位簽章的計算特性,一旦該電子發票N1的任一資料遭到竄改或該電子發票非開立單位所發行開立,該電子發票數位簽章將因此而改變,如此配合對電子發票雜湊值進行驗證,可達到該電子發票N1之資料完整性(integrity)、鑑定性(authenticity)與不可否認性(non-repudiation)。After the receiving unit receives the electronic invoice N1 and the digital invoice digital signature (S17), if it wants to confirm whether the received electronic invoice N1 has been tampered with and verify that the electronic invoice is actually issued by the issuing unit Issuing, which can be verified. The receiving unit calculates an electronic invoice hash value H1 of the electronic invoice N1 through the aforementioned secure hash algorithm (S18). In addition, the digital signature of the electronic invoice can be decrypted by using a public key provided by the issuing unit to obtain a set of decrypted electronic invoice hash values H2 (S19). Then verify and compare the electronic invoice hash value H1 and the electronic invoice hash value H2 (S1A). If the electronic invoice hash value H1 is the same as the electronic invoice hash value H2, it can be confirmed that the electronic invoice N1 has not been tampered with. And confirm that the electronic invoice is indeed issued by the issuing unit. Conversely, if the hash value H1 of the electronic invoice is different from the hash value H2 of the electronic invoice, it means that the electronic invoice N1 has been tampered with or the electronic invoice was issued by a non-issue unit to provide the receiving unit for subsequent follow-up Response measures. With this, using the calculation characteristics of the digital signature, once any data of the electronic invoice N1 is altered or the electronic invoice is issued by a non-issuer, the digital signature of the electronic invoice will be changed accordingly. The verification of the hash value of the electronic invoice can achieve the integrity, authentication, and non-repudiation of the electronic invoice N1.

針對本創作之區塊與電子發票之定義與說明已於前述說明書內容說明,接著進一步對本創作利用區塊鏈100存放電子發票之方法的步驟,加以說明。請參見圖8,首先,產生一區塊(S10)。其中,定義當下做為存放電子發票之區塊為一操作區塊。該操作區塊係提供存放一筆或複數筆電子發票於其中,並且各該電子發票係根據各該電子發票內容產生對應之一電子發票雜湊值(S20)。舉例來說,在該操作區塊的一電子發票N1產生電子發票N1之電子發票雜湊值、一電子發票N2產生電子發票N2之電子發票雜湊值,依此類推。The definition and description of the block and electronic invoice of this creation have been described in the foregoing description, and then the steps of the method of storing electronic invoices using the blockchain 100 in this creation are further explained. Referring to FIG. 8, first, a block is generated (S10). Among them, the block defined as the current storage of the electronic invoice is an operation block. The operation block is provided for storing one or more electronic invoices therein, and each of the electronic invoices generates a corresponding one of the electronic invoice hash values according to the contents of the electronic invoices (S20). For example, an electronic invoice N1 in the operation block generates an electronic invoice hash value of the electronic invoice N1, an electronic invoice N2 generates an electronic invoice hash value of the electronic invoice N2, and so on.

然後,該電子發票N1可鏈結零筆或一筆以上相關聯之電子發票,其中,係透過在該電子發票N1內存放該零筆或一筆以上相關聯之電子發票的電子發票雜湊值,使得該電子發票N1與該零筆或一筆以上相關聯之電子發票鏈結(S30)。接著,判斷該操作區塊是否存滿該等電子發票(S40)。若該操作區塊尚未存滿該等電子發票,則執行步驟(S20),繼續存放電子發票。反之,若該操作區塊已存滿該等電子發票,該操作區塊則產生一區塊雜湊值與記錄建立區塊當時之時間戳記,以完成建立該區塊(S50)。其中,已完成建立之區塊,係根據其相鄰之前一個區塊雜湊值與相鄰之前一個已完成建立之區塊相串鏈結,以建立區塊鏈(S60)。至於該本創作利用區塊鏈存放電子發票之方法的步驟細節說明,可配合參見圖1至圖7及其對應之說明書內容。Then, the electronic invoice N1 can be linked to zero or more related electronic invoices, and the hash value of the electronic invoice of the zero or more related electronic invoices is stored in the electronic invoice N1, so that the The electronic invoice N1 is linked to the electronic invoice associated with the zero or more (S30). Next, it is determined whether the operation block is full of the electronic invoices (S40). If the operation block has not been filled with such electronic invoices, step (S20) is executed to continue storing the electronic invoices. Conversely, if the operation block is full of these electronic invoices, the operation block generates a hash value of the block and records the time stamp at the time the block was created to complete the block (S50). Among them, the completed block is based on the hash value of a block adjacent to the block adjacent to the block that has been completed to establish a block chain (S60). As for the detailed description of the steps of this method of creating electronic invoices by using blockchain, please refer to Figures 1 to 7 and the corresponding description.

如圖9所示,每一個節點(node)可視為一電子發票之開立單位(例如一上游原物料供應商)、一電子發票之接收單位(例如一下游通路商或消費者)或一驗證者(validator)或觀察者(observer)(例如一國家財政機構或地方財政機構)。為方便說明,假設圖9所示之一第一節點n1、一第二節點n2分別為一第一上游原物料供應商與一第二上游原物料供應商;一第三節點n3為一下游通路商,且為該第一上游原物料供應商與該第二上游原物料供應商的共同銷售對象;一第四節點n4為一國家財政機構,例如財政部。As shown in FIG. 9, each node can be regarded as the issuing unit of an electronic invoice (such as an upstream raw material supplier), the receiving unit of an electronic invoice (such as a downstream distributor or consumer), or a verification A validator or observer (such as a national financial institution or a local financial institution). For convenience of explanation, it is assumed that a first node n1 and a second node n2 shown in FIG. 9 are a first upstream raw material supplier and a second upstream raw material supplier, respectively; a third node n3 is a downstream path And is the common sales target of the first upstream raw material supplier and the second upstream raw material supplier; a fourth node n4 is a national financial institution, such as the Ministry of Finance.

該第一上游原物料供應商(對應該第一節點n1)與該第二上游原物料供應商(對應該第二節點n2)為電子發票的發行者,亦即電子發票的開立單位。以該第一上游原物料供應商為例,該第一上游原物料供應商於網路中發布所開立之電子發票,例如發布該電子發票給該下游通路商(對應該第三節點n3),以及同時發布該電子發票給該國家財政機構(對應該第四節點n4)。其中,該網路可為對等式網路(peer-to-peer network, P2P network)、主從式架構(client-server model)或直接連線之網路架構。並且,可於公開網路架構、私有網路架構或混合式網路架構上運行。然,不以上述該等網路架構為限制本創作之實施。The first upstream raw material supplier (corresponding to the first node n1) and the second upstream raw material supplier (corresponding to the second node n2) are issuers of electronic invoices, that is, the issuing unit of the electronic invoice. Taking the first upstream raw material supplier as an example, the first upstream raw material supplier releases an electronic invoice issued on the network, for example, issues the electronic invoice to the downstream distributor (corresponding to the third node n3) , And simultaneously issue the electronic invoice to the national financial institution (corresponding to the fourth node n4). The network may be a peer-to-peer network (P2P network), a client-server model, or a directly connected network architecture. And, it can run on public network architecture, private network architecture, or hybrid network architecture. However, the above-mentioned network architecture is not used to limit the implementation of this creation.

於本發明中區塊鏈(Blockchain)中所存放的所有區塊資料以及各該區塊內所有的電子發票資料,所有節點皆存有一份,且所有節點皆可存取。如此,該國家財政機構或其他單位可針對所接收到的區塊鏈資料,對其中各該區塊與各該電子發票進行稽查,以進行驗證各該區塊與各該電子發票之合法性與合理性。所有的上游原物料供應商或下游通路商亦皆可針對所接收到的區塊鏈資料,對其中各該區塊與各該電子發票進行確認,以進行驗證各該區塊與各該電子發票之合法性與合理性。其中,驗證方式與內容,可參見前述說明書所記載之內容,在此不再贅述。All nodes stored in the Blockchain in the present invention and all the electronic invoice data in each block, all nodes have a copy, and all nodes can access. In this way, the national financial institution or other unit can audit each of the blocks and each of the electronic invoices against the received blockchain data to verify the legality and validity of each of the blocks and each of the electronic invoices. rationality. All upstream raw material suppliers or downstream distributors can also confirm each of the blocks and each of the electronic invoices for the received blockchain data to verify each of the blocks and each of the electronic invoices. Legality and rationality. For the verification method and content, refer to the content described in the foregoing description, which is not repeated here.

由於所有節點(單位)亦取得並儲存相同的區塊鏈資料。一旦,任一節點(單位)發生失效、無法存取的狀況,則可透過其他儲存該區塊鏈資料的節點(單位)取得相同的區塊鏈資料,以確保區塊鏈資料的高可用性(high availability)。Because all nodes (units) also obtain and store the same blockchain data. Once any node (unit) fails and cannot be accessed, the same blockchain data can be obtained through other nodes (units) that store the blockchain data to ensure high availability of the blockchain data ( high availability).

綜上所述,本創作係具有以下之特徵與優點:In summary, this creative department has the following characteristics and advantages:

1、區塊與相鄰前一區塊之間的鏈結,藉由區塊的時間戳記與區塊的雜湊值,提供區塊之安全保護機制,以確保區塊完全無法被竄改,實現區塊資料之完整性。1. The link between the block and the adjacent previous block provides the block's security protection mechanism by the block's time stamp and the hash value of the block to ensure that the block cannot be tampered with at all, and the block is realized. Block data integrity.

2、藉由電子發票的時間戳記、電子發票的雜湊值以及加密之電子發票數位簽章,提供電子發票之安全保護機制,以確保電子發票完全無法被竄改,實現電子發票資料之完整性、驗證性以及不可否認性。2. With the time stamp of the electronic invoice, the hash value of the electronic invoice, and the digital signature of the encrypted electronic invoice, the electronic invoice security protection mechanism is provided to ensure that the electronic invoice cannot be tampered with at all, and the integrity and verification of the electronic invoice data are achieved. Sex and undeniable.

3、藉由電子發票與相關聯電子發票之間的鏈結,達成追蹤上游與下游之雙向溯源的需求。3. Through the link between the electronic invoice and the related electronic invoice, the need to track the two-way source tracing of upstream and downstream is achieved.

4、所有節點(單位)亦取得並儲存相同的區塊鏈資料,若任一節點發生失效、無法存取的狀況,則可透過其他儲存區塊鏈資料的節點取得相同的區塊鏈資料,以確保區塊鏈資料的高可用性。4. All nodes (units) also obtain and store the same blockchain data. If any node fails and cannot be accessed, the same blockchain data can be obtained through other nodes that store blockchain data. To ensure high availability of blockchain data.

100‧‧‧區塊鏈
n1~n7‧‧‧節點
100‧‧‧ Blockchain
n1 ~ n7‧‧‧node

圖1:為本創作區塊鏈存放電子發票之區塊鏈方塊示意圖。 圖2:為本創作單一區塊的內容之方塊示意圖。 圖3:為本創作單一電子發票的內容之方塊示意圖。 圖4:為本創作電子發票與相關聯電子發票鏈結之方塊示意圖。 圖5:為本創作產生電子發票數位簽章之方法的流程圖。 圖6:為本創作電子發票附加電子發票數位簽章之方塊示意圖。 圖7:為本創作產生電子發票數位簽章與驗證電子發票之操作示意圖。 圖8:為本創作利用區塊鏈存放電子發票之方法的流程圖。 圖9:為本創作區塊鏈於網路中應用之示意圖。Figure 1: A block diagram of a blockchain that stores electronic invoices for the creative blockchain. Figure 2: A block diagram of creating a single block of content. Figure 3: A block diagram of the contents of a single electronic invoice for this creation. Figure 4: A block diagram of the link between the creative electronic invoice and the associated electronic invoice. Figure 5: A flowchart of a method for generating digital signatures for electronic invoices for this creation. Figure 6: A block diagram of the digital signature of an electronic invoice attached to the electronic invoice created. Figure 7: Schematic diagram of digital signature creation and verification of electronic invoices for the creation of this invoice. Figure 8: The flowchart of the method of using the blockchain to store electronic invoices. Figure 9: A schematic diagram of the application of the creative blockchain in the network.

Claims (10)

一種利用區塊鏈存放電子發票之方法,在一部或多部網路伺服器上執行,所述利用區塊鏈存放電子發票之方法包含: 產生一區塊; 存放一筆或複數筆電子發票在該區塊中,且根據各該電子發票內容產生對應之一電子發票雜湊值; 各該電子發票根據對應之該電子發票雜湊值鏈結零筆或一筆以上其他相關聯之電子發票; 當該區塊存滿該等電子發票,以該區塊內容產生對應之一區塊雜湊值與記錄該區塊建立當時之一時間戳記,以完成建立該區塊;及 該區塊根據相鄰之前一個該區塊雜湊值與相鄰之前一個該區塊相串鏈結,以建立所述區塊鏈。A method for storing electronic invoices using a blockchain is executed on one or more network servers. The method for storing electronic invoices using a blockchain includes: generating a block; storing one or more electronic invoices in In this block, a corresponding hash value of an electronic invoice is generated according to the content of each electronic invoice; each electronic invoice is linked to zero or more than one other related electronic invoice according to the corresponding hash value of the electronic invoice; when the area is The block is filled with such electronic invoices, and a corresponding block hash value is generated based on the block content and a time stamp is recorded at the time of the block establishment to complete the establishment of the block; The block hash value is linked in series with the adjacent previous block to establish the block chain. 如申請專利範圍第1項所述利用區塊鏈存放電子發票之方法,其中各該區塊包含相鄰之前一個區塊之該區塊雜湊值、一筆或複數筆電子發票之紀錄、該區塊完成建立時之一時間戳記以及該區塊之該區塊雜湊值,其中該區塊之該區塊雜湊值係由相鄰之前一個區塊之該區塊雜湊值、所述一筆或複數筆電子發票之紀錄以及該區塊完成建立時之該時間戳記透過一安全雜湊演算法進行計算所產生。The method for storing electronic invoices using a blockchain as described in item 1 of the scope of the patent application, wherein each block includes the hash value of the block adjacent to the previous block, the record of one or more electronic invoices, and the block. A timestamp when the establishment is completed and the block hash value of the block, where the block hash value of the block is the hash value of the block from the previous previous block, the one or more electrons The record of the invoice and the timestamp when the block was created are generated by a secure hash algorithm calculation. 如申請專利範圍第1項所述利用區塊鏈存放電子發票之方法,其中各該電子發票之紀錄包含該電子發票的開立單位之一公開金鑰、該電子發票的接收單位之一公開金鑰、與該電子發票相關聯之零筆或一筆以上電子發票之電子發票雜湊值、該電子發票開立時之一時間戳記、該電子發票之交易內容以及該電子發票之該電子發票雜湊值,其中該電子發票之該電子發票雜湊值係由該電子發票的開立單位之該公開金鑰、該電子發票的接收單位之該公開金鑰、與該電子發票相關聯之該零筆或一筆以上電子發票之電子發票雜湊值、該電子發票之交易內容以及該電子發票開立時之該時間戳記透過一安全雜湊演算法進行計算所產生。The method for storing electronic invoices using the blockchain as described in item 1 of the scope of patent application, wherein each record of the electronic invoice contains a public key of one of the issuing units of the electronic invoice and one of the receiving units of the electronic invoice. Key, the electronic invoice hash value of zero or more electronic invoices associated with the electronic invoice, a timestamp when the electronic invoice was issued, the transaction content of the electronic invoice, and the electronic invoice hash value of the electronic invoice, The hash value of the electronic invoice of the electronic invoice is the public key of the issuing unit of the electronic invoice, the public key of the receiving unit of the electronic invoice, the zero or more than one transaction associated with the electronic invoice. The electronic invoice hash value of the electronic invoice, the transaction content of the electronic invoice, and the timestamp when the electronic invoice was issued are generated by a secure hash algorithm calculation. 如申請專利範圍第3項所述利用區塊鏈存放電子發票之方法,其中各該電子發票之紀錄可選擇是否附加一電子發票數位簽章,該電子發票數位簽章係由該電子發票之該電子發票雜湊值以該電子發票的開立單位之一私密金鑰透過一數位簽章產生作業進行簽署加密所產生。As described in item 3 of the scope of the patent application, the method for storing electronic invoices by using the blockchain, wherein each record of the electronic invoice can choose whether or not to attach an electronic invoice digital signature, which is the digital signature of the electronic invoice. The electronic invoice hash value is generated by signing and encrypting the private key of one of the issuing units of the electronic invoice through a digital signature generation operation. 如申請專利範圍第2項所述利用區塊鏈存放電子發票之方法,其中所述相鄰之前一個區塊之該區塊雜湊值係於產生、建立目前區塊時,讀取目前區塊的前一個區塊之該區塊雜湊值;該區塊之該區塊雜湊值係由相鄰之前一個區塊之該區塊雜湊值、所述一筆或複數筆電子發票之紀錄以及該區塊完成建立時之該時間戳記以安全雜湊演算法進行計算所產生。As described in item 2 of the scope of the patent application, the method of storing electronic invoices using the blockchain is used, wherein the hash value of the block adjacent to the previous block is read when the current block is generated and established. The hash value of the block in the previous block; the hash value of the block in the block is completed by the hash value of the block in the previous previous block, the record of the one or more electronic invoices, and the block. The time stamp at the time of establishment is calculated by a secure hash algorithm. 如申請專利範圍第2項所述利用區塊鏈存放電子發票之方法,其中該區塊完成建立時之該時間戳記係為該區塊完成建立時當下之日期與時間,透過以毫秒的時間格式進行記錄與儲存,各式存取端再自行進行轉換其所需的日期格式與時間格式。The method for storing electronic invoices using the blockchain as described in item 2 of the scope of the patent application, wherein the time stamp when the block is completed is the current date and time when the block is created, in millisecond time format Record and store, and various access terminals will convert the required date format and time format by themselves. 如申請專利範圍第3項所述利用區塊鏈存放電子發票之方法,其中該電子發票的開立單位之該公開金鑰係為開立該電子發票的單位其所提供之公開金鑰;該電子發票的接收單位之該公開金鑰係為接收該電子發票的單位所提供之公開金鑰。The method for storing an electronic invoice using a blockchain as described in item 3 of the scope of patent application, wherein the public key of the issuing entity of the electronic invoice is the public key provided by the entity issuing the electronic invoice; The public key of the receiving unit of the electronic invoice is the public key provided by the unit receiving the electronic invoice. 如申請專利範圍第3項所述利用區塊鏈存放電子發票之方法,其中該電子發票相關聯之零筆或一筆以上電子發票係與該電子發票在相同之區塊中,或與該電子發票在不同之區塊中。The method for storing electronic invoices using the blockchain as described in item 3 of the scope of the patent application, wherein zero or more electronic invoices associated with the electronic invoice are in the same block as the electronic invoice or with the electronic invoice In different blocks. 如申請專利範圍第3項所述利用區塊鏈存放電子發票之方法,其中該電子發票開立時之該時間戳記係為該電子發票開立時當下之日期與時間,透過以毫秒的時間格式進行記錄與儲存,各式存取端再自行進行轉換其所需的日期格式與時間格式。The method for storing electronic invoices using the blockchain as described in item 3 of the scope of the patent application, wherein the time stamp when the electronic invoice is issued is the current date and time when the electronic invoice was issued, in millisecond time format Record and store, and various access terminals will convert the required date format and time format by themselves. 如申請專利範圍第3項所述利用區塊鏈存放電子發票之方法,其中該電子發票之交易內容包含電子發票號碼、賣方名稱、賣方統編、買方名稱、買方統編、交易項目、交易數量、單價、小計、稅金、金額以及備註之相關交易資訊,並且該電子發票之交易內容之各項相關交易資訊可視實際交易需求增減或不填入值。The method for storing electronic invoices using the blockchain as described in item 3 of the scope of patent application, wherein the transaction content of the electronic invoice includes the electronic invoice number, the seller's name, the seller's code, the buyer's name, the buyer's code, the transaction item, and the transaction quantity , Unit price, subtotal, tax, amount, and remarks related transaction information, and the relevant transaction information of the transaction content of the electronic invoice may be increased or decreased depending on actual transaction requirements or not filled in value.
TW105120856A 2016-06-30 2016-06-30 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery TW201801009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105120856A TW201801009A (en) 2016-06-30 2016-06-30 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105120856A TW201801009A (en) 2016-06-30 2016-06-30 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery

Publications (1)

Publication Number Publication Date
TW201801009A true TW201801009A (en) 2018-01-01

Family

ID=61725070

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105120856A TW201801009A (en) 2016-06-30 2016-06-30 Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery

Country Status (1)

Country Link
TW (1) TW201801009A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN109255693A (en) * 2018-08-22 2019-01-22 泰康保险集团股份有限公司 Data processing method, device, medium and electronic equipment based on block chain
CN109359485A (en) * 2018-09-18 2019-02-19 深圳壹账通智能科技有限公司 Invoice data shared system and method based on block chain
CN110443660A (en) * 2019-08-15 2019-11-12 上海天地汇供应链科技有限公司 A kind of electronic invoice device, system and implementation method based on block chain
CN111144958A (en) * 2018-11-06 2020-05-12 航天信息股份有限公司 Block chain-based electronic invoice issuing method, device and system
TWI714308B (en) * 2018-12-25 2020-12-21 開曼群島商創新先進技術有限公司 Block chain-based invoice authenticity verification method and device and electronic equipment
TWI716236B (en) * 2019-12-24 2021-01-11 天宿智能科技股份有限公司 Electronic receipt/invoice confirming and escrow system based on blockchain and method thereof
US11049115B2 (en) 2019-07-31 2021-06-29 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
TWI765623B (en) * 2021-03-26 2022-05-21 楊佳霖 Opened automatic-collection reward point method and system thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN109255693A (en) * 2018-08-22 2019-01-22 泰康保险集团股份有限公司 Data processing method, device, medium and electronic equipment based on block chain
CN109359485A (en) * 2018-09-18 2019-02-19 深圳壹账通智能科技有限公司 Invoice data shared system and method based on block chain
CN111144958A (en) * 2018-11-06 2020-05-12 航天信息股份有限公司 Block chain-based electronic invoice issuing method, device and system
TWI714308B (en) * 2018-12-25 2020-12-21 開曼群島商創新先進技術有限公司 Block chain-based invoice authenticity verification method and device and electronic equipment
US11049115B2 (en) 2019-07-31 2021-06-29 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
US11429983B2 (en) 2019-07-31 2022-08-30 Advanced New Technologies Co., Ltd. Blockchain-based bill write-off method, apparatus, electronic device, and storage medium
CN110443660A (en) * 2019-08-15 2019-11-12 上海天地汇供应链科技有限公司 A kind of electronic invoice device, system and implementation method based on block chain
TWI716236B (en) * 2019-12-24 2021-01-11 天宿智能科技股份有限公司 Electronic receipt/invoice confirming and escrow system based on blockchain and method thereof
TWI765623B (en) * 2021-03-26 2022-05-21 楊佳霖 Opened automatic-collection reward point method and system thereof

Similar Documents

Publication Publication Date Title
TW201801009A (en) Method for storing electronic invoices by using blockchain improving the security of the electronic invoices and avoiding forgery, tampering, impersonation and double delivery
US12079200B2 (en) Method and system for audit and payment clearing of electronic trading systems using blockchain database
WO2020211462A1 (en) Blockchain-based service data chaining method and system
US11307775B2 (en) Distributed storage of custom clearance data
CN111989707B (en) Managing user rights for blockchain-based customs clearance services
CN111989663B (en) Intelligent contract pool based on block chain
CN111868725B (en) Processing import customs clearance data based on blockchain
US20180189753A1 (en) Infrastructure for obligation management and validation
TW202009842A (en) Method, apparatus and electronic device for blockchain transactions
US11418511B2 (en) User management of blockchain-based custom clearance service platform
US11449911B2 (en) Blockchain-based document registration for custom clearance
EP3844942B1 (en) Blockchain-based message services for time-sensitive events
CN111417945A (en) Credible insurance letter based on block chain
CN113919938A (en) Domestic buyer's warranty financing method, device, equipment and medium based on block chain
EP3841550B1 (en) Storage management based on message feedback
CN115456613A (en) Digital collection transaction method and equipment
CN112669153A (en) Supply chain financial accounts receivable management method and device based on block chain
WO2020228562A1 (en) Method, apparatus and device for processing data
Bitcoin BlockChain Technology
CN113762955B (en) Transaction processing method, device, equipment and machine-readable medium
Gans The Value of Blockchain Consensus
TW202133078A (en) Group-Buying Platform System and Implementation Method Thereof Based on Blockchain Network
KR100715556B1 (en) Trusted Transaction Certification Framework on Internet based E-Commerce Environment and the method thereof