TW201807633A - Fast blockchain transaction method capable of instantly completing a transaction corresponding to target transaction data and meeting safety requirement - Google Patents
Fast blockchain transaction method capable of instantly completing a transaction corresponding to target transaction data and meeting safety requirement Download PDFInfo
- Publication number
- TW201807633A TW201807633A TW105127192A TW105127192A TW201807633A TW 201807633 A TW201807633 A TW 201807633A TW 105127192 A TW105127192 A TW 105127192A TW 105127192 A TW105127192 A TW 105127192A TW 201807633 A TW201807633 A TW 201807633A
- Authority
- TW
- Taiwan
- Prior art keywords
- computer system
- transaction
- transaction data
- contract
- block
- Prior art date
Links
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Description
本發明是有關於一種區塊鏈交易方法,特別是指一種能快速執行交易的區塊鏈交易方法。The invention relates to a blockchain transaction method, in particular to a blockchain transaction method capable of quickly performing transactions.
在現有的區塊鏈交易方法中,區塊鏈系統(blockchain system)會根據一區塊所包含的所有交易產生一散列值(hash value),也就是梅克爾樹根(Merkle tree root);而透過各個區塊的包含一散列值的區塊標頭(block header)的鏈結,能將各個區塊串聯起來。In the existing blockchain transaction methods, the blockchain system will generate a hash value, which is the Merkle tree root, according to all transactions contained in a block; Each block can be connected in series through a link including a block header of a hash value.
為了提高該散列值的安全性,通常需要利用多個交易來產生該散列值。所以,一般來說,一個新的交易產生之後會先被該區塊鏈系統加入一區塊,待該區塊包含了多個交易之後,該區塊鏈系統才會將該區塊加入當前的區塊鏈而完成該區塊中的每一交易。因此,就現有的區塊鏈交易方法來說,一個新的交易產生之後,並不會立即被執行,交易執行的即時性不足。In order to improve the security of the hash value, it is usually necessary to use multiple transactions to generate the hash value. So, in general, a new transaction will be added to the block by the blockchain system after it is generated. After the block contains multiple transactions, the blockchain system will add the block to the current one. The blockchain completes every transaction in that block. Therefore, as far as the existing blockchain transaction methods are concerned, after a new transaction is generated, it will not be executed immediately, and the instantaneity of transaction execution is insufficient.
因此,本發明之目的,即在提供一種能達成即時交易的快速區塊鏈交易方法。Therefore, an object of the present invention is to provide a fast blockchain transaction method capable of achieving instant transactions.
於是,本發明快速區塊鏈交易方法,用於進行一交易並至少由一第一電腦系統實施。該交易對應一目標交易資料。該快速區塊鏈交易方法包含一步驟(a)、一步驟(b),及一步驟(c)。Therefore, the fast blockchain transaction method of the present invention is used to conduct a transaction and is implemented by at least a first computer system. The transaction corresponds to a target transaction profile. The fast blockchain transaction method includes a step (a), a step (b), and a step (c).
該步驟(a)是該第一電腦系統產生至少一虛擬交易資料。The step (a) is that the first computer system generates at least one virtual transaction data.
該步驟(b)是該第一電腦系統產生一包含該目標交易資料與該至少一虛擬交易資料的區塊。The step (b) is that the first computer system generates a block including the target transaction data and the at least one virtual transaction data.
該步驟(c)是該第一電腦系統將該區塊加入一區塊鏈。The step (c) is that the first computer system adds the block to a blockchain.
本發明之功效在於:藉由即時地產生該至少一虛擬交易資料及包含該目標交易資料與該至少一虛擬交易資料的區塊,能即時地將該區塊加入區塊鏈,而達成即時的交易。The effect of the present invention is that by generating the at least one virtual transaction data and a block containing the target transaction data and the at least one virtual transaction data in real time, the block can be added to the blockchain in real time to achieve the transaction.
在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are represented by the same numbers.
本發明快速區塊鏈交易方法的一實施方式用於進行一交易,並由一第一電腦系統實施。該交易對應一目標交易資料,且該目標交易資料包含至少一相關於該交易的數位簽章。該第一電腦系統對應一包含一私鑰與一公鑰的公開金鑰對。An embodiment of the fast blockchain transaction method of the present invention is used to conduct a transaction and is implemented by a first computer system. The transaction corresponds to a target transaction data, and the target transaction data includes at least one digital signature related to the transaction. The first computer system corresponds to a public key pair including a private key and a public key.
參閱圖1與圖2,在進行交易的過程中,首先,該第一電腦系統驗證該目標交易資料的該至少一數位簽章的真偽(步驟11)。Referring to FIG. 1 and FIG. 2, in the process of transaction, first, the first computer system verifies the authenticity of the at least one digital signature of the target transaction data (step 11).
接著,若驗證的結果為真,該第一電腦系統產生多個訊息(message),並藉由利用自身對應的私鑰個別地對每一訊息進行數位簽章而產生多個虛擬交易資料(步驟12)。Then, if the result of the verification is true, the first computer system generates a plurality of messages and generates a plurality of virtual transaction data by digitally signing each message individually by using its corresponding private key (step 12).
每一訊息包含一同一的(identical)時間戳,用於記錄該等訊息被產生的時點。除了該時間戳之外,該等訊息的內容並無限制,且可為相同或不同的內容。此外,虛擬交易資料的數量可依據對安全性的需求來訂定,若虛擬交易資料的數量提高,則安全性也相對提高。Each message contains an identical time stamp, which is used to record the time when the messages were generated. Apart from the timestamp, the content of these messages is not limited and can be the same or different content. In addition, the number of virtual transaction data can be determined based on the demand for security. If the number of virtual transaction data increases, the security will be relatively improved.
接著,如圖2所示,該第一電腦系統產生一包含該目標交易資料與該等虛擬交易資料的區塊2(步驟13)。Then, as shown in FIG. 2, the first computer system generates a block 2 including the target transaction data and the virtual transaction data (step 13).
最後,該第一電腦系統將該區塊2加入一區塊鏈(步驟14)。Finally, the first computer system adds the block 2 to a blockchain (step 14).
舉例來說,該交易相關於一電子合約的簽署,該合約對應一第一簽約人與一第二簽約人,且每一簽約人對應一包含一私鑰與一公鑰的公開金鑰對。該目標交易資料包含一第一合約簽章與一第二合約簽章,其中該第一合約簽章是該第一簽約人藉由利用自身所對應的私鑰對該合約進行數位簽章所產生的,且該第二合約簽章是該第二簽約人藉由利用自身所對應的私鑰對該合約進行數位簽章所產生的。For example, the transaction is related to the signing of an electronic contract, the contract corresponds to a first contractor and a second contractor, and each contractor corresponds to a public key pair including a private key and a public key. The target transaction data includes a first contract signature and a second contract signature, wherein the first contract signature is generated by the first signatory by digitally signing the contract with a private key corresponding to the first contract signature And the second contract is signed by the second contractor by digitally signing the contract by using a private key corresponding to the second contractor.
在一實施方式中,可由該第一簽約人與該第二簽約人透過一電子合約平台分別產生該第一合約簽章與該第二合約簽章,之後該第一電腦系統再從該電子合約平台接收該第一合約簽章與該第二合約簽章,並據以產生該目標交易資料。而在另一實施方式中,可由該第一簽約人與該第二簽約人直接在該第一電腦系統上建立該第一合約簽章與該第二合約簽章,接著該第一電腦系統再據以產生該目標交易資料。In an embodiment, the first contract signer and the second contract signer can be generated by the first contractor and the second contractor through an electronic contract platform, respectively, and then the first computer system again obtains the electronic contract from the electronic contract. The platform receives the first contract signature and the second contract signature and generates the target transaction data accordingly. In another embodiment, the first contractor and the second contractor may directly establish the first contract signature and the second contract signature on the first computer system, and then the first computer system may then Based on this, the target transaction information is generated.
在接收到或產生該目標交易資料之後,該第一電腦系統分別利用該第一簽約人所對應的公鑰與該第二簽約人所對應的公鑰對該第一合約簽章與該第二合約簽章進行驗證。當該第一電腦系統驗證出該第一合約簽章為真且該第二合約簽章為真時,該第一電腦系統產生多個虛擬交易資料。After receiving or generating the target transaction information, the first computer system uses the public key corresponding to the first contractor and the public key corresponding to the second contractor to sign the first contract and the second contract, respectively. The contract is signed for verification. When the first computer system verifies that the first contract signature is true and the second contract signature is true, the first computer system generates a plurality of virtual transaction data.
接著,該第一電腦系統產生一包含該目標交易資料與該等虛擬交易資料的區塊,並立即將該區塊加入一區塊鏈而完成該電子合約的簽署。Then, the first computer system generates a block containing the target transaction data and the virtual transaction data, and immediately adds the block to a blockchain to complete the signing of the electronic contract.
參閱圖3,初始地,該區塊鏈4是空的,在加入該區塊之後,該區塊即為該區塊鏈4的第一個區塊41。之後,當該第一電腦系統3再依據前述步驟11至步驟13產生包含另一目標交易資料的第二個區塊42時,該第一電腦系統3根據該第一個區塊41所包含的目標交易資料與虛擬交易資料計算出一對應的梅克爾樹根;接著,該第一電腦系統3使該第二個區塊42的標頭包含該梅克爾樹根,藉此將該第二個區塊42鏈接上該第一個區塊41;之後,下一個區塊再藉由與該第二個區塊42鏈接而加入該區塊鏈4,依此類推。Referring to FIG. 3, initially, the blockchain 4 is empty. After joining the block, the block is the first block 41 of the blockchain 4. After that, when the first computer system 3 generates a second block 42 containing another target transaction data according to the foregoing steps 11 to 13, the first computer system 3 generates a second block 42 according to the first block 41. A corresponding Merkel tree root is calculated from the target transaction data and the virtual transaction data; then, the first computer system 3 causes the header of the second block 42 to include the Merkel tree root, thereby taking the second one Block 42 is linked to the first block 41; after that, the next block is added to the blockchain 4 by linking with the second block 42, and so on.
此外,在另一實施方式中,該第一電腦系統在接收到或產生該目標交易資料之後,可利用自身所對應的私鑰對該目標交易資料與該等虛擬交易資料的集合進行數位簽章而產生一交易簽章,並產生包含該交易簽章的一區塊;如此可對該目標交易資料做進一步的安全保護,使用者需要利用該第一電腦系統所對應的公鑰來驗證該交易簽章之後才能獲取該目標交易資料。In addition, in another embodiment, after receiving or generating the target transaction data, the first computer system can digitally sign the target transaction data and the set of the virtual transaction data by using a private key corresponding to the first computer system. A transaction signature is generated, and a block containing the transaction signature is generated. In this way, the target transaction data can be further protected. The user needs to use the public key corresponding to the first computer system to verify the transaction. The target transaction information can only be obtained after signature.
此外,在另一實施方式中,如圖4所示,該第一電腦系統3還可將所產生的區塊傳送給一第二電腦系統5,以使得該第二電腦系統5儲存有與該第一電腦系統3相同的區塊鏈4。也就是說,除了僅由該第一電腦系統3來組成一區塊鏈系統之外,也可由該第一電腦系統3與該第二電腦系統5共同組成一區塊鏈系統。In addition, in another embodiment, as shown in FIG. 4, the first computer system 3 may also transmit the generated blocks to a second computer system 5, so that the second computer system 5 stores the blocks associated with the second computer system 5. The first computer system 3 is the same as the blockchain 4. In other words, in addition to forming a blockchain system only by the first computer system 3, the first computer system 3 and the second computer system 5 may also constitute a blockchain system together.
綜上所述,本發明快速區塊鏈交易方法,藉由該第一電腦系統在接收到或產生一目標交易資料後,即時地產生多個虛擬交易資料,及一包含該目標交易資料與該等虛擬交易資料的區塊,能即時地將該區塊加入區塊鏈並滿足安全性的需求,也就是即時地完成相關於該目標交易資料的交易並滿足安全性的需求,不需等到該區塊包含了多個真實的交易資料之後才進行交易,故確實能達成本發明的目的。In summary, the rapid blockchain transaction method of the present invention generates a plurality of virtual transaction data in real time after the first computer system receives or generates a target transaction data, and a method including the target transaction data and the Blocks such as virtual transaction data can instantly add the block to the blockchain and meet security requirements, that is, to complete transactions related to the target transaction data in real time and meet security requirements, without waiting for the The block contains multiple real transaction data before being traded, so it can indeed achieve the purpose of cost invention.
惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above are only examples of the present invention. When the scope of implementation of the present invention cannot be limited by this, any simple equivalent changes and modifications made according to the scope of the patent application and the contents of the patent specification of the present invention are still Within the scope of the invention patent.
11~14‧‧‧步驟
2‧‧‧區塊
3‧‧‧第一電腦系統
4‧‧‧區塊鏈
41‧‧‧第一個區塊
42‧‧‧第二個區塊
5‧‧‧第二電腦系統
11 ~ 14‧‧‧step
2‧‧‧ Block
3‧‧‧first computer system
4‧‧‧ Blockchain
41‧‧‧ the first block
42‧‧‧The second block
5‧‧‧Second computer system
本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一流程圖,說明本發明快速區塊鏈交易方法的一實施方式; 圖2是一示意圖,說明一包含一目標交易資料與多個虛擬交易資料的區塊; 圖3是一示意圖,說明一第一電腦系統所包含的一區塊鏈,其中該區塊鏈包含第一個區塊與第二個區塊;及 圖4是一示意圖,說明由該第一電腦系統與一第二電腦系統所組成的一區塊鏈系統,其中該第一電腦系統與該第二電腦系統儲存有二相同的區塊鏈。Other features and effects of the present invention will be clearly presented in the embodiment with reference to the drawings, wherein: FIG. 1 is a flowchart illustrating an embodiment of the fast blockchain transaction method of the present invention; FIG. 2 is a schematic diagram Describe a block containing a target transaction data and multiple virtual transaction data; Figure 3 is a schematic diagram illustrating a blockchain included in a first computer system, where the blockchain includes the first block and The second block; and FIG. 4 is a schematic diagram illustrating a blockchain system composed of the first computer system and a second computer system, where the first computer system and the second computer system store two The same blockchain.
11~14‧‧‧步驟 11 ~ 14‧‧‧step
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105127192A TWI651671B (en) | 2016-08-25 | 2016-08-25 | Fast blockchain trading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105127192A TWI651671B (en) | 2016-08-25 | 2016-08-25 | Fast blockchain trading method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201807633A true TW201807633A (en) | 2018-03-01 |
TWI651671B TWI651671B (en) | 2019-02-21 |
Family
ID=62189701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105127192A TWI651671B (en) | 2016-08-25 | 2016-08-25 | Fast blockchain trading method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI651671B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI828857B (en) * | 2019-02-15 | 2024-01-11 | 瑞士商區塊鏈授權股份有限公司 | Computer-implemented systems and methods for implementing transfers over a blockchain network |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150379510A1 (en) * | 2012-07-10 | 2015-12-31 | Stanley Benjamin Smith | Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain. |
WO2015142765A1 (en) * | 2014-03-17 | 2015-09-24 | Coinbase, Inc | Bitcoin host computer system |
US11270298B2 (en) * | 2014-04-14 | 2022-03-08 | 21, Inc. | Digital currency mining circuitry |
-
2016
- 2016-08-25 TW TW105127192A patent/TWI651671B/en active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI828857B (en) * | 2019-02-15 | 2024-01-11 | 瑞士商區塊鏈授權股份有限公司 | Computer-implemented systems and methods for implementing transfers over a blockchain network |
Also Published As
Publication number | Publication date |
---|---|
TWI651671B (en) | 2019-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7285840B2 (en) | Systems and methods for authenticating off-chain data based on proof verification | |
CN109472696B (en) | Asset transaction method, device, storage medium and computer equipment | |
JP6840264B2 (en) | Field programmable gate array-based reliable execution environment for use within a blockchain network | |
CN112055025B (en) | Privacy data protection method based on block chain | |
CN109889497B (en) | Distrust-removing data integrity verification method | |
CN107342867B (en) | Signature verification method and device | |
CN111163182B (en) | Block chain-based device registration method and apparatus, electronic device, and storage medium | |
CN108848148B (en) | Transaction information confirmation method and device based on block chain | |
JP2021533638A (en) | Node group management device and computing device that make up the double signature transaction structure of the group key infrastructure on the blockchain network | |
CN109936455A (en) | A kind of methods, devices and systems of digital signature | |
CN111125781B (en) | File signature method and device and file signature verification method and device | |
CN112435026B (en) | Method and device for protecting file transaction information by using zero-knowledge proof and electronic equipment | |
CN109245899B (en) | Trust chain design method based on SM9 cryptographic algorithm | |
CN111488372A (en) | Data processing method, device and storage medium | |
KR102303431B1 (en) | Blockchain-based electronic contract management system apparatus that supports electronic contracts between parties and operating method thereof | |
CN113037479B (en) | Data verification method and device | |
CN111737715A (en) | Decentralized electronic contract online signing method and system | |
CN105187218A (en) | Digital record signature method for multicore infrastructure and verification method | |
CN113032837A (en) | Anonymous authentication method and system for open platform | |
CN114785524A (en) | Electronic seal generation method, device, equipment and medium | |
CN115396115A (en) | Block chain data privacy protection method, device, equipment and readable storage medium | |
WO2018105038A1 (en) | Communication device and distributed ledger system | |
WO2022116175A1 (en) | Method and apparatus for generating digital signature and server | |
CN110827034B (en) | Method and apparatus for initiating a blockchain transaction | |
TW201807633A (en) | Fast blockchain transaction method capable of instantly completing a transaction corresponding to target transaction data and meeting safety requirement |