TW201828203A - System for digitizing and trading quantified assets and method thereof - Google Patents

System for digitizing and trading quantified assets and method thereof Download PDF

Info

Publication number
TW201828203A
TW201828203A TW106103372A TW106103372A TW201828203A TW 201828203 A TW201828203 A TW 201828203A TW 106103372 A TW106103372 A TW 106103372A TW 106103372 A TW106103372 A TW 106103372A TW 201828203 A TW201828203 A TW 201828203A
Authority
TW
Taiwan
Prior art keywords
asset
smart contract
contract
address
clearing
Prior art date
Application number
TW106103372A
Other languages
Chinese (zh)
Other versions
TWI680423B (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 TW106103372A priority Critical patent/TWI680423B/en
Publication of TW201828203A publication Critical patent/TW201828203A/en
Application granted granted Critical
Publication of TWI680423B publication Critical patent/TWI680423B/en

Links

Landscapes

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

Abstract

A system for digitizing and trading quantified assets and a method thereof are provided. By registering an asset contract address corresponding with an asset smart contract to an order and clean smart contract by a trade server after the trade server releases the order and clean smart contract, joining a sell order into the order and clean smart contract by a sell client, joining a pay order into the order and clean smart contract by a pay client, and triggering the asset smart contract executing trade and clean through the order and clean smart contract when the trade server matches the sell order and the pay order, the system and the method can open and show all transactions, and can achieve the effect of avoiding transaction fraud.

Description

以智能合約數位化可量化資產並交易之系統及其方法System and method for digitizing quantifiable assets and trading by intelligent contract

一種資產交易系統及其方法,特別係指一種以智能合約數位化可量化資產並交易之系統及其方法。An asset trading system and method thereof, in particular, a system and method for digitizing and trading a quantifiable asset with a smart contract.

交易所是金融市場中進行金融商品的交易平台,目前的交易所有實體交易所,以及網路交易所。但不論是實體交易所或網路交易所,在交易所中,金融商品的賣方可以掛出賣單,買方可以掛出買單,交易所可以配對賣單與買單,買單與賣單配對成功的買賣雙方即可以進行金融商品的交易。The exchange is a trading platform for financial products in the financial market, currently trading all physical exchanges, and online exchanges. However, whether it is a physical exchange or an online exchange, on the exchange, the seller of the financial product can hang out the sell order, the buyer can hang out the buy order, the exchange can match the sell order and the buy order, and the buyer and the seller who successfully match the buy order and the sell order can Conducting transactions in financial products.

目前常見的交易所大多僅提供證券、期貨、基金等金融商品作為交易標的。也就是說,目前在交易所內的交易標的受到極大的限制。因此,因為需要而出現了某些私人的交易所,藉以提供其他金融商品的交易,例如數位貨幣等。然而,在私人交易所中,往往存在黑箱作業、哄抬價格的假單、或是造假的交易量,造成交易雙方的困擾。Most of the current exchanges only provide securities, futures, funds and other financial products as the subject of transactions. In other words, the current trading targets in the exchange are greatly limited. Therefore, some private exchanges have emerged because of the need to provide transactions in other financial commodities, such as digital currencies. However, in private exchanges, there are often black box operations, fake orders that push up prices, or the amount of fraudulent transactions, causing both sides of the transaction.

綜上所述,可知先前技術中長期以來一直存在私人交易所中的交易並非公開透明的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the transactions in the private exchanges in the prior art have not been open and transparent for a long time, so it is necessary to propose improved technical means to solve this problem.

有鑒於先前技術存在私人交易所中的交易並非公開透明的問題,本發明遂揭露一種以智能合約數位化可量化資產並交易之系統及其方法,其中:In view of the prior art problem that transactions in private exchanges are not open and transparent, the present invention discloses a system and method for digitizing quantifiable assets and trading by smart contracts, wherein:

本發明所揭露之以智能合約數位化可量化資產並交易之系統,至少包含:保管伺服器,用以產生資產智能合約,發布資產智能合約至區塊鏈中,並取得相對應之資產合約地址,及用以依據資產於資產智能合約中增加與資產之擁有對象對應之交易單位數;交易伺服器,用以產生掛單清算智能合約,發布掛單清算智能合約至區塊鏈中,並取得相對應之掛單清算合約地址,及用以接收保管伺服器所傳送之資產合約地址,並於掛單清算智能合約中註冊資產合約地址;賣方客戶端,用以取得掛單清算合約地址,並依據掛單清算合約地址於掛單清算智能合約中掛上賣單;買方客戶端,用以取得掛單清算合約地址,並依據掛單清算合約地址於掛單清算智能合約中掛上買單;其中,當賣單與買單被交易伺服器成功配對時,掛單清算智能合約依據資產合約地址觸發資產智能合約執行成功配對之交易單位數之交易與清算。The system disclosed in the present invention for digitizing and trading assets by intelligent contract includes at least: a custodial server for generating an asset smart contract, issuing an asset smart contract to a blockchain, and obtaining a corresponding asset contract address. And the number of trading units corresponding to the assets owned by the asset in the asset smart contract; the transaction server is used to generate the pending order clearing smart contract, issue the pending order clearing smart contract to the blockchain, and obtain the corresponding The pending order clearing contract address, and the asset contract address used to receive the escrow server, and the asset contract address registered in the pending order clearing smart contract; the seller client to obtain the pending billing contract address and clear the contract address according to the pending order Placing a sell order in the pending order clearing smart contract; the buyer client is used to obtain the pending order clearing contract address and place a buy order in the pending order clearing smart contract based on the pending order clearing contract address; wherein, when the sell order and the buy order are successfully paired by the trading server At the time, the pending order clearing smart contract triggers the asset based on the asset contract address. Intelligent contract execution trading and clearing of the number of successful pairing of the trading unit.

本發明所揭露之以智能合約數位化可量化資產並交易之方法,其步驟至少包括:保管伺服器產生資產智能合約;保管伺服器發布資產智能合約至區塊鏈中,並取得相對應之資產合約地址;保管伺服器依據資產於資產智能合約中增加與資產之擁有對象對應之交易單位數;保管伺服器傳送資產合約地址至交易伺服器;交易伺服器產生掛單清算智能合約;交易伺服器發布掛單清算智能合約至區塊鏈中,並取得相對應之掛單清算合約地址;交易伺服器於掛單清算智能合約中註冊資產合約地址;賣方客戶端取得掛單清算合約地址;賣方客戶端依據掛單清算合約地址於掛單清算智能合約中掛上賣單;買方客戶端取得掛單清算合約地址;買方客戶端依據掛單清算合約地址於掛單清算智能合約中掛上買單;交易伺服器配對賣單與買單;當賣單與買單成功配對時,掛單清算智能合約依據資產合約地址觸發資產智能合約執行成功配對之交易單位數之交易與清算。The method for digitizing and quantifying assets and trading by intelligent contract disclosed in the present invention comprises at least: the custodian server generates an asset intelligence contract; the custodian server issues an asset smart contract to the blockchain, and obtains a corresponding asset. The contract address; the custodian server adds the number of trading units corresponding to the owner of the asset in the asset smart contract according to the asset; the custodial server transfers the asset contract address to the transaction server; the transaction server generates the pending order clearing smart contract; the transaction server issues The pending order clears the smart contract to the blockchain and obtains the corresponding pending order clearing contract address; the trading server registers the asset contract address in the pending order clearing smart contract; the seller client obtains the pending order clearing contract address; the seller client is based on the pending order clearing contract The address hangs the sell order in the pending order clearing smart contract; the buyer client obtains the pending order clearing contract address; the buyer client hangs the buy order in the pending order clearing smart contract according to the pending order clearing contract address; the trading server matches the sell order and the buy order; when the sell order and the buy order Hanging successfully Smart liquidation contracts based on assets Asset Intelligence contract contract address trigger to execute trades with the liquidation of the number of successful pairing of the trading unit.

本發明所揭露之系統與方法如上,與先前技術之間的差異在於本發明透過保管伺服器依據擁有對象的資產在所發布的資產智能合約中增加與擁有對象對應的交易單位數,交易伺服器在所發布的掛單清算智能合約中註冊與資產智能合約對應的資產合約地址,之後,交易伺服器可以配對賣方客戶端掛上掛單清算智能合約中的賣單與買方客戶端掛上掛單清算智能合約的買單,當交易伺服器成功配對買單與賣單時,掛單清算智能合約觸發資產智能合約執行成功配對之交易單位數的交易與清算,藉以解決先前技術所存在的問題,並可以達成避免交易舞弊的技術功效。The system and method disclosed in the present invention are as above, and the difference from the prior art is that the present invention increases the number of transaction units corresponding to the owned object in the issued asset smart contract by the custodial server according to the assets of the owned object, and the transaction server Registering the asset contract address corresponding to the asset smart contract in the published pending order clearing smart contract. After that, the trading server can pair the seller client to hang the sell order in the pending order clearing smart contract and the buyer client hangs the pending order clearing smart contract. Paying the bill, when the trading server successfully pairs the buy and sell orders, the pending bill clearing smart contract triggers the asset smart contract to execute the transaction and clearing of the number of trading units successfully paired, so as to solve the problems of the prior art and can achieve the technology to avoid transaction fraud. efficacy.

以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。The features and embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, which are sufficient to enable those skilled in the art to fully understand the technical means to which the present invention solves the technical problems, and The achievable effects of the present invention.

本發明可以讓資產的買賣雙方在掛單清算智能合約中掛買單與賣單,藉以買單與賣單成功被配對時,透過掛單清算智能合約觸發資產智能合約執行資產交易與清算。其中,本發明所提之資產,可以是可量化的物品或能量,例如黃金、股票、電力等,但本發明並不以為限。The invention can make the buyer and the seller of the asset hang the purchase order and the sell order in the pending order clearing smart contract, so that when the buy order and the sell order are successfully paired, the asset smart contract is triggered to execute the asset transaction and liquidation through the pending order clearing smart contract. The assets mentioned in the present invention may be quantifiable items or energy, such as gold, stocks, electric power, etc., but the invention is not limited thereto.

本發明所提之智能合約(Smart Contract,包含掛單清算智能合約以及資產智能合約)為可被電腦執行之程式碼,且對應有一個智能合約地址。本發明所提之智能合約地址(包含與掛單清算智能合約對應的掛單清算合約地址以及與資產智能合約對應的資產合約地址)為足以讓支援區塊鏈(Blockchain)技術的裝置或設備等節點(node)取得包含相對應之智能合約實體的資料,例如,智能合約實體內的某個變數在區塊鏈中之特定區塊(block)時的數值等。The smart contract (including the pending order clearing smart contract and the asset smart contract) is a code that can be executed by a computer and has a smart contract address. The smart contract address (including the pending order clearing contract address corresponding to the pending order clearing smart contract and the asset contract address corresponding to the asset smart contract) is sufficient for the device or device supporting the blockchain technology ( Node) obtains the data of the corresponding smart contract entity, for example, the value of a certain variable in the smart contract entity in a specific block in the blockchain.

以下先以「第1圖」本發明所提之以智能合約數位化可量化資產並交易之系統架構圖來說明本發明的系統運作。如「第1圖」所示,本發明之系統含有保管伺服器110、賣方客戶端120、買方客戶端130、以及交易伺服器150。其中,保管伺服器110、賣方客戶端120、買方客戶端130、以及交易伺服器150可以直接或間接與區塊鏈網路連接。In the following, the system operation of the present invention will be described with reference to the system architecture diagram of the smart contract digitally quantifiable asset and transaction in the "FIG. 1". As shown in FIG. 1, the system of the present invention includes a storage server 110, a seller client 120, a buyer client 130, and a transaction server 150. The storage server 110, the seller client 120, the buyer client 130, and the transaction server 150 can be directly or indirectly connected to the blockchain network.

保管伺服器110可以提供賣方客戶端120連接,並可以與交易伺服器150連接。其中,保管伺服器110可以透過乙太網路等有線網路或WiFi、Zigbee等無線網路與賣方客戶端120及/或交易伺服器150連接,但本發明並不以此為限。The vault server 110 can provide a connection to the vendor client 120 and can be coupled to the transaction server 150. The storage server 110 can be connected to the seller client 120 and/or the transaction server 150 via a wired network such as Ethernet or a wireless network such as WiFi or Zigbee, but the invention is not limited thereto.

保管伺服器110負責產生資產智能合約。一般而言,保管伺服器110可以預先儲存智能合約樣板,並在需要產生資產智能合約時,依據預先儲存的智能合約樣板產生資產智能合約。其中,保管伺服器110可以針對不同的資產分別產生相對應的智能合約,例如,對應到黃金的資產智能合約、對應到特定能約的資產智能合約等。The custodial server 110 is responsible for generating asset intelligence contracts. In general, the custodial server 110 can pre-store smart contract templates and generate asset smart contracts based on pre-stored smart contract templates when an asset intelligence contract needs to be generated. The storage server 110 can generate corresponding smart contracts for different assets, for example, an asset smart contract corresponding to gold, an asset smart contract corresponding to a specific energy, and the like.

保管伺服器110也負責將所產生的資產智能合約發布到區塊鏈中。更詳細的說,保管伺服器110可以產生包含所產生之資產智能合約的區塊鏈交易,並將所產生的區塊鏈交易發送到區塊鏈網路中,當區塊鏈網路中的驗證節點接收到保管伺服器110所發送的區塊鏈交易後,可以製作包含所接收到之區塊鏈交易中的資產智能合約的區塊,並將所製作的區塊發送到區塊鏈網路中同步。當被發送到區塊鏈網路中的區塊被接受,被發送到區塊鏈網路中的區塊便會被加入區塊鏈的最末端,如此,包含在區塊中的資產智能合約便可以被發布到區塊鏈中。The vault server 110 is also responsible for publishing the generated asset smart contracts into the blockchain. In more detail, the vault server 110 can generate a blockchain transaction containing the generated asset smart contract and send the generated blockchain transaction to the blockchain network, in the blockchain network. After receiving the blockchain transaction sent by the custodial server 110, the verification node may create a block containing the asset smart contract in the received blockchain transaction, and send the created block to the blockchain network. Synchronization in the road. When the block sent to the blockchain network is accepted, the block sent to the blockchain network is added to the end of the blockchain, so the asset smart contract contained in the block It can be published to the blockchain.

保管伺服器110也負責在將資產智能合約發布到區塊鏈的同時取得與被發布之資產智能合約相對應的資產合約地址,並將所取得之資產合約地址傳送到交易伺服器150。The vault server 110 is also responsible for obtaining the asset contract address corresponding to the issued asset smart contract while issuing the asset smart contract to the blockchain, and transmitting the obtained asset contract address to the transaction server 150.

保管伺服器110也負責依據擁有對象提供之資產於所產生之資產智能合約中增加與擁有對象對應之交易單位的數量(在本發明中亦以「交易單位數」表示)。資產的擁有對象可以透過任何管道將所擁有的資產提供給擁有保管伺服器110之單位、組織或機構,例如,擁有對象將資產交付信託給擁有保管伺服器110之信託單位,也可以透過電網等特定的網路將電力等資產傳送給擁有保管伺服器110之電力機構等。其中,本發明所提之擁有對象為擁有資產的人、團體、單位、組織、機構等,本發明沒有特別的限制;交易單位則為資產的單位,例如,資產為黃金時交易單位可以是克,資產為電力時交易單位可以是瓦/小時等,本發明同樣沒有特別的限制。The custodial server 110 is also responsible for increasing the number of transaction units corresponding to the occupant in the generated asset smart contract based on the assets provided by the occupant (also referred to as "transaction unit number" in the present invention). The owner of the asset can provide the owned assets to the unit, organization or organization that owns the server 110 through any pipeline. For example, the owner can deliver the assets to the trust unit that owns the server 110, or through the grid. A specific network transmits assets such as electricity to an electric power institution having a storage server 110 or the like. The present invention is not limited to the person, the group, the unit, the organization, the organization, etc., and the transaction unit is a unit of the asset. For example, when the asset is gold, the transaction unit may be gram. When the asset is electric power, the trading unit may be watt/hour, etc., and the present invention is also not particularly limited.

更詳細的說,保管伺服器110可以產生包含與擁有對象在區塊鏈網路中所使用之地址(在本發明中被稱為「賣方地址」)以及增加之交易單位數的區塊鏈交易(被增加的交易單位數與擁有對象提供之資產對應),並將所產生的區塊鏈交易發送到區塊鏈網路中,使得擁有對象所使用之識別資料以及增加的交易單位數被加入包含資產智能合約的區塊鏈中,藉以在資產智能合約中增加與擁有對象對應之交易單位數。由於保管伺服器110在資產智能合約中增加與擁有對象對應之交易單位數的過程與保管伺服器110將資產智能合約發布到區塊鏈中的過程相同,故此僅有簡述。In more detail, the vault server 110 can generate a blockchain transaction containing the address used in the blockchain network (referred to as the "seller address" in the present invention) and the number of transaction units added. (The number of transaction units added corresponds to the assets provided by the owner), and the generated blockchain transaction is sent to the blockchain network, so that the identification data used by the owner and the number of additional transaction units are added. In the blockchain that contains the asset smart contract, the number of trading units corresponding to the owned object is added to the asset smart contract. Since the process by which the custodial server 110 adds the number of transaction units corresponding to the owned object in the asset smart contract is the same as the process in which the custodial server 110 issues the asset smart contract to the blockchain, it is only briefly described.

保管伺服器110也可以向交易伺服器150申請資產上市。The vault server 110 can also apply to the transaction server 150 for listing of assets.

賣方客戶端120與買方客戶端130為具有資料之輸入、運算與傳輸能力的裝置或設備,包含但不限於電腦、手機、平板、手錶、電視、數位相機、多媒體撥放器、導航裝置、車用電腦、隨身聽、電腦辭典、電子書閱讀器、電視遊樂器、掌上型遊樂器等。另外,賣方客戶端120及/或買方客戶端130可以透過乙太網路等有線網路或WiFi、Zigbee等無線網路與交易伺服器150連接,但本發明並不以此為限。在本發明中,賣方客戶端120是指資產之擁有對象(也就是資產的賣方)所操作的裝置或設備,買方客戶端130是指購買資產之對象(也就是買方)所操作的裝置或設備。The seller client 120 and the buyer client 130 are devices or devices having data input, operation and transmission capabilities, including but not limited to computers, mobile phones, tablets, watches, televisions, digital cameras, multimedia players, navigation devices, vehicles. Use computers, walkmans, computer dictionaries, e-book readers, TV game instruments, handheld game instruments, etc. In addition, the seller client 120 and/or the buyer client 130 may be connected to the transaction server 150 via a wired network such as Ethernet or a wireless network such as WiFi or Zigbee, but the invention is not limited thereto. In the present invention, the seller client 120 refers to a device or device operated by an object of possession of an asset (that is, a seller of an asset), and the buyer client 130 refers to a device or device operated by an object (ie, a buyer) who purchases an asset. .

賣方客戶端120負責取得與交易伺服器150所產生之掛單清算智能合約對應的掛單清算合約地址,並依據掛單清算合約地址於掛單清算智能合約中掛上賣單。也就是說,賣方客戶端120可以依據掛單清算合約地址由區塊鏈中取得掛單清算智能合約,並可以產生包含賣單所需資料(例如交易單位數、每一交易單位的賣出價格、以及擁有對象所使用的賣方地址等)的區塊鏈交易,並將所產生的區塊鏈交易發送到區塊鏈網路中,使得區塊鏈交易中之賣單所需資料被加入包含掛單清算智能合約的區塊鏈中,如此即可以在掛單清算智能合約中掛上賣單。其中,由於賣方客戶端120在掛單清算智能合約中掛上賣單的過程與保管伺服器110將資產智能合約發布到區塊鏈中的過程相同,故此僅有簡述。The seller client 120 is responsible for obtaining the pending order clearing contract address corresponding to the pending order clearing smart contract generated by the transaction server 150, and placing a sell order in the pending order clearing smart contract according to the pending order clearing contract address. That is to say, the seller client 120 can obtain the pending order clearing smart contract from the blockchain according to the pending order clearing contract address, and can generate the information required to include the sell order (for example, the number of trading units, the selling price of each trading unit, and owning The blockchain transaction of the seller's address used by the object, etc., and the generated blockchain transaction is sent to the blockchain network, so that the required data of the sell order in the blockchain transaction is added to the billing clearing smart contract. In the blockchain, you can place a sell order in the pending order clearing smart contract. Among them, since the process in which the seller client 120 hangs the sell order in the pending order clearing smart contract is the same as the process in which the custodial server 110 issues the asset smart contract to the blockchain, it is only briefly described.

買方客戶端130負責取得與交易伺服器150所產生之掛單清算智能合約對應的掛單清算合約地址,並依據掛單清算合約地址於掛單清算智能合約中掛上買單。與賣方客戶端120相似的,買方客戶端130可以依據掛單清算合約地址由區塊鏈中取得掛單清算智能合約,並可以產生包含買單所需資料(例如交易單位數、每一交易單位的買入價格、以及買方在區塊鏈網路中所使用的買方地址等)的區塊鏈交易,並將所產生的區塊鏈交易發送到區塊鏈網路中,使得區塊鏈交易中之買單所需資料被加入包含掛單清算智能合約的區塊鏈中,如此即可以在掛單清算智能合約中掛上買單。The buyer client 130 is responsible for obtaining the pending order clearing contract address corresponding to the pending order clearing smart contract generated by the trading server 150, and placing a buy order in the pending order clearing smart contract according to the pending order clearing contract address. Similar to the seller client 120, the buyer client 130 can obtain the pending order clearing smart contract from the blockchain according to the pending order clearing contract address, and can generate the information required to include the buy order (for example, the number of trading units, the buying of each trading unit) The blockchain transaction of the price, the buyer's address used by the buyer in the blockchain network, etc., and sends the generated blockchain transaction to the blockchain network, making the buy in the blockchain transaction The required information is added to the blockchain containing the pending order clearing smart contract, so that the buy order can be placed in the pending order clearing smart contract.

在部分的實施例中,賣方客戶端120(或買方客戶端130)可以取得賣方(或買方)之代理人在區塊鏈網路中所使用的代理人地址,並可以在掛單清算智能合約中掛上賣單(或買單)的同時,一併在掛單清算智能合約中設定所取得之代理人地址。也就是在產生包含賣單(或買單)所需資料的區塊鏈交易的同時,也將與代理人對應的代理人地址加入所產生的區塊鏈交易中。值得一提的是,賣方客戶端120與買方客戶端130所取得的代理人地址並不一定相同,也就是說,賣方與買方的代理人並不需要相同。In some embodiments, the seller client 120 (or the buyer client 130) may obtain the agent address used by the seller (or buyer) agent in the blockchain network and may be in the pending order clearing smart contract. At the same time as placing the sell order (or paying the order), the agent's address obtained is set in the pending order clearing smart contract. That is, while generating a blockchain transaction containing the required information for the sell order (or the buy order), the agent address corresponding to the agent is also added to the generated blockchain transaction. It is worth mentioning that the agent address obtained by the seller client 120 and the buyer client 130 are not necessarily the same, that is, the seller and the buyer's agent do not need to be the same.

交易伺服器150負責產生掛單清算智能合約,以及發布所產生的掛單清算智能合約至區塊鏈中,並取得相對應之一掛單清算合約地址。與保管伺服器110相似的,交易伺服器150可以預先儲存智能合約樣板,並在需要產生掛單清算智能合約時,依據預先儲存的智能合約樣板產生掛單清算智能合約。而後,交易伺服器150可以將產生包含所產生之掛單清算智能合約的區塊鏈交易,並將所產生的區塊鏈交易發送到區塊鏈網路中,使得掛單清算智能合約被發布到區塊鏈中,同時,交易伺服器150也可以取得與被發布到區塊鏈中之掛單清算智能合約相對應的掛單清算合約地址。其中,交易伺服器150將掛單清算智能合約發布到區塊鏈中的過程與保管伺服器110將資產智能合約發布到區塊鏈中的過程相同,故此僅有簡述。The transaction server 150 is responsible for generating the pending order clearing smart contract, and issuing the generated pending order clearing smart contract to the blockchain, and obtaining the corresponding one of the pending order clearing contract addresses. Similar to the custodial server 110, the transaction server 150 can pre-store the smart contract template and generate a pending order clearing smart contract based on the pre-stored smart contract template when a pending order clearing smart contract needs to be generated. Then, the transaction server 150 can generate a blockchain transaction including the generated pending order clearing smart contract, and send the generated blockchain transaction to the blockchain network, so that the pending order clearing smart contract is issued to the zone. In the blockchain, at the same time, the transaction server 150 can also obtain the pending order clearing contract address corresponding to the pending order clearing smart contract issued in the blockchain. The process in which the transaction server 150 issues the pending order clearing smart contract to the blockchain is the same as the process in which the custodial server 110 issues the asset smart contract to the blockchain, and thus is only briefly described.

交易伺服器150也負責接收保管伺服器110所傳送的資產合約地址,並在所產生的掛單清算智能合約中註冊所接收到的資產合約地址。也就是交易伺服器150可以產生包含所接收到的資產合約地址的區塊鏈交易,並將所產生的區塊鏈交易發送到區塊鏈網路中,使得區塊鏈交易中的資產合約地址被發布到包含掛單清算智能合約的區塊鏈中,藉以在掛單清算智能合約中註冊資產合約地址。其中,交易伺服器150在掛單清算智能合約中註冊資產合約地址的過程與保管伺服器110將資產智能合約發布到區塊鏈中的過程相同,故此僅有簡述。The transaction server 150 is also responsible for receiving the asset contract address transmitted by the custodial server 110 and registering the received asset contract address in the generated pending order clearing smart contract. That is, the transaction server 150 can generate a blockchain transaction including the received asset contract address, and send the generated blockchain transaction to the blockchain network, so that the asset contract address in the blockchain transaction It is posted to the blockchain containing the pending order clearing smart contract to register the asset contract address in the pending order clearing smart contract. The process in which the transaction server 150 registers the asset contract address in the pending order clearing smart contract is the same as the process in which the custodial server 110 issues the asset smart contract to the blockchain, and thus is only briefly described.

交易伺服器150也負責配對被掛入掛單清算智能合約的買單與賣單。一般而言,交易伺服器150可以定期(如每天零點等)或每隔一定時間(如每隔三十分鐘或六小時等)執行搓合程式,藉以搜尋可以配對的買單與賣單,但交易伺服器150配對買單與賣單之方式並不以上述為限。The transaction server 150 is also responsible for pairing the buy and sell orders that are posted to the pending order clearing smart contract. In general, the transaction server 150 can execute the matching program periodically (such as every day, etc.) or at regular intervals (such as every thirty minutes or six hours, etc.) to search for matching purchase orders and sell orders, but the transaction servo The manner in which the pair 150 buys and sells the order is not limited to the above.

當交易伺服器150成功的由掛入掛單清算智能合約中的多筆賣單與多筆買單中找出可以配對一筆賣單與一筆買單時,掛單清算智能合約可以觸發資產智能合約執行資產交易與清算。更詳細的說,掛單清算智能合約可以依據包含在同一區塊鏈中的資產合約地址取得相對應的資產智能合約,並將成功配對之買單中之交易單位數及每一交易單位的價格與買方地址、成功配對之賣單中的賣方地址等資料作為參數,呼叫資產智能合約所包含的交易清算函式,藉以進行資產交易與清算,使得成功配對的交易單位數由擁有對象(賣方)被轉移給買方,而擁有對象可以由買方獲得與成功配對之交易單位數對應的貨幣值。在本發明中,所提之貨幣可以是現實世界中所使用的法定貨幣,也可以是區塊鏈網路中所使用的交易貨幣,本發明沒有特別的限制。When the transaction server 150 successfully finds that a sell order and a buy order can be matched by multiple sell orders and multiple purchase orders in the pending order clearing smart contract, the pending order clearing smart contract can trigger the asset smart contract to perform asset trading and clearing. In more detail, the pending order clearing smart contract can obtain the corresponding asset smart contract based on the asset contract address contained in the same blockchain, and the number of trading units in the successfully matched buy order and the price of each trading unit and the buyer. The address, the seller's address in the successful matching sell order, and the like, as parameters, call the transaction clearing function included in the asset smart contract, thereby performing asset trading and clearing, so that the number of successfully paired trading units is transferred to the owner (seller) The buyer, and the possessing object can obtain the monetary value corresponding to the number of successfully matched trading units by the buyer. In the present invention, the proposed currency may be the legal currency used in the real world or the transaction currency used in the blockchain network, and the present invention is not particularly limited.

在部分的實施例中,資產智能合約是透過賣方客戶端120及/或買方客戶端130所設定之代理人地址執行成功配對之交易單位數的交易與清算。更詳細的說,當買方在掛單清算智能合約掛上買單時,掛單清算智能合約可以將買單中的買方地址、代理人地址、交易單位數、及每一交易單位的買入價格等資料作為參數呼叫資產智能合約中的資產代理函式,藉以將與買單中之交易單位數對應的貨幣值由與買方地址對應之買方帳戶移轉到與買方所設定之代理人地址所對應的帳戶(在本發明中被稱為「買方代理人帳戶」)。當交易伺服器150成功配對賣單與買單時,掛單清算智能合約可以將成功配對的交易單位數及每一交易單位的價格、買單中之代理人地址、賣單中之代理人地址(或賣方地址)等資料作為參數呼叫資產智能合約中的資產移轉函式,藉以將與成功配對之交易單位數對應的貨幣值由買方代理人帳戶移轉到與賣方地址對應的賣方帳戶。In some embodiments, the asset intelligence contract is a transaction and clearing of the number of successfully paired transaction units performed by the agent address set by the seller client 120 and/or the buyer client 130. In more detail, when the buyer hangs a buy order on the pending order clearing smart contract, the pending order clearing smart contract can take the buyer's address, the agent's address, the number of trading units, and the buying price of each trading unit in the buy order as parameters. Calling the asset agent function in the asset smart contract, whereby the currency value corresponding to the number of trading units in the buy order is transferred from the buyer account corresponding to the buyer address to the account corresponding to the agent address set by the buyer (in this case) In the invention, it is called "buyer agent account"). When the transaction server 150 successfully pairs the sell order and the buy order, the pending order clearing smart contract can successfully match the number of trading units and the price of each trading unit, the agent address in the buy order, the agent address in the sell order (or the seller address) The data is used as a parameter to call the asset transfer function in the asset smart contract, so that the monetary value corresponding to the number of successfully matched transaction units is transferred from the buyer agent account to the seller account corresponding to the seller address.

其中,若貨幣為現實世界中所使用的法定貨幣,則資產智能合約中之各個函式可以透過帳聯網移轉法定貨幣值,也就是呼叫帳聯網之智能合約中的函式來移轉法定貨幣值,如此,即可以透過區塊鏈使用法定貨幣進行資產交易。Among them, if the currency is the legal currency used in the real world, each function in the asset intelligence contract can transfer the legal currency value through the account network, that is, the function in the smart contract of the call account network to transfer the legal tender. Value, so that you can use the legal currency to trade assets through the blockchain.

接著以第一實施例來解說本發明的運作系統與方法,並請參照「第2A圖」本發明所提之以智能合約數位化可量化資產之方法流程圖以及「第2B圖」本發明所提之以智能合約交易資產之方法流程圖。在本實施例中,假設資產為黃金,但本發明並不以此為限。Next, the operation system and method of the present invention will be explained with reference to the first embodiment, and the method of digitizing the quantifiable assets by smart contract and the "2B diagram" of the present invention will be described with reference to "2A". A flow chart of the method of trading assets with smart contracts. In the present embodiment, it is assumed that the asset is gold, but the invention is not limited thereto.

首先,保管伺服器110可以產生資產智能合約(步驟202),以及將所產生的資產智能合約發布到區塊鏈中,並同時取得與被發布之資產智能合約相對應的資產合約地址(步驟206)。在本實施例中,保管伺服器110所產生的資產智能合約為與黃金對應的資產智能合約。First, the vault server 110 can generate an asset intelligence contract (step 202), and publish the generated asset smart contract into the blockchain, and simultaneously obtain an asset contract address corresponding to the issued asset smart contract (step 206). ). In this embodiment, the asset smart contract generated by the deposit server 110 is an asset smart contract corresponding to gold.

