[go: up one dir, main page]

TWI648680B - System of smart contract, method for making the contract and computer-readable storage device - Google Patents

System of smart contract, method for making the contract and computer-readable storage device Download PDF

Info

Publication number
TWI648680B
TWI648680B TW106142222A TW106142222A TWI648680B TW I648680 B TWI648680 B TW I648680B TW 106142222 A TW106142222 A TW 106142222A TW 106142222 A TW106142222 A TW 106142222A TW I648680 B TWI648680 B TW I648680B
Authority
TW
Taiwan
Prior art keywords
contract
user
server
smart
address
Prior art date
Application number
TW106142222A
Other languages
Chinese (zh)
Other versions
TW201926155A (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 TW106142222A priority Critical patent/TWI648680B/en
Priority to CN201810241567.6A priority patent/CN109872113A/en
Application granted granted Critical
Publication of TWI648680B publication Critical patent/TWI648680B/en
Publication of TW201926155A publication Critical patent/TW201926155A/en

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一種智能合約系統、合約制訂方法與電腦可讀取儲存裝置,在以電腦系統實現的合約制訂方法中,在使用者裝置上執行的軟體程序提供制訂智能合約的一使用者介面,其中提供多個快捷選項,合約伺服器接收到使用者通過使用者介面產生一合約選項的選擇訊號,因此啟始對應的合約制訂程序,讓使用者在一條件輸入介面輸入合約制訂參數,並於確認支付一筆數位貨幣後,合約內容編譯形成合約數位檔案,經包裹後產生交易碼,並發布於一區塊鏈上,經等待採礦結果後,得到一合約位址。 A smart contract system, a contract formulation method and a computer readable storage device. In a contract development method implemented by a computer system, a software program executed on a user device provides a user interface for formulating a smart contract, wherein multiple The quick option, the contract server receives the selection signal from the user to generate a contract option through the user interface, so the corresponding contract formulation procedure is initiated, and the user enters the contract input parameter in a conditional input interface, and confirms the payment of a digit. After the currency, the contract content is compiled into a contract digital file. After the package is generated, the transaction code is generated and published on a blockchain. After waiting for the mining result, a contract address is obtained.

Description

智能合約系統、合約制訂方法與電腦可讀取儲存裝置 Smart contract system, contract development method and computer readable storage device

一種智能合約系統與制訂方法,特別是一種根基於區塊鏈技術並提供使用者介面制訂智能合約的方法,以及相關系統與儲存媒體。 A smart contract system and method of development, in particular a method based on blockchain technology and providing a user interface to develop smart contracts, as well as related systems and storage media.

區塊鏈(Blockchain)是指通過去中心化(如伺服中心)和去信任方式(如第三方認證)的一種分散式管理的技術,以一種分散式拓樸(Distributed topology)運作,讓參與其中的各個節點將一段時間產生的資料通過密碼學演算法加密後產生雜湊值(hash),記錄到一個分散式的數據塊(block),並能鏈結下一個數據塊,如此,區塊鏈把資料庫分別放在不同的節點裡保存,並且互相監控數據,資料更動需要經過其餘節點的共識同意。因此,這種分散式管理的機制形成去中心化的公開帳本(ledger),相關應用系統可以通過所有參與節點共同檢驗記錄真偽,並且每個數據塊的內容都由後續子鏈上的區塊來保證其內容不可被篡改。 Blockchain refers to a decentralized management technique through decentralization (such as servo center) and de-trust (such as third-party authentication). It operates in a distributed topology and participates in it. Each node encrypts the data generated over a period of time by a cryptographic algorithm to generate a hash, records it into a decentralized block of data, and can link the next block of data. Thus, the block chain The data bases are stored in different nodes, and the data is monitored by each other. The data changes need to be agreed by the rest of the nodes. Therefore, this decentralized management mechanism forms a decentralized public ledger (ledger), and the relevant application system can jointly verify the authenticity of the record through all participating nodes, and the content of each data block is covered by the area on the subsequent sub-chain. Block to ensure that its contents cannot be tampered with.

區塊鏈上的每個數據塊適用各種安全與公平需求的應用,例如貨幣、股權、債券等的交易,交易資訊由無數獨立的節點(電腦)維護、更新和核查,可確保記帳結果的公平、公正和公開透明,並無需任何中心化機構的審核和維護。 Each block on the blockchain is suitable for a variety of security and fair-demand applications, such as currency, equity, bonds, etc. Transaction information is maintained, updated, and verified by countless independent nodes (computers) to ensure fair accounting results. Fair, open and transparent, without the need for review and maintenance by any central organization.

在一應用區塊鏈技術的交易應用中,使用者需要一個數位錢包(digital wallet),用以記錄數位貨幣(digital currency),或稱加密貨幣(Cryptcurrency),每個數位錢包通過加密演算法使用鑰匙對(公鑰與私鑰)加密保護。執行一筆交易時,使用公鑰加密交易內容,傳遞到交易對象時,只有配有對應私鑰的對象才能解密而取得交易內容;反之,用私鑰加密交易內容,擁有公鑰的對象就可以配對的公鑰解密而取得交易內容。如此,在區塊鏈分散式帳本的應用上,某人想要執行交易,如轉帳,可以他的私鑰加密轉帳資料,並以私鑰產生數位簽章(digital signature),用以確認轉帳資料發送來源的真偽,之後廣播到網路上,每個接收到此筆轉帳資料的節點可以使用配對的公鑰解密轉帳資料,如此可以確保傳送訊息的人的身份,也將轉帳資料利用加密技術儲存在各節點中。因此,每個節點都保有一份帳本,紀錄了在網路上所有使用某個區塊鏈技術的每筆交易紀錄。 In a transactional application of blockchain technology, users need a digital wallet to record digital currency, or cryptocurrency, and each digital wallet is encrypted. The key pair (public key and private key) is encrypted and protected. When executing a transaction, the public key is used to encrypt the transaction content. When the transaction object is delivered to the transaction object, only the object with the corresponding private key can decrypt the transaction content; otherwise, the transaction content is encrypted with the private key, and the object with the public key can be paired. The public key is decrypted to obtain the transaction content. Thus, in the application of the blockchain decentralized ledger, someone wants to execute a transaction, such as a transfer, can encrypt the transfer information with his private key, and generate a digital signature with the private key to confirm the transfer. The authenticity of the data transmission source, and then broadcasted to the network, each node that receives the transfer data can use the paired public key to decrypt the transfer information, thus ensuring the identity of the person transmitting the message, and also using the encryption technology for the transfer information. Stored in each node. Therefore, each node maintains a book that records every transaction record on the network using a blockchain technology.

在區塊鏈上運行的程式可稱為智能合約(Smart Contract),以太坊(Ethereum)是其中一個編寫智能合約功能的公共區塊鏈平台,通過以太坊專用加密貨幣以太幣(Ether)提供去中心化的虛擬機器(Ethereum Virtual Machine)來處理合約。在此以太坊平台下,完成合約撰寫後,程式碼(如Solidity程式碼)將經編譯成規範好的二進位碼才能部署到以太坊的區塊鏈上執行,部署到區塊鏈上的合約會有一個和錢包地址(Address)一樣格式的合約地址(Contract Address)。 The program running on the blockchain can be called Smart Contract. Ethereum is one of the public blockchain platforms for writing smart contract functions. It is provided by Ethereum's special cryptocurrency Ether. A centralized virtual machine (Ethereum Virtual Machine) to process contracts. Under this Ethereum platform, after the contract is written, the code (such as Solidity code) will be compiled into a standardized binary code to be deployed to the Ethereum blockchain and deployed to the blockchain. There will be a Contract Address in the same format as the Wallet Address.

智能合約部署成功後,成為不可更改的區塊鏈的一部分,分散地儲存在全球各地以太坊的節點上。常見的智能合約即各種加密貨幣合約,例如提供運行於以太坊上的某種加密代幣,可以直接使用支援以太坊的數位錢包收送加密代幣。 Once the smart contract is deployed successfully, it becomes part of the unchangeable blockchain and is stored decentralized on nodes at Ethereum around the world. Common smart contracts are various cryptocurrency contracts, such as providing some kind of crypto token running on Ethereum, which can be used to directly receive encrypted tokens in Ethereum's digital wallet.

揭露書提出一種智能合約系統與合約制訂方法,通過軟體介面提供使用者快速設定智能合約,並與一系統伺服器連線,將智能合約的制訂請求傳送到系統伺服器,通過使用者介面設定合約內容,由系統伺服器發布合約到區塊鏈上,由區塊鏈上採礦者得到智能合約的位址後,完成合約的制訂。 The disclosure proposes a smart contract system and contract formulation method, which provides users with a soft interface to quickly set up smart contracts, and connects with a system server to transmit smart contract formulation requests to the system server and set up contracts through the user interface. Content, the system server issues the contract to the blockchain, and the miners of the blockchain get the address of the smart contract and complete the contract.

根據實施例,智能合約系統提供一合約伺服器,以及執行於各使用者裝置上的軟體程序,使用者裝置連線合約伺服器,並啟始執行制訂智能合約的一使用者介面,其中提供包括有多個快捷選項的快捷合約制訂介面。 According to an embodiment, the smart contract system provides a contract server, and a software program executed on each user device, the user device connects to the contract server, and initiates execution of a user interface for formulating a smart contract, including providing A quick contract development interface with multiple shortcut options.

合約伺服器通過使用者端的使用者介面得到使用者制訂智能合約的選擇,以執行一對應的智能合約制訂程序,包括啟始對應合約項目的條件輸入介面,使用者可藉此輸入合約制訂參數,通過合約伺服器完成合約內容,當合約伺服器確認支付一筆數位貨幣,如以太幣,即將完成的合約內容編譯形成一合約數位檔案,經包裹後產生交易碼,並發布於一區塊鏈上,如以太坊區塊鏈,經等待一採礦結果後,得到一合約位址。 The contract server obtains the user's choice of smart contract through the user interface of the user to execute a corresponding smart contract formulation process, including starting the condition input interface of the corresponding contract item, and the user can input the contract to formulate parameters. The contract server completes the contract content, and when the contract server confirms the payment of a digital currency, such as Ethereum, the contract content to be completed is compiled into a contract digital file, and the transaction code is generated after parsing, and is published on a blockchain. For example, in the Ethereum blockchain, after waiting for a mining result, a contract address is obtained.

之後,提出合約制訂請求的使用者可以從合約伺服器得到合約位址,在完成一些初步程序後,如將一定數量的代幣傳送到合約位址,再經由社群媒體傳播合約位址。 After that, the user who made the contract formulation request can obtain the contract address from the contract server. After completing some preliminary procedures, if a certain amount of tokens are transmitted to the contract address, the contract address is transmitted through the social media.

有興趣的消費者可以參與此智能合約,包括發送數位貨幣到合約位址,使得智能合約自動將代幣分派給參與此智能合約的消費者的一數位錢包帳戶中。 Interested consumers can participate in this smart contract, including sending digital currency to the contract address, so that the smart contract automatically assigns the token to a digital wallet account of the consumer participating in the smart contract.

所述合約制訂方法更包括在合約因為條件滿足或是終止時,停止派幣程序,讓使用者開始提領收到的數位貨幣。 The contract formulation method further includes stopping the money distribution process when the contract is satisfied or terminated, and allowing the user to start withdrawing the received digital currency.

當使用者想要註銷合約時,合約制訂方法更提供一合約註銷程序,合約伺服器通過運行於使用者裝置上的使用者介面提示一合約註銷功能,並藉此啟始合約註銷功能,經合約伺服器接收使用者裝置傳送的合約註銷指令,並由伺服器發布於區塊鏈上,經 取得礦工採礦結果後,合約伺服器與使用者確認註銷合約。 When the user wants to cancel the contract, the contract formulation method further provides a contract cancellation procedure. The contract server prompts a contract cancellation function through the user interface running on the user device, and thereby initiates the contract cancellation function through the contract. The server receives the contract cancellation instruction transmitted by the user device, and is published by the server on the blockchain. After obtaining the mining result of the miner, the contract server confirms the cancellation contract with the user.

揭露書更揭示合約伺服器中的電腦可讀取儲存裝置,其中儲存在合約伺服器中執行上述的智能合約制訂方法的程式集,程式集經合約伺服器的一或多個處理器執行,可以取得使用者裝置通過使用者介面產生制訂智能合約的請求、合約選項選擇、條件輸入,以完成一合約內容,並於確認支付一筆數位貨幣後,合約內容可編譯成合約數位檔案,將交易碼發布於區塊鏈上,經採礦後得到合約位址。 The disclosure further discloses a computer readable storage device in the contract server, wherein the program stored in the contract server executes the smart contract formulation method described above, and the program is executed by one or more processors of the contract server, Acquiring the user device to generate a smart contract request, contract option selection, condition input through the user interface to complete a contract content, and after confirming payment of a digital currency, the contract content can be compiled into a contract digital file, and the transaction code is released. On the blockchain, the contract address is obtained after mining.

為了能更進一步瞭解本發明為達成既定目的所採取之技術、方法及功效,請參閱以下有關本發明之詳細說明、圖式,相信本發明之目的、特徵與特點,當可由此得以深入且具體之瞭解,然而所附圖式僅提供參考與說明用,並非用來對本發明加以限制者。 In order to further understand the technology, method and effect of the present invention in order to achieve the intended purpose, reference should be made to the detailed description and drawings of the present invention. The drawings are to be considered in all respects as illustrative and not restrictive

10‧‧‧網路 10‧‧‧Network

101‧‧‧合約伺服器 101‧‧‧ contract server

103,105‧‧‧使用者裝置 103,105‧‧‧User device

107‧‧‧網路節點 107‧‧‧Network node

20‧‧‧快捷合約制訂介面 20‧‧‧Quick contract development interface

21‧‧‧快捷選項 21‧‧‧Quick options

22‧‧‧合約制訂介面 22‧‧‧Contract development interface

41‧‧‧使用者 41‧‧‧Users

42‧‧‧伺服器 42‧‧‧Server

43‧‧‧區塊鏈 43‧‧‧ Blockchain

步驟S301~S321‧‧‧智能合約制訂流程 Step S301~S321‧‧‧ Smart Contract Development Process

步驟S401~S408‧‧‧智能合約制訂流程 Step S401~S408‧‧‧ Smart Contract Development Process

步驟S501~S509‧‧‧智能合約使用流程 Step S501~S509‧‧‧Smart Contract Usage Process

步驟S601~S607‧‧‧結算流程 Step S601~S607‧‧‧ settlement process

步驟S701~S711‧‧‧合約註銷流程 Step S701~S711‧‧‧ contract cancellation process

圖1顯示智能合約系統的網路架構示意圖;圖2顯示智能合約系統提供之快速設定智能合約的使用者介面示意圖;圖3顯示揭露書所提出智能合約制訂方法的實施例流程圖之一;圖4顯示揭露書所提出智能合約制訂方法的實施例流程圖之二;圖5顯示揭露書所提出智能合約使用流程實施例圖;圖6顯示揭露書所提出終止智能合約以及結算實施例流程圖;圖7顯示揭露書所提出註銷智能合約的實施例流程圖。 1 shows a schematic diagram of a network architecture of a smart contract system; FIG. 2 shows a user interface diagram of a smart contract system provided by a smart contract system; FIG. 3 shows one of the flowcharts of an embodiment of a smart contract formulation method disclosed in the disclosure; 4 shows a second flowchart of an embodiment of a smart contract formulation method proposed by the disclosure; FIG. 5 shows an embodiment of a smart contract use flow proposed by the disclosure; FIG. 6 shows a flowchart of a termination smart contract and a settlement embodiment proposed by the disclosure; Figure 7 shows a flow chart of an embodiment of the disclosure of a smart contract proposed by the disclosure.

揭露書公開一種智能合約系統與合約制訂方法,所述智能合約(smart contract)是以程式碼撰寫合約內文,應用區塊鏈(blockchain)技術將合約播送到區塊鏈上,如以太坊(Ethereum),由區塊鏈上的節點負責加密與記錄,產生分散式的記錄,最後由電腦執行的一種數位合約。在區塊鏈上制訂智能合約的好處是不會因為受到干預而被任意修改,兼具公開與安全的優點。 The disclosure discloses a smart contract system and a contract formulation method. The smart contract writes the contract text in a code, and uses a blockchain technology to broadcast the contract to the blockchain, such as Ethereum ( Ethereum), a node on the blockchain responsible for encryption and recording, producing decentralized records, and finally a digital contract executed by the computer. The benefit of developing a smart contract on the blockchain is that it is not arbitrarily modified by intervention, and has the advantages of both openness and security.

智能合約的應用例如保險、買賣、租約等,在滿足合約條件下將自動執行後續動作,如保險理賠、買賣成交、租約成交與到期等,參與智能合約的各方各自的電腦裝置運行一種以太坊虛擬機,電腦裝置在此作業系統下成為以太坊上的一個節點。 The application of smart contracts, such as insurance, trading, leases, etc., will automatically perform follow-up actions, such as insurance claims, sale and purchase transactions, lease transactions and expiration, etc., and the respective computer devices participating in the smart contract run an etheric In the virtual machine, the computer device becomes a node on the Ethereum under this operating system.

智能合約是一段存儲在以太坊區塊鏈上的電腦程式,可使用以太幣激活或者運行這些電腦程式。舉例來說,當交易雙方要在以太坊上進行一筆買賣,先新建以太坊帳戶,上傳到以太坊區塊鏈上,之後,買方同意支付以太幣(Ether)給賣方購買一個物品,利用電腦程式制訂一個智慧合約,實務上就是撰寫一段以太坊虛擬機程式,或是經過編譯特定電腦語言形成的以太坊虛擬機程式。 A smart contract is a computer program stored on the Ethereum blockchain that can be activated or run using Ethereum. For example, when the two parties want to make a sale in Ethereum, first create an Ethereum account and upload it to the Ethereum blockchain. After that, the buyer agrees to pay Ether to buy an item for the seller, using the computer program. To develop a smart contract, the practical thing is to write an Ethereum virtual machine program, or an Ethereum virtual machine program compiled by a specific computer language.

程式包括從買方得到買方數位錢包在乙太坊的位址(address),記錄一筆運行於以太坊上的以太幣支付金額,讓買方控制這筆金額,雙方同意交易後,激活合約,接著就是等待採礦結果,以完成此筆智能合約,完成以太幣移轉程序。智能合約為形成在以太坊區塊鏈上存儲、驗證和執行的代碼。 The program includes obtaining the buyer's digital wallet at the address of the Ethereum from the buyer, recording the amount of the Ethereum payment run on the Ethereum, allowing the buyer to control the amount. After both parties agree to the transaction, activate the contract, and then wait Mining results to complete this smart contract and complete the Ethereum transfer process. Smart contracts are code that is stored, verified, and executed on the Ethereum blockchain.

圖1顯示智能合約系統的網路架構示意圖。 Figure 1 shows a schematic diagram of the network architecture of a smart contract system.

智能合約系統提出一個合約伺服器101,運行於網路10上,建立在區塊鏈服務上,如以太坊(Ethereum)區塊鏈,以太坊是一個區塊鏈平台,讓使用者可以在此以太坊制定的平台上面撰寫與發佈程式,如智能合約,提供多元化的應用。在此平台上,智能合約通過去中心化的以太虛擬機(Ethereum Virtual Machine)來 處理合約。 The smart contract system proposes a contract server 101, which runs on the network 10 and is built on a blockchain service, such as the Ethereum blockchain. Ethereum is a blockchain platform that allows users to Ethereum's platform for writing and publishing programs, such as smart contracts, provides a wide range of applications. On this platform, smart contracts are passed through a decentralized Ethereum Virtual Machine. Handling contracts.

合約伺服器101用於在區塊鏈中部署編碼來創建新的合約,通過執行於使用者裝置103,105上的軟體程式,或是行動裝置上的應用程式(APP)上的代理程式,提供合約制訂的服務。根據實施例,於使用者裝置103,105上的軟體程式啟始圖形使用者介面,如圖2所示的示意圖,提供多個合約選項,讓使用者可以快速通過互動功能制訂合約,並通過合約伺服器101播送到區塊鏈上,由區塊鏈上的礦工,如網路節點107上的採礦程序,採礦結果為一個儲存此智能合約的區塊鏈位址。網路節點107上運行著以太坊虛擬機,也同時擔負區塊鏈數據保存者的角色,作為以太坊區塊鏈上收集、傳播、確認和執行交易的節點。網路節點107亦可從合約產生的交易費用獲取報酬。 The contract server 101 is used to deploy code in the blockchain to create a new contract, to provide contract development through software programs executed on the user devices 103, 105, or agents on the application (APP) on the mobile device. Service. According to an embodiment, the software program on the user devices 103, 105 initiates the graphical user interface, as shown in the schematic diagram of FIG. 2, providing a plurality of contract options, allowing the user to quickly develop a contract through the interactive function and through the contract server. 101 is broadcast to the blockchain, and the miners on the blockchain, such as the mining program on network node 107, mine the result as a blockchain address that stores the smart contract. The Ethereum virtual machine runs on the network node 107, and also acts as a blockchain data saver, as a node for collecting, transmitting, confirming, and executing transactions on the Ethereum blockchain. The network node 107 can also obtain remuneration from the transaction fees generated by the contract.

圖2顯示智能合約系統提供之快速設定智能合約的使用者介面示意圖。 Figure 2 shows a schematic diagram of the user interface of the smart contract system provided by the smart contract system.

智能合約系統包括提供使用者操作選擇快捷合約選項的使用者介面。在一實施例中,使用者介面如網頁介面,智能合約系統設有網頁伺服器(如HTTP server),通過使用者裝置執行的網頁瀏覽器提供快捷合約選項的使用者介面,如圖示的快捷合約制訂介面20,其中包括多個快捷選項21,例如票證合約(如餐廳餐卷合約)、電子鎖合約、租賃合約、買賣交易合約、音樂版權處理等。在實際實施時,圖形使用者介面並不限定於例圖中所示的樣態,可以依照使用者端軟硬體與使用者需求提供適當的顯示介面。 The smart contract system includes a user interface that provides the user with the option to select a quick contract option. In an embodiment, the user interface is a web interface, and the smart contract system is provided with a web server (such as an HTTP server), and the web browser of the user device provides a user interface of the quick contract option, such as the shortcut shown in the figure. The contract development interface 20 includes a plurality of shortcut options 21, such as ticket contracts (such as restaurant meal contracts), electronic lock contracts, lease contracts, sale and purchase contracts, music copyright processing, and the like. In actual implementation, the graphical user interface is not limited to the mode shown in the example, and the appropriate display interface can be provided according to the user's hardware and software and the user's needs.

每個快捷選項21的背後都聯繫著對應一合約項目的電腦程序,當使用者選擇其中之一合約項目,及啟動對應此合約項目的合約制訂程序的電腦程序,包括起始如圖中顯示的合約制訂介面22,其中顯示有對應智能合約的條件,此例圖顯示的幾個合約制訂參數,如合約功能、門檻值、發行時間、參考網址、代幣位址與合約制訂人等資訊,可任意組合。當使用者完成系統要求使用者設 定幾個合約制定參數,即可執行發布,將合約檔案經編譯為二位元碼後,傳送到智能合約系統的伺服器,如圖所示的合約伺服器101。 Each shortcut option 21 is associated with a computer program corresponding to a contract item, when the user selects one of the contract items, and starts a computer program corresponding to the contract development program of the contract item, including the start as shown in the figure. Contract development interface 22, which shows the conditions for the corresponding smart contract. This example shows several contract formulation parameters, such as contract function, threshold, issue time, reference URL, token address and contract developer. random combination. When the user completes the system request user setting After several contracts are formulated, the release can be performed, and the contract file is compiled into a two-digit code and transmitted to the server of the smart contract system, as shown in the contract server 101.

根據另一實施例,智能合約系統提供使用者裝置安裝一行動裝置上的應用程式APP,在使用者裝置啟動此應用程式時,起始一圖形使用者介面,此為應用程式介面,同樣可顯示包括多個快捷選項21的快捷合約制訂介面20,使用者通過行動裝置的觸控顯示器或是其他形式的顯示器的操作,選擇其中之一合約選項,應用程式及執行對應合約制定的電腦程序,要求使用者輸入對應合約的合約制訂參數,發布後,傳送到合約伺服器。 According to another embodiment, the smart contract system provides a user device to install an application APP on a mobile device. When the user device launches the application, a graphical user interface is started, which is an application interface, and can also be displayed. The quick contract development interface 20 includes a plurality of shortcut options 21, and the user selects one of the contract options, the application program, and the computer program for executing the corresponding contract through the operation of the touch display of the mobile device or other forms of display. The user enters the contract formulation parameters of the corresponding contract, and after delivery, transmits the parameters to the contract server.

當使用者通過在電腦裝置上執行的使用者介面完成合約設定時,執行的電腦程序如圖3所示揭露書所提出智能合約制訂方法的實施例流程圖之一。 When the user completes the contract setting through the user interface executed on the computer device, the executed computer program is shown in FIG. 3 as one of the flowcharts of the embodiment of the smart contract formulation method proposed in the book.

流程一開始,如步驟S301,智能合約系統用於執行智能合約制訂方法,各使用者裝置通過運行的軟體程序連線合約伺服器,並提供智能合約制訂使用者介面,其中顯示包括有多個快捷選項(21)的快捷合約制訂介面(20),讓使用者可以依循著快捷合約制訂介面選擇其中之一合約選項,如步驟S303,使得運行於使用者裝置內的軟體程序接收到通過使用者介面產生的選擇訊號,選擇訊號則聯繫著一個對應的合約電腦程序。再如步驟S305,使用者裝置內處理器將執行對應合約制訂程序,如步驟S307,包括啟始對應選擇合約項目的使用者介面,如一種條件輸入介面,系統通過此使用者介面要求使用者輸入合約制訂參數,並接收藉此介面產生的合約制訂參數,如步驟S309,形成一筆合約制訂內容。 At the beginning of the process, as in step S301, the smart contract system is used to execute the smart contract formulation method, and each user device connects the contract server through the running software program, and provides a smart contract to formulate a user interface, wherein the display includes multiple shortcuts. The shortcut contract development interface (20) of the option (21) allows the user to select one of the contract options according to the shortcut contract development interface. In step S303, the software program running in the user device is received through the user interface. The generated selection signal, the selection signal is linked to a corresponding contract computer program. In step S305, the processor in the user device executes the corresponding contract formulation process, such as step S307, including starting a user interface corresponding to the selected contract item, such as a condition input interface, and the system requests the user input through the user interface. The contract formulates the parameters and receives the contract formulation parameters generated by the interface. In step S309, a contract formulation content is formed.

此時,在以太坊等區塊鏈的智能合約制訂規則下,將於合約內容完成後要求使用者以特定數位貨幣(如以太幣)支付費用,費用將提供以太坊等區塊鏈上的礦工採礦的激勵金。而系統仍可於合約開始制訂之前要求支付數位貨幣,此流程程序步驟順序並 不限定實質技術特徵。接著如步驟S311,使用者同意支付數位貨幣後,傳送到合約伺服器,以確認數位代幣支付。步驟的同時,或是在一定時間內,將由使用者電腦內軟體程序運作,或由合約伺服器運作,如步驟S313,將合約內容編譯形成合約數位檔案(binary file),如步驟S315,產生可以播送在區塊鏈上的合約包裹,如步驟S317,合約伺服器將此包裹發布到區塊鏈上,以等待區塊鏈上各礦工的採曠結果,如步驟S319。 At this time, under the smart contract formulation rules of blockchains such as Ethereum, the user will be required to pay the fee in a specific digital currency (such as Ethereum) after the completion of the contract, and the fee will be provided to the miners on the blockchain such as Ethereum. Incentives for mining. And the system can still ask for the payment of digital currency before the contract begins to be developed. Essential technical features are not limited. Then, in step S311, the user agrees to pay the digital currency and then transmits it to the contract server to confirm the digital token payment. At the same time, or within a certain period of time, the software program in the user's computer will operate, or be operated by the contract server. In step S313, the contract content is compiled into a contract file, as in step S315, The contract package is broadcasted on the blockchain. In step S317, the contract server posts the package to the blockchain to wait for the mining result of each miner on the blockchain, as in step S319.

在一定時間內,合約伺服器將可接收到採礦結果,實務上為一個合約位址,如步驟S321,由伺服器接收後,傳送到使用者裝置,告知合約位址。智能合約制訂方法流程運行於使用者裝置、合約伺服器,以及區塊鏈上的節點之間,實施例亦可參考圖4所示智能合約制訂方法的實施例流程圖之二,其中顯示為使用者41、伺服器42與區塊鏈43之間步驟S401到S408的智能合約制訂流程。 Within a certain period of time, the contract server will receive the mining result, which is actually a contract address. If it is received by the server in step S321, it is transmitted to the user device to inform the contract address. The smart contract development method flow runs between the user device, the contract server, and the nodes on the blockchain. For an embodiment, reference may also be made to the flowchart of the embodiment of the smart contract formulation method shown in FIG. 4, which is shown as using 41, the smart contract formulation process of steps S401 to S408 between the server 42 and the blockchain 43.

在此表示下,使用者41操作一使用者裝置,如個人電腦、行動裝置等,於使用者裝置上運行一軟體程序,實施例為啟始一使用者介面,由使用者選擇所需制訂合約的選項,一旦連線伺服器42,合約選項將隨附個人認證資訊、加密資料等,向伺服器42傳送合約制訂服務的請求(步驟S401)。 In this context, the user 41 operates a user device, such as a personal computer, a mobile device, etc., to run a software program on the user device. The embodiment is to initiate a user interface, and the user selects a required contract. The option, once the server 42 is connected, the contract option will be accompanied by personal authentication information, encrypted data, etc., to the server 42 to transmit a request to contract the service (step S401).

伺服器42接著通過使用者裝置上軟體程序啟始使用者介面,如行動裝置的APP或是網頁介面,要求輸入合約內容(步驟S402),例如代幣數量、用途、數位貨幣資訊(錢包位址、以太幣帳戶等)。經使用者41完成輸入後,傳送合約內容與相關認證與安全資訊(如使用者識別資訊)到伺服器42,並確認發布合約(步驟S403)。 The server 42 then initiates a user interface, such as a mobile device's APP or web interface, by requesting input of contract content (step S402), such as the number of tokens, usage, and digital currency information (wallet address). , Ethereum account, etc.). After the user 41 completes the input, the contract content and related authentication and security information (such as user identification information) are transmitted to the server 42, and the release contract is confirmed (step S403).

此時,伺服器42即可要求支付代幣,要求使用者2提供數位貨幣帳戶位址,如運行於以太坊區塊鏈上的數位貨幣(步驟S404)。若以以太幣為例,這是激活以太坊區塊鏈上智能合約的燃料(gas),可以採用兩種類型的帳戶,一是外部帳戶,由私密金鑰加密保存 的,以及合約帳戶,如一運算得到的位址訊息,由合約代碼控制的。支付以太幣時,使用者通過數位簽章發送支付訊息,每當合約帳戶收到訊息時,合約內部的代碼就會被啟動,允許讀取和寫入,以制訂智能合約。 At this time, the server 42 may request payment of a token, and the user 2 is required to provide a digital currency account address, such as a digital currency running on the Ethereum blockchain (step S404). In the case of Ethereum, which is the fuel that activates the smart contract on the Ethereum blockchain, two types of accounts can be used. One is an external account, which is encrypted by the private key. And the contract account, such as an operation to obtain the address message, controlled by the contract code. When paying for the Ethereum, the user sends a payment message via a digital signature. When the contract account receives the message, the internal code of the contract is activated, allowing reading and writing to create a smart contract.

此例中,一旦使用者41向伺服器42發送確認支付的訊息(步驟S405),伺服器42編譯合約內容,形成智能合約數位檔案,產生交易碼(transaction code),這是一種具有數位簽章的數據包(hash值),交易碼含有合約內容、使用者識別資訊與支付資訊(token)等,並向區塊鏈43上發布合約(步驟S406),並等待區塊鏈上的採礦結果,也就是等待一筆合約位址(步驟S407)。當伺服器42接收到區塊鏈43上的採礦結果,於此例中就是產生新的區塊(礦工們每挖到一個成功的區塊就會得到以太幣獎勵),取得此筆合約的位址,即將此合約位址通知制訂合約的使用者41(步驟S408)。一旦區塊鏈上確保有解鎖的帳戶和數位貨幣支付,即部署完成,在區塊鏈上就會制訂一個合約。 In this example, once the user 41 sends a message confirming the payment to the server 42 (step S405), the server 42 compiles the contract content to form a smart contract digital file, and generates a transaction code, which is a digital signature. Data packet (hash value), the transaction code contains contract content, user identification information and payment information (token), etc., and issues a contract to the blockchain 43 (step S406), and waits for the mining result on the blockchain. That is, waiting for a contract address (step S407). When the server 42 receives the mining results on the blockchain 43, in this case a new block is created (the miners get an Ethereum reward for each successful block) and the position of the contract is obtained. The address, that is, the contract address is notified to the user 41 who made the contract (step S408). Once the unlocked account and digital currency payment are guaranteed on the blockchain, the deployment is complete and a contract is created on the blockchain.

之後,由使用者41在網際網路(如社群媒體)上公佈合約位址,有興趣者可以參與合約。合約完成部署後,即可參考圖5所示使用流程實施例圖,此圖例流程步驟S501~S509描述智能合約使用流程。 After that, the user 41 announces the contract address on the Internet (such as social media), and interested parties can participate in the contract. After the contract is deployed, the process flow diagram shown in Figure 5 can be referred to. The flow process steps S501~S509 describe the smart contract usage flow.

如圖5所示,一開始,如步驟S501,使用者成功地通過智能合約系統通過使用者裝置上的使用者介面產生並取得合約位址,再如步驟S503,使用者將一定數量的代幣傳送到合約位址,這些代幣可以為消費者有興趣的票證、入場券、允許使用特定物品的權限證明,再經公告合約位址後,如步驟S505,開始執行合約,即啟動一派幣程序。 As shown in FIG. 5, initially, in step S501, the user successfully generates and obtains a contract address through the user interface on the user device through the smart contract system, and in step S503, the user sets a certain number of tokens. Transferred to the contract address, these tokens can be used for tickets, admission tickets, and permission certificates for the use of specific items. After the announcement of the contract address, as in step S505, the contract is executed, and a currency program is started. .

參與合約的消費者,如步驟S507,可以依循著使用者公佈於網路社群上的合約條件發送數位貨幣到合約位址,一經確認支付後,如步驟S509,智能合約將自動將代幣分派給消費者,包括消 費者的數位錢包帳戶中。 The consumer participating in the contract, in step S507, can follow the contract conditions published by the user on the online community to send the digital currency to the contract address. Once the payment is confirmed, the smart contract will automatically dispatch the token as in step S509. For consumers, including consumer The fee is in the digital wallet account.

舉例來說,當使用者制訂合約,其中包括有傳送一定數量的代幣的餐券、錢包位址以及時間資訊(合約終止期限),消費者可以從合約制訂者得知合約位址,有興趣者可以依照錢包位址傳送數位貨幣,一經確認支付之後,將以派幣程序將餐券派送到消費者的裝置上,可為分派到消費者的數位錢包帳戶。 For example, when a user formulates a contract, which includes a meal coupon, a wallet address, and time information (contract termination term) for transmitting a certain amount of tokens, the consumer can learn the contract address from the contract developer and is interested. The person can transfer the digital currency according to the wallet address, and once the payment is confirmed, the meal coupon will be dispatched to the consumer's device, which can be a digital wallet account assigned to the consumer.

接著,智能合約系統提供終止(或提領貨幣)智能合約的方案,如圖6所示終止智能合約以及結算實施例流程圖。 Next, the smart contract system provides a solution for terminating (or withdrawing money) smart contracts, as shown in Figure 6, terminating the smart contract and the settlement embodiment flow chart.

當智能合約因為條件滿足或是使用者終止時,如步驟S601,將停止派幣程序,如以上餐券為例,即合約到期,或是代幣用盡,即自動停止派幣,不再接受消費者支付數位貨幣取得餐券。這時,制訂合約的使用者可登入合約伺服器,如步驟S603,要求提領收到的數位貨幣,如以太幣。過程中,使用者通過運行在使用者裝置上的軟體程序產生ping的訊息,傳送到合約位址,如步驟S605,伺服器執行合約提領的指令,合約就將收到的數位貨幣等有價的合約幣,即結算數位貨幣,傳送到使用者的數位貨幣帳戶內,如步驟S607。 When the smart contract is satisfied by the condition or the user terminates, as in step S601, the paying currency program will be stopped. For example, if the above meal coupon expires, or the contract expires, the coin is automatically stopped, and the coin is no longer automatically stopped. Accept the consumer to pay the digital currency to get the meal coupon. At this time, the user who made the contract can log in to the contract server, and in step S603, request to receive the received digital currency, such as the Ethereum. In the process, the user generates a ping message through the software program running on the user device, and transmits the message to the contract address. In step S605, the server executes the contract withdrawal instruction, and the contract will receive the digital currency and the like. The contract currency, that is, the settlement digital currency, is transferred to the user's digital currency account, as by step S607.

一旦智能合約被成功制訂,在區塊鏈上已經佔有一個位址,成了永久的記錄,即不得刪除。然而,就合約來說,有可能在特定情況下必須毀約,在此智能合約制訂方法的方案中,可以採用如圖7所示揭露書所提出的註銷智能合約的實施例流程圖。 Once the smart contract is successfully developed, it already has an address on the blockchain and becomes a permanent record, ie it cannot be deleted. However, in the case of a contract, it is possible to break the contract in a specific case. In the scheme of the smart contract formulation method, a flowchart of an embodiment of the cancellation smart contract proposed in the disclosure shown in FIG. 7 may be employed.

在條件上,由於合約制訂都是通過揭露書所揭示的智能合約系統,如步驟S701所述,合約伺服器已經提供使用者區塊鏈帳戶,以及數位錢包位址,使用者可藉此通過智能合約系統提供的使用者帳戶執行合約註銷程序。 In terms of conditions, since the contract formulation is through the smart contract system disclosed in the disclosure book, as described in step S701, the contract server has provided the user blockchain account, and the digital wallet address, so that the user can use the smart The user account provided by the contract system performs the contract cancellation process.

接著如步驟S703,合約伺服器通過運行於使用者裝置上的使用者介面提示智能合約的幾項功能,包括合約註銷功能,一經執行此合約註銷功能,如步驟S705,合約伺服器接收通過使用者介 面產生的註銷合約的功能選擇,軟體程序即產生一合約註銷指令,如步驟S707,合約伺服器即取得使用者傳送的註銷指令,之後如步驟S709,經於區塊鏈上發布後,就是等待採礦結果,經取得礦工採礦結果後,如步驟S711,合約伺服器與使用者確認註銷合約。 Then, in step S703, the contract server prompts several functions of the smart contract through the user interface running on the user device, including the contract cancellation function, and once the contract cancellation function is executed, in step S705, the contract server receives the user through the contract. Jie The function selection of the cancellation contract generated by the surface, the software program generates a contract cancellation instruction. In step S707, the contract server obtains the cancellation instruction transmitted by the user, and then, after step S709, after being released on the blockchain, is waiting After the mining result is obtained, after obtaining the mining result of the miner, in step S711, the contract server confirms the cancellation contract with the user.

揭露書更揭示合約伺服器中的電腦可讀取儲存裝置,其中儲存在合約伺服器中執行的智能合約制訂方法的程式集,程式集經合約伺服器的一或多個處理器執行,以取得使用者裝置通過使用者介面產生制訂智能合約的請求;接收到通過使用者介面產生的一選擇訊號,啟始對應的合約制訂程序;接收通過一條件輸入介面產生的合約制訂參數,完成一合約內容;並於確認支付一筆數位貨幣後,將合約內容編譯形成一合約數位檔案,經包裹後產生交易碼,並發布於區塊鏈上;以及經等待採礦結果後,得到一合約位址。所述的電腦可讀取儲存裝置更儲存一合約註銷程序的程式集,經合約伺服器處理器執行後,包括通過運行於使用者裝置上的使用者介面提示的合約註銷功能,接收通過註銷合約的功能選擇,即啟始合約註銷功能,產生合約註銷指令,經發布於區塊鏈上以及取得礦工採礦結果後,與使用者確認註銷合約。 The disclosure further discloses a computer readable storage device in the contract server, wherein the assembly of the smart contract development method executed in the contract server is executed by one or more processors of the contract server to obtain The user device generates a request for formulating a smart contract through the user interface; receives a selection signal generated through the user interface, initiates a corresponding contract formulation procedure; receives a contract formulation parameter generated through a conditional input interface, and completes a contract content After confirming the payment of a digital currency, the contract content is compiled into a contract digital file, the transaction code is generated after parceling, and posted on the blockchain; and after waiting for the mining result, a contract address is obtained. The computer readable storage device further stores a program of a contract cancellation program, and after being executed by the contract server processor, includes a contract cancellation function prompted by a user interface running on the user device, and receiving the cancellation contract The function selection, that is, the start of the contract cancellation function, generates a contract cancellation instruction, and after the release on the blockchain and the mining result of the miner, the user cancels the cancellation contract.

是以,根據以上實施例所描述的智能合約系統、制訂方法與電腦可讀取儲存裝置,所提出的智能合約系統通過執行於使用者裝置上的使用者介面提供多個快捷合約選項,以及要求輸入合約內容的合約制訂介面,讓使用者可以便捷地執行一般需要撰寫程式才能完成合約制訂的程序,並由一合約伺服器協助在區塊鏈上的合約管理、提領與註銷等程序。 Therefore, according to the smart contract system, the formulation method and the computer readable storage device described in the above embodiments, the proposed smart contract system provides a plurality of quick contract options and requirements through a user interface executed on the user device. Enter the contract development interface for the contract content so that users can easily execute the program that normally needs to write a program to complete the contract formulation, and a contract server assists in the process of contract management, withdrawal and cancellation on the blockchain.

惟以上所述僅為本發明之較佳可行實施例,非因此即侷限本發明之專利範圍,故舉凡運用本發明說明書及圖示內容所為之等效結構變化,均同理包含於本發明之範圍內,合予陳明。 However, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Therefore, equivalent structural changes that are made by using the specification and the contents of the present invention are equally included in the present invention. Within the scope, it is combined with Chen Ming.

Claims (11)

一種以電腦系統實現的合約制訂方法,運行於一智能合約系統,包括:通過一合約伺服器連線一行動裝置,通過執行於該行動裝置上的軟體程序提供制訂智能合約的一使用者介面,該使用者介面提供多個快捷選項;該合約伺服器接收到通過該使用者介面產生的一選擇訊號,啟始一合約制訂程序,該選擇訊號對應一合約項目的電腦程序;啟始對應該合約項目的一條件輸入介面,該合約伺服器接收通過該條件輸入介面產生的合約制訂參數,包括一代幣數量、用途與數位貨幣資訊,完成一合約內容;於合約伺服器確認支付一筆數位貨幣後,將該合約內容編譯形成一合約數位檔案,經包裹後產生交易碼,並發布於一區塊鏈上;以及經等待一採礦結果後,該合約伺服器得到一合約位址,並提供該合約位址給啟始該合約制訂程序的使用者,以經由網際網路傳播該合約位址;其中,於啟始該合約制訂程序的使用者得到該合約位址時,將一定數量的代幣傳送到該合約位址,並啟動一派幣程序;當參與該智能合約的消費者發送數位貨幣到該合約位址時,該智能合約自動將該代幣分派給參與該智能合約的消費者的一數位錢包帳戶中;當該智能合約因為條件滿足或是終止時,停止該派幣程序,以開始提領收到的數位貨幣。 A contract development method implemented by a computer system, running on a smart contract system, comprising: connecting a mobile device through a contract server, and providing a user interface for formulating a smart contract through a software program executed on the mobile device, The user interface provides a plurality of shortcut options; the contract server receives a selection signal generated through the user interface, initiates a contract formulation procedure, and the selection signal corresponds to a computer program of a contract item; a conditional input interface of the project, the contract server receives the contract formulation parameters generated by the condition input interface, including the quantity of the token, the usage and the digital currency information, and completes a contract content; after the contract server confirms payment of a digital currency, Compiling the contract content into a contract digital file, generating a transaction code after parceling and publishing it on a blockchain; and after waiting for a mining result, the contract server obtains a contract address and provides the contract position Site to the user who initiated the contract development process to spread via the Internet a contract address; wherein, when the user who initiated the contract development process obtains the contract address, a certain amount of tokens are transferred to the contract address and a currency program is initiated; when the consumer participates in the smart contract When sending a digital currency to the contract address, the smart contract automatically assigns the token to a digital wallet account of the consumer participating in the smart contract; when the smart contract meets or terminates due to conditions, the currency is stopped. Program to start withdrawing the digital currency received. 如請求項1所述的合約制訂方法,其中,於該合約伺服器得到該合約位址,即告知啟始該合約制訂程序的使用者,該使用者經由社群媒體傳播該合約位址。 The contract formulation method of claim 1, wherein the contract server obtains the contract address, that is, the user who initiated the contract development process, and the user transmits the contract address via the social media. 如請求項1所述的合約制訂方法,更包括一合約註銷程序,包括:該合約伺服器通過運行於該行動裝置上的該使用者介面提示一合約註銷功能;該合約伺服器接收通過該使用者介面產生的註銷合約的功能選擇,即啟始該合約註銷功能;該合約伺服器接收一合約註銷指令,並發布於該區塊鏈上;以及經取得礦工採礦結果後,該合約伺服器與使用者確認註銷合約。 The contract formulation method of claim 1, further comprising a contract cancellation procedure, comprising: the contract server prompting a contract cancellation function through the user interface running on the mobile device; the contract server receiving the use The functional selection of the cancellation contract generated by the interface, that is, the contract cancellation function is initiated; the contract server receives a contract cancellation instruction and issues it on the blockchain; and after obtaining the mining result of the miner, the contract server and The user confirms the cancellation of the contract. 如請求項1所述的合約制訂方法,其中該使用者介面為執行於一行動裝置上的一應用程式介面,該應用程式介面上顯示包括該多個快捷選項的一快捷合約制訂介面,以及對應選擇的該合約項目的該條件輸入介面。 The contract development method of claim 1, wherein the user interface is an application interface executed on a mobile device, the application interface displays a shortcut contract development interface including the plurality of shortcut options, and corresponding The conditional input interface of the selected contract item. 如請求項4所述的合約制訂方法,其中該合約制訂參數包括合約功能、門檻值、發行時間、參考網址、代幣位址與合約制訂人的任意組合。 The contract formulation method of claim 4, wherein the contract formulation parameters include contract function, threshold, issue time, reference URL, token address, and any combination of contract developers. 如請求項1所述的合約制訂方法,其中,於編譯形成該合約數位檔案時,產生的該交易碼為一種具有數位簽章的數據包,該交易碼含有合約內容、使用者識別資訊與支付資訊。 The contract development method according to claim 1, wherein when the contract digital file is compiled, the transaction code generated is a data packet having a digital signature, the transaction code including contract content, user identification information, and payment. News. 如請求項1至6其中之一所述的合約制訂方法,其中該區塊鏈為一以太坊區塊鏈,該數位貨幣為以太幣。 The contract development method according to any one of claims 1 to 6, wherein the blockchain is an Ethereum blockchain, and the digit currency is Ethereum. 一種智能合約系統,包括:一合約伺服器;一執行於各行動裝置上的軟體程序,用以連線該合約伺服器,並啟始執行制訂智能合約的一使用者介面;其中,該合約伺服器執行一智能合約制訂方法,包括:通過該合約伺服器連線其中之一行動裝置,通過執行 於該行動裝置上的軟體程序提供制訂智能合約的該使用者介面,該使用者介面提供多個快捷選項;該合約伺服器接收到通過該使用者介面產生的一選擇訊號,啟始一合約制訂程序,該選擇訊號對應一合約項目的電腦程序;啟始對應該合約項目的一條件輸入介面,該合約伺服器接收通過該條件輸入介面產生的合約制訂參數,包括一代幣數量、用途與數位貨幣資訊,完成一合約內容;於合約伺服器確認支付一筆數位貨幣後,將該合約內容編譯形成一合約數位檔案,經包裹後產生交易碼,並發布於一區塊鏈上;以及經等待一採礦結果後,該合約伺服器得到一合約位址,並提供該合約位址給啟始該合約制訂程序的使用者,以經由網際網路傳播該合約位址;其中,於啟始該合約制訂程序的使用者得到該合約位址時,將一定數量的代幣傳送到該合約位址,並啟動一派幣程序;當參與該智能合約的消費者發送數位貨幣到該合約位址時,該智能合約自動將該代幣分派給參與該智能合約的消費者的一數位錢包帳戶中;當該智能合約因為條件滿足或是終止時,停止該派幣程序,以開始提領收到的數位貨幣。 A smart contract system comprising: a contract server; a software program executed on each mobile device for connecting the contract server and initiating a user interface for formulating a smart contract; wherein the contract server Executing a smart contract formulation method, including: connecting one of the mobile devices through the contract server, and executing The software program on the mobile device provides the user interface for formulating a smart contract, the user interface provides a plurality of shortcut options; the contract server receives a selection signal generated through the user interface, initiates a contract formulation a program, the selection signal corresponding to a computer program of a contract item; initiating a conditional input interface corresponding to the contract item, the contract server receiving contract formulation parameters generated by the condition input interface, including the quantity of the token, the use and the digit currency Information, complete a contract content; after the contract server confirms payment of a digital currency, compile the contract content into a contract digital file, generate a transaction code after parcel, and publish it on a blockchain; and wait for a mining After the result, the contract server obtains a contract address and provides the contract address to the user who initiated the contract development process to disseminate the contract address via the Internet; wherein the contract development procedure is initiated When the user gets the contract address, a certain amount of tokens are transferred to the contract address and a currency program; when a consumer participating in the smart contract sends a digital currency to the contract address, the smart contract automatically assigns the token to a digital wallet account of the consumer participating in the smart contract; when the smart contract When the condition is met or terminated, the currency program is stopped to begin withdrawing the received digital currency. 如請求項8所述的智能合約系統,其中該智能合約系統通過該合約伺服器執行一合約註銷程序,包括:該合約伺服器通過運行於該行動裝置上的該使用者介面提示一合約註銷功能;該合約伺服器接收通過該使用者介面產生的註銷合約的功能選擇,即啟始該合約註銷功能; 該合約伺服器接收一合約註銷指令,並發布於該區塊鏈上;以及經取得礦工採礦結果後,該合約伺服器與使用者確認註銷合約。 The smart contract system of claim 8, wherein the smart contract system performs a contract cancellation procedure through the contract server, comprising: the contract server prompting a contract cancellation function through the user interface running on the mobile device The contract server receives the function selection of the cancellation contract generated through the user interface, that is, the contract cancellation function is initiated; The contract server receives a contract cancellation instruction and publishes it on the blockchain; and upon obtaining the mining result of the miner, the contract server confirms the cancellation contract with the user. 一種電腦可讀取儲存裝置,儲存在一合約伺服器中執行的一智能合約制訂方法的程式集,經該合約伺服器的一或多個處理器執行以下步驟:取得一行動裝置通過一使用者介面產生制訂一智能合約的請求,其中該使用者介面提供多個快捷選項;接收到通過該使用者介面產生的一選擇訊號,啟始一合約制訂程序,該選擇訊號對應一合約項目的電腦程序;接收通過一條件輸入介面產生的合約制訂參數,包括一代幣數量、用途與數位貨幣資訊,完成一合約內容;確認支付一筆數位貨幣後,將該合約內容編譯形成一合約數位檔案,經包裹後產生交易碼,並發布於一區塊鏈上;以及經等待一採礦結果後,該合約伺服器得到一合約位址,並提供該合約位址給啟始該合約制訂程序的使用者,以經由網際網路傳播該合約位址;其中,於啟始該合約制訂程序的使用者得到該合約位址時,將一定數量的代幣傳送到該合約位址,並啟動一派幣程序;當參與該智能合約的消費者發送數位貨幣到該合約位址時,該智能合約自動將該代幣分派給參與該智能合約的消費者的一數位錢包帳戶中;當該智能合約因為條件滿足或是終止時,停止該派幣程序,以開始提領收到的數位貨幣。 A computer readable storage device storing a set of smart contract formulation methods executed in a contract server, the one or more processors of the contract server performing the following steps: obtaining a mobile device through a user The interface generates a request for formulating a smart contract, wherein the user interface provides a plurality of shortcut options; receiving a selection signal generated through the user interface, initiates a contract formulation process, and the selection signal corresponds to a computer program of a contract item Receiving contract formulation parameters generated through a conditional input interface, including the amount of tokens, usage and digital currency information, completing a contract content; confirming the payment of a digital currency, compiling the contract content into a contract digital file, after wrapping Generating a transaction code and posting it on a blockchain; and after waiting for a mining result, the contract server obtains a contract address and provides the contract address to the user who initiated the contract development process to The Internet spreads the contract address; among them, the user who initiated the contract development process The contract address transmits a certain amount of tokens to the contract address and initiates a currency program; when a consumer participating in the smart contract sends a digital currency to the contract address, the smart contract automatically copies the generation The currency is distributed to a digital wallet account of the consumer participating in the smart contract; when the smart contract is met or terminated due to conditions, the currency program is stopped to begin withdrawing the received digital currency. 如請求項10所述的電腦可讀取儲存裝置,其中更儲存由該合約伺服器執行一合約註銷程序的程式集,經該一或多個處理器執行以下步驟:通過運行於該行動裝置上的該使用者介面提示一合約註銷功能;接收通過該使用者介面產生的註銷合約的功能選擇,即啟始該合約註銷功能;接收一合約註銷指令,並發布於該區塊鏈上;以及經取得礦工採礦結果後,與使用者確認註銷合約。 The computer readable storage device of claim 10, further storing a program executed by the contract server to execute a contract cancellation program, and the one or more processors perform the following steps: running on the mobile device The user interface prompts a contract cancellation function; receives a function selection of the cancellation contract generated through the user interface, that is, initiates the contract cancellation function; receives a contract cancellation instruction, and issues it on the blockchain; After obtaining the mining result of the miner, confirm the cancellation contract with the user.
TW106142222A 2017-12-01 2017-12-01 System of smart contract, method for making the contract and computer-readable storage device TWI648680B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW106142222A TWI648680B (en) 2017-12-01 2017-12-01 System of smart contract, method for making the contract and computer-readable storage device
CN201810241567.6A CN109872113A (en) 2017-12-01 2018-03-22 Smart contract system, contract formulation method and computer readable storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106142222A TWI648680B (en) 2017-12-01 2017-12-01 System of smart contract, method for making the contract and computer-readable storage device

Publications (2)

Publication Number Publication Date
TWI648680B true TWI648680B (en) 2019-01-21
TW201926155A TW201926155A (en) 2019-07-01

Family

ID=65803912

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106142222A TWI648680B (en) 2017-12-01 2017-12-01 System of smart contract, method for making the contract and computer-readable storage device

Country Status (2)

Country Link
CN (1) CN109872113A (en)
TW (1) TWI648680B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI702555B (en) * 2019-07-16 2020-08-21 英屬開曼群島商現代財富控股有限公司 Dividend distribution system based on security token and method thereof
TWI715036B (en) * 2019-05-15 2021-01-01 宏碁股份有限公司 File verification method, file verification system and file verification server
TWI741900B (en) * 2020-12-03 2021-10-01 安瀚科技股份有限公司 Cryptocurrency management system for business use
TWI751553B (en) * 2020-05-11 2022-01-01 財金資訊股份有限公司 Method and system for paying digital currency

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647553B (en) * 2019-08-02 2022-05-24 广州供电局有限公司 A method and system for managing electricity transaction contracts based on blockchain
CN114830160A (en) * 2019-12-19 2022-07-29 松下电器(美国)知识产权公司 Control method, device, and program
TWI783330B (en) * 2020-12-22 2022-11-11 天宿智能科技股份有限公司 Anonymous disclosure and four-party verification system based on blockchain and allowing identity confirmation and method thereof
KR102768206B1 (en) * 2022-03-29 2025-02-13 미쓰비시덴키 가부시키가이샤 Data verification device, client application, blockchain system, data verification method, and data verification program stored in recording medium

Citations (6)

* Cited by examiner, † Cited by third party
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.
CN106651303A (en) * 2016-12-02 2017-05-10 北京轻信科技有限公司 Intelligent contract processing method and system based on templates
CN106681739A (en) * 2017-01-11 2017-05-17 杭州云象网络技术有限公司 Method for automatically generating intelligent contract
CN107146101A (en) * 2017-04-24 2017-09-08 杭州趣链科技有限公司 A kind of universal electric issuing preferential tickets method based on block chain
TW201732706A (en) * 2016-02-23 2017-09-16 恩鏈控股有限公司 Blockchain implementation of intelligent contract registration and automated management methods
CN107180353A (en) * 2017-06-29 2017-09-19 飞天诚信科技股份有限公司 The implementation method and device of a kind of revocable intelligent contract transaction

Patent Citations (6)

* Cited by examiner, † Cited by third party
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.
TW201732706A (en) * 2016-02-23 2017-09-16 恩鏈控股有限公司 Blockchain implementation of intelligent contract registration and automated management methods
CN106651303A (en) * 2016-12-02 2017-05-10 北京轻信科技有限公司 Intelligent contract processing method and system based on templates
CN106681739A (en) * 2017-01-11 2017-05-17 杭州云象网络技术有限公司 Method for automatically generating intelligent contract
CN107146101A (en) * 2017-04-24 2017-09-08 杭州趣链科技有限公司 A kind of universal electric issuing preferential tickets method based on block chain
CN107180353A (en) * 2017-06-29 2017-09-19 飞天诚信科技股份有限公司 The implementation method and device of a kind of revocable intelligent contract transaction

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI715036B (en) * 2019-05-15 2021-01-01 宏碁股份有限公司 File verification method, file verification system and file verification server
US11361110B2 (en) 2019-05-15 2022-06-14 Acer Incorporated File verification method, file verification system and file verification server
TWI702555B (en) * 2019-07-16 2020-08-21 英屬開曼群島商現代財富控股有限公司 Dividend distribution system based on security token and method thereof
TWI751553B (en) * 2020-05-11 2022-01-01 財金資訊股份有限公司 Method and system for paying digital currency
TWI741900B (en) * 2020-12-03 2021-10-01 安瀚科技股份有限公司 Cryptocurrency management system for business use

Also Published As

Publication number Publication date
CN109872113A (en) 2019-06-11
TW201926155A (en) 2019-07-01

Similar Documents

Publication Publication Date Title
TWI648680B (en) System of smart contract, method for making the contract and computer-readable storage device
JP7652951B2 (en) Method and system for directing exchanges associated with tokens held anonymously on a blockchain
JP7806150B2 (en) Blockchain-implemented method and system
JP7377312B2 (en) Systems and methods realized by blockchain
JP6940212B1 (en) Application linkage method, computer program and application linkage system
US20200058023A1 (en) Decentralized Data Marketplace
CN110675149B (en) Data processing methods, devices, equipment and storage media based on blockchain
US9872050B2 (en) Method for generating, providing and reproducing digital contents in conjunction with digital currency, and terminal and computer readable recording medium using same
CN104106276B (en) Multi-layer secure mobile transaction enabling platform
CA3136622A1 (en) Systems, devices, and methods for dlt-based data management platforms and data products
CN110088793A (en) Data isolation in block chain network
CN110796449A (en) Transaction processing method, system, medium and computing device
CN112200567A (en) Blockchain-based resource management method, device and electronic device
US10019696B2 (en) Distributed digital rights-managed file transfer and access control
Kim et al. Autochain platform: expert automatic algorithm Blockchain technology for house rental dApp image application model
CN112200570A (en) Blockchain-based resource distribution method, device and electronic device
TWI675336B (en) System of smart ticket, method for issuing ticket and computer-readable storage device
CN111444090A (en) Contract testing method, device, electronic device and storage medium in blockchain
US20250069052A1 (en) Intellectual property asset fractional payment system and method
US12519667B1 (en) Electronically verified command transmission between programs
Castell Ferreres Development of a DAPP
Zhang Interworking Mechanism of Blockchain Platforms for Secure Tourism Service
Lago Decentralized Application for E-Commerce Using Blockchain and Trusted Compute
Santos et al. Blockchain-Based Loyalty Management System. Future Internet 2023, 15, 161
Körbel A Blockchain-based computation offloading approach with result verification

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees