TWM593602U - Cross-chain and non-custodial entity performance guarantee transaction system - Google Patents
Cross-chain and non-custodial entity performance guarantee transaction system Download PDFInfo
- Publication number
- TWM593602U TWM593602U TW108208696U TW108208696U TWM593602U TW M593602 U TWM593602 U TW M593602U TW 108208696 U TW108208696 U TW 108208696U TW 108208696 U TW108208696 U TW 108208696U TW M593602 U TWM593602 U TW M593602U
- Authority
- TW
- Taiwan
- Prior art keywords
- smart contract
- buyer
- host
- party
- seller
- Prior art date
Links
- 238000012546 transfer Methods 0.000 claims abstract description 33
- 238000000605 extraction Methods 0.000 claims description 36
- 238000004422 calculation algorithm Methods 0.000 claims description 24
- 238000001514 detection method Methods 0.000 claims description 14
- 238000012790 confirmation Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 36
- 238000000034 method Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 241000270295 Serpentes Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000003999 initiator Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Abstract
一種基於跨鏈且非託管實體的履約保證交易系統,透過買方端主機及賣方端主機分別在不同區塊鏈的智能合約託管數位資產,並且根據交易實體在鏈外交付的結果,相互轉移或退還彼此在智能合約託管的數位資產,以及允許第三方主機在不託管交易實體的情況下,進行交易仲裁以判斷鏈外交付是否成功,當判斷鏈外交付成功時,無需買方端主機同意,即能夠相互轉移買方端主機及賣方端主機託管的數位資產,達到提高履約保證的可靠性之技術功效。A performance guarantee transaction system based on cross-chain and non-custodial entities. The buyer-side host and seller-side host respectively host digital assets in different blockchain smart contracts, and transfer or refund each other according to the results of the transaction entity's delivery outside the chain. Digital assets managed by each other in smart contracts, and allowing third-party hosts to conduct transaction arbitration to determine whether the off-chain delivery is successful without hosting the transaction entity. When judging the success of the off-chain delivery, it is possible without the consent of the buyer's host Transfer the digital assets hosted by the buyer's host and the seller's host to each other to achieve the technical effect of improving the reliability of the performance guarantee.
Description
本創作涉及一種履約保證系統,特別是基於跨鏈且非託管實體的履約保證交易系統。This creation relates to a performance guarantee system, especially a performance guarantee transaction system based on cross-chain and non-custodial entities.
近年來,隨著電子商務的普及與蓬勃發展,各種相關應用便如雨後春筍般出現,其中又以提供交易保障的第三方託管最為常見。In recent years, with the popularity and vigorous development of e-commerce, various related applications have sprung up. Among them, third-party custodians that provide transaction guarantees are the most common.
一般而言,傳統的第三方託管是指買賣雙方將資產(包含:貨幣、實體商品等等)交付給一個第三方實體託管,當買賣雙方依協議完成交易後,再由第三方實體交付託管中的資產給買賣雙方,以便避免交易風險。由於現今的交易環境已經大量數位化,透過網路形式的第三方託管,如:第三方支付等服務,需要仰賴高度可信的第三方實體進行資產的代管或交易的仲裁處理。Generally speaking, the traditional third-party custody refers to that the buyer and seller deliver assets (including: currency, physical goods, etc.) to a third-party entity for custody. After the buyer and seller complete the transaction in accordance with the agreement, the third-party entity will deliver the custody. Assets to buyers and sellers in order to avoid transaction risks. Since today's trading environment has been largely digitized, third-party escrow in the form of networks, such as third-party payment and other services, relies on highly trusted third-party entities for asset custody or transaction arbitration.
有鑑於此,便有廠商提出區塊鏈的技術,其透過區塊鏈機制進行交易,以便利用其難以竄改、不可否認性等特性,實現高度可信的第三方託管交易,然而,在同時具有多個獨立的區塊鏈網路環境下,由於不同的區塊鏈可能使用不同的協定,甚至即便使用相同協定,各獨立的區塊鏈網路之間也無法直接互通紀錄。因此,雖然能夠在區塊鏈上進行託管,但是缺乏有效的仲裁機制,導致存在履約保證的可靠性不佳問題。In view of this, some manufacturers have proposed blockchain technology, which uses the blockchain mechanism to conduct transactions in order to use its difficult-to-tamper and non-repudiation features to achieve highly trusted third-party escrow transactions, however, at the same time In multiple independent blockchain network environments, because different blockchains may use different protocols, even if the same protocol is used, the independent blockchain networks cannot directly communicate records. Therefore, although it can be hosted on the blockchain, there is no effective arbitration mechanism, which leads to the problem of poor reliability of the performance guarantee.
綜上所述,可知先前技術中長期以來一直存在履約保證的可靠性不佳之問題,因此實有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the prior art has had a problem of poor reliability of performance guarantee for a long time, so it is necessary to propose improved technical means to solve this problem.
本創作揭露一種基於跨鏈且非託管實體的履約保證交易系統。This creation discloses a performance guarantee transaction system based on cross-chain and non-custodial entities.
首先,本創作揭露一種基於跨鏈且非託管實體的履約保證交易系統,此系統包含:第一區塊鏈、第二區塊鏈、第三方主機、買方端主機及賣方端主機。其中,第一區塊鏈用以運行發布的第一智能合約,以及提供買方端第一錢包地址及賣方端第一錢包地址;第二區塊鏈用以運行發布的第二智能合約,以及提供買方端第二錢包地址及賣方端第二錢包地址,其中,第二智能合約包含第二提取函式,用以接收解鎖密語,並且雜湊所述解鎖密語以與第二智能合約中的買方端雜湊值或第三方雜湊值進行比對,當比對相符時,將第二智能合約託管中的第二數位資產轉移至買方端第二錢包地址,再將所述解鎖密語儲存在第二智能合約中;第三方主機同時連接第一區塊鏈及第二區塊鏈,此第三方主機用以在第一智能合約中設定第三方雜湊值,以及在偵測到鏈外交付成功時,執行第二智能合約的第二提取函式且傳送解鎖密語。First, the author discloses a performance guarantee transaction system based on cross-chain and non-custodial entities. This system includes: a first blockchain, a second blockchain, a third-party host, a buyer-side host, and a seller-side host. Among them, the first blockchain is used to run the published first smart contract, and provides the buyer's first wallet address and the seller's first wallet address; the second blockchain is used to run the published second smart contract, and provides The buyer's second wallet address and the seller's second wallet address, where the second smart contract includes a second extraction function to receive the unlock secret code, and hash the unlock secret code to hash with the buyer's side in the second smart contract The value or the third-party hash value is compared, and when the comparison matches, the second digital asset in the custody of the second smart contract is transferred to the buyer's second wallet address, and then the unlock secret code is stored in the second smart contract ; The third-party host is connected to the first blockchain and the second blockchain at the same time. This third-party host is used to set the third-party hash value in the first smart contract and execute the second when it detects that the off-chain delivery is successful. The second extraction function of the smart contract and the unlock secret code is transmitted.
接著,在買方端主機的部分,其同時連接第一區塊鏈及第二區塊鏈,此買方端主機包含:買方端發布模組及買方端偵測模組。其中,所述買方端發布模組用以在第一區塊鏈上發布第一智能合約,並且在第一智能合約中設定買方端雜湊值,以及將第一數位資產轉移至第一智能合約託管;所述買方端偵測模組用以在偵測到鏈外交付成功時,執行第二智能合約的第二提取函式且傳送解鎖密語。Next, in the part of the buyer-side host, it is connected to the first blockchain and the second blockchain at the same time. The buyer-side host includes: a buyer-side publishing module and a buyer-side detection module. Wherein, the buyer-side publishing module is used to publish the first smart contract on the first blockchain, and set the buyer-side hash value in the first smart contract, and transfer the first digital asset to the first smart contract escrow The buyer-side detection module is used to execute the second extraction function of the second smart contract and send an unlock secret when it detects that the off-chain delivery is successful.
在賣方端主機的部分,其同時連接第一區塊鏈及第二區塊鏈,此賣方端主機包含:賣方端發布模組及賣方端偵測模組。其中,所述賣方端發布模組用以自第一智能合約中獲得買方端雜湊值及第三方雜湊值時,在第二區塊鏈上發布第二智能合約,並且將第二數位資產轉移至第二智能合約託管;所述賣方端偵測模組用以在第二智能合約中偵測到所述解鎖密語時,執行第一智能合約的第一提取函式,其中,第一提取函式將偵測到的解鎖密語進行雜湊,用以與第一智能合約中的買方端雜湊值或第三方雜湊值進行比對,並且在比對符合時,將第一智能合約託管中的第一數位資產轉移至賣方端第一錢包地址。In the part of the seller-side host, it is connected to the first blockchain and the second blockchain at the same time. The seller-side host includes: a seller-side publishing module and a seller-side detection module. Wherein, the seller-side release module is used to obtain the buyer-side hash value and the third-party hash value from the first smart contract, release the second smart contract on the second blockchain, and transfer the second digital asset to Second smart contract escrow; the seller-side detection module is used to execute the first extraction function of the first smart contract when the unlocking secret word is detected in the second smart contract, wherein the first extraction function Hash the detected unlock ciphers to compare with the buyer-side hash value or third-party hash value in the first smart contract, and when the comparison matches, the first digit in the first smart contract escrow The assets are transferred to the first wallet address of the seller.
本創作所揭露之系統如上,與先前技術的差異在於本創作是透過買方端主機及賣方端主機分別在不同區塊鏈的智能合約託管數位資產,並且根據交易實體在鏈外交付的結果,相互轉移或退還彼此在智能合約託管的數位資產,以及允許第三方主機在不託管交易實體的情況下,進行交易仲裁以判斷鏈外交付是否成功,當判斷鏈外交付成功時,無需買方端主機同意,即能夠相互轉移買方端主機及賣方端主機託管的數位資產。The system disclosed in this creation is as above, and the difference from the previous technology is that this creation is to host digital assets in different blockchain smart contracts through the buyer-side host and the seller-side host, and according to the results of the transaction entity's delivery outside the chain, mutual Transfer or refund each other’s digital assets hosted in smart contracts, and allow third-party hosts to conduct transaction arbitration to determine whether the off-chain delivery is successful without hosting the transaction entity. When the off-chain delivery is successful, no buyer-side host’s consent is required , That is, the digital assets hosted by the buyer's host and the seller's host can be transferred to each other.
透過上述的技術手段,本創作可以達成提高履約保證的可靠性之技術功效。Through the above-mentioned technical means, this creation can achieve the technical effect of improving the reliability of the performance guarantee.
以下將配合圖式及實施例來詳細說明本創作之實施方式,藉此對本創作如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。In the following, the implementation of the creation will be described in detail with reference to the drawings and examples, so as to fully understand and implement the implementation process of how the creation uses technical means to solve technical problems and achieve technical efficacy.
在說明本創作所揭露之基於跨鏈且非託管實體的履約保證交易系統之前,先對本創作所應用的環境作說明,本創作係應用在多區塊鏈的環境,例如:同時有二個或二個以上的區塊鏈,每一個區塊鏈可以運行相同的區塊鏈協定或不同的區塊鏈協定,舉例來說,一個為比特幣的區塊鏈,另一個為以太幣的區塊鏈。然而,無論是否為相同的區塊鏈協定,均允許買方端主機及賣方端主機在區塊鏈上發布智能合約,而且允許第三方主機、買方端主機及賣方端主機透過區塊鏈網路的任意節點對各區塊鏈進行操作,例如:管理區塊鏈上的數位資產(包含數位貨幣)、執行智能合約功能等等。Before explaining the performance guarantee transaction system based on cross-chain and non-custodial entities disclosed by this creation, the environment used by this creation will be explained first. This creation is applied in a multi-blockchain environment, for example: there are two or For more than two blockchains, each blockchain can run the same blockchain agreement or different blockchain agreements. For example, one is a Bitcoin blockchain and the other is an Ethereum blockchain. chain. However, whether it is the same blockchain agreement or not, both the buyer-side host and the seller-side host are allowed to publish smart contracts on the blockchain, and the third-party host, buyer-side host, and seller-side host are allowed to pass through the blockchain network. Any node operates on each blockchain, for example: managing digital assets (including digital currency) on the blockchain, performing smart contract functions, and so on.
接著,針對本創作所自行定義的名詞作說明,本創作所述的「第一智能合約」及「第二智能合約」皆是指發布(Deploy)在區塊鏈網路上的智能合約,其中,第一智能合約發布在第一區塊鏈;第二智能合約發布在第二區塊鏈。實際上,所述智能合約是指依據既定的條件及傳輸的資訊來驅動執行指令的電腦程式,具體而言,所述智能合約係透過程式語言,例如:Solidity、Serpent、LLL、EtherScript、Sidechain等等來撰寫,其可包含各種不同的函式(Function)、事件(Event)、參數狀態等等,以「Ethereum」為例,其智能合約是經編譯後得到二進位編碼及應用二進位介面(Application Binary Interface, ABI),以便將智能合約廣播至區塊鏈網路,等候礦工(Miner)將智能合約放上區塊鏈並得到相應的地址,至此即透過區塊鏈交易完成智能合約的發布。之後,各節點便可根據此地址執行相應的智能合約,並且藉由不同的指令來改變智能合約在區塊鏈上的狀態以及偵測事件是否被觸發。另外,所述的「第一數位資產」及「第二數位資產」是指以數位形式呈現的內容、具有所有權概念,可被持有與進行所有權轉移的各式紀錄,如:數位貨幣、電子票券、數位產權登記、電子發票等等,其中,「第一數位資產」是託管於第一區塊鏈的第一智能合約之數位資產;「第二數位資產」是託管於第二區塊鏈的第二智能合約之數位資產。也就是說,第一數位資產實作在第一區塊鏈;第二數位資產實作在第二區塊鏈。接著,所述的「鏈外交付」是指獨立於區塊鏈之外的價值交付行為,例如:實體商品交付、線下服務、非區塊鏈的數位資產交付等等。特別要說明的是,本創作可視為「非託管實體(Unmanaged Entity)」的方式,其與傳統第三方託管(Escrow)的差異在於前者並未實際將交易實體或數位資產託管給第三方,而後者則是由買賣雙方之外的第三方來保管交易實體或數位資產,如:特定文件、契約、金錢、證券或其它財產等等,當特定條件達成或法律事件發生時,才由此第三方將其保管物交付給特定的人。具體來說,在本創作中作為第三方的第三方主機未實際託管任何實體或數位資產,僅用以判斷鏈外交付是否成功來進行仲裁,若成功便傳送解鎖密語,反之則不進行任何操作,而作為買方的買方端主機則是將自己的數位資產託管在自己發布在區塊鏈的智能合約,同樣地,作為賣方的賣方端主機也會將自己的數位資產託管在自己發布在另一區塊鏈的智能合約。因此,有別於傳統第三方託管在發生交易糾紛時,保管物會被凍結在第三方的情況,本創作藉由第三方主機來仲裁鏈外交付是否成功,若成功便允許在不經買方同意的情況下轉移買賣雙方數位資產,以及在鏈外交付失敗時,等候智能合約的託管逾時時間被滿足,以便智能合約自動將託管的數位資產退還給相應的買賣雙方。Next, to explain the terms defined by this creation, the "first smart contract" and "second smart contract" mentioned in this creation refer to the smart contracts issued (Deploy) on the blockchain network, where, The first smart contract is published on the first blockchain; the second smart contract is published on the second blockchain. In fact, the smart contract refers to a computer program that drives execution of instructions based on established conditions and transmitted information. Specifically, the smart contract uses programming languages such as Solidity, Serpent, LLL, EtherScript, Sidechain, etc. To write, it can contain various functions, events, parameter status, etc. Taking "Ethereum" as an example, its smart contract is compiled to get a binary code and apply a binary interface ( Application Binary Interface, ABI) in order to broadcast the smart contract to the blockchain network, waiting for the miner to put the smart contract on the blockchain and get the corresponding address, so that the smart contract is released through the blockchain transaction . After that, each node can execute the corresponding smart contract according to this address, and change the state of the smart contract on the blockchain and detect whether the event is triggered by different instructions. In addition, the "first digital asset" and "second digital asset" refer to the content presented in digital form, with the concept of ownership, and various records that can be held and transferred for ownership, such as: digital currency, electronic Tickets, digital property rights registration, electronic invoices, etc., where "first digital asset" is the digital asset of the first smart contract hosted on the first blockchain; "second digital asset" is the second block of assets Digital assets of the second smart contract of the chain. In other words, the first digital asset is implemented in the first blockchain; the second digital asset is implemented in the second blockchain. Next, the "off-chain delivery" refers to the value delivery behavior independent of the blockchain, such as: physical commodity delivery, offline services, non-blockchain digital asset delivery, etc. In particular, this creation can be regarded as an "unmanaged entity (Unmanaged Entity)", the difference between it and traditional third-party escrow (Escrow) is that the former does not actually escrow the trading entity or digital assets to a third party, and In the latter case, a third party other than the buyer and seller will take care of the trading entity or digital assets, such as: specific documents, contracts, money, securities, or other property. Only when certain conditions are met or legal events occur, will this third party Deliver its deposit to a specific person. Specifically, the third-party host as a third party in this creation does not actually host any entities or digital assets, and is only used to determine whether the off-chain delivery is successful for arbitration. If it is successful, the unlock secret code is transmitted, otherwise, no operation is performed. , As the buyer’s host on the buyer’s side, it deposits its digital assets in a smart contract that it publishes on the blockchain. Similarly, the seller’s host on the seller’s side will also host its digital assets on its own in another. Blockchain smart contracts. Therefore, unlike the traditional third-party custody, when the transaction dispute occurs, the deposit will be frozen in the third party. This creation uses the third-party host to arbitrate whether the off-chain delivery is successful. If it is successful, it will be allowed without the buyer’s consent. When the digital assets of the buyer and seller are transferred, and when the off-chain delivery fails, wait for the overtime of the escrow of the smart contract to be satisfied, so that the smart contract automatically returns the custodial digital assets to the corresponding buyer and seller.
以下配合圖式對本創作基於跨鏈且非託管實體的履約保證交易系統做進一步說明,請先參閱「第1圖」,「第1圖」為本創作基於跨鏈且非託管實體的履約保證交易系統的系統方塊圖,此系統包含:第一區塊鏈110、第二區塊鏈120、第三方主機130、買方端主機140及賣方端主機150。所述第三方主機130、買方端主機140及賣方端主機150可使用個人電腦、筆記型電腦、平板電腦、智慧型手機及伺服器等計算機裝置來實現。其中,第一區塊鏈110用以運行發布的第一智能合約,以及提供「買方端第一錢包地址」及「賣方端第一錢包地址」,也就是數位錢包所具備的錢包地址資訊,其代表區塊鏈上具唯一性的身分識別碼。在實際實施上,所述「買方端第一錢包地址」是指買方端主機140在第一區塊鏈110所使用的錢包地址;所述「賣方端第一錢包地址」是指賣方端主機150在第一區塊鏈110所使用的錢包地址。實際上,由於第三方主機130同樣同時連接第一區塊鏈110及第二區塊鏈120,所以第一區塊鏈110也會提供一個「第三方第一錢包地址」(即:第三方主機130在第一區塊鏈110所使用的錢包地址),但因為不涉及數位資產轉移及為了方便說明,故未特別指出。The following describes the creation of a performance guarantee transaction system based on cross-chain and non-custodial entities with the help of diagrams. Please refer to "
第二區塊鏈120用以運行發布的第二智能合約,以及提供「買方端第二錢包地址」及「賣方端第二錢包地址」,其中,所述第二智能合約包含第二提取函式,其用以接收解鎖密語,並且雜湊所述解鎖密語以與第二智能合約中的買方端雜湊值或第三方雜湊值進行比對,當比對相符時,將第二智能合約託管中的第二數位資產轉移至買方端第二錢包地址,再將所述解鎖密語儲存在第二智能合約中。在實際實施上,所述「買方端第二錢包地址」是指買方端主機140在第二區塊鏈120所使用的錢包地址;所述「賣方端第二錢包地址」是指賣方端主機150在第二區塊鏈120所使用的錢包地址。同樣地,由於第三方主機130也同時連接第一區塊鏈110及第二區塊鏈120,所以第二區塊鏈120也會提供一個「第三方第二錢包地址」(即:第三方主機130在第二區塊鏈120所使用的錢包地址),而且因為第三方第二錢包地址不涉及數位資產轉移及為了方便說明,故未特別指出。The
第三方主機130同時連接第一區塊鏈110及第二區塊鏈120,第三方主機130用以在第一智能合約中設定一個第三方雜湊值,以及在偵測到鏈外交付成功時,執行第二智能合約的第二提取函式且傳送解鎖密語。也就是說,在呼叫所述第二提取函式時,一併將解鎖密語作為參數帶入第二提取函式中,以便進行雜湊計算及比對是否與第三方雜湊值相符。The third-
買方端主機140同時連接第一區塊鏈110及第二區塊鏈120,此買方端主機140包含:買方端發布模組141及買方端偵測模組142。其中,買方端發布模組141用以在第一區塊鏈110上發布第一智能合約,並且在第一智能合約中設定買方端雜湊值,以及將第一數位資產轉移至第一智能合約託管。買方端偵測模組142用以在偵測到鏈外交付成功時,執行第二智能合約的第二提取函式且傳送解鎖密語。The buyer-
賣方端主機150同時連接第一區塊鏈110及第二區塊鏈120,此賣方端主機150包含:賣方端發布模組151及賣方端偵測模組152。其中,賣方端發布模組151用以自第一智能合約中獲得買方端雜湊值及第三方雜湊值時,在第二區塊鏈120上發布第二智能合約,並且將第二數位資產轉移至第二智能合約託管。接著,賣方端偵測模組152用以在第二智能合約中偵測到解鎖密語時,執行第一智能合約的第一提取函式,其中,第一提取函式將偵測到的解鎖密語進行雜湊,用以與第一智能合約中的買方端雜湊值或第三方雜湊值進行比對,並且在比對符合時,將第一智能合約託管中的第一數位資產轉移至賣方端第一錢包地址。The seller-
要補充說明的是,當買方端主機140及第三方主機130皆偵測到鏈外交付失敗時,使第二智能合約超過託管逾時時間,以便將第二智能合約託管中的第二數位資產轉移至賣方端主機150的賣方端第二錢包地址,以及使第一智能合約超過託管逾時時間,以便將第一智能合約託管中的第一數位資產轉移至買方端主機140的買方端第一錢包地址。換句話說,假設鏈外交付失敗,便由第一智能合約將第一數位資產退還給買方端主機140,以及由第二智能合約將第二數位資產退還給賣方端主機150。在實際實施上,偵測鏈外交付是否成功可透過應用程式介面(Application Programming Interface, API)或直接呼叫智能合約的函式來實現,舉例來說,買方收到購買的商品或物流人員確認交付商品,可透過API傳送交付確認訊息,提供買方端主機140判斷為交付成功,反之,假設超過預設時間仍未接收到所述交付確認訊息或接收到退還訊息,則判斷為交付失敗。另外,亦可直接呼叫智能合約的函式來觸發一個交付確認事件,當買方端主機140及第三方主機130偵測到所述交付確認事件被觸發時,判斷為鏈外交付成功,反之,假設超過預設時間仍未偵測到所述交付確認事件被觸發,將判斷為鏈外交付失敗。It should be added that when both the buyer-
特別要說明的是,在實際實施上,本創作所述的各模組皆可利用各種方式來實現,包含軟體、硬體或其任意組合,例如,在某些實施方式中,各模組可利用軟體及硬體或其中之一來實現,除此之外,本創作亦可部分地或完全地基於硬體來實現,例如,系統中的一個或多個模組可以透過積體電路晶片、系統單晶片(System on Chip, SoC)、複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)、現場可程式邏輯閘陣列(Field Programmable Gate Array, FPGA)等來實現。本創作可以是系統及/或電腦程式。電腦程式可以包括電腦可讀儲存媒體,其上載有用於使處理器實現本創作的各個方面的電腦可讀程式指令,電腦可讀儲存媒體可以是可以保持和儲存由指令執行設備使用的指令的有形設備。電腦可讀儲存媒體可以是但不限於電儲存設備、磁儲存設備、光儲存設備、電磁儲存設備、半導體儲存設備或上述的任意合適的組合。電腦可讀儲存媒體的更具體的例子(非窮舉的列表)包括:硬碟、隨機存取記憶體、唯讀記憶體、快閃記憶體、光碟、軟碟以及上述的任意合適的組合。此處所使用的電腦可讀儲存媒體不被解釋爲瞬時信號本身,諸如無線電波或者其它自由傳播的電磁波、通過波導或其它傳輸媒介傳播的電磁波(例如,通過光纖電纜的光信號)、或者通過電線傳輸的電信號。另外,此處所描述的電腦可讀程式指令可以從電腦可讀儲存媒體下載到各個計算/處理設備,或者通過網路,例如:網際網路、區域網路、廣域網路及/或無線網路下載到外部電腦設備或外部儲存設備。網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換器、集線器及/或閘道器。每一個計算/處理設備中的網路卡或者網路介面從網路接收電腦可讀程式指令,並轉發此電腦可讀程式指令,以供儲存在各個計算/處理設備中的電腦可讀儲存媒體中。執行本創作操作的電腦程式指令可以是組合語言指令、指令集架構指令、機器指令、機器相關指令、微指令、韌體指令、或者以一種或多種程式語言的任意組合編寫的原始碼或目的碼(Object Code),所述程式語言包括物件導向的程式語言,如:Common Lisp、Python、C++、Objective-C、Smalltalk、Delphi、Java、Swift、C#、Perl、Ruby與PHP等,以及常規的程序式(Procedural)程式語言,如:C語言或類似的程式語言。計算機可讀程式指令可以完全地在電腦上執行、部分地在電腦上執行、作爲一個獨立的軟體執行、部分在客戶端電腦上部分在遠端電腦上執行、或者完全在遠端電腦或伺服器上執行。In particular, in actual implementation, each module described in this creation can be implemented in various ways, including software, hardware, or any combination thereof. For example, in some embodiments, each module may Using software and hardware or one of them, in addition, this creation can also be implemented partially or completely based on hardware, for example, one or more modules in the system can be integrated circuit chip, System on Chip (SoC), Complex Programmable Logic Device (CPLD), Field Programmable Gate Array (FPGA), etc. are implemented. This creation can be a system and/or computer program. The computer program may include a computer-readable storage medium that is loaded with computer-readable program instructions for enabling the processor to implement various aspects of the present creation. The computer-readable storage medium may be a tangible form that can hold and store instructions used by the instruction execution device equipment. The computer-readable storage medium may be, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive lists) of computer-readable storage media include hard disks, random access memory, read-only memory, flash memory, optical disks, floppy disks, and any suitable combination of the foregoing. The computer-readable storage media used herein are not to be interpreted as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, optical signals through fiber optic cables), or through wires The transmitted electrical signal. In addition, the computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing/processing devices, or via a network, such as the Internet, local area network, wide area network, and/or wireless network To external computer equipment or external storage devices. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, hubs, and/or gateways. The network card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for computer-readable storage media stored in each computing/processing device in. The computer program instructions to perform this creation operation may be combined language instructions, instruction set architecture instructions, machine instructions, machine-related instructions, microinstructions, firmware instructions, or source code or object code written in any combination of one or more programming languages (Object Code), the programming language includes object-oriented programming languages, such as: Common Lisp, Python, C++, Objective-C, Smalltalk, Delphi, Java, Swift, C#, Perl, Ruby, PHP, etc., as well as conventional programs Procedural programming language, such as: C language or similar programming language. Computer readable program instructions can be executed entirely on the computer, partly on the computer, as a stand-alone software, partly on the client computer and partly on the remote computer, or entirely on the remote computer or server On the implementation.
請參閱「第2A圖」及「第2B圖」,「第2A圖」及「第2B圖」為本創作基於跨鏈且非託管實體的履約保證交易方法的方法流程圖,應用在具有第一區塊鏈110及第二區塊鏈120的網路環境中,其步驟包括:提供同時連接第一區塊鏈110及第二區塊鏈120的第三方主機130、買方端主機140及賣方端主機150(步驟210);買方端主機140在第一區塊鏈110上發布第一智能合約,並且在第一智能合約中設定買方端雜湊值,以及將第一數位資產轉移至第一智能合約託管(步驟220);第三方主機130在第一智能合約中設定第三方雜湊值(步驟230);當賣方端主機140自第一智能合約中獲得買方端雜湊值及第三方雜湊值時,在第二區塊鏈120上發布第二智能合約,並且將第二數位資產轉移至第二智能合約託管(步驟240);買方端主機140及第三方主機130對鏈外交付進行偵測,當買方端主機140及第三方主機130至少其中之一偵測到鏈外交付成功時,執行第二智能合約的第二提取函式,其中,此第二提取函式自買方端主機140及第三方主機130至少其中之一接收相應的解鎖密語,並且雜湊所述解鎖密語以與第二智能合約中的買方端雜湊值或第三方雜湊值進行比對,當比對相符時,將第二智能合約託管中的第二數位資產轉移至買方端主機140的買方端第二錢包地址,再將所述解鎖密語儲存在第二智能合約中(步驟250);賣方端主機150對第二智能合約中的解鎖密語進行偵測,當賣方端主機150在第二智能合約中偵測到所述解鎖密語時,執行第一智能合約的第一提取函式,其中,第一提取函式將偵測到的解鎖密語進行雜湊,用以與第一智能合約中的買方端雜湊值或第三方雜湊值進行比對,並且在比對符合時,將第一智能合約託管中的第一數位資產轉移至賣方端主機150的賣方端第一錢包地址(步驟260)。透過上述步驟,即可透過買方端主機140及賣方端主機150分別在不同區塊鏈的智能合約託管數位資產,並且根據交易實體在鏈外交付的結果,相互轉移或退還彼此在智能合約託管的數位資產,以及允許第三方主機130在不託管交易實體的情況下,進行交易仲裁以判斷鏈外交付是否成功,當判斷鏈外交付成功時,無需買方端主機140同意,即能夠相互轉移買方端主機140及賣方端主機150託管的數位資產。Please refer to "Picture 2A" and "Picture 2B". "Picture 2A" and "Picture 2B" are flow charts of methods for creating performance-based guarantee transaction methods based on cross-chain and non-custodial entities. In the network environment of the blockchain 110 and the second blockchain 120, the steps include: providing a third-party host 130, a buyer-side host 140, and a seller-side that simultaneously connect the first blockchain 110 and the second blockchain 120 Host 150 (step 210); buyer-side host 140 issues the first smart contract on the first blockchain 110, and sets the buyer-side hash value in the first smart contract, and transfers the first digital asset to the first smart contract Escrow (step 220); the third-party host 130 sets the third-party hash value in the first smart contract (step 230); when the seller-side host 140 obtains the buyer-side hash value and the third-party hash value from the first smart contract, at The second smart contract is issued on the second blockchain 120, and the second digital asset is transferred to the second smart contract escrow (step 240); the buyer-side host 140 and the third-party host 130 detect the off-chain delivery, when the buyer When at least one of the end host 140 and the third-party host 130 detects that the off-chain delivery is successful, the second extraction function of the second smart contract is executed, where the second extraction function is from the buyer-side host 140 and the third-party host 130 At least one of them receives the corresponding unlocking cipher and hash the unlocking cipher to compare with the buyer-side hash value or the third-party hash value in the second smart contract, and when the comparison matches, escrow the second smart contract The second digital asset in is transferred to the buyer’s second wallet address of the buyer’s host 140, and then the unlock secret is stored in the second smart contract (step 250); the seller’s host 150 unlocks the second smart contract The secret code is detected, and when the seller-side host 150 detects the unlock secret code in the second smart contract, the first extraction function of the first smart contract is executed, wherein the first extraction function will detect the unlock The secret word is hashed to compare with the buyer-side hash value or third-party hash value in the first smart contract, and when the comparison is met, the first digital asset in the custody of the first smart contract is transferred to the seller-side host 150 Seller's first wallet address (step 260). Through the above steps, you can use the buyer's
在步驟260之後,假設買方端主機140及第三方主機130皆偵測到鏈外交付失敗,使第二智能合約超過託管逾時時間以將第二智能合約託管中的第二數位資產轉移至賣方端主機150的賣方端第二錢包地址,以及使第一智能合約超過託管逾時時間以將第一智能合約託管中的第一數位資產轉移至買方端主機的買方端第一錢包地址(步驟270)。如此一來,即可完成將數位資產退還給原持有者的流程。After
以下配合「第3圖」至「第5圖」以實施例的方式進行如下說明,請先參閱「第3圖」,「第3圖」為應用本創作的履約保證交易流程之示意圖。首先,在具有第一區塊鏈110及第二區塊鏈120的環境下,買方端主機140、第三方主機130及賣方端主機150皆能夠同時與第一區塊鏈110及第二區塊鏈120連接,並且執行發布在上面的智能合約(如:第一智能合約及第二智能合約)及其包含的函式。因此,買方端主機140在第一區塊鏈110具有買方端第一錢包地址,在第二區塊鏈120具有買方端第二錢包地址;賣方端主機150在第一區塊鏈110具有賣方端第一錢包地址,在第二區塊鏈120具有賣方端第二錢包地址;第三方主機130在第一區塊鏈110具有第三方第一錢包地址,在第二區塊鏈120具有第三方第二錢包地址。其中,買方端主機140可視為買方、賣方端主機150可視為賣方、第三方主機130可視為交易平台或物流平台,整體的履約保證交付流程如下:The following description will be made in conjunction with "Picture 3" to "Picture 5" by way of example. Please refer to "Picture 3" first. "Picture 3" is a schematic diagram of the performance guarantee transaction process applying this creation. First of all, in an environment with a
1. 發起方(或稱為買方)可以在買方端主機140設置一個解鎖密語,並且由買方端主機140進行雜湊計算後得到一個相應的買方端雜湊值,接著,買方端主機140在第一區塊鏈110上發布第一智能合約,此第一智能合約允許設定相應的參數,例如:賣方端第一錢包地址、第三方第一錢包地址、欲託管給第一智能合約的第一數位資產、託管逾時時間、買方端雜湊值、第三方雜湊值及使用的雜湊演算法,如:訊息摘要演算法第五版(Message-Digest Algorithm 5, MD5)及安全雜湊演算法(Secure Hash Algorithm, SHA)等等。1. The initiator (or buyer) can set an unlock passphrase on the
2. 買方端主機140將第一數位資產交由第一智能合約託管,也就是將第一數位資產傳送至第一智能合約的合約地址,以便將欲託管的第一數位資產的所有權轉移給第一智能合約,由第一智能合約持有及管理第一數位資產,直到順利支付給賣方端主機150或是退還給買方端主機140為止。2. The buyer-
3. 在第一智能合約發布在第一區塊鏈110之後,第三方主機130同樣設置一個解鎖密語,並且由第三方主機130進行雜湊計算,以便得到相應的一個第三方雜湊值,接著再將此第三方雜湊值設置在第一智能合約。在實際實施上,第三方主機130與買方端主機140均各自設置獨立的解鎖密語,而且彼此之間也無從得知對方設置的解鎖密語。另外,第三方主機130與買方端主機140所使用的雜湊演算法可以相同或不同,只不過需要在第一智能合約中記載使用的雜湊演算法,以避免雖然使用正確的解鎖密語,卻因為相異的雜湊演算法而導致計算出的雜湊值無法匹配的情況。實際上,倘若使用相同的雜湊演算法,可直接偵測第一智能合約所使用的雜湊演算法,再以相同的雜湊演算法計算出第三方雜湊值。3. After the first smart contract is published on the
4. 賣方端主機150會持續偵測第一智能合約是否存在買方端雜湊值及第三方雜湊值,倘若存在,便自第一智能合約中取得買方端雜湊值、第三方雜湊值、使用的雜湊演算法、託管逾時時間等等。4. The seller-
5. 在取得買方端雜湊值及第三方雜湊值之後,賣方端主機150會發布第二智能合約及設定其參數,如:買方端第二錢包地址、第三方第二錢包地址、欲託管交付的第二數位資產、託管逾時時間(需早於第一智能合約的託管逾時時間)、買方端雜湊值、第三方雜湊值及使用的雜湊演算法等等。5. After obtaining the buyer-side hash value and the third-party hash value, the seller-
6. 賣方端主機150將第二數位資產交由第二智能合約託管,其託管方式與買方端主機140將第一數位資產交由第一智能合約託管的方式相同。以電子商務(包含跨境商務或電商平台)為例,第二數位資產可為數位化的產品保證書、保固卡、電子發票等等;以房地產履約保證交易為例,第二數位資產可為數位化的土地房屋權狀;以權證交易為例(如:股權、 債權、P2P借貸、智財權等等),第二數位資產為數位權證;以物聯網(Internet of Things, IoT)為例,第二數位資產可為數位啟動權利證明,如:啟動序號。6. The seller-
7. 當買方端主機140或第三方主機130偵測到鏈外交付成功時,執行第二智能合約的第二提取函式並傳送相應的解鎖密語,以及將解鎖密語儲存在第二智能合約。7. When the buyer-
8. 第二提取函式會將接收到的解鎖密語以第二智能合約中記載使用的雜湊演算法進行雜湊,並且將雜湊結果與第二智能合約中相應的買方端雜湊值或第三方雜湊值進行比對,當比對結果相符時,轉移第二數位資產至買方端主機140的買方端第二錢包地址。8. The second extraction function will hash the received unlock cipher with the hash algorithm used in the second smart contract, and the hash result with the corresponding buyer-side hash value or third-party hash value in the second smart contract. The comparison is performed, and when the comparison result matches, the second digital asset is transferred to the buyer-side second wallet address of the buyer-
9. 賣方端主機150自第二智能合約中取得其儲存的解鎖密語,以便使用此解鎖密語向第一智能合約要求轉移第一數位資產。舉例來說,假設買方端主機140傳送的解鎖密語與第二智能合約的買方端雜湊值相符,賣方端主機150便取得在第二智能合約中公開且相應於買方端主機140的解鎖密語;假設第三方主機130傳送的解鎖密語與第二智能合約的第三方雜湊值相符,賣方端主機150便取得在第二智能合約中公開且相應於第三方主機130的解鎖密語。9. The seller-
10. 賣方端主機150執行第一智能合約的第一提取函式並傳送上一步驟所取得的解鎖密語,此第一提取函式會比對此解鎖密語的雜湊值與買方端雜湊值或第三方雜湊值是否相符。舉例來說,假設賣方端主機150在第二智能合約中取得買方端主機140的解鎖密語,賣方端主機150會執行第一智能合約的第一提取函式,並且將所述解鎖密語作為參數帶入第一提取函式,此第一提取函式會使用與買方端雜湊值相同的雜湊演算法對解鎖密語進行雜湊,若雜湊的結果與買方端雜湊值相同則代表兩者相符。10. The seller-
11. 在解鎖密語的雜湊值與買方端雜湊值或第三方雜湊值相符時,轉移第一數位資產至賣方端主機150的賣方端第一錢包地址。至此,即完成基於跨鏈且非託管實體的履約保證交易交易,也就是完成買方端主機140與賣方端主機150在智能合約託管的數位資產之交付。雖然在過程中並非同時交付,但是能夠保證一旦賣方端主機150的交付被執行,賣方端主機150便能夠要求買方端主機140的交付也被執行。11. When the hash value of the unlock cipher matches the buyer's hash value or third-party hash value, transfer the first digital asset to the seller's first wallet address of the seller's
除此之外,假設買方端主機140判斷鏈外交付失敗,欲進行數位資產的退還,則不採取操作行為。待第一智能合約逾時後,買方端主機140取回託管在第一智能合約的第一數位資產。接著,在第二智能合約逾時後,賣方端主機150取回託管在第二智能合約的第二數位資產。至此,即完成所有數位資產的退還,雖然並非同時退還,但是能夠保證若買方端主機140沒有提取賣方端主機150欲交付的第二數位資產,則賣方端主機150便無法取得必要的解鎖密語,用以提取買方端主機140欲交付的第一數位資產。因此,在託管逾時後,雙方可各自取回其託管的數位資產,亦即數位資產皆會退還原持有者。In addition, assuming that the buyer-
另外,假設交易發生爭議,例如:買方端主機140欲要求退還託管中的第一數位資產,而賣方端主機150則要求支付第一數位資產。此時,第三方主機130可介入託管交易進行仲裁。倘若第三方主機130判斷鏈外交付已完成,將仲裁進行所有數位資產的交付流程,具體來說,第三方主機130會在託管逾時前,執行第二智能合約的第二提取函式且傳送解鎖密語,以便在雜湊的解鎖密語與第二智能合約中的第三方雜湊值相符時,使第二智能合約將託管中的第二數位資產轉移給買方端第二錢包地址,並且將解鎖密語公開儲存在第二智能合約中。接著,當賣方端主機150偵測到第二智能合約中公開儲存的解鎖密語時,便能夠執行第一智能合約的第一提取函式,由此第一提取函式將偵測到的解鎖密語進行雜湊,用以與第一智能合約中的第三方雜湊值進行比對,並且在比對符合時,將第一智能合約託管中的第一數位資產轉移至賣方端第一錢包地址。至此,基於第三方主機130的仲裁結果(即:鏈外交付完成),完成所有數位資產的交付流程。另一方面,倘若第三方主機130判斷鏈外交付失敗,將仲裁進行所有數位資產的退還流程,可藉由使第一智能合約及第二智能合約皆逾時的方式,如:不進行任何操作致使智能合約逾時,以便買方端主機140自第一智能合約取回託管的第一數位資產,以及賣方端主機150自第二智能合約取回託管的第二數位資產。至此,基於第三方主機130的仲裁結果(即:鏈外交付失敗),完成所有數位資產的退還流程。In addition, suppose that the transaction is disputed, for example, the buyer-
接著,請參閱「第4圖」,「第4圖」為應用本創作於買方端主機進行履約保證交易之示意圖。假設位於買方端主機140的買方欲針對購買的商品在交易平台進行支付,可開啟交易平台提供的結帳視窗400,並且在確認商品圖片411、賣方的錢包地址412及商品的價格413均無誤之後,在輸入區塊414中輸入自訂的解鎖密語,以及在選擇元件415選擇一種雜湊演算法(如:MD5、SHA等等),接著,點選支付元件416以執行支付。此時,買方端主機140會在第一智能合約發布第一智能合約,將與價格413相應的數位資產作為第一數位資產且託管於第一智能合約。在實際實施上,所述第一智能合約的參數包含:買方在第一區塊鏈110的錢包地址(即:買方端第一錢包地址)、賣方在第一區塊鏈110的錢包地址(即:賣方端第一錢包地址)、交易平台在第一區塊鏈110的錢包地址(即:第三方第一錢包地址)、欲託管交付的第一數位資產(如:一個以太幣「1 ETH」)、託管逾時時間、買方端雜湊值、第三方雜湊值、使用的雜湊演算法等等。其中,買方端雜湊值是將輸入的解鎖密語以選擇的雜湊演算法進行雜湊後所生成;使用的雜湊演算法則是根據選擇元件415所選擇雜湊演算法進行設定;第三方雜湊值則留待第三方主機130進行設定。至於託管逾時時間則可使用預設值或任意指定的方式進行設定。Next, please refer to "Picture 4". "Picture 4" is a schematic diagram of using this book to perform performance guarantee transactions on the buyer's host. Assuming that the buyer at the buyer’s
接下來,如「第5圖」所示意,「第5圖」為應用本創作於第三方主機設定解鎖密語之示意圖。當第一智能合約發布後,作為交易平台的第三方主機130可以產生設定視窗500,用以提示在輸入區塊510中輸入相應此筆交易的解鎖密語,並且在完成輸入後,點選確定元件520,以便根據第一智能合約記載使用的雜湊演算法對此解鎖密語進行雜湊,進而獲得第三方雜湊值且設定在第一智能合約。在實際實施上,除了產生設定視窗500提示輸入解鎖密語的方式之外,亦可在此筆交易產生時,不產生設定視窗500,而是直接自動以隨機亂數的方式產生相應此筆交易的解鎖密語,接著再以第一智能合約記載使用的雜湊演算法進行雜湊生成第三方雜湊值,並且將生成的第三方雜湊值作為參數設定在第一智能合約中。需要注意的是,無論解鎖密語如何產生,第三方主機130皆需要記錄每一筆交易及其對應的解鎖密語,以便在第三方主機130判斷交易鏈外交付成功時,能夠將所述解鎖密語提供給第二智能合約,用以公開解鎖密語,同時將第二數位資產轉移給買方端第二錢包地址。Next, as shown in "Picture 5", "Picture 5" is a schematic diagram of applying this creation to a third-party host to set an unlock password. After the first smart contract is released, the third-
綜上所述,可知本創作與先前技術之間的差異在於透過買方端主機及賣方端主機分別在不同區塊鏈的智能合約託管數位資產,並且根據交易實體在鏈外交付的結果,相互轉移或退還彼此在智能合約託管的數位資產,以及允許第三方主機在不託管交易實體的情況下,進行交易仲裁以判斷鏈外交付是否成功,當判斷鏈外交付成功時,無需買方端主機同意,即能夠相互轉移買方端主機及賣方端主機託管的數位資產,藉由此一技術手段可以解決先前技術所存在的問題,進而達成提高履約保證的可靠性之技術功效。In summary, the difference between this creation and the previous technology is that the buyer-side host and the seller-side host respectively host digital assets in smart contracts in different blockchains, and transfer each other according to the results of the transaction entity's delivery outside the chain. Or refund each other’s digital assets hosted in smart contracts, and allow third-party hosts to conduct transaction arbitration to determine whether the off-chain delivery is successful without hosting the transaction entity. When the off-chain delivery is successful, the buyer’s host is not required to agree. That is, the digital assets hosted by the buyer's host and the seller's host can be transferred to each other, and by this technical means, the problems of the previous technology can be solved, and then the technical effect of improving the reliability of the performance guarantee can be achieved.
雖然本創作以前述之實施例揭露如上,然其並非用以限定本創作,任何熟習相像技藝者,在不脫離本創作之精神和範圍內,當可作些許之更動與潤飾,因此本創作之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。Although this creation is disclosed as above with the foregoing embodiments, it is not intended to limit this creation. Anyone who is familiar with similar arts and crafts can make some changes and retouching without departing from the spirit and scope of this creation. The scope of patent protection shall be determined by the scope of the patent application attached to this specification.
110:第一區塊鏈 120:第二區塊鏈 130:第三方主機 140:買方端主機 141:買方端發布模組 142:買方端偵測模組 150:賣方端主機 151:賣方端發布模組 152:賣方端偵測模組 400:結帳視窗 411:商品圖片 412:賣方的錢包地址 413:價格 414:輸入區塊 415:選擇元件 416:支付元件 500:設定視窗 510:輸入區塊 520:確定元件 步驟210:提供同時連接第一區塊鏈及第二區塊鏈的一買方端主機、一賣方端主機及一第三方主機 步驟220:該買方端主機在該第一區塊鏈上發布一第一智能合約,並且在該第一智能合約中設定一買方端雜湊值,以及將一第一數位資產轉移至該第一智能合約託管 步驟230:該第三方主機在該第一智能合約中設定一第三方雜湊值 步驟240:當該賣方端主機自該第一智能合約中獲得該買方端雜湊值及該第三方雜湊值時,在一第二區塊鏈上發布一第二智能合約,並且將一第二數位資產轉移至該第二智能合約託管 步驟250:該買方端主機及該第三方主機對鏈外交付進行偵測,當該買方端主機及該第三方主機至少其中之一偵測到鏈外交付成功時,執行該第二智能合約的一第二提取函式,其中,該第二提取函式自該買方端主機及該第三方主機至少其中之一接收相應的一解鎖密語,並且雜湊所述解鎖密語以與該第二智能合約中的該買方端雜湊值或該第三方雜湊值進行比對,當比對相符時,將該第二智能合約託管中的該第二數位資產轉移至該買方端主機的一買方端第二錢包地址,再將所述解鎖密語儲存在該第二智能合約中 步驟260:該賣方端主機對該第二智能合約中的所述解鎖密語進行偵測,當該賣方端主機在該第二智能合約中偵測到所述解鎖密語時,執行該第一智能合約的一第一提取函式,其中,該第一提取函式將偵測到的所述解鎖密語進行雜湊,用以與該第一智能合約中的該買方端雜湊值或該第三方雜湊值進行比對,並且在比對符合時,將該第一智能合約託管中的該第一數位資產轉移至該賣方端主機的一賣方端第一錢包地址 步驟270:當該買方端主機及該第三方主機皆偵測到鏈外交付失敗時,使該第二智能合約超過一託管逾時時間以將該第二智能合約託管中的該第二數位資產轉移至該賣方端主機的一賣方端第二錢包地址,以及使該第一智能合約超過該託管逾時時間以將該第一智能合約託管中的該第一數位資產轉移至該買方端主機的一買方端第一錢包地址 110: the first blockchain 120: Second blockchain 130: Third-party host 140: Buyer's host 141: Buyer release module 142: Buyer-side detection module 150: seller host 151: The seller releases the module 152: Seller-side detection module 400: checkout window 411: Product picture 412: Seller's wallet address 413: price 414: Input block 415: Select component 416: Payment element 500: setting window 510: input block 520: Identify components Step 210: Provide a buyer-side host, a seller-side host, and a third-party host that simultaneously connect the first blockchain and the second blockchain Step 220: The buyer host issues a first smart contract on the first blockchain, and sets a buyer hash value in the first smart contract, and transfers a first digital asset to the first smart Contract custody Step 230: The third-party host sets a third-party hash value in the first smart contract Step 240: When the seller-side host obtains the buyer-side hash value and the third-party hash value from the first smart contract, a second smart contract is issued on a second blockchain, and a second digital Asset transfer to the second smart contract escrow Step 250: The buyer-side host and the third-party host detect off-chain delivery. When at least one of the buyer-side host and the third-party host detects that the off-chain delivery is successful, the second smart contract is executed. A second extraction function, wherein the second extraction function receives a corresponding unlock password from at least one of the buyer-side host and the third-party host, and hashs the unlock password to the second smart contract Compare the buyer’s hash value or the third party’s hash value, and when the comparison matches, transfer the second digital asset in the custody of the second smart contract to a buyer’s second wallet address of the buyer’s host , And then store the unlock code in the second smart contract Step 260: The seller-side host detects the unlocking cipher in the second smart contract, and when the seller-side host detects the unlocking cipher in the second smart contract, execute the first smart contract A first extraction function of the first extraction function, wherein the first extraction function hashes the detected unlock cipher for use with the buyer-side hash value or the third-party hash value in the first smart contract Compare, and when the match is met, transfer the first digital asset in the custody of the first smart contract to a seller's first wallet address of the seller's host Step 270: When both the buyer-side host and the third-party host detect out-of-chain delivery failure, make the second smart contract exceed a escrow time-out time to escrow the second digital asset in the second smart contract Transfer to a seller-side second wallet address of the seller-side host, and make the first smart contract exceed the escrow timeout to transfer the first digital asset in the escrow of the first smart contract to the buyer-side host's A buyer's first wallet address
第1圖為本創作基於跨鏈且非託管實體的履約保證交易系統之系統方塊圖。 第2A圖及第2B圖為本創作基於跨鏈且非託管實體的履約保證交易方法之方法流程圖。 第3圖為應用本創作的履約保證交易流程之示意圖。 第4圖為應用本創作於買方端主機進行履約保證交易之示意圖。 第5圖為應用本創作於第三方主機設定解鎖密語之示意圖。 Figure 1 is a system block diagram of creating a performance guarantee transaction system based on cross-chain and non-custodial entities. Figures 2A and 2B are flowcharts of methods for creating a performance guarantee transaction method based on cross-chain and non-custodial entities. Figure 3 is a schematic diagram of the performance guarantee transaction process using this creation. Figure 4 is a schematic diagram of using this book to perform performance guarantee transactions on the buyer's host. Figure 5 is a schematic diagram of applying this creation to a third-party host to set an unlock password.
110:第一區塊鏈 110: the first blockchain
120:第二區塊鏈 120: Second blockchain
130:第三方主機 130: Third-party host
140:買方端主機 140: Buyer's host
141:買方端發布模組 141: Buyer release module
142:買方端偵測模組 142: Buyer-side detection module
150:賣方端主機 150: seller host
151:賣方端發布模組 151: The seller releases the module
152:賣方端偵測模組 152: Seller-side detection module
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108208696U TWM593602U (en) | 2019-07-04 | 2019-07-04 | Cross-chain and non-custodial entity performance guarantee transaction system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108208696U TWM593602U (en) | 2019-07-04 | 2019-07-04 | Cross-chain and non-custodial entity performance guarantee transaction system |
Publications (1)
Publication Number | Publication Date |
---|---|
TWM593602U true TWM593602U (en) | 2020-04-11 |
Family
ID=71133396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108208696U TWM593602U (en) | 2019-07-04 | 2019-07-04 | Cross-chain and non-custodial entity performance guarantee transaction system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWM593602U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113538004A (en) * | 2020-04-16 | 2021-10-22 | 天宿智能科技股份有限公司 | Asset management resume evidence accumulation system and method based on block chain |
US20230162173A1 (en) * | 2021-11-22 | 2023-05-25 | Matthew Charles James | System for Implementing Artificially Intelligent Smart Contract Escrow Service |
-
2019
- 2019-07-04 TW TW108208696U patent/TWM593602U/en not_active IP Right Cessation
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113538004A (en) * | 2020-04-16 | 2021-10-22 | 天宿智能科技股份有限公司 | Asset management resume evidence accumulation system and method based on block chain |
CN113538004B (en) * | 2020-04-16 | 2024-02-13 | 天宿智能科技股份有限公司 | Asset management record and storage and collection system and method based on blockchain |
US20230162173A1 (en) * | 2021-11-22 | 2023-05-25 | Matthew Charles James | System for Implementing Artificially Intelligent Smart Contract Escrow Service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI772654B (en) | Escrowing system for cross-blockchain third-party settlement and method thereof | |
Hasan et al. | Blockchain-based proof of delivery of physical assets with single and multiple transporters | |
US10592985B2 (en) | Systems and methods for a commodity contracts market using a secure distributed transaction ledger | |
US20210133713A1 (en) | Asset right management system based on blockchain and method thereof | |
TWI759563B (en) | Asset management method and device, electronic equipment | |
JP6364132B2 (en) | Blockchain transaction recording system and method | |
KR20180101355A (en) | Systems and methods for improving security in exchanges of block-chain assets | |
JP2022520656A (en) | Computer-implemented systems and methods for performing transfers over the blockchain network | |
US10728219B2 (en) | Enhancing security of communications during execution of protocol flows | |
WO2021254328A1 (en) | Blockchain-based asset information processing method and system | |
US20200279321A1 (en) | Systems and methods for facilitating an open-ended dutch auction | |
US20190095910A1 (en) | Secure cryptocurrency exchange | |
US20230306387A1 (en) | Contingent payments for virtual currencies | |
US20200402031A1 (en) | Systems and methods for generating smart contracts to manage escrow transactions | |
GB2586470A (en) | Systems and methods for generating smart contracts to manage escrow transactions | |
JP2020048161A (en) | Transaction device, transaction method and transaction program | |
WO2023183151A1 (en) | Non-fungible token (nft) purchase and transfer system | |
TWM593602U (en) | Cross-chain and non-custodial entity performance guarantee transaction system | |
TWI716236B (en) | Electronic receipt/invoice confirming and escrow system based on blockchain and method thereof | |
KR20200000595A (en) | Blockchain based certificate management method and device, server and system thereof | |
JP2023510320A (en) | Systems and Methods for Secure Peer-to-Peer Transmission of Content in Distributed Ledger Networks | |
WO2022183913A1 (en) | Blockchain-based real right interaction | |
US20210004791A1 (en) | Guaranteeing server and method for transaction on blockchain | |
CN110599184A (en) | Method and device for network service account transaction, server and storage medium | |
KR20210068039A (en) | Context-based filtering within a subset of network nodes implementing the trading system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4K | Annulment or lapse of a utility model due to non-payment of fees |