在保管伺服器110將資產智能合約發布到區塊鏈中並取得相對應的資產合約地址後,保管伺服器110可以向交易伺服器150申請資產上市(步驟210)。在本實施例中,也就是保管伺服器110向交易伺服器150申請黃金上市。After the custodial server 110 issues the asset intelligence contract to the blockchain and obtains the corresponding asset contract address, the custodial server 110 can apply to the transaction server 150 for listing the asset (step 210). In the present embodiment, that is, the deposit server 110 applies to the transaction server 150 for a gold listing.

同樣在保管伺服器110將資產智能合約發布到區塊鏈中並取得相對應的資產合約地址後,保管伺服器110可以將所取得的資產合約地址傳送給交易伺服器150(步驟220)。Similarly, after the custodial server 110 issues the asset smart contract to the blockchain and obtains the corresponding asset contract address, the custodial server 110 can transmit the obtained asset contract address to the transaction server 150 (step 220).

同樣在保管伺服器110將資產智能合約發布到區塊鏈中並取得相對應的資產合約地址後,資產的擁有對象可以將所擁有的全部或部分資產交給提供保管伺服器110的保管機構或組織,保管機構或組織的人員可以依據擁有對象所提供之資產操作保管伺服器110於被發布之資產智能合約中增加與擁有對象所使用之賣方地址對應的交易單位數(步驟236)。在本實施例中,假設擁有對象所提供的黃金有100克,則保管伺服器110可以在資產智能合約中對擁有對象所使用之賣方地址增加100個交易單位。Similarly, after the custodial server 110 issues the asset smart contract to the blockchain and obtains the corresponding asset contract address, the owner of the asset can hand over all or part of the assets owned by the custodian providing the custod server 110 or The organization, the custodian or the organization's personnel may operate the custodial server 110 to increase the number of transaction units corresponding to the seller's address used by the owner in accordance with the asset provided by the owner (step 236). In the present embodiment, assuming that the gold provided by the owner object has 100 grams, the custodial server 110 can add 100 transaction units to the seller address used by the owner in the asset intelligence contract.

在交易伺服器150接收到保管伺服器110所傳送的資產合約地址後,交易伺服器150可以產生掛單清算智能合約(步驟251),以及發布所產生的掛單清算智能合約至區塊鏈中,並在發布掛單清算智能合約的同時取得與被發布之掛單清算智能合約相對應的掛單清算合約地址(步驟253)。接著,交易伺服器150可以在所產生的掛單清算智能合約中註冊所接收到的資產合約地址(步驟255)。After the transaction server 150 receives the asset contract address transmitted by the custodial server 110, the transaction server 150 may generate a pending order clearing smart contract (step 251), and issue the generated pending order clearing smart contract to the blockchain, and The pending order clearing contract address corresponding to the issued pending order clearing smart contract is obtained while the pending order clearing smart contract is issued (step 253). Next, the transaction server 150 can register the received asset contract address in the generated pending order clearing smart contract (step 255).

之後,擁有對象所操作的賣方客戶端120以及買方所操作的買方客戶端130可以取得掛單清算智能合約地址,並依據所取得的掛單清算智能合約地址由區塊鏈中取得交易伺服器150所發布的掛單清算智能合約,以及分別在所取得之掛單清算智能合約中掛上賣單與買單(步驟260、步驟270)。在本實施例中,假設賣單中所包含的交易單位數與價格分別為100、1250(也就是賣方提供100公克的黃金,每一公克賣1250),買單所包含的交易單位數與價格分別為50、1250(也就是買方欲以每一公克1250的價格購買50公克的黃金),其中,若買方客戶端130的買單中還包含代理人地址,則掛單清算智能合約可以將賣單中的代理人地址、買方地址、交易單位數、以及交易價格作為參數,呼叫資產智能合約中的資產代理函式,藉以將62500的交易總金額由買方帳戶移轉到代理人帳戶。Thereafter, the seller client 120 operated by the owner object and the buyer client 130 operated by the buyer can obtain the pending order clearing smart contract address, and the clearing of the smart contract address is obtained by the transaction server 150 in the blockchain according to the obtained pending order clearing smart contract address. The pending order clearing smart contract, and placing the sell order and the buy order respectively in the obtained pending order clearing smart contract (step 260, step 270). In this embodiment, it is assumed that the number of trading units and the price included in the sell order are 100, 1250 (that is, the seller provides 100 grams of gold, and each gram sells 1250), and the number of trading units and the price included in the buy order are respectively 50, 1250 (that is, the buyer wants to buy 50 grams of gold at a price of 1250 per gram), wherein if the purchase order of the buyer client 130 also includes the agent address, the pending order clearing smart contract can be the agent in the sell order The address, the buyer's address, the number of trading units, and the transaction price are used as parameters to call the asset agent function in the asset smart contract, so that the total transaction amount of 62500 is transferred from the buyer account to the agent account.

在賣方客戶端120於掛單清算智能合約中掛上賣單以及買方客戶端130於掛單清算智能合約中掛上買單後,交易伺服器150可以配對掛上掛單清算智能合約的賣單與買單(步驟280)。After the seller client 120 hangs the sell order in the pending order clearing smart contract and the buyer client 130 hangs the buy order in the pending order clearing smart contract, the transaction server 150 can pair the sell order and the buy order of the pending order clearing smart contract (step 280). .

當交易伺服器150成功配對賣單與買單時,掛單清算智能合約可以觸發資產智能合約執行成功配對之交易單位數的交易與清算(步驟290)。在本實施例中,因為買單中的買入價格與賣單中的賣出價格相同,所以交易伺服器150可以成功配對買單與賣單,若成功配對的交易單位數為50,則資產智能合約中的資產移轉函式可以在資產智能合約中對與賣方地址對應的交易單位數扣除50個交易單位,並對與買方地址對應的交易單位數增加50個交易單位,同時,可以透過帳聯網將62500的交易金額由代理人帳戶轉帳到賣方帳戶。如此,透過本發明便可以完成資產的交易與清算。When the transaction server 150 successfully pairs the sell order and the buy order, the pending order clearing smart contract can trigger the asset smart contract to perform the transaction and clearing of the number of successful paired trading units (step 290). In this embodiment, since the purchase price in the buy order is the same as the sell price in the sell order, the transaction server 150 can successfully match the buy order and the sell order, and if the number of successfully traded units is 50, the asset smart contract The asset transfer function can deduct 50 trading units from the number of trading units corresponding to the seller's address in the asset smart contract, and increase the number of trading units corresponding to the buyer's address by 50 trading units. At the same time, the asset trading network can be 62500. The transaction amount is transferred from the agent account to the seller account. In this way, the transaction and liquidation of assets can be completed through the invention.

以下繼續以第二實施例來解說本發明的運作系統與方法,並請繼續參照「第2A圖」以及「第2B圖」。在本實施例中,假設資產為電力,但本發明並不以此為限。The operation system and method of the present invention will be described below with reference to the second embodiment, and please continue to refer to "2A" and "2B". In the present embodiment, it is assumed that the asset is power, but the invention is not limited thereto.

首先,保管伺服器110可以產生資產智能合約(步驟202),以及將所產生的資產智能合約發布到區塊鏈中,並同時取得與被發布之資產智能合約相對應的資產合約地址(步驟206)。在本實施例中,保管伺服器110所產生的資產智能合約為與電力對應的資產智能合約。First, the vault server 110 can generate an asset intelligence contract (step 202), and publish the generated asset smart contract into the blockchain, and simultaneously obtain an asset contract address corresponding to the issued asset smart contract (step 206). ). In this embodiment, the asset smart contract generated by the deposit server 110 is an asset smart contract corresponding to the power.

在保管伺服器110將資產智能合約發布到區塊鏈中並取得相對應的資產合約地址後,保管伺服器110可以向交易伺服器150申請資產上市(步驟210)。在本實施例中,也就是保管伺服器110向交易伺服器150申請電力上市。After the custodial server 110 issues the asset intelligence contract to the blockchain and obtains the corresponding asset contract address, the custodial server 110 can apply to the transaction server 150 for listing the asset (step 210). In the present embodiment, that is, the deposit server 110 applies to the transaction server 150 for power listing.

同樣在保管伺服器110將資產智能合約發布到區塊鏈中並取得相對應的資產合約地址後,保管伺服器110可以將所取得的資產合約地址傳送給交易伺服器150(步驟220)。Similarly, after the custodial server 110 issues the asset smart contract to the blockchain and obtains the corresponding asset contract address, the custodial server 110 can transmit the obtained asset contract address to the transaction server 150 (step 220).

在保管伺服器110向交易伺服器150申請資產上市(步驟210)後,擁有對象可以安裝太陽能板,藉以生產電力(資產),並可以將所生產的全部或部分電力交給提供保管伺服器110的保管機構或組織(步驟232)。在本實施例中,假設保管伺服器110是由電力公司提供,擁有對象所產生的電力可以透過電網提供給電力公司。After the custodial server 110 applies for the listing of the assets to the transaction server 150 (step 210), the owner object can install the solar panel to generate electric power (assets), and can deliver all or part of the generated electric power to the custodial server 110. The custodian or organization (step 232). In the present embodiment, it is assumed that the storage server 110 is provided by a power company, and the power generated by the possessing object can be supplied to the power company through the power grid.

在電力資產的擁有對象提供電力給電力公司後,電力公司可以計算所取得之電力的交易單位數,保管伺服器110可以在被發布之資產智能合約中對擁有對象所使用之賣方地址增加所計算出的交易單位數(步驟236)。After the owner of the power asset provides power to the power company, the power company can calculate the number of transaction units of the acquired power, and the custodial server 110 can calculate the increase in the seller address used by the owner in the issued asset smart contract. The number of transaction units (step 236).

在交易伺服器150接收到保管伺服器110所傳送的資產合約地址後,交易伺服器150可以產生掛單清算智能合約(步驟251),以及發布所產生的掛單清算智能合約至區塊鏈中,並在發布掛單清算智能合約的同時取得與被發布之掛單清算智能合約相對應的掛單清算合約地址(步驟253)。接著,交易伺服器150可以在所產生的掛單清算智能合約中註冊所接收到的資產合約地址(步驟255)。After the transaction server 150 receives the asset contract address transmitted by the custodial server 110, the transaction server 150 may generate a pending order clearing smart contract (step 251), and issue the generated pending order clearing smart contract to the blockchain, and The pending order clearing contract address corresponding to the issued pending order clearing smart contract is obtained while the pending order clearing smart contract is issued (step 253). Next, the transaction server 150 can register the received asset contract address in the generated pending order clearing smart contract (step 255).

之後,擁有對象所操作的賣方客戶端120以及買方所操作的買方客戶端130可以取得掛單清算智能合約地址,並依據所取得的掛單清算智能合約地址由區塊鏈中取得交易伺服器150所發布的掛單清算智能合約,以及分別在所取得之掛單清算智能合約中掛上賣單與買單(步驟260、步驟270)。Thereafter, the seller client 120 operated by the owner object and the buyer client 130 operated by the buyer can obtain the pending order clearing smart contract address, and the clearing of the smart contract address is obtained by the transaction server 150 in the blockchain according to the obtained pending order clearing smart contract address. The pending order clearing smart contract, and placing the sell order and the buy order respectively in the obtained pending order clearing smart contract (step 260, step 270).

在賣方客戶端120於掛單清算智能合約中掛上賣單以及買方客戶端130於掛單清算智能合約中掛上買單後,交易伺服器150可以配對掛上掛單清算智能合約的賣單與買單(步驟280)。After the seller client 120 hangs the sell order in the pending order clearing smart contract and the buyer client 130 hangs the buy order in the pending order clearing smart contract, the transaction server 150 can pair the sell order and the buy order of the pending order clearing smart contract (step 280). .

當交易伺服器150成功配對賣單與買單時,掛單清算智能合約將可以觸發資產智能合約執行成功配對之交易單位數的交易與清算(步驟290)。在本實施例中,資產智能合約中的資產移轉函式可以在資產智能合約中對賣方地址扣除成功配對的交易單位數,並對買方地址增加成功配對的交易單位數,同時,可以依據交易單位的價格將配對成功的交易金額由買方帳戶轉帳到賣方帳戶。其中,若買方為電力公司,資產智能合約中的資產移轉函式可以在資產智能合約中對賣方地址扣除成功配對的交易單位數,並在買方地址增加成功配對的交易單位數後,增加賣方可以使用的電力。如此,透過本發明便可以完成資產的交易與清算。When the transaction server 150 successfully pairs the sell order and the buy order, the pending order clearing smart contract will trigger the asset smart contract to perform the transaction and clearing of the number of successful paired trading units (step 290). In this embodiment, the asset transfer function in the asset intelligence contract may deduct the number of successfully paired transaction units for the seller address in the asset smart contract, and increase the number of successfully matched transaction units for the buyer address, and at the same time, according to the transaction. The unit’s price will be paired with the successful transaction amount from the buyer’s account to the seller’s account. Wherein, if the buyer is a power company, the asset transfer function in the asset intelligence contract may deduct the number of successfully matched transaction units from the seller address in the asset smart contract, and increase the seller after the buyer address increases the number of successful matching units. The power that can be used. In this way, the transaction and liquidation of assets can be completed through the invention.

綜上所述,可知本發明與先前技術之間的差異在於具有保管伺服器依據擁有對象的資產在所發布的資產智能合約中增加與擁有對象對應的交易單位數,交易伺服器在所發布的掛單清算智能合約中註冊與資產智能合約對應的資產合約地址,之後,交易伺服器可以配對賣方客戶端掛上掛單清算智能合約中的賣單與買方客戶端掛上掛單清算智能合約的買單,當交易伺服器成功配對買單與賣單時,掛單清算智能合約依據資產合約地址觸發資產智能合約執行成功配對之交易單位數的交易與清算之技術手段,藉由此一技術手段可以解決先前技術所存在私人交易所中之交易並非公開透明的問題,進而達成避免交易舞弊的技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that the storage server adds the number of transaction units corresponding to the owned object in the issued asset smart contract according to the asset of the owned object, and the transaction server is released. The pending asset clearing smart contract registers the asset contract address corresponding to the asset smart contract. After that, the trading server can pair the seller client to place the sell order in the pending order clearing smart contract with the buyer client to place the buy order of the pending order clearing smart contract. When the server successfully pairs the bills and the sell orders, the pending bill clearing smart contract triggers the trading and clearing technical means of the successful matching of the asset smart contract according to the asset contract address, and the technical means can solve the private transactions existing in the prior art. The transaction in the transaction is not open and transparent, and thus achieves the technical effect of avoiding transaction fraud.

再者,本發明之以智能合約數位化可量化資產並交易之方法,可實現於硬體、軟體或硬體與軟體之組合中,亦可在電腦系統中以集中方式實現或以不同元件散佈於若干互連之電腦系統的分散方式實現。Furthermore, the method of digitizing and quantifying assets and trading in the smart contract of the present invention can be implemented in hardware, software or a combination of hardware and software, or can be implemented in a centralized manner in a computer system or distributed by different components. Implemented in a decentralized manner with several interconnected computer systems.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any modification of the form and details of the practice of the present invention, which is a matter of ordinary skill in the art to which the present invention pertains, is a patent protection of the present invention. range. The scope of the invention is to be determined by the scope of the appended claims.

110‧‧‧保管伺服器110‧‧‧Custody Server

120‧‧‧賣方客戶端120‧‧‧Seller client

130‧‧‧買方客戶端130‧‧‧ Buyer Client

150‧‧‧交易伺服器150‧‧‧Transaction server

步驟202‧‧‧保管伺服器產生資產智能合約Step 202‧‧‧Custody Server Generates Asset Intelligence Contract

步驟206‧‧‧保管伺服器發布資產智能合約至區塊鏈中,並取得相對應之資產合約地址Step 206‧‧ The custodian server issues the asset smart contract to the blockchain and obtains the corresponding asset contract address

步驟210‧‧‧保管伺服器向交易伺服器申請資產上市Step 210‧‧ ‧ The escrow server applies for the listing of the assets to the transaction server

步驟220‧‧‧保管伺服器傳送資產合約地址給交易伺服器Step 220‧‧‧The custodial server transfers the asset contract address to the transaction server

步驟232‧‧‧擁有對象提供資產Step 232‧‧‧ Owners provide assets

步驟236‧‧‧保管伺服器依據資產於資產智能合約中增加與資產之擁有對象對應之交易單位數Step 236‧‧ The custodial server adds the number of trading units corresponding to the owner of the asset in the asset smart contract based on the asset

步驟251‧‧‧交易伺服器產生掛單清算智能合約Step 251‧‧‧ The transaction server generates the pending order clearing smart contract

步驟253‧‧‧交易伺服器發布掛單清算智能合約至區塊鏈中,並取得相對應之掛單清算合約地址Step 253‧‧‧ The transaction server issues the pending order clearing smart contract to the blockchain and obtains the corresponding pending order clearing contract address

步驟255‧‧‧交易伺服器於掛單清算智能合約中註冊保管伺服器所傳送之資產合約地址Step 255‧‧‧ The transaction server registers the asset contract address transmitted by the custodial server in the pending order clearing smart contract

步驟260‧‧‧賣方客戶端取得掛單清算合約地址,並依據掛單清算合約地址於掛單清算智能合約中掛上賣單Step 260‧‧‧ The seller client obtains the pending order clearing contract address and hangs the sell order in the pending order clearing smart contract based on the pending order clearing contract address

步驟270‧‧‧買方客戶端取得掛單清算合約地址,並依據掛單清算合約地址於掛單清算智能合約中掛上買單Step 270‧‧‧ The buyer client obtains the pending order clearing contract address and places a buy order in the pending order clearing smart contract based on the pending order clearing contract address

步驟280‧‧‧交易伺服器配對賣單與買單Step 280‧‧‧ Trading Server Pairing Sell and Pay

步驟290‧‧‧當賣單與買單成功配對時,掛單清算智能合約依據資產合約地址觸發資產智能合約執行成功配對之交易單位數之交易與清算Step 290‧‧‧ When the sell order and the buy order are successfully paired, the pending order clearing smart contract triggers the trading and clearing of the number of trading units successfully executed by the asset smart contract based on the asset contract address

第1圖為本發明所提之以智能合約數位化可量化資產並交易之系統架構圖。 第2A圖為本發明所提之以智能合約數位化可量化資產之方法流程圖。 第2B圖為本發明所提之以智能合約交易資產之方法流程圖。Figure 1 is a system architecture diagram of the present invention for digitizing quantifiable assets and trading with smart contracts. Figure 2A is a flow chart of a method for digitizing quantifiable assets by intelligent contract according to the present invention. Figure 2B is a flow chart of the method for trading assets in a smart contract according to the present invention.

Claims (10)

一種以智能合約數位化可量化資產並交易之方法,係應用於一區塊鏈網路中,該方法至少包含下列步驟: 一保管伺服器產生一資產智能合約; 該保管伺服器發布該資產智能合約至一區塊鏈中,並取得相對應之一資產合約地址; 該保管伺服器依據一資產於該資產智能合約中增加與該資產之一擁有對象對應之交易單位數; 該保管伺服器傳送該資產合約地址至一交易伺服器; 該交易伺服器產生一掛單清算智能合約; 該交易伺服器發布該掛單清算智能合約至該區塊鏈中,並取得相對應之一掛單清算合約地址; 該交易伺服器於該掛單清算智能合約中註冊該資產合約地址; 一賣方客戶端取得該掛單清算合約地址,並依據該掛單清算合約地址於該掛單清算智能合約中掛上一賣單; 一買方客戶端取得該掛單清算合約地址,並依據該掛單清算合約地址於該掛單清算智能合約中掛上一買單; 該交易伺服器配對該賣單與該買單;及 當該賣單與該買單成功配對時,該掛單清算智能合約依據該資產合約地址觸發該資產智能合約執行成功配對之交易單位數之交易與清算。A method for digitizing and trading a quantifiable asset with a smart contract is applied to a blockchain network, the method comprising at least the following steps: a storage server generates an asset smart contract; the storage server issues the asset intelligence Contracting into a blockchain and obtaining a corresponding asset contract address; the custodial server adds an amount of trading units corresponding to one of the assets to the asset in the smart contract of the asset; the custodial server transmits The asset contract address is sent to a transaction server; the transaction server generates a pending order clearing smart contract; the transaction server issues the pending order clearing smart contract to the blockchain and obtains a corresponding one of the pending order clearing contract addresses; The transaction server registers the asset contract address in the pending order clearing smart contract; a seller client obtains the pending order clearing contract address, and hangs a sell order in the pending order clearing smart contract according to the pending order clearing contract address; a buyer client Obtain the pending bill clearing contract address and place the pending contract clearing contract address on the pending order Placing a buy order in the smart contract; the transaction server pairs the sell order with the buy order; and when the sell order is successfully paired with the buy order, the pending order clearing smart contract triggers successful matching of the asset smart contract according to the asset contract address Trading and liquidation of the number of trading units. 如申請專利範圍第1項所述之以智能合約數位化可量化資產並交易之方法,其中該方法於該賣方客戶端取得該掛單清算合約地址之步驟後,更包含該賣方客戶端於該掛單清算智能合約中設定一代理人地址,使該掛單清算智能合約依據該資產合約地址觸發該資產智能合約將該賣單中之交易單位數由該擁有對象移轉到與該代理人地址對應之一代理人之步驟。The method for digitizing a measurable asset and trading by the smart contract as described in claim 1 of the patent application, wherein the method further comprises the seller client in the pending order after the step of obtaining the pending clearing contract address by the seller client Setting an agent address in the clearing smart contract, causing the pending order clearing smart contract to trigger the asset smart contract according to the asset contract address to transfer the number of trading units in the selling order from the owner to one agent corresponding to the agent address The steps of people. 如申請專利範圍第1項所述之以智能合約數位化可量化資產並交易之方法,其中該方法於該買方客戶端取得該掛單清算合約地址之步驟後,更包含該買方客戶端於該掛單清算智能合約中設定一代理人地址,使該掛單清算智能合約依據該資產合約地址觸發該資產智能合約將與該買單中之交易單位數對應之貨幣值由一買方帳戶移轉到與該代理人地址對應之一代理人帳戶之步驟。The method for digitizing and calculating a quantifiable asset by smart contract as described in claim 1 of the patent application, wherein the method further includes the buyer client in the pending order after the step of obtaining the pending clearing contract address by the buyer client Setting an agent address in the clearing smart contract, so that the pending order clearing smart contract triggers the asset smart contract according to the asset contract address, and the currency value corresponding to the trading unit number in the buy order is transferred from the buyer account to the agent The step of the address corresponding to one of the agent accounts. 如申請專利範圍第1項所述之以智能合約數位化可量化資產並交易之方法,其中該掛單清算智能合約觸發該資產智能合約執行成功配對之交易單位數之交易與清算之步驟更包含該資產智能合約透過至少一代理人地址執行交易與清算之步驟。The method for digitizing a measurable asset and trading by smart contract as described in item 1 of the patent application scope, wherein the step of clearing the smart contract to trigger the transaction and the liquidation of the number of trading units successfully executed by the asset smart contract further includes the The Asset Intelligence Contract performs the steps of trading and clearing through at least one agent's address. 如申請專利範圍第1項所述之以智能合約數位化可量化資產並交易之方法,其中該資產智能合約執行成功配對之交易單位數之清算之步驟時,該資產智能合約透過帳聯網執行清算。The method for digitizing a measurable asset and trading by smart contract as described in item 1 of the patent application, wherein the asset smart contract performs liquidation through the account network when the step of clearing the number of successfully paired trading units is performed . 一種以智能合約數位化可量化資產並交易之系統,係應用於一區塊鏈網路,該系統至少包含: 一保管伺服器,用以產生一資產智能合約,發布該資產智能合約至一區塊鏈中,並取得相對應之一資產合約地址,及用以依據一資產於該資產智能合約中增加與該資產之一擁有對象對應之交易單位數; 一交易伺服器,用以產生一掛單清算智能合約,發布該掛單清算智能合約至該區塊鏈中,並取得相對應之一掛單清算合約地址,及用以接收該保管伺服器所傳送之該資產合約地址,並於該掛單清算智能合約中註冊該資產合約地址; 一賣方客戶端,用以取得該掛單清算合約地址,並依據該掛單清算合約地址於該掛單清算智能合約中掛上一賣單;及 一買方客戶端,用以取得該掛單清算合約地址,並依據該掛單清算合約地址於該掛單清算智能合約中掛上一買單; 其中,當該賣單與該買單被該交易伺服器成功配對時,該掛單清算智能合約觸發該資產智能合約執行成功配對之交易單位數之交易與清算。A system for digitizing and trading a quantifiable asset with a smart contract is applied to a blockchain network, the system comprising at least: a storage server for generating an asset smart contract, releasing the asset smart contract to a zone In the blockchain, obtain a corresponding asset contract address, and use to increase the number of trading units corresponding to one of the assets in the smart contract of the asset according to an asset; a transaction server for generating a pending order Clearing the smart contract, issuing the pending order clearing smart contract to the blockchain, obtaining a corresponding one of the pending bill clearing contract addresses, and receiving the asset contract address transmitted by the custodial server, and clearing the smart in the pending order Registering the asset contract address in the contract; a seller client for obtaining the pending billing contract address and placing a sell order in the pending order clearing smart contract based on the pending order clearing contract address; and a buyer client for obtaining The pending order clears the contract address and places a buy order in the pending order clearing smart contract according to the pending order clearing contract address; When the sell order is successfully paired with the pay for the transaction server, the pending liquidation of the contract that triggered the intelligent Asset Intelligence contract to perform transactions with the liquidation of the number of successful pairing of the trading unit. 如申請專利範圍第6項所述之以智能合約數位化可量化資產並交易之系統,其中該賣方客戶端更用以於該掛單清算智能合約中設定一代理人地址,使該掛單清算智能合約依據該資產合約地址觸發該資產智能合約將該賣單中之交易單位數由該擁有對象移轉到與該代理人地址對應之一代理人。A system for digitizing a measurable asset and trading in a smart contract as described in claim 6 of the patent application, wherein the seller client is further configured to set an agent address in the pending order clearing smart contract to clear the smart contract of the pending order The asset smart contract is triggered according to the asset contract address to transfer the number of trading units in the sell order from the owner to one of the agents corresponding to the agent address. 如申請專利範圍第6項所述之以智能合約數位化可量化資產並交易之系統,其中該買方客戶端更用以於該掛單清算智能合約中設定一代理人地址,使該掛單清算智能合約依據該資產合約地址觸發該資產智能合約將與該買單中之交易單位數對應之貨幣值由一買方帳戶移轉到與該代理人地址對應之一代理人帳戶。A system for digitizing and trading a quantifiable asset in a smart contract as described in claim 6 of the patent application, wherein the buyer client is further configured to set an agent address in the pending order clearing smart contract to clear the smart contract of the pending order The asset smart contract is triggered according to the asset contract address, and the currency value corresponding to the number of trading units in the buy order is transferred from a buyer account to an agent account corresponding to the agent address. 如申請專利範圍第6項所述之以智能合約數位化可量化資產並交易之系統,其中該資產智能合約透過至少一代理人地址執行交易與清算。A system for digitizing and trading a quantifiable asset with a smart contract as described in claim 6 of the patent application, wherein the asset smart contract performs trading and liquidation through at least one agent address. 如申請專利範圍第6項所述之以智能合約數位化可量化資產並交易之系統,其中該資產智能合約透過帳聯網執行清算。A system for digitizing and trading a quantifiable asset in a smart contract as described in claim 6 of the patent application, wherein the asset smart contract performs liquidation through the Internet of Accounts.
TW106103372A 2017-01-26 2017-01-26 System for digitizing and trading quantified assets and method thereof TWI680423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106103372A TWI680423B (en) 2017-01-26 2017-01-26 System for digitizing and trading quantified assets and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106103372A TWI680423B (en) 2017-01-26 2017-01-26 System for digitizing and trading quantified assets and method thereof

