TW201945989A - System of smart ticket, method for issuing ticket and computer-readable storage device - Google Patents

System of smart ticket, method for issuing ticket and computer-readable storage device Download PDF

Info

Publication number
TW201945989A
TW201945989A TW107114691A TW107114691A TW201945989A TW 201945989 A TW201945989 A TW 201945989A TW 107114691 A TW107114691 A TW 107114691A TW 107114691 A TW107114691 A TW 107114691A TW 201945989 A TW201945989 A TW 201945989A
Authority
TW
Taiwan
Prior art keywords
contract
smart
smart ticket
ticket
network platform
Prior art date
Application number
TW107114691A
Other languages
Chinese (zh)
Other versions
TWI675336B (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 TW107114691A priority Critical patent/TWI675336B/en
Priority to CN201910163598.9A priority patent/CN110414957A/en
Application granted granted Critical
Publication of TWI675336B publication Critical patent/TWI675336B/en
Publication of TW201945989A publication Critical patent/TW201945989A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The disclosure is related to a system of smart ticket and a method for issuing the ticket. In the method, a smart ticket contract address can be obtained by a mining process over a blockchain that allows a user to set up a smart contract. Then the smart ticket contract address is uploaded to a network platform. When a ticket configuration has been completed, the smart ticket contract with a certain number of smart tickets and related parameters can be published on the network platform. In the method for issuing the smart ticket, a consumer can deliver digital currency to the smart ticket contract address or a digital wallet address using a user interface initiated by the network platform. A payment can be completed. The smart ticket contract can automatically issue the smart ticket corresponding to the paid digital currency to a user device.

Description

智能票證系統、智能票證派發方法與電腦可讀取儲存裝置    Intelligent ticket system, intelligent ticket distribution method and computer-readable storage device   

揭露書公開一種智能票證系統與方法,特別是一種根基於區塊鏈技術以一網路平台提供設定智能票證合約與派***證的服務的智能票證系統與票證派發方法。 The disclosure discloses a smart ticket system and method, particularly a smart ticket system and ticket distribution method based on blockchain technology that provides a service for setting smart ticket contracts and issuing invoices through a network platform.

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

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

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

在區塊鏈上運行的程式可稱為智能合約(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, a cryptocurrency dedicated to Ethereum. A centralized virtual machine (Ethereum Virtual Machine) handles contracts. Under this Ethereum platform, after the contract is written, the code (such as Solidity code) will be compiled into a standardized binary code before it can be deployed on the Ethereum blockchain and executed. The contract deployed on the blockchain There will be a Contract Address in the same format as the Wallet Address.

智能合約部署成功後,成為不可更改的區塊鏈的一部分,分散地儲存在全球各地以太坊的節點上。常見的智能合約即各種加密貨幣合約,例如提供運行於以太坊上的某種加密代幣,可以直接使用支援以太坊的數位錢包收送加密代幣。通過智能合約,可以衍生出各種建構於區塊鏈下的各種應用。 After the successful deployment of smart contracts, it becomes part of the immutable blockchain and is stored decentrally on Ethereum nodes around the world. Common smart contracts are various cryptocurrency contracts, such as providing some kind of cryptocurrency tokens running on Ethereum, which can directly use the digital wallet supporting Ethereum to send and receive cryptocurrency tokens. Through smart contracts, various applications built under the blockchain can be derived.

揭露書提出一種智能票證系統、智能票證派發方法與電腦可讀取儲存裝置,應用以區塊鏈機制建立的智能合約形成一種票證服務,智能票證系統如一個網路平台,提供使用者可以在平台上輸入建立智能票證合約的合約參數 The disclosure proposes a smart ticket system, a smart ticket distribution method, and a computer-readable storage device. The smart contract established by the blockchain mechanism is used to form a ticket service. The smart ticket system, such as a network platform, provides users with Enter the contract parameters for establishing a smart ticket contract on

根據智能票證派發方法的實施例,當使用者在一區塊鏈上產生並取得智能票證合約位址後,上傳智能票證合約位址至網路平台,並完成設定與公佈一智能票證合約,此時可啟動一派發智能票證的程序。在此程序中,使用者裝置執行軟體程式產生使用者介面,可通過網路平台傳送一筆適用該合約的數位貨幣到智能票證合約位址或數位錢包位址以完成支付,經網路平台確認支付後,智能票證合約將自動將對應該筆數位貨幣的智能票證派發至使用者裝置。 According to the embodiment of the smart ticket distribution method, after a user generates and obtains a smart ticket contract address on a blockchain, uploads the smart ticket contract address to the network platform, and completes setting and publishing a smart ticket contract. A procedure for issuing smart tickets can be started at any time. In this process, a user device executes a software program to generate a user interface. A digital currency applicable to the contract can be sent to the smart ticket contract address or digital wallet address through the network platform to complete the payment, and the payment is confirmed by the network platform. After that, the smart ticket contract will automatically distribute the smart ticket corresponding to the digital currency to the user device.

在一實施例中,設定智能票證合約的流程包括由網路平台接收使用者裝置上傳的智能票證合約後,網路平台自使用者裝置接收一個數量的票證到智能票證合約,並設定合約參數,接著公佈智能票證合約位址,讓消費者可通過網路平台以一數位貨幣或代幣支付以購買智能票證。 In an embodiment, the process of setting a smart ticket contract includes the network platform receiving a smart ticket contract uploaded by a user device, the network platform receiving a number of tickets from the user device to the smart ticket contract, and setting contract parameters, Then, the smart ticket contract address is announced, so that consumers can purchase smart tickets by paying in digital currency or tokens through the online platform.

所述合約參數包括:派發智能票證的期限、智能票證的數量、適用數位貨幣以及數位錢包位址的其中之一或任意組合。 The contract parameters include one or any combination of the time limit for issuing smart tickets, the number of smart tickets, applicable digital currencies, and digital wallet addresses.

在智能票證系統中,系統通過一網路平台實現智能票證派發方法,系統設有伺服主機,其中具有一或多個處理器與一電腦可讀取儲存裝置,經處理器執行儲存於電腦可讀取儲存裝置中的程式集,可執行上述智能票證派發方法。 In the smart ticket system, the system implements a smart ticket distribution method through a network platform. The system is provided with a servo host, which has one or more processors and a computer-readable storage device, and is stored in the computer-readable storage by the processor. Take the program set in the storage device and execute the smart ticket distribution method described above.

揭露書夠更提出一電腦可讀取儲存裝置,其中儲存一程式集,經網路平台的伺服主機中處理器處理後,執行所述的智能票證派發方法。 The disclosure is enough to propose a computer-readable storage device in which a program set is stored, and after being processed by a processor in a server host of a network platform, the smart ticket distribution method described above is executed.

為了能更進一步瞭解本發明為達成既定目的所採取之技術、方法及功效,請參閱以下有關本發明之詳細說明、圖式,相信本 發明之目的、特徵與特點,當可由此得以深入且具體之瞭解,然而所附圖式僅提供參考與說明用,並非用來對本發明加以限制者。 In order to further understand the technology, methods and effects adopted by the present invention to achieve the intended purpose, please refer to the following detailed description and drawings of the present invention. It is believed that the purpose, features and characteristics of the present invention can be further and specifically It is understood, however, the drawings are provided for reference and description only, and are not intended to limit the present invention.

10‧‧‧網路 10‧‧‧Internet

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

103,105‧‧‧使用者裝置 103,105‧‧‧user devices

107‧‧‧網路節點 107‧‧‧Network Node

20‧‧‧快捷合約制訂介面 20‧‧‧ Quick Contract Formulation Interface

21‧‧‧快捷選項 21‧‧‧Quick Options

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

41‧‧‧使用者 41‧‧‧users

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

43‧‧‧區塊鏈 43‧‧‧blockchain

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

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

步驟S501~S507‧‧‧智能票證合約設定流程 Steps S501 ~ S507‧‧‧ Smart Ticket Contract Setting Process

步驟S601~S607‧‧‧智能票證派發流程 Steps S601 ~ S607‧‧‧ Smart Ticket Distribution Process

步驟S701~S707‧‧‧結算流程 Steps S701 ~ S707‧‧‧Settlement process

步驟S801~S811‧‧‧合約註銷流程 Steps S801 ~ S811‧‧‧ Contract cancellation process

圖1顯示智能合約系統的網路架構示意圖;圖2顯示智能合約系統提供之快速設定智能合約的使用者介面示意圖;圖3顯示制訂智能合約的實施例流程圖之一;圖4顯示制訂智能合約的實施例流程圖之二;圖5顯示流程為設定智能票證的實施例流程圖;圖6顯示揭露書所提出智能票證派發流程實施例圖;圖7顯示揭露書所提出終止智能票證合約以及結算實施例流程圖;圖8顯示揭露書所提出註銷智能票證合約的實施例流程圖。 Figure 1 shows the schematic diagram of the network structure of the smart contract system; Figure 2 shows the schematic diagram of the user interface for setting smart contracts quickly provided by the smart contract system; Figure 3 shows one of the flowcharts of the embodiment of formulating smart contracts; Figure 4 shows the formulating of smart contracts The second embodiment of the flowchart; Figure 5 shows the flow chart for setting the smart ticket embodiment; Figure 6 shows the embodiment of the smart ticket distribution process proposed by the disclosure; Figure 7 shows the termination of the smart ticket contract and settlement proposed by the disclosure Embodiment flowchart; FIG. 8 shows an embodiment flowchart of the cancellation of the smart ticket contract proposed in the disclosure.

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

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

智能合約是一段存儲在以太坊區塊鏈上的電腦程式,可使用以太幣激活或者運行這些電腦程式。舉例來說,當交易雙方要在以太坊上進行一筆買賣,先新建以太坊帳戶,上傳到以太坊區塊鏈上,之後,買方同意支付以太幣(Ether)給賣方購買一個物品,利用電腦程式制訂一個智慧合約,實務上就是撰寫一段以太坊虛擬機程式,或是經過編譯特定電腦語言形成的以太坊虛擬機程式。 A smart contract is a computer program stored on the Ethereum blockchain. You can use Ether to activate or run these computer programs. For example, when both parties of a transaction want to make a sale on Ethereum, a new Ethereum account is first created and uploaded to the Ethereum blockchain. After that, the buyer agrees to pay Ether to purchase an item from the seller and use a computer program. Formulating a smart contract is actually writing an Ethereum virtual machine program, or an Ethereum virtual machine program formed by compiling a specific computer language.

程式包括從買方得到買方數位錢包在乙太坊的位址(address),記錄一筆運行於以太坊上的以太幣支付金額,讓買方控制這筆金額,雙方同意交易後,激活合約,接著就是等待挖礦結果,以完成此筆智能合約,完成以太幣移轉程序。智能合約為形成在以太坊區塊鏈上存儲、驗證和執行的代碼。 The program includes obtaining the address of the buyer's digital wallet in Ethereum from the buyer, recording an amount of Ethereum payment running on Ethereum, and letting the buyer control the amount. After the parties agree to the transaction, the contract is activated, and then wait Mining results to complete this smart contract and complete the ether 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 that runs on the network 10 and is built on blockchain services, such as the Ethereum blockchain. Ethereum is a blockchain platform that allows users to Ethereum has written and published programs on the platform, such as smart contracts, to provide diversified applications. On this platform, smart contracts process contracts through a decentralized Ethereum Virtual Machine.

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

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

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

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

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

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

流程一開始,如步驟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. Each user device connects to the contract server through a running software program and provides a smart contract formulation user interface. The display includes multiple shortcuts. The shortcut contract formulation interface (20) of option (21) allows the user to select one of the contract options according to the shortcut contract formulation interface, such as step S303, so that the software program running in the user device receives the user interface through the user interface. The generated selection signal is associated with a corresponding contract computer program. Taking the application of smart ticket distribution proposed in the disclosure as an example, the smart contract system will execute the computer program that generates the smart ticket contract. For another step S305, the processor in the user device will execute the corresponding contract formulation process, such as step S307, which includes starting a user interface corresponding to the selected contract item, such as a condition input interface, and the system requests user input through this user interface. The contract formulation parameters are received and the contract formulation parameters generated through this interface are received, such as step S309, forming a contract formulation content.

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

在一定時間內,合約伺服器將可接收到挖礦結果,實務上為一個合約位址,如步驟S321,由伺服器接收後,傳送到使用者裝 置,告知合約位址。取得合約位置後,根據揭露書所描述的智能票證派發的應用中,也就形成一個智能票證合約,其中可以涵蓋合約功能(票證派發)、時間門檻(設定合約有效期限)、票證數量門檻、發行時間、參考網址、合約位址與合約制訂人等資訊,並依照實際需求設定內容。 In a certain period of time, the contract server will receive the mining result, which is a contract address in practice. In step S321, after receiving by the server, it is sent to the user device to inform the contract address. After obtaining the contract position, according to the application of smart ticket distribution described in the disclosure, a smart ticket contract is also formed, which can cover the contract function (ticket distribution), time threshold (set contract validity period), ticket quantity threshold, issue Time, reference URL, contract address and contract formulator, etc., and set the content according to actual needs.

上述電腦程序運行於使用者裝置、合約伺服器,以及區塊鏈上的節點之間,實施例亦可參考圖4所示制訂智能合約的實施例流程圖之二,其中顯示為制訂智能票證合約的使用者41、實現智能合約網路平台的伺服器42與區塊鏈43之間步驟S401到S408的智能合約制訂流程。所述合約伺服器通過網路平台實現揭露書提出的智能票證系統,讓使用者可以通過網路平台選擇制訂智能票證合約,以及取得合約位址。 The above computer program runs between the user device, the contract server, and the nodes on the blockchain. The embodiment may also refer to the second flowchart of the embodiment for formulating a smart contract as shown in FIG. 4, which is shown as formulating a smart ticket contract. User 41, the smart contract formulation process of steps S401 to S408 between the server 42 and the blockchain 43 that implement the smart contract network platform. The contract server implements the smart ticket system proposed in the disclosure through a network platform, so that users can choose to formulate a smart ticket contract and obtain a contract address through the network platform.

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

伺服器42接著通過使用者裝置上軟體程序啟始使用者介面,如行動裝置的APP或是網頁介面,要求輸入合約內容,即智能票證合約的內容(步驟S402),以揭露書提出制訂智能票證合約為例,其中參數可以通過使用者介面產生的選單產生,用途為智能票證,並可包括智能票證的期限、數量、適用數位貨幣(錢包位址、以太幣帳戶等)、合約制訂人等參數。經使用者41完成輸入後,傳送合約內容與相關認證與安全資訊(如使用者識別資訊)到伺服器42,並確認發布合約(步驟S403)。 The server 42 then starts a user interface through a software program on the user device, such as an APP or a web interface of the mobile device, and requests the input of the contract content, that is, the content of the smart ticket contract (step S402). The contract is taken as an example. The parameters can be generated through the menu generated by the user interface. The purpose is to use smart tickets, and it can include the duration and quantity of smart tickets, applicable digital currencies (wallet address, Ethereum account, etc.), contract formulator, and other parameters . 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 contract is confirmed to be issued (step S403).

此時,伺服器42即可要求支付代幣,要求使用者41提供數位貨幣帳戶位址,如運行於以太坊區塊鏈上的數位貨幣(步驟S404)。若以以太幣為例,這是激活以太坊區塊鏈上智能合約的燃 料(gas),可以採用兩種類型的帳戶,一是外部帳戶,由私密金鑰加密保存的,以及合約帳戶,如一運算得到的位址訊息,由合約代碼控制的。支付以太幣時,使用者通過數位簽章發送支付訊息,每當合約帳戶收到訊息時,合約內部的代碼就會被啟動,允許讀取和寫入,以制訂智能合約。 At this time, the server 42 may request payment of tokens, and request the user 41 to provide a digital currency account address, such as a digital currency running on the Ethereum blockchain (step S404). Taking Ethereum as an example, this is the fuel for activating smart contracts on the Ethereum blockchain. Two types of accounts can be used. One is an external account, which is encrypted and stored with a private key, and the contract account, such as one The address information obtained by the operation is controlled by the contract code. When paying for Ethereum, users send payment messages through digital signatures. Whenever a contract account receives a message, the code inside the contract will be activated, allowing reading and writing to formulate 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 payment to the server 42 (step S405), the server 42 compiles the contract content, forms a smart ticket contract digital file, and generates a transaction code, which is a digital signature The data packet (hash value) of the chapter, the transaction code contains the contract content, user identification information and payment information (token), etc., and releases the contract to the blockchain 43 (step S406), and waits for mining on the blockchain. As a result, it is waiting for a smart ticket contract address (step S407). When the server 42 receives the mining result on the blockchain 43, in this example, a new block is generated (Each miner will receive an Ethereum reward for each successful block that is mined). The address, that is, the contract addressing user 41 is notified of the contract address (step S408). Once the unlocked account and digital currency payment are ensured on the blockchain, that is, the deployment is completed, a contract will be formulated on the blockchain.

之後,由使用者41在網際網路(如社群媒體)上公佈合約位址,有興趣者(如消費者)可以參與合約。 After that, the user 41 announces the contract address on the Internet (such as social media), and interested parties (such as consumers) can participate in the contract.

根據揭露書所揭示的設定智能票證的實施例,如圖5所示實施例流程,其中描述設定智能票證的步驟。根據此實施例,當設定智能票證合約的使用者通過挖礦得到合約位址,即形成一個區塊鏈智能票證合約,如步驟S501,接著使用者通過使用者裝置上傳智能票證合約(合約位址)到網路平台,可同時包括數位錢包位址,網路平台實現所述的智能票證系統。於是,如步驟S503,制訂合約的使用者可以通過網路平台提供的使用者介面傳送一定數量的票證(ticket)(或代幣(token))到智能票證合約位址,這些票證可以為消費者有興趣的餐票、優惠卷、入場券或允許使用特定物品的權限證明,並接著如步驟S505,通過網路平台提供的 使用者介面設定合約參數,例如派發智能票證的期限、智能票證的數量、適用數位貨幣(錢包位址、以太幣帳戶等)等,並可以設定交易條件,要求符合特定條件的消費者才能執行交易與取得智能票證,例如年齡。完成設定智能票證合約後,即如步驟S507,在網路平台上公佈智能票證合約位址,以提供一般消費者通過網路平台購買票證,消費者可以智能票證合約設定的數位貨幣(如以太幣)或是特定代幣進行支付購買智能票證,所述代幣可以為網路平台所設定可以在平台上流通的虛擬貨幣。 According to the embodiment of setting a smart ticket disclosed in the disclosure, as shown in FIG. 5, the process of setting a smart ticket is described. According to this embodiment, when a user who sets a smart ticket contract obtains a contract address through mining, a blockchain smart ticket contract is formed. In step S501, the user uploads a smart ticket contract (contract address) through the user device. The network platform may include a digital wallet address at the same time, and the network platform implements the described smart ticket system. Therefore, as in step S503, the user making the contract can send a certain number of tickets (or tokens) to the smart ticket contract address through the user interface provided by the network platform. These tickets can be consumers Interested meal tickets, coupons, tickets or proof of permission to use specific items, and then step S505, set the contract parameters through the user interface provided by the network platform, such as the period of issuing smart tickets, the number of smart tickets , Applicable to digital currencies (wallet address, Ethereum account, etc.), and can set transaction conditions, requiring consumers who meet specific conditions to perform transactions and obtain smart tickets, such as age. After setting the smart ticket contract, that is, in step S507, the smart ticket contract address is published on the online platform to provide ordinary consumers to purchase tickets through the online platform. Consumers can use the digital currency set in the smart ticket contract (such as Ethereum) ) Or specific tokens for payment and purchase of smart tickets, the tokens can be virtual currencies set by the online platform that can be circulated on the platform.

一旦智能票證合約完成部署後,即可參考圖6所示使用流程實施例圖,此圖例流程步驟S601~S607描述智能票證合約使用流程。 Once the deployment of the smart ticket contract is completed, the use process embodiment diagram shown in FIG. 6 can be referred to. The steps S601 to S607 of this legend process describe the use process of the smart ticket contract.

如圖6所示,開始如步驟S601,當使用者成功地通過智能票證系統以使用者裝置上的使用者介面產生並取得智能票證合約位址,並完成設定與公佈智能票證合約,即可如步驟S603,開始執行合約,即啟動一派發智能票證的程序。 As shown in FIG. 6, starting at step S601, when a user successfully generates and obtains a smart ticket contract address through a user interface on a user device through the smart ticket system, and completes setting and publishing the smart ticket contract, such as In step S603, the execution of the contract is started, that is, a procedure for issuing a smart ticket is started.

參與合約的消費者也就是有購買票證的平台用戶,通過網路平台的認證與安全驗證後,可以使用網路平台上的交易服務,或可通過其終端裝置執行的特定軟體程式存取網路平台的服務,如步驟S605,通過網路平台啟始的使用者介面,可以依循著使用者公佈於網路平台(不排除其他網路媒體)上的合約條件發送數位貨幣到合約位址或數位錢包位址,其中記載了相關請求的來源與目的地資訊,一經網路平台確認支付後,如步驟S607,智能票證合約將自動根據來源資訊將對應上傳的數位貨幣的票證派發給消費者的使用者裝置中,例如可以傳送到消費者的數位錢包帳戶中。需要一提的是,其中使用前述使用者裝置的消費者為網路平台的註冊用戶,具有接收智能票證的使用者帳戶,此可為一種數位錢包帳戶,登入網路平台後,在消費者通過網路平台或是終端軟體程式以數位貨幣購買智能票證前,可以利用軟體程式執行查 詢票證餘額,產生查詢指令,得到網路平台計算得到的餘額相關資訊。 Consumers participating in the contract are platform users who have purchased tickets. After passing the authentication and security verification of the network platform, they can use the transaction services on the network platform or access the network through specific software programs executed by their terminal devices. The service of the platform, such as step S605, through the user interface initiated by the network platform, can send digital currency to the contract address or digital according to the contract conditions announced by the user on the network platform (excluding other online media) The wallet address records the source and destination information of the relevant request. Once the payment is confirmed by the network platform, as in step S607, the smart ticket contract will automatically issue a ticket corresponding to the uploaded digital currency to the consumer according to the source information The device can be transferred to the consumer's digital wallet account, for example. It should be mentioned that the consumer using the aforementioned user device is a registered user of the online platform and has a user account that receives smart tickets. This can be a digital wallet account. After logging in to the online platform, the consumer passes Before an online platform or a terminal software program purchases a smart ticket in digital currency, a software program can be used to query the balance of the ticket, generate an inquiry command, and obtain the balance-related information calculated by the online platform.

舉例來說,當使用者制訂智能票證合約,其中包括有傳送一定數量的代幣的餐券、錢包位址以及時間資訊(合約終止期限),消費者可以從合約制訂者得知合約位址,有興趣者可以依照錢包位址傳送數位貨幣,一經確認支付之後,將以上述派幣程序將餐券派送到消費者的裝置上,可為分派到消費者的數位錢包帳戶。 For example, when a user formulates a smart ticket contract, which includes a meal voucher that transmits a certain amount of tokens, a wallet address, and time information (the contract termination period), consumers can learn the contract address from the contract maker, Interested parties can send digital currency according to the wallet address. Once payment is confirmed, meal coupons will be sent to the consumer's device using the above-mentioned currency distribution procedure, which can be distributed to the consumer's digital wallet account.

接著,智能票證系統提供終止(或提領貨幣)智能票證合約的方案,如圖7所示終止智能票證合約以及結算實施例流程圖。 Next, the smart ticket system provides a scheme for terminating (or withdrawing currency) the smart ticket contract, as shown in FIG. 7, which is a flowchart of the embodiment for terminating the smart ticket contract and settlement.

當智能票證合約因為條件滿足或是使用者終止時,如步驟S701,將停止派幣程序,如以上餐券為例,即合約到期,或是代幣用盡,即自動停止派發智能票證,不再接受消費者支付數位貨幣取得餐券。這時,制訂合約的使用者可登入智能票證系統(伺服主機),如前述實施例提出的網路平台,如步驟S703,要求提領收到的數位貨幣,如以太幣。過程中,使用者通過運行在使用者裝置上的軟體程序產生PING的訊息,傳送到合約位址,如步驟S705,智能票證系統的伺服主機執行合約提領的指令,智能票證合約就將收到的數位貨幣等有價的合約幣,即結算數位貨幣,傳送到使用者的數位貨幣帳戶內,如步驟S707。 When the smart ticket contract meets the conditions or the user terminates, such as step S701, the currency distribution process will be stopped. For example, the above meal coupons, that is, the contract expires or the tokens run out, will automatically stop the distribution of smart tickets. Consumers are no longer accepted to pay for meal coupons in digital currencies. At this time, the user making the contract can log in to the smart ticket system (servo host), such as the network platform proposed in the foregoing embodiment, such as step S703, and request withdrawal of the received digital currency, such as ether. During the process, the user generates a PING message through a software program running on the user ’s device and sends it to the contract address. In step S705, the server host of the smart ticket system executes the contract withdrawal instruction, and the smart ticket contract will be received. The digital currency, such as a digital currency, is a contract currency, that is, the settlement digital currency, and is transmitted to the user's digital currency account, as in step S707.

一旦智能票證合約被成功制訂,在區塊鏈上已經佔有一個位址,成了永久的記錄,即不得刪除。然而,就合約來說,有可能在特定情況下必須註銷合約,在此智能票證系統提供的方案中,可以採用如圖8所示揭露書所提出的註銷智能票證合約的實施例流程圖。 Once the smart ticket contract is successfully formulated, it already has an address on the blockchain and becomes a permanent record, which cannot be deleted. However, as far as the contract is concerned, it may be necessary to cancel the contract under certain circumstances. In the solution provided by this smart ticket system, the flowchart of the embodiment for canceling a smart ticket contract as proposed in the disclosure as shown in FIG. 8 may be adopted.

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

接著如步驟S803,智能票證系統(伺服主機)通過運行於使用者裝置上的使用者介面提示智能票證合約的幾項功能,包括合約註銷功能,一經執行此合約註銷功能,如步驟S805,智能票證系統接收通過使用者介面產生的註銷合約的功能選擇,軟體程序即產生一合約註銷指令,如步驟S807,智能票證系統即取得使用者傳送的註銷指令,之後如步驟S809,經於區塊鏈上發布後,就是等待挖礦結果,經取得礦工挖礦結果後,如步驟S811,智能票證系統與使用者確認註銷合約。在此一提的是,應用區塊鏈(如以太鏈)形成的智能合約一經註銷,表示無法繼續使用該智能合約的功能,但仍是存在在區塊鏈上。 Then in step S803, the smart ticket system (servo host) prompts several functions of the smart ticket contract through the user interface running on the user device, including the contract cancellation function. Once the contract cancellation function is performed, as in step S805, the smart ticket The system receives the function option of canceling the contract generated through the user interface, and the software program generates a contract cancellation instruction. As in step S807, the smart ticket system obtains the cancellation instruction sent by the user, and then in step S809, it passes the blockchain After the release, it is waiting for the mining result. After obtaining the mining result, the smart ticket system confirms with the user to cancel the contract, as in step S811. It is mentioned here that once the smart contract formed by the application of a blockchain (such as Ethereum) is cancelled, it means that the functions of the smart contract cannot be continued, but it still exists on the blockchain.

揭露書更揭示智能票證系統中的電腦可讀取儲存裝置,其中儲存在智能票證系統的伺服主機中執行的智能票證設定與派發方法的程式集,程式集經智能票證系統的伺服主機的一或多個處理器處理後,執行以下步驟。包括通過伺服主機於使用者裝置產生的使用者介面開始制訂智能合約,以揭露書的實施例為例,使用者可以通過網路平台提供的選單選擇制訂智能票證合約,伺服主機可以接收到通過使用者介面產生的一選擇訊號,啟始對應的合約制訂程序;接收通過一條件輸入介面產生的合約制訂參數,完成一合約內容;並於確認支付一筆數位貨幣後,將合約內容編譯形成一合約數位檔案,經包裹後產生交易碼,並發布於區塊鏈上;以及經等待挖礦結果後,得到一合約位址。所述的電腦可讀取儲存裝置更儲存一合約註銷程序的程式集,經智能票證系統的伺服主機中的處理器執行後,包括通過運行於使用者裝置上的使用者介面提示的合約註銷功能,接收通過註銷合約的功能選擇,即啟始合約註銷功能,產生合約註銷指令,經發布於區塊鏈上以及取得礦工挖礦結果後,與使用者確認註銷合約。 The disclosure also reveals that the computer in the smart ticket system can read the storage device, which stores the program set of the smart ticket setting and distribution method executed in the server host of the smart ticket system. After processing by multiple processors, perform the following steps. Including the user interface generated by the server host through the user device to start formulating a smart contract. Taking the embodiment of the disclosure as an example, the user can choose to formulate a smart ticket contract through the menu provided by the network platform. The server host can receive and use the A selection signal generated by the user interface starts the corresponding contract formulation process; receives contract formulation parameters generated through a conditional input interface to complete a contract content; and after confirming payment of a digital currency, the contract content is compiled into a contract digital The file generates a transaction code after parcel and publishes it on the blockchain; and after waiting for the mining result, it obtains a contract address. The computer can read the storage device and store a program set of the contract cancellation procedure, which is executed by a processor in the server host of the smart ticket system, and includes a contract cancellation function prompted by a user interface running on the user device. After receiving the function option of canceling the contract, that is, initiating the contract cancellation function, generating a contract cancellation instruction, and publishing it on the blockchain and obtaining the mining result of the miner, confirm the cancellation contract with the user.

根據以上實施例描述,應用智能合約的技術,所述智能票證派發方法可通過網路平台的伺服主機執行,當在所述區塊鏈上產 生並取得智能票證合約位址後,合約位址將上傳至網路平台,完成設定與公佈合約後啟動一派發智能票證的程序,此時,於使用者裝置執行一軟體程式產生使用者介面,通過網路平台傳送一筆數位貨幣到智能票證合約位址或數位錢包位址以完成支付,經網路平台確認支付後,智能票證合約自動將對應該筆數位貨幣的智能票證派發至使用者裝置。 According to the description of the above embodiment, using the smart contract technology, the smart ticket distribution method can be executed by the server host of the network platform. After the smart ticket contract address is generated and obtained on the blockchain, the contract address will be Upload to the network platform, start a smart ticket distribution process after completing the setting and announcement of the contract. At this time, run a software program on the user device to generate a user interface, and send a digital currency to the smart ticket contract address through the network platform. Or digital wallet address to complete the payment. After the payment is confirmed by the online platform, the smart ticket contract will automatically send the smart ticket corresponding to the digital currency to the user device.

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

Claims (10)

一種智能票證派發方法,包括:當在一區塊鏈上產生並取得一智能票證合約位址,上傳該智能票證合約位址至一網路平台,並完成設定與公佈一智能票證合約,啟動一派發智能票證的程序;於一使用者裝置執行一軟體程式產生一使用者介面,通過該網路平台,傳送一筆數位貨幣到該智能票證合約位址或一數位錢包位址以完成支付;以及經該網路平台確認支付後,該智能票證合約自動將對應該筆數位貨幣的智能票證派發至該使用者裝置。     A smart ticket distribution method includes: when a smart ticket contract address is generated and obtained on a blockchain, uploading the smart ticket contract address to an internet platform, and completing setting and publishing a smart ticket contract, starting a The process of distributing smart tickets; running a software program on a user device to generate a user interface, and sending a digital currency to the smart ticket contract address or a digital wallet address through the network platform to complete the payment; and After the online platform confirms the payment, the smart ticket contract automatically sends the smart ticket corresponding to the digital currency to the user device.     如請求項1所述的智能票證派發方法,其中設定該智能票證合約的流程包括:當在該區塊鏈中經挖礦得到該智能票證合約位址,並由該網路平台接收該使用者裝置上傳的該智能票證合約後,該網路平台自該使用者裝置接收一個數量的票證到該智能票證合約、設定合約參數;以及於該網路平台公佈該智能票證合約位址,其中,一消費者通過該網路平台以一數位貨幣或代幣支付以購買智能票證。     The smart ticket distribution method according to claim 1, wherein the process of setting the smart ticket contract includes: when the smart ticket contract address is obtained through mining in the blockchain, and the user is received by the network platform After the smart ticket contract uploaded by the device, the network platform receives a number of tickets from the user device to the smart ticket contract, sets the contract parameters, and publishes the smart ticket contract address on the network platform. Among them, one Consumers pay in digital currency or tokens through the online platform to purchase smart tickets.     如請求項1所述的智能票證派發方法,其中使用該使用者裝置的消費者為該網路平台的註冊用戶,具有接收該智能票證的一使用者帳戶。     The smart ticket distribution method according to claim 1, wherein the consumer using the user device is a registered user of the network platform and has a user account that receives the smart ticket.     如請求項3所述的智能票證派發方法,其中在該消費者通過該網路平台以數位貨幣購買該智能票證前,利用該軟體程式執行查詢票證餘額,以得到該網路平台計算得到的餘額相關資訊。     The smart ticket distribution method according to claim 3, wherein before the consumer purchases the smart ticket in digital currency through the online platform, the software program is used to query the balance of the ticket to obtain the balance calculated by the online platform. relevant information.     如請求項1至4其中之一所述的智能票證派發方法,其中該合約參數包括:派發該智能票證的期限、智能票證的數量、適用數位貨幣以及該數位錢包位址的其中之一或任意組合。     The smart ticket distribution method according to any one of claims 1 to 4, wherein the contract parameters include one or any of the time limit for issuing the smart ticket, the number of smart tickets, the applicable digital currency, and the digital wallet address. combination.     如請求項5所述的智能票證派發方法,其中通過該網路平台得到該智能票證合約位址的步驟包括:通過該網路平台,啟始對應一合約項目的一條件輸入介面,接收通過該條件輸入介面產生的合約制訂參數,完成該智能票證合約的內容;於該網路平台確認支付一筆數位貨幣後,將該智能票證合約內容編譯形成一智能票證合約數位檔案,經包裹後產生交易碼,並發布於該區塊鏈上;以及經等待一挖礦結果後,得到該智能票證合約位址。     The smart ticket distribution method according to claim 5, wherein the step of obtaining the smart ticket contract address through the network platform includes: using the network platform, starting a conditional input interface corresponding to a contract item, and receiving and passing the The contract formulation parameters generated by the conditional input interface complete the content of the smart ticket contract; after confirming the payment of a digital currency on the online platform, the smart ticket contract content is compiled into a smart ticket contract digital file, and the transaction code is generated after being wrapped And published on the blockchain; and after waiting for a mining result, obtain the smart ticket contract address.     一種智能票證系統,通過一網路平台實現一智能票證派發方法,該智能票證系統包括:一伺服主機,具有一或多個處理器與一電腦可讀取儲存裝置,經該一或多個處理器執行儲存於該電腦可讀取儲存裝置中的程式集,執行該智能票證派發方法,包括:當在一區塊鏈上產生並取得一智能票證合約位址,上傳該智能票證合約位址至一網路平台,並完成設定與公佈一智能票證合約,啟動一派發智能票證的程序;於一使用者裝置執行一軟體程式產生一使用者介面,通過該網路平台,傳送一筆數位貨幣到該智能票證合約位址或一數位錢包位址以完成支付;以及經該網路平台確認支付後,該智能票證合約自動將對應該筆數位貨幣的智能票證派發至該使用者裝置。     An intelligent ticket system realizes an intelligent ticket distribution method through a network platform. The intelligent ticket system includes a servo host, which has one or more processors and a computer-readable storage device, and is processed by the one or more processors. The device executes a program set stored in the computer-readable storage device and executes the smart ticket distribution method, including: when a smart ticket contract address is generated and obtained on a blockchain, uploading the smart ticket contract address to A network platform, and complete the setting and publication of a smart ticket contract, start a smart ticket distribution process; run a software program on a user device to generate a user interface, and send a digital currency to the network platform through the network platform The smart ticket contract address or a digital wallet address is used to complete the payment; and after the payment is confirmed by the network platform, the smart ticket contract automatically sends the smart ticket corresponding to the digital currency to the user device.     如請求項7所述的智能票證系統,其中通過該網路平台得到該智能票證合約位址的步驟包括:通過該網路平台,啟始對應一合約項目的一條件輸入介面,接收通過該條件輸入介面產生的合約制訂參數, 完成該智能票證合約的內容;於該網路平台確認支付一筆數位貨幣後,將該智能票證合約內容編譯形成一智能票證合約數位檔案,經包裹後產生交易碼,並發布於該區塊鏈上;以及經等待一挖礦結果後,得到該智能票證合約位址。     The smart ticket system according to claim 7, wherein the step of obtaining the smart ticket contract address through the network platform includes: starting a condition input interface corresponding to a contract item through the network platform, and receiving and passing the condition Enter the contract formulation parameters generated by the interface to complete the content of the smart ticket contract; after confirming the payment of a digital currency on the network platform, compile the smart ticket contract content into a smart ticket contract digital file, and generate a transaction code after parceling, And release it on the blockchain; and after waiting for a mining result, get the smart ticket contract address.     如請求項7或8所述的智能票證系統,其中,於該網路平台上設定該智能票證合約的流程包括:當在該區塊鏈中經挖礦得到該智能票證合約位址,並由該網路平台接收該使用者裝置上傳的該智能票證合約後,該網路平台自該使用者裝置接收一個數量的票證到該智能票證合約、設定合約參數;以及於該網路平台公佈該智能票證合約位址,其中,一消費者通過該網路平台以一數位貨幣或代幣支付以購買智能票證。     The smart ticket system according to claim 7 or 8, wherein the process of setting the smart ticket contract on the network platform includes: when the smart ticket contract address is obtained by mining in the blockchain, and After the network platform receives the smart ticket contract uploaded by the user device, the network platform receives a number of tickets from the user device to the smart ticket contract, sets contract parameters, and announces the smart ticket on the network platform. Ticket contract address, in which a consumer pays in a digital currency or token through the network platform to purchase a smart ticket.     一種電腦可讀取儲存裝置,儲存一程式集,該程式集經一網路平台的一伺服主機中一或多個處理器處理後,執行一智能票證派發方法包括:當在一區塊鏈上產生並取得一智能票證合約位址,上傳該智能票證合約位址至一網路平台,並完成設定與公佈一智能票證合約,啟動一派發智能票證的程序;於一使用者裝置執行一軟體程式產生一使用者介面,通過該網路平台,傳送一筆數位貨幣到該智能票證合約位址或一數位錢包位址以完成支付;以及經該網路平台確認支付後,該智能票證合約自動將對應該筆數位貨幣的智能票證派發至該使用者裝置。     A computer-readable storage device stores a program set. After the program set is processed by one or more processors in a server host of a network platform, a method for issuing a smart ticket includes: when it is on a blockchain Generate and obtain a smart ticket contract address, upload the smart ticket contract address to an online platform, complete the setting and publication of a smart ticket contract, start a smart ticket distribution process; execute a software program on a user device Generate a user interface to send a digital currency to the smart ticket contract address or a digital wallet address through the network platform to complete the payment; and after the payment is confirmed by the network platform, the smart ticket contract will automatically A digital ticket should be issued to the user device.    
TW107114691A 2018-04-30 2018-04-30 System of smart ticket, method for issuing ticket and computer-readable storage device TWI675336B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW107114691A TWI675336B (en) 2018-04-30 2018-04-30 System of smart ticket, method for issuing ticket and computer-readable storage device
CN201910163598.9A CN110414957A (en) 2018-04-30 2019-03-05 Intelligent bill system, intelligent ticket distributing method with computer-readable storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107114691A TWI675336B (en) 2018-04-30 2018-04-30 System of smart ticket, method for issuing ticket and computer-readable storage device

Publications (2)

Publication Number Publication Date
TWI675336B TWI675336B (en) 2019-10-21
TW201945989A true TW201945989A (en) 2019-12-01

Family

ID=68358129

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107114691A TWI675336B (en) 2018-04-30 2018-04-30 System of smart ticket, method for issuing ticket and computer-readable storage device

Country Status (2)

Country Link
CN (1) CN110414957A (en)
TW (1) TWI675336B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI706346B (en) * 2019-10-31 2020-10-01 鴻海精密工業股份有限公司 Mining machine, storage medium, and method for limiting calculation power of mining machine
TWI741900B (en) * 2020-12-03 2021-10-01 安瀚科技股份有限公司 Cryptocurrency management system for business use

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140312928A1 (en) * 2013-04-19 2014-10-23 Kool Chip, Inc. High-Speed Current Steering Logic Output Buffer
TWI654574B (en) * 2016-10-07 2019-03-21 永豐商業銀行股份有限公司 Block block electronic ticket trading system and electronic ticket trading method thereof
TWI614713B (en) * 2017-01-23 2018-02-11 現代財富控股有限公司 Smart contract version control system and method thereof based on blockchain
CN107103405B (en) * 2017-03-22 2021-03-19 暨南大学 Crowdsourcing system based on block chain technology and construction method thereof

Also Published As

Publication number Publication date
TWI675336B (en) 2019-10-21
CN110414957A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
JP7429281B2 (en) Methods and systems for directing exchanges associated with tokens held anonymously on a blockchain
TWI822653B (en) Blockchain-based exchange with tokenisation
JP6851386B2 (en) Methods and systems for efficient transfer of entities on the blockchain
JP7377312B2 (en) Systems and methods realized by blockchain
JP6940212B1 (en) Application linkage method, computer program and application linkage system
TWI648680B (en) System of smart contract, method for making the contract and computer-readable storage device
JP2023134665A (en) Blockchain implemented method and system
TW201810151A (en) Blockchain-implemented method and system
CN109074580A (en) Method and system for secure transfer of entities over a blockchain
AU2019273039A1 (en) Cryptographic technology platform and methods for providers to enable users to monetize their data
CN110796449B (en) Transaction processing method, system, medium and computing device
KR102293877B1 (en) System and method for processing tour event via block chain
WO2021132454A1 (en) Transaction delegation method, transaction delegation system, and computer program
KR20190132047A (en) Method for Providing Service Platform based on Blockchain by using Smart Contract
KR20200046260A (en) Method and apparatus for managing digital collectable card based block-chain
CN107852333A (en) System and method for the mandate of sharable content object
TWI675336B (en) System of smart ticket, method for issuing ticket and computer-readable storage device
CN110807634A (en) Second-hand ticket transaction method and platform based on Hasp hash chain and intelligent contract
KR20200006238A (en) P2P coupon issue and gift method based on blockchain
JP6844828B1 (en) Information processing method, information processing device, information processing program and recording medium
KR102332503B1 (en) Apparatus and method for creating a virtual currency account using a telephone number
WO2024116484A1 (en) Token processing server, token processing method, and program
JP2021168177A (en) Transaction delegation method and transaction delegation system
Lago Decentralized Application for E-Commerce Using Blockchain and Trusted Compute
JPWO2020027269A1 (en) Remittance methods, systems and programs