TWI762010B - Method and system for trading of blockchain - Google Patents

Method and system for trading of blockchain Download PDF

Info

Publication number
TWI762010B
TWI762010B TW109137994A TW109137994A TWI762010B TW I762010 B TWI762010 B TW I762010B TW 109137994 A TW109137994 A TW 109137994A TW 109137994 A TW109137994 A TW 109137994A TW I762010 B TWI762010 B TW I762010B
Authority
TW
Taiwan
Prior art keywords
transaction
initiator
blockchain
request
recipient
Prior art date
Application number
TW109137994A
Other languages
Chinese (zh)
Other versions
TW202218376A (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 TW109137994A priority Critical patent/TWI762010B/en
Application granted granted Critical
Publication of TWI762010B publication Critical patent/TWI762010B/en
Publication of TW202218376A publication Critical patent/TW202218376A/en

Links

Images

Abstract

A method for trading of blockchain is provided. The method for trading of blockchain includes generating a trade request. The trade request includes an identify of an initiator of the trade, an identify of a receiver of the trade, an exchange of the trade, time of the trade, and a digital signature of the initiator of the trade. The method further includes transmitting the trade request to the receiver of the trade and verifying the trade request. If a verification is passed, the method signs a digital signature of the receiver of the trade on the trade request. The method further includes transferring the cash from the initiator of the trade to the receiver of the trade. A system for trading of blockchain is also provided. The method and the system are capable of preventing the receiver of the trade from colliding with malicious attack, for example a dust attack, or the like, and preventing admitting of the trade after finishing the trade.

Description

區塊鏈交易方法及區塊鏈交易系統Blockchain transaction method and blockchain transaction system

本發明涉及區塊鏈技術領域,特別涉及一種區塊鏈交易方法及區塊鏈交易系統。The present invention relates to the technical field of blockchain, in particular to a blockchain transaction method and a blockchain transaction system.

目前在進行區塊鏈交易時,交易發起方只要知道交易接收方之位址就可完成交易,無需交易接收方參與。如此,可能會導致交易接收方遭遇粉塵攻擊等惡意攻擊,同時還可能會導致交易發起方及交易接收方交易後不認可所述交易之執行。At present, when conducting blockchain transactions, the transaction initiator can complete the transaction as long as he knows the address of the transaction receiver, without the transaction receiver participating. In this way, the transaction receiver may suffer from malicious attacks such as dust attacks, and at the same time, the transaction initiator and the transaction receiver may not recognize the execution of the transaction after the transaction.

鑒於以上內容,有必要提供一種區塊鏈交易方法及區塊鏈交易系統,可避免交易接收方遭遇粉塵攻擊等惡意攻擊,及避免雙方交易後不認可所述交易之執行。In view of the above, it is necessary to provide a blockchain transaction method and blockchain transaction system, which can prevent the transaction recipient from being subjected to malicious attacks such as dust attacks, and prevent both parties from disapproving of the execution of the transaction after the transaction.

一種區塊鏈交易方法,所述區塊鏈交易方法包括:A blockchain transaction method, the blockchain transaction method includes:

生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章;generating a transaction request, the transaction request including the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator;

將所述交易請求傳送至交易接收方;transmit the transaction request to the transaction recipient;

對所述交易請求進行驗證;verifying the transaction request;

若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章;If the verification is passed, sign the digital signature of the transaction recipient on the transaction request;

將資產從所述交易發起方轉移至所述交易接收方。Transfer assets from the transaction originator to the transaction recipient.

較佳地,在生成交易請求之前,所述區塊鏈交易方法還包括:Preferably, before generating the transaction request, the blockchain transaction method further includes:

預先擬定交易資訊,所述交易資訊包括交易發起方標誌、交易接收方標誌、交易金額及交易時間;Prepare transaction information in advance, the transaction information includes the logo of the transaction initiator, the logo of the transaction recipient, the transaction amount and the transaction time;

將所述交易資訊傳送至交易發起方;transmit the transaction information to the transaction initiator;

所述生成交易請求包括:The generating a transaction request includes:

根據所述交易資訊生成所述交易請求。The transaction request is generated according to the transaction information.

較佳地,所述區塊鏈交易方法還包括:Preferably, the blockchain transaction method further includes:

若所述驗證不通過,終止交易。If the verification fails, the transaction is terminated.

較佳地,在所述將資產從所述交易發起方轉移至所述交易接收方之前,所述區塊鏈交易方法還包括:Preferably, before the transfer of assets from the transaction initiator to the transaction receiver, the blockchain transaction method further includes:

傳送包括所述交易發起方數位簽章及所述交易接收方數位簽章之交易請求至區塊鏈節點;Send a transaction request including the digital signature of the transaction initiator and the digital signature of the transaction recipient to the blockchain node;

對所述交易發起方數位簽章及所述交易接收方數位簽章進行驗證;Verifying the digital signature of the transaction initiator and the digital signature of the transaction recipient;

所述將資產從所述交易發起方轉移至所述交易接收方包括:The transferring the asset from the transaction originator to the transaction recipient includes:

若所述交易發起方數位簽章及所述交易接收方數位簽章驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。If the digital signature of the transaction initiator and the digital signature of the transaction recipient are verified, the asset is transferred from the transaction initiator to the transaction recipient.

較佳地,所述區塊鏈交易方法還包括:Preferably, the blockchain transaction method further includes:

對所述資產之轉移進行共識;Consensus on the transfer of said assets;

若對所述資產之轉移達成共識,將所述資產之轉移上鏈至區塊鏈。If a consensus is reached on the transfer of the assets, the transfer of the assets will be uploaded to the blockchain.

一種區塊鏈交易系統,所述區塊鏈交易系統包括:A blockchain transaction system, the blockchain transaction system includes:

交易發起方終端,用於生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章;a transaction initiator terminal, used to generate a transaction request, the transaction request including the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator;

所述交易發起方終端,還用於將所述交易請求傳送至交易接收方;The transaction initiator terminal is further configured to transmit the transaction request to the transaction receiver;

交易接收方終端,用於對所述交易請求進行驗證;a transaction receiver terminal, used to verify the transaction request;

所述交易接收方終端還用於若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章;The transaction recipient terminal is further configured to sign the transaction recipient digital signature on the transaction request if the verification is passed;

所述交易發起方終端,還用於將資產從所述交易發起方轉移至所述交易接收方。The transaction initiator terminal is further configured to transfer assets from the transaction initiator to the transaction receiver.

較佳地,所述交易接收方終端還用於在所述交易發起方終端生成所述交易請求之前,預先擬定交易資訊,所述交易資訊包括交易發起方標誌、交易接收方標誌、交易金額及交易時間;Preferably, the transaction receiver terminal is further configured to prepare transaction information in advance before the transaction initiator terminal generates the transaction request, and the transaction information includes the transaction initiator logo, the transaction receiver logo, the transaction amount, and the transaction amount. transaction hour;

所述交易接收方終端還用於將所述交易資訊傳送至交易發起方;The transaction receiver terminal is further configured to transmit the transaction information to the transaction initiator;

所述交易發起方終端還用於根據所述交易資訊生成所述交易請求。The transaction initiator terminal is further configured to generate the transaction request according to the transaction information.

較佳地,所述交易接收方終端還用於若所述驗證不通過,終止交易。Preferably, the transaction receiver terminal is further configured to terminate the transaction if the verification fails.

較佳地,所述區塊鏈交易系統還包括區塊鏈節點:所述交易接收方終端還用於在所述將資產從所述交易發起方轉移至所述交易接收方之前,傳送包括所述交易發起方數位簽章及所述交易接收方數位簽章之交易請求至區塊鏈節點;Preferably, the blockchain transaction system further includes a blockchain node: the transaction recipient terminal is further configured to transmit the assets including the The transaction request with the digital signature of the transaction initiator and the digital signature of the transaction recipient to the blockchain node;

所述區塊鏈節點,用於對所述交易發起方數位簽章及所述交易接收方數位簽章進行驗證;The blockchain node is used to verify the digital signature of the transaction initiator and the digital signature of the transaction recipient;

所述交易發起方終端,還用於若所述交易發起方數位簽章及所述交易接收方數位簽章驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。The transaction initiator terminal is further configured to transfer the asset from the transaction initiator to the transaction receiver if the verification of the transaction initiator's digital signature and the transaction receiver's digital signature passes.

較佳地,所述區塊鏈節點,還用於對所述資產之轉移進行共識;Preferably, the blockchain node is also used for consensus on the transfer of the asset;

所述區塊鏈節點,還用於若對所述資產之轉移達成共識,將所述資產之轉移上鏈至區塊鏈。The blockchain node is also used to upload the transfer of the asset to the blockchain if a consensus is reached on the transfer of the asset.

本案藉由交易請求中包括交易發起方數位簽章,交易接收方對交易請求進行驗證,且在驗證通過時在所述交易請求上進行交易接收方數位簽章,可避免交易接收方遭遇粉塵攻擊等惡意攻擊,及避免雙方交易後不認可所述交易之執行。In this case, the transaction request includes the digital signature of the transaction initiator, the transaction recipient verifies the transaction request, and when the verification is passed, the transaction recipient digitally signs the transaction request, which can prevent the transaction recipient from encountering dust attacks. and other malicious attacks, and to avoid the two parties from disapproving of the execution of the transaction after the transaction.

下面將結合本發明實施方式中之附圖,對本發明實施方式中之技術方案進行清楚、完整地描述,顯然,所描述之實施方式僅僅是本發明一部分實施方式,而不是全部之實施方式。基於本發明中之實施方式,本領域具有通常技藝者在沒有付出創造性勞動前提下所獲得之所有其他實施方式,都屬於本發明保護之範圍。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

請參閱圖1-圖2,一種區塊鏈交易系統1包括交易發起方終端10、交易接收方終端20及區塊鏈節點30。所述交易發起方終端10、所述交易接收方終端20可為智慧手機、平板電腦、手提電腦等電子裝置。所述交易發起方終端10、所述交易接收方終端20及所述區塊鏈節點30相互之間可相互通信。其中,所述交易發起方終端10、所述交易接收方終端20及所述區塊鏈節點30相互之間可藉由有線或無線方式相互通信。具體地:Referring to FIGS. 1-2 , a blockchain transaction system 1 includes a transaction initiator terminal 10 , a transaction receiver terminal 20 and a blockchain node 30 . The transaction initiator terminal 10 and the transaction receiver terminal 20 may be electronic devices such as smart phones, tablet computers, and laptop computers. The transaction initiator terminal 10, the transaction receiver terminal 20 and the blockchain node 30 can communicate with each other. Wherein, the transaction initiator terminal 10, the transaction receiver terminal 20 and the blockchain node 30 can communicate with each other by wired or wireless means. specifically:

所述交易發起方終端10用於生成交易請求。所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章。所述交易發起方終端10還用於將所述交易請求傳送至交易接收方。所述交易接收方終端20用於對所述交易請求進行驗證。所述交易接收方終端20還用於若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章。所述交易發起方終端10還用於將資產從所述交易發起方轉移至所述交易接收方。The transaction initiator terminal 10 is used to generate a transaction request. The transaction request includes the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator. The transaction initiator terminal 10 is further configured to transmit the transaction request to the transaction recipient. The transaction receiver terminal 20 is used to verify the transaction request. The transaction receiver terminal 20 is further configured to sign the transaction receiver's digital signature on the transaction request if the verification is passed. The transaction originator terminal 10 is also used to transfer assets from the transaction originator to the transaction recipient.

在本實施例中,所述交易發起方終端10、所述交易接收方終端20及所述區塊鏈節點30上安裝有用戶端。所述交易發起方終端10、所述交易接收方終端20及所述區塊鏈節點30可藉由所述用戶端接入所述區塊鏈,進而操作所述區塊鏈應用。In this embodiment, a user terminal is installed on the transaction initiator terminal 10 , the transaction receiver terminal 20 and the blockchain node 30 . The transaction initiator terminal 10, the transaction receiver terminal 20 and the blockchain node 30 can access the blockchain through the user terminal, and then operate the blockchain application.

在本實施例中,所述交易發起方標誌為用戶端標誌、公開金鑰等代表交易發起方之唯一識別符。所述交易發起方標誌用於識別所述交易發起方。所述交易接收方標誌為用戶端標誌、公開金鑰等代表交易接收方之唯一識別碼。所述交易接收方標誌用於識別所述交易接收方。所述交易時間包括交易發起之時間。所述交易發起方數位簽章用於對所述交易發起方進行身份驗證。在本實施例中,所述交易請求不僅包括上述之交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章,還可包括其他資訊,例如,請求之序號、時效、安全碼、備註、驗證碼等。所述請求之序號為交易之唯一識別碼。所述請求之序號用於代表不同之交易。所述時效用於限制交易完成之時間範圍。安全碼用於與所述交易發起方數位簽章一起對所述交易發起方進行身份驗證,起到雙重驗證作用。所述備註用於協助交易接收方理解此交易。所述驗證碼為一次性密碼,用於驗證所述交易發起方是所述區塊鏈中之合法用戶。In this embodiment, the identifier of the transaction initiator is a unique identifier representing the transaction initiator, such as a client identifier, a public key, and the like. The transaction initiator identification is used to identify the transaction initiator. The transaction recipient identifier is a unique identification code representing the transaction recipient, such as a client identifier, a public key, and the like. The transaction recipient identifier is used to identify the transaction recipient. The transaction time includes the time when the transaction was initiated. The digital signature of the transaction initiator is used to authenticate the transaction initiator. In this embodiment, the transaction request not only includes the above-mentioned transaction initiator logo, transaction receiver logo, transaction amount, transaction time and digital signature of the transaction initiator, but also other information, such as the request serial number, time limit , security code, remarks, verification code, etc. The serial number of the request is the unique identification code of the transaction. The sequence numbers of the requests are used to represent different transactions. The limitation period is used to limit the time frame within which the transaction can be completed. The security code is used to verify the identity of the transaction initiator together with the digital signature of the transaction initiator, which plays a role of double verification. The remarks are used to assist the recipient of the transaction in understanding the transaction. The verification code is a one-time password used to verify that the transaction initiator is a legitimate user in the blockchain.

在本實施例中,所述交易發起方終端10可藉由所述用戶端接收輸入之交易內容,並根據所述交易內容及所述交易請求之格式規範生成所述交易請求。其中,所述交易請求之格式規範表示所述交易內容所需之格式要求,例如,所述交易請求之格式規範包括交易發起方標誌、交易接收方標誌及交易金額,則所述交易內容中需要有所述交易發起方標誌、所述交易接收方標誌及所述交易金額。所述交易發起方終端10可藉由所述用戶端將所述交易請求傳送至所述交易接收方終端20。In this embodiment, the transaction initiator terminal 10 can receive the input transaction content through the user terminal, and generate the transaction request according to the transaction content and the format specification of the transaction request. Wherein, the format specification of the transaction request indicates the format requirements required by the transaction content. For example, the format specification of the transaction request includes the transaction initiator logo, the transaction receiver logo and the transaction amount, then the transaction content requires There are the transaction initiator logo, the transaction receiver logo and the transaction amount. The transaction originator terminal 10 may transmit the transaction request to the transaction receiver terminal 20 through the user terminal.

在本實施例中,所述交易接收方終端20用於對所述交易請求進行驗證包括自動驗證及人工驗證。所述自動驗證包括所述交易接收方終端20藉由所述用戶端對所述交易請求進行解密,驗證所述交易發起方數位簽章、驗證所述交易請求之格式符合格式規範,及根據所述交易金額對所述交易發起方之資產所有權進行確權。所述人工驗證包括所述交易接收方終端20藉由所述用戶端顯示所述交易請求之內容以供所述交易接收方確定所述交易請求之內容是否有誤。在本實施例中,所述交易接收方終端20還藉由所述用戶端提供驗證通過選項及驗證不通過選項以供所述交易接收方確定所述交易請求之內容是否有誤。其中,若所述自動驗證不通過,則所述交易接收方終端20藉由所述用戶端提供驗證不通過選項以供所述交易接收方選擇,或者自動確定驗證不通過。顯然,若所述驗證通過選項被選擇,所述交易接收方終端20確定所述驗證通過,若所述驗證不通過選項被選擇,所述交易接收方終端20確定所述驗證不通過。在本實施例中,若所述驗證不通過,終止交易。In this embodiment, the transaction receiver terminal 20 is used to verify the transaction request, including automatic verification and manual verification. The automatic verification includes that the transaction receiver terminal 20 decrypts the transaction request through the user terminal, verifies the digital signature of the transaction initiator, verifies that the format of the transaction request complies with the format specification, and The above transaction amount confirms the ownership of the assets of the transaction initiator. The manual verification includes that the transaction recipient terminal 20 displays the content of the transaction request through the user terminal, so that the transaction recipient can determine whether the content of the transaction request is incorrect. In this embodiment, the transaction receiver terminal 20 further provides a verification pass option and a verification fail option through the user terminal, so that the transaction receiver can determine whether the content of the transaction request is incorrect. Wherein, if the automatic verification fails, the transaction recipient terminal 20 provides a verification failure option through the user terminal for the transaction recipient to select, or automatically determines that the verification fails. Obviously, if the verification pass option is selected, the transaction recipient terminal 20 determines that the verification is passed, and if the verification fail option is selected, the transaction recipient terminal 20 determines that the verification fails. In this embodiment, if the verification fails, the transaction is terminated.

在本實施例中,所述交易接收方終端20還用於在所述將資產從所述交易發起方轉移至所述交易接收方之前,傳送包括所述交易發起方數位簽章及所述交易接收方數位簽章之交易請求至區塊鏈節點。所述區塊鏈節點30,還用於對所述交易發起方數位簽章及所述交易接收方數位簽章進行驗證。所述區塊鏈節點30之數量為多個。所述交易發起方終端10,還用於若所述交易發起方數位簽章及所述交易接收方數位簽章驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。In this embodiment, the transaction receiver terminal 20 is further configured to transmit the transaction including the digital signature of the transaction initiator and the transaction before transferring the assets from the transaction initiator to the transaction receiver. The transaction request digitally signed by the receiver is sent to the blockchain node. The blockchain node 30 is further configured to verify the digital signature of the transaction initiator and the digital signature of the transaction recipient. The number of the blockchain nodes 30 is multiple. The transaction initiator terminal 10 is further configured to transfer the asset from the transaction initiator to the transaction receiver if the verification of the transaction initiator's digital signature and the transaction receiver's digital signature passes.

在本實施例中,所述區塊鏈節點30,還用於對所述交易發起方數位簽章、所述交易接收方數位簽章及所述交易請求之格式進行驗證。所述交易發起方終端10,還用於若所述交易發起方數位簽章、所述交易接收方數位簽章及所述交易請求之格式驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。In this embodiment, the blockchain node 30 is further configured to verify the digital signature of the transaction initiator, the digital signature of the transaction recipient and the format of the transaction request. The transaction initiator terminal 10 is further configured to transfer the asset from the transaction initiator if the digital signature of the transaction initiator, the digital signature of the transaction recipient and the format verification of the transaction request are passed. to the transaction recipient.

在本實施例中,所述區塊鏈節點30,還用於對所述資產之轉移進行共識。所述區塊鏈節點30,還用於若對所述資產之轉移達成共識,將所述資產之轉移上鏈至區塊鏈。In this embodiment, the blockchain node 30 is also used for consensus on the transfer of the assets. The blockchain node 30 is further configured to upload the transfer of the asset to the blockchain if a consensus is reached on the transfer of the asset.

在本實施例中,所述交易接收方終端20還用於在所述交易發起方終端10生成所述交易請求之前,預先擬定交易資訊。所述交易資訊包括所述交易發起方標誌、所述交易接收方標誌、所述交易金額及所述交易時間。所述交易接收方終端20還用於將所述交易資訊傳送至交易發起方。所述交易發起方終端10還用於根據所述交易資訊生成所述交易請求。在本實施例中,所述交易資訊不僅包括上述內容,還可包括其他內容,例如請求之序號、時效、安全碼、備註、驗證碼等。所述交易接收方終端20還用於藉由所述用戶端將所述交易資訊傳送至交易發起方終端10。從而,在執行所述資金轉移前,所述交易發起方和所述交易接收方皆可預先對所述交易之內容進行審閱,避免產生錯誤之交易內容,防止了交易發起方之利益受損。In this embodiment, the transaction receiver terminal 20 is further configured to prepare transaction information in advance before the transaction initiator terminal 10 generates the transaction request. The transaction information includes the identifier of the transaction initiator, the identifier of the transaction recipient, the transaction amount, and the transaction time. The transaction receiver terminal 20 is also used for transmitting the transaction information to the transaction initiator. The transaction initiator terminal 10 is further configured to generate the transaction request according to the transaction information. In this embodiment, the transaction information not only includes the above-mentioned content, but also includes other content, such as a request serial number, time limit, security code, remarks, verification code, and the like. The transaction receiver terminal 20 is further configured to transmit the transaction information to the transaction initiator terminal 10 through the user terminal. Therefore, before executing the fund transfer, both the transaction originator and the transaction receiver can review the transaction content in advance, so as to avoid generating erroneous transaction content and prevent the interests of the transaction originator from being damaged.

本案藉由交易請求中包括交易發起方數位簽章,交易接收方對交易請求進行驗證,且在驗證通過時在所述交易請求上進行交易接收方數位簽章,可避免交易接收方遭遇粉塵攻擊等惡意攻擊,及避免雙方交易後不認可所述交易之執行。本案還藉由在所述交易發起方終端10生成所述交易請求之前,預先擬定交易資訊,並將所述交易資訊傳送至交易發起方,則在執行所述資金轉移前,所述交易發起方和所述交易接收方皆可預先對所述交易之內容進行審閱,避免產生錯誤之交易內容,防止了交易發起方之利益受損。In this case, the transaction request includes the digital signature of the transaction initiator, the transaction recipient verifies the transaction request, and when the verification is passed, the transaction recipient digitally signs the transaction request, which can prevent the transaction recipient from encountering dust attacks. and other malicious attacks, and to avoid the two parties from disapproving of the execution of the transaction after the transaction. In this case, before the transaction originator terminal 10 generates the transaction request, the transaction information is prepared in advance, and the transaction information is transmitted to the transaction originator. Before executing the fund transfer, the transaction originator Both the transaction recipient and the transaction recipient can review the transaction content in advance, so as to avoid the generation of erroneous transaction content and prevent the interests of the transaction initiator from being damaged.

請參考圖3,為區塊鏈交易方法之流程圖。所述區塊鏈交易方法包括:Please refer to Figure 3, which is a flowchart of the blockchain transaction method. The blockchain transaction method includes:

S302:生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章。S302: Generate a transaction request, where the transaction request includes a transaction initiator logo, a transaction receiver logo, a transaction amount, a transaction time, and a digital signature of the transaction initiator.

S304:將所述交易請求傳送至交易接收方。S304: Send the transaction request to the transaction recipient.

S306:對所述交易請求進行驗證。S306: Verify the transaction request.

S308:若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章。S308: If the verification is passed, sign the digital signature of the transaction recipient on the transaction request.

S310:將資產從所述交易發起方轉移至所述交易接收方。S310: Transfer assets from the transaction initiator to the transaction receiver.

在本實施例中,在生成交易請求之前,所述區塊鏈交易方法還包括:預先擬定交易資訊,所述交易資訊包括交易發起方標誌、交易接收方標誌、交易金額及交易時間;將所述交易資訊傳送至交易發起方。所述生成交易請求包括:根據所述交易資訊生成所述交易請求。In this embodiment, before generating the transaction request, the blockchain transaction method further includes: pre-drawing transaction information, the transaction information including the transaction initiator logo, the transaction receiver logo, the transaction amount and the transaction time; The transaction information is sent to the transaction initiator. The generating a transaction request includes: generating the transaction request according to the transaction information.

在本實施例中,所述區塊鏈交易方法還包括:若所述驗證不通過,終止交易。In this embodiment, the blockchain transaction method further includes: if the verification fails, terminating the transaction.

在本實施例中,在所述將資產從所述交易發起方轉移至所述交易接收方之前,所述區塊鏈交易方法還包括:傳送包括所述交易發起方數位簽章及所述交易接收方數位簽章之交易請求至區塊鏈節點;對所述交易發起方數位簽章及所述交易接收方數位簽章進行驗證。所述將資產從所述交易發起方轉移至所述交易接收方包括:若所述交易發起方數位簽章及所述交易接收方數位簽章驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。In this embodiment, before the transfer of assets from the transaction originator to the transaction recipient, the blockchain transaction method further comprises: transmitting a digital signature including the transaction originator and the transaction The transaction request of the recipient's digital signature is sent to the blockchain node; the digital signature of the transaction initiator and the digital signature of the transaction recipient are verified. The transferring the asset from the transaction initiator to the transaction receiver includes: if the verification of the transaction initiator's digital signature and the transaction receiver's digital signature is passed, transferring the asset from the transaction initiator to the transaction initiator. transferred to the transaction recipient.

在本實施例中,所述區塊鏈交易方法還包括:對所述資產之轉移進行共識;若對所述資產之轉移達成共識,將所述資產之轉移上鏈至區塊鏈。In this embodiment, the blockchain transaction method further includes: reaching a consensus on the transfer of the asset; if a consensus is reached on the transfer of the asset, uploading the transfer of the asset to the blockchain.

所述區塊鏈交易方法還可有其他不同之變形,所述區塊鏈交易方法之變形之實施例與所述區塊鏈交易系統之變形之實施例相同,在此不進行贅述。The blockchain transaction method can also have other different variants, and the embodiment of the variant of the blockchain transaction method is the same as the embodiment of the variant of the blockchain transaction system, and will not be repeated here.

本領域具有通常技藝者應當認識到,以上之實施方式僅是用來說明本申請,而並非用作為對本申請之限定,只要在本申請之實質精神範圍之內,對以上實施例所作之適當改變和變化都落在本申請要求保護之範圍之內。Those with ordinary skill in the art should realize that the above embodiments are only used to illustrate the present application, rather than being used to limit the present application, as long as appropriate changes are made to the above embodiments within the spirit and scope of the present application and variations all fall within the scope of protection claimed in this application.

1:區塊鏈交易系統 10:交易發起方終端 20:交易接收方終端 30:區塊鏈節點 S302:生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章 S304:將所述交易請求傳送至交易接收方 S306:對所述交易請求進行驗證 S308:若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章 S310:將資產從所述交易發起方轉移至所述交易接收方1: Blockchain transaction system 10: Transaction initiator terminal 20: Transaction receiver terminal 30: Blockchain Nodes S302: Generate a transaction request, the transaction request includes the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator S304: Send the transaction request to the transaction recipient S306: Verify the transaction request S308: If the verification is passed, sign the digital signature of the transaction recipient on the transaction request S310: Transfer assets from the transaction initiator to the transaction receiver

圖1係本發明一較佳實施例之區塊鏈交易系統之方框示意圖。 圖2係圖1中交易發起方終端、交易接收方終端及區塊鏈節點通信之示意圖。 圖3係本發明一較佳實施例之區塊鏈交易方法之流程圖。 FIG. 1 is a schematic block diagram of a blockchain transaction system according to a preferred embodiment of the present invention. FIG. 2 is a schematic diagram of the communication between the transaction initiator terminal, the transaction receiver terminal and the blockchain node in FIG. 1 . FIG. 3 is a flowchart of a blockchain transaction method according to a preferred embodiment of the present invention.

none

S302:生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章 S302: Generate a transaction request, the transaction request includes the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator

S304:將所述交易請求傳送至交易接收方 S304: Send the transaction request to the transaction recipient

S306:對所述交易請求進行驗證 S306: Verify the transaction request

S308:若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章 S308: If the verification is passed, sign the digital signature of the transaction recipient on the transaction request

S310:將資產從所述交易發起方轉移至所述交易接收方 S310: Transfer assets from the transaction initiator to the transaction receiver

Claims (10)

一種區塊鏈交易方法,其中,所述區塊鏈交易方法包括: 生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章; 將所述交易請求傳送至交易接收方; 對所述交易請求進行驗證; 若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章; 將資產從所述交易發起方轉移至所述交易接收方。 A blockchain transaction method, wherein the blockchain transaction method includes: generating a transaction request, the transaction request including the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator; transmit the transaction request to the transaction recipient; verifying the transaction request; If the verification is passed, sign the digital signature of the transaction recipient on the transaction request; Transfer assets from the transaction originator to the transaction recipient. 如請求項1所述之區塊鏈交易方法,其中: 在生成交易請求之前,所述區塊鏈交易方法還包括: 預先擬定交易資訊,所述交易資訊包括交易發起方標誌、交易接收方標誌、交易金額及交易時間; 將所述交易資訊傳送至交易發起方; 所述生成交易請求包括: 根據所述交易資訊生成所述交易請求。 The blockchain transaction method as described in claim 1, wherein: Before generating the transaction request, the blockchain transaction method further includes: Prepare transaction information in advance, the transaction information includes the logo of the transaction initiator, the logo of the transaction recipient, the transaction amount and the transaction time; transmit the transaction information to the transaction initiator; The generating a transaction request includes: The transaction request is generated according to the transaction information. 如請求項1所述之區塊鏈交易方法,其中,所述區塊鏈交易方法還包括: 若所述驗證不通過,終止交易。 The blockchain transaction method according to claim 1, wherein the blockchain transaction method further comprises: If the verification fails, the transaction is terminated. 如請求項1所述之區塊鏈交易方法,其中: 在所述將資產從所述交易發起方轉移至所述交易接收方之前,所述區塊鏈交易方法還包括: 傳送包括所述交易發起方數位簽章及所述交易接收方數位簽章之交易請求至區塊鏈節點; 對所述交易發起方數位簽章及所述交易接收方數位簽章進行驗證; 所述將資產從所述交易發起方轉移至所述交易接收方包括: 若所述交易發起方數位簽章及所述交易接收方數位簽章驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。 The blockchain transaction method as described in claim 1, wherein: Before the transfer of assets from the transaction originator to the transaction recipient, the blockchain transaction method further includes: Send a transaction request including the digital signature of the transaction initiator and the digital signature of the transaction recipient to the blockchain node; Verifying the digital signature of the transaction initiator and the digital signature of the transaction recipient; The transferring the asset from the transaction originator to the transaction recipient includes: If the digital signature of the transaction initiator and the digital signature of the transaction recipient are verified, the asset is transferred from the transaction initiator to the transaction recipient. 如請求項1所述之區塊鏈交易方法,其中,所述區塊鏈交易方法還包括: 對所述資產之轉移進行共識; 若對所述資產之轉移達成共識,將所述資產之轉移上鏈至區塊鏈。 The blockchain transaction method according to claim 1, wherein the blockchain transaction method further comprises: Consensus on the transfer of said assets; If a consensus is reached on the transfer of the assets, the transfer of the assets will be uploaded to the blockchain. 一種區塊鏈交易系統,其中,所述區塊鏈交易系統包括: 交易發起方終端,用於生成交易請求,所述交易請求包括交易發起方標誌、交易接收方標誌、交易金額、交易時間及交易發起方數位簽章; 所述交易發起方終端,還用於將所述交易請求傳送至交易接收方; 交易接收方終端,用於對所述交易請求進行驗證; 所述交易接收方終端還用於若所述驗證通過,在所述交易請求上簽上交易接收方數位簽章; 所述交易發起方終端,還用於將資產從所述交易發起方轉移至所述交易接收方。 A blockchain transaction system, wherein the blockchain transaction system includes: a transaction initiator terminal, used to generate a transaction request, the transaction request including the transaction initiator logo, the transaction receiver logo, the transaction amount, the transaction time and the digital signature of the transaction initiator; The transaction initiator terminal is further configured to transmit the transaction request to the transaction receiver; a transaction receiver terminal, used to verify the transaction request; The transaction recipient terminal is further configured to sign the transaction recipient digital signature on the transaction request if the verification is passed; The transaction initiator terminal is further configured to transfer assets from the transaction initiator to the transaction receiver. 如請求項6所述之區塊鏈交易系統,其中: 所述交易接收方終端還用於在所述交易發起方終端生成所述交易請求之前,預先擬定交易資訊,所述交易資訊包括交易發起方標誌、交易接收方標誌、交易金額及交易時間; 所述交易接收方終端還用於將所述交易資訊傳送至交易發起方; 所述交易發起方終端還用於根據所述交易資訊生成所述交易請求。 The blockchain transaction system as described in claim 6, wherein: The transaction receiver terminal is further configured to prepare transaction information in advance before the transaction initiator terminal generates the transaction request, and the transaction information includes the transaction initiator logo, the transaction receiver logo, the transaction amount and the transaction time; The transaction receiver terminal is further configured to transmit the transaction information to the transaction initiator; The transaction initiator terminal is further configured to generate the transaction request according to the transaction information. 如請求項6所述之區塊鏈交易系統,其中: 所述交易接收方終端還用於若所述驗證不通過,終止交易。 The blockchain transaction system as described in claim 6, wherein: The transaction receiver terminal is further configured to terminate the transaction if the verification fails. 如請求項6所述之區塊鏈交易系統,其中,所述區塊鏈交易系統還包括區塊鏈節點: 所述交易接收方終端還用於在所述將資產從所述交易發起方轉移至所述交易接收方之前,傳送包括所述交易發起方數位簽章及所述交易接收方數位簽章之交易請求至區塊鏈節點; 所述區塊鏈節點,用於對所述交易發起方數位簽章及所述交易接收方數位簽章進行驗證; 所述交易發起方終端,還用於若所述交易發起方數位簽章及所述交易接收方數位簽章驗證通過,將所述資產從所述交易發起方轉移至所述交易接收方。 The blockchain transaction system according to claim 6, wherein the blockchain transaction system further includes a blockchain node: The transaction recipient terminal is further configured to transmit a transaction including the digital signature of the transaction initiator and the digital signature of the transaction recipient before the transfer of assets from the transaction initiator to the transaction recipient request to the blockchain node; The blockchain node is used to verify the digital signature of the transaction initiator and the digital signature of the transaction recipient; The transaction initiator terminal is further configured to transfer the asset from the transaction initiator to the transaction receiver if the verification of the transaction initiator's digital signature and the transaction receiver's digital signature passes. 如請求項9所述之區塊鏈交易系統,其中: 所述區塊鏈節點,還用於對所述資產之轉移進行共識; 所述區塊鏈節點,還用於若對所述資產之轉移達成共識,將所述資產之轉移上鏈至區塊鏈。 The blockchain transaction system as claimed in claim 9, wherein: The blockchain node is also used for consensus on the transfer of the asset; The blockchain node is also used to upload the transfer of the asset to the blockchain if a consensus is reached on the transfer of the asset.
TW109137994A 2020-10-30 2020-10-30 Method and system for trading of blockchain TWI762010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109137994A TWI762010B (en) 2020-10-30 2020-10-30 Method and system for trading of blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109137994A TWI762010B (en) 2020-10-30 2020-10-30 Method and system for trading of blockchain

Publications (2)

Publication Number Publication Date
TWI762010B true TWI762010B (en) 2022-04-21
TW202218376A TW202218376A (en) 2022-05-01

Family

ID=82198852

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109137994A TWI762010B (en) 2020-10-30 2020-10-30 Method and system for trading of blockchain

Country Status (1)

Country Link
TW (1) TWI762010B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192292A (en) * 2006-11-28 2008-06-04 郑机 On-line transaction signing authentication administrative system and method
US20110238510A1 (en) * 2004-06-14 2011-09-29 20/20 Ventures, LLC Reduction of transaction fraud through the use of automatic centralized signature/sign verification combined with credit and fraud scoring during real-time payment card authorization processes
US20170132625A1 (en) * 2015-11-05 2017-05-11 Mastercard International Incorporated Method and system for use of a blockchain in a transaction processing network
TW202036336A (en) * 2019-02-15 2020-10-01 安地卡及巴布達商區塊鏈控股有限公司 Computer-implemented systems and methods for implementing transfers over a blockchain network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110238510A1 (en) * 2004-06-14 2011-09-29 20/20 Ventures, LLC Reduction of transaction fraud through the use of automatic centralized signature/sign verification combined with credit and fraud scoring during real-time payment card authorization processes
CN101192292A (en) * 2006-11-28 2008-06-04 郑机 On-line transaction signing authentication administrative system and method
US20170132625A1 (en) * 2015-11-05 2017-05-11 Mastercard International Incorporated Method and system for use of a blockchain in a transaction processing network
TW202036336A (en) * 2019-02-15 2020-10-01 安地卡及巴布達商區塊鏈控股有限公司 Computer-implemented systems and methods for implementing transfers over a blockchain network

Also Published As

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

Similar Documents

Publication Publication Date Title
AU2019240671B2 (en) Methods for secure cryptogram generation
CN107438002B (en) Block chain based system and electronic device and method in system
JP5657672B2 (en) Reliable message storage, transfer protocol and system
CN114556865A (en) Electronic device and method for managing block chain address by using same
CN110223064B (en) Non-repudiation safety data transmission method based on block chain
WO2018083604A1 (en) Verifying an association between a communication device and a user
US20150372813A1 (en) System and method for generating a random number
US8924309B2 (en) Method of providing assured transactions by watermarked file display verification
CN106230784A (en) A kind of device authentication method and device
KR20120107927A (en) Trusted message storage and transfer protocol and system
CN104160653A (en) Multi-factor certificate authority
US10158493B2 (en) Solution for generating and issuing security codes with guaranteed issuer authenticity and origin
CN113541970B (en) Method and system for using distributed identifier
WO2012034339A1 (en) Method and mobile terminal for realizing network payment
CN107104938B (en) Method for establishing secure data exchange channel, client and computer readable medium
US20150006887A1 (en) System and method for authenticating public keys
CN110634072A (en) Block chain transaction system based on multiple tags and hardware encryption and operation mechanism thereof
CN116506134B (en) Digital certificate management method, device, equipment, system and readable storage medium
TWI762010B (en) Method and system for trading of blockchain
US20220138749A1 (en) Method and system for secured and stable blockchain transaction by obtaining pre-approval of both parties
CN110781526A (en) Digital medal creation method, device, electronic apparatus, and medium
CN108848096B (en) Method, device, equipment and computer readable storage medium for processing service contract
CN111062833A (en) Signature authentication method of contract data and related device
CN116342126A (en) Digital currency resource transfer method and device, electronic equipment and readable medium
JP2024507304A (en) Blockchain-based authentication and transaction system