Publications (2)

Publication Number Publication Date
TW201828203A true TW201828203A (en) 2018-08-01
TWI680423B TWI680423B (en) 2019-12-21

Family

ID=63960513

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106103372A TWI680423B (en) 2017-01-26 2017-01-26 System for digitizing and trading quantified assets and method thereof

Country Status (1)

Country Link
TW (1) TWI680423B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636543A (en) * 2018-12-25 2019-04-16 北京云测网络科技有限公司 A kind of block chain test method and device
TWI667625B (en) * 2018-08-16 2019-08-01 卓昭明 Method and system for financial investment program transaction based on blockchain smart contract
CN113538150A (en) * 2021-07-28 2021-10-22 浙江数秦科技有限公司 Block chain asset cross-chain transaction method
TWI771604B (en) * 2018-12-29 2022-07-21 開曼群島商創新先進技術有限公司 Blockchain-based commodity purchasing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8346651B2 (en) * 2009-02-09 2013-01-01 Instinet, Inc. Method and system for conducting computer-assisted transactions
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI667625B (en) * 2018-08-16 2019-08-01 卓昭明 Method and system for financial investment program transaction based on blockchain smart contract
CN109636543A (en) * 2018-12-25 2019-04-16 北京云测网络科技有限公司 A kind of block chain test method and device
TWI771604B (en) * 2018-12-29 2022-07-21 開曼群島商創新先進技術有限公司 Blockchain-based commodity purchasing method and device
CN113538150A (en) * 2021-07-28 2021-10-22 浙江数秦科技有限公司 Block chain asset cross-chain transaction method
CN113538150B (en) * 2021-07-28 2024-04-05 浙江数秦科技有限公司 Block chain asset cross-chain transaction method

Also Published As

Publication number Publication date
TWI680423B (en) 2019-12-21

Similar Documents

Publication Publication Date Title
JP6669368B2 (en) A distributed ledger protocol that encourages transactional and non-transactional commerce
JP6356265B2 (en) Settlement system and settlement method
US8626596B2 (en) Online transaction method and system using a payment platform and a logistics company
CN109767219A (en) A kind of accounts receivable circulation method based on block chain technology
KR20210024994A (en) Digital asset exchange
WO2017098519A1 (en) A system and method for automated financial transaction validation, processing and settlement using blockchain smart contracts
JP2018518745A (en) Digitally encrypted securities platform and method and system therefor
CN103236022A (en) Online trading-based online credit method and data processing system
TWI646484B (en) Financing system for accounts receivable based on blockchain smart contract and method thereof
TWI659377B (en) System for digitizing and trading unquantifiable asset and method thereof
TWI680423B (en) System for digitizing and trading quantified assets and method thereof
KR101975802B1 (en) Peer to peer lending management system of financial agency
KR20180119111A (en) Joint pool service system and method for real estate
CN110659992A (en) Heavy metal transaction data processing method and device based on block chain
KR101575927B1 (en) Resale system for repeating sale goods and method of the same
KR101666083B1 (en) System and method for evaluating loan based on sale credit
JP7340336B2 (en) Virtual currency distribution system
KR20210053774A (en) System and method for trading based on party trust using blockchain
KR101666084B1 (en) System and method for managing loan based on sale credit
KR101043312B1 (en) Method for transacting realestate, apparatus and computer-readable recording medium with program therefor
CN110675260A (en) Agricultural product transaction data processing method and device based on block chain
KR20150019762A (en) Escrow System that supported Parital Payment between Buyers and Sellers on Online Marketplace
JP7392071B1 (en) Token transfer system
KR20190111436A (en) System for currency exchanging using crypto currency
JP5897883B2 (en) Method, system and program for generating data for transferring funds