TWI724540B - Device and method for trading commodity based on block chain system and storage medium - Google Patents
Device and method for trading commodity based on block chain system and storage medium Download PDFInfo
- Publication number
- TWI724540B TWI724540B TW108132874A TW108132874A TWI724540B TW I724540 B TWI724540 B TW I724540B TW 108132874 A TW108132874 A TW 108132874A TW 108132874 A TW108132874 A TW 108132874A TW I724540 B TWI724540 B TW I724540B
- Authority
- TW
- Taiwan
- Prior art keywords
- consumer
- commodity
- product
- purchased
- distributor
- Prior art date
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本發明涉及區塊鏈技術領域,尤其涉及一種基於區塊鏈系統之商品交易裝置、方法及電腦可讀取存儲介質。 The present invention relates to the field of blockchain technology, in particular to a commodity transaction device, method and computer readable storage medium based on a blockchain system.
區塊鏈是分散式資料存儲、點對點傳輸、共識機制、加密演算法等電腦技術之新型應用模式,採用共識機製作為區塊鏈系統中實現不同節點之間建立信任、獲取權益之數學演算法。於區塊鏈技術領域中,用戶使用唯一之區塊鏈位址來表示其身份及所擁有之資產,並使用一組公開金鑰及私密金鑰來證明其身份及資產所有權,使用者之真實身份資訊並不會曝露於區塊鏈網路中。習知之商品線上交易平臺基本是採用協力廠商托管之資金交易方式來確保交易安全,但可能會發生使用者帳戶資訊、銀行卡資訊洩露,導致使用者資訊被竊取、甚至資金損失,且商品一般是由商家藉由快遞送至買家。 Blockchain is a new application mode of computer technology such as decentralized data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. It uses consensus mechanism as a mathematical algorithm for building trust between different nodes and obtaining rights in the blockchain system. . In the field of blockchain technology, users use a unique blockchain address to represent their identity and assets they own, and use a set of public and private keys to prove their identity and asset ownership, and the user’s authenticity Identity information will not be exposed to the blockchain network. The conventional commodity online trading platform basically uses a third-party custodial fund transaction method to ensure transaction security. However, user account information and bank card information may be leaked, resulting in user information being stolen and even capital loss, and the commodity is generally The merchant uses express delivery to the buyer.
有鑑於此,有必要提供一種基於區塊鏈系統之商品交易裝置、方法及電腦可讀取存儲介質,其可最大程度避免發生使用者資訊洩露、資金損失等問題。 In view of this, it is necessary to provide a commodity trading device and method based on a blockchain system, and a computer-readable storage medium, which can avoid problems such as user information leakage and capital loss to the greatest extent.
本發明一實施方式提供一種基於區塊鏈系統之商品交易方法,所述區塊鏈系統包括多個節點,每一所述節點均儲存有消費者、製造商及通路商之帳戶餘額與區塊鏈位址,所述方法包括:提供商品上架介面及商品購買介面,以供所述製造商利用所述商品上架介面將商品內容上架到所述區塊鏈系統及供所述消費者利用所述商品購買介面發起商品交易;當所述消費者發起商品交易時,控制每一所述節點對所述商品交易進行驗證;當所述節點對所述商品交易驗證通過時,廣播驗證通過消息至所述區塊鏈系統;當所述節點接收到超過第一預設數量之驗證通過消息時,儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從所述通路商取得所購買之商品;及根據所述消費者從所述通路商進行取貨之取貨資訊更新所述消費者所擁有之商品名稱及數量資訊。 An embodiment of the present invention provides a commodity transaction method based on a blockchain system. The blockchain system includes a plurality of nodes, and each node stores the account balances and blocks of consumers, manufacturers, and distributors. The method includes: providing a commodity listing interface and a commodity purchase interface for the manufacturer to use the commodity listing interface to upload commodity content to the blockchain system and for the consumer to use the The commodity purchase interface initiates a commodity transaction; when the consumer initiates a commodity transaction, each node is controlled to verify the commodity transaction; when the node passes the commodity transaction verification, a verification pass message is broadcast to the place The blockchain system; when the node receives a verification message exceeding the first preset number, the name and quantity information of the product purchased by the consumer is stored for the consumer to obtain from the distributor The purchased goods; and update the name and quantity information of the goods owned by the consumer according to the information on the goods picked up by the consumer from the distributor.
優選地,所述區塊鏈系統包括多個通路商,所述儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從所述通路商取得所購買之商品之步驟包括:儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從任意一所述通路商取得所購買之部分或者全部商品。 Preferably, the blockchain system includes a plurality of distributors, and the step of storing the product name and quantity information purchased by the consumer so that the consumer can obtain the purchased product from the distributor includes : Store the name and quantity information of the product purchased by the consumer, so that the consumer can obtain part or all of the purchased product from any one of the distributors.
優選地,所述儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從所述通路商取得所購買之商品之步驟包括:儲存所述消費者所購買之商品名稱及數量資訊;及發送商品取貨憑證至所述消費者,以供所述消費者從所述通路商取得所購買之商品。 Preferably, the step of storing the name and quantity information of the product purchased by the consumer so that the consumer can obtain the purchased product from the distributor includes: storing the name of the product purchased by the consumer and Quantity information; and sending a commodity pick-up certificate to the consumer, so that the consumer can obtain the purchased commodity from the distributor.
優選地,所述區塊鏈系統包括多個通路商,所述發送商品取貨憑證至所述消費者,以供所述消費者從所述通路商取得所購買之商品之步驟包括:發送商品取貨憑證至所述消費者,以供所述消費者從任意一所述通路商取得所購買之部分或者全部商品。 Preferably, the blockchain system includes a plurality of distributors, and the step of sending a commodity pick-up certificate to the consumer so that the consumer can obtain the purchased goods from the distributor includes: sending the commodity The receipt voucher is sent to the consumer, so that the consumer can obtain part or all of the purchased commodities from any one of the distributors.
優選地,所述商品內容包括商品名稱、商品售價、商品唯一識別碼及商品上架數量。 Preferably, the content of the product includes the name of the product, the price of the product, the unique identification code of the product, and the quantity of the product on the shelf.
優選地,所述方法還包括:當所述商品交易成功時,將所述消費者帳戶中之第一金額之虛擬幣轉移到所述製造商帳戶中,其中所述第一金額為所述消費者所購買之商品總金額。 Preferably, the method further includes: when the commodity transaction is successful, transferring a first amount of virtual currency in the consumer account to the manufacturer's account, wherein the first amount is the consumption The total amount of goods purchased by the person.
優選地,所述製造商預先為每一上架商品設置有與所述通路商之分潤金額,所述方法還包括:當所述消費者從所述通路商取得預設數量之商品時,將所述製造商帳戶中之第二金額之虛擬幣轉移到所述通路商帳戶中,其中所述第二金額根據所述分潤金額及所述預設數量計算得到。 Preferably, the manufacturer sets a profit sharing amount with the distributor for each item on the shelves in advance, and the method further includes: when the consumer obtains a preset quantity of goods from the distributor, The virtual currency of the second amount in the account of the manufacturer is transferred to the account of the distributor, wherein the second amount is calculated based on the amount of the dividend and the preset amount.
優選地,所述根據所述消費者從所述通路商進行取貨之取貨資訊更新所述消費者所擁有之商品名稱及數量資訊之步驟包括:當所述消費者請求從所述通路商取得所購買之商品時,驗證所述消費者之身份資訊;當所述消費者之身份資訊被驗證通過時,確認所述消費者所擁有之商品及商品剩餘數量是否與所述消費者節當前期望取得之商品資訊匹配;當所述消費者所擁有之商品及商品剩餘數量與所述消費者節當前期望取得之商品資訊匹配時,確認進行取貨交易;及當所述取貨交易完成時,根據取貨資訊更新所述消費者所擁有之商品名稱及數量資訊。 Preferably, the step of updating the name and quantity information of the product owned by the consumer based on the pickup information of the consumer from the distributor includes: when the consumer requests from the distributor When the purchased goods are obtained, the identity information of the consumer is verified; when the identity information of the consumer is verified, it is confirmed whether the goods owned by the consumer and the remaining quantity of the goods are the same as those of the consumer festival The expected product information matches; when the product owned by the consumer and the remaining quantity of the product match the product information currently expected to be obtained in the consumer section, confirm the pick-up transaction; and when the pick-up transaction is completed , To update the product name and quantity information owned by the consumer according to the pick-up information.
本發明一實施方式提供一種基於區塊鏈系統之商品交易裝置,所述裝置包括處理器及記憶體,所述記憶體上存儲有複數電腦程式,所述處理器用於執行記憶體中存儲之電腦程式時實現上述之基於區塊鏈系統之商品交易方法之步驟。 An embodiment of the present invention provides a commodity transaction device based on a blockchain system. The device includes a processor and a memory. A plurality of computer programs are stored on the memory. The processor is used to execute a computer stored in the memory. The program implements the steps of the above-mentioned commodity transaction method based on the blockchain system.
本發明一實施方式還提供一種電腦可讀取存儲介質,所述電腦可讀取存儲介質存儲有多條指令,多條所述指令可被一個或者多個處理器執行,以實現上述之基於區塊鏈系統之商品交易方法之步驟。 An embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a plurality of instructions, and the plurality of instructions can be executed by one or more processors to realize the above-mentioned area-based storage medium. The steps of the commodity transaction method of the block chain system.
與習知技術相比,上述基於區塊鏈系統之商品交易裝置、方法及電腦可讀取存儲介質,於區塊鏈網路中進行商品交易,可最大程度避免發生使 用者資訊洩露、資金損失等問題,且允許買家於多個不同之通路商中取得其購買之部分或者全部商品。 Compared with the conventional technology, the above-mentioned commodity trading device, method and computer readable storage medium based on the blockchain system can conduct commodity trading on the blockchain network, which can avoid the use of User information leakage, capital loss and other issues, and allows buyers to obtain part or all of the goods they purchase from multiple different distributors.
1:區塊鏈系統 1: Blockchain system
10:記憶體 10: Memory
20:處理器 20: processor
30:商品交易程式 30: Commodity trading program
101:提供模組 101: Provide modules
102:驗證模組 102: Verification Module
103:廣播模組 103: Broadcast module
104:儲存模組 104: storage module
105:發送模組 105: Sending module
106:轉移模組 106: transfer module
107:更新模組 107: Update module
100:商品交易裝置 100: Commodity trading device
S400~S408:步驟 S400~S408: steps
圖1是本發明一實施方式之區塊鏈系統之架構示意圖。 FIG. 1 is a schematic diagram of the architecture of a blockchain system according to an embodiment of the present invention.
圖2是本發明一實施方式之商品交易裝置之功能模組圖。 Fig. 2 is a functional module diagram of a commodity transaction device according to an embodiment of the present invention.
圖3是本發明一實施方式之商品交易程式之功能模組圖。 Fig. 3 is a functional module diagram of a commodity transaction program according to an embodiment of the present invention.
圖4是本發明一實施方式之商品交易方法之流程圖。 Fig. 4 is a flowchart of a commodity transaction method according to an embodiment of the present invention.
請參閱圖1,為本發明區塊鏈系統較佳實施例之架構示意圖。 Please refer to FIG. 1, which is a schematic diagram of the architecture of a preferred embodiment of the blockchain system of the present invention.
所述區塊鏈系統1包括區塊鏈網路及區塊鏈。所述區塊鏈網路包括多個節點,每一所述節點均儲存有消費者、製造商及通路商之帳戶餘額與區塊鏈地址。用戶(消費者、製造商、通路商)可使用唯一之區塊鏈位址來表示其身份及所擁有之資產,並可使用一組公開金鑰及私密金鑰來證明其身份及資產所有權。消費者、製造商、以及通路商均可使用一用戶端(如電腦或是手機)與任一節點通信,即可進一步與智慧合約互動,實現商品交易與商品取貨。比如,消費者、製造商、以及通路商均可藉由網頁或是手機APP與任一節點通信。 The blockchain system 1 includes a blockchain network and a blockchain. The blockchain network includes multiple nodes, and each node stores the account balances and blockchain addresses of consumers, manufacturers, and distributors. Users (consumers, manufacturers, distributors) can use a unique blockchain address to indicate their identity and assets they own, and can use a set of public and private keys to prove their identity and asset ownership. Consumers, manufacturers, and distributors can use a client (such as a computer or mobile phone) to communicate with any node, and then they can further interact with smart contracts to realize commodity transactions and commodity pickup. For example, consumers, manufacturers, and distributors can communicate with any node through web pages or mobile apps.
圖1示出了區塊鏈網路包括四個節點(節點A、節點B、節點C、節點D),但不以四個節點為限,更多之節點於圖1中未示出。 Figure 1 shows that the blockchain network includes four nodes (node A, node B, node C, node D), but not limited to four nodes, and more nodes are not shown in Figure 1.
於一實施方式中,所述製造商可是產品生產商,亦可是電商平臺。於本發明之其他實施方式中,所述製造商還可是指其他線上上售賣商品之店家。 In one embodiment, the manufacturer may be a product manufacturer or an e-commerce platform. In other embodiments of the present invention, the manufacturer may also refer to other stores that sell goods online.
可理解之是,每一節點可基於共識機制對區塊進行記帳,任意一 節點向區塊鏈網路廣播資訊或者區塊時,其他節點均能接收到,並對接收到之區塊進行驗證。於對該區塊驗證通過之節點數於整個區塊鏈網路總節點數中之佔比大於預設閾值時,則確定為區塊鏈網路對該區塊驗證通過,所有節點可對該區塊進行記帳。 It is understandable that each node can account for the block based on the consensus mechanism, and any one When a node broadcasts information or blocks to the blockchain network, other nodes can receive it and verify the received block. When the proportion of the number of nodes that have passed the verification of the block in the total number of nodes in the entire blockchain network is greater than the preset threshold, it is determined that the blockchain network has passed the verification of the block, and all nodes can Block accounting.
請同時參閱圖2,為本發明基於區塊鏈系統之商品交易裝置較佳實施例之示意圖。 Please also refer to FIG. 2, which is a schematic diagram of a preferred embodiment of a commodity transaction device based on the blockchain system of the present invention.
所述商品交易裝置可是區塊鏈交易平臺之伺服器。所述商品交易裝置100包括記憶體10、處理器20以及存儲於所述記憶體10中並可於所述處理器20上運行之商品交易程式30。所述處理器20執行所述商品交易程式30時實現商品交易方法實施例中之步驟,例如圖4所示之步驟S400~S408。或者,所述處理器20執行所述商品交易程式30時實現商品交易程式實施例中各模組之功能,例如圖3中之模組101~107。
The commodity trading device may be a server of a blockchain trading platform. The
所述商品交易程式30可被分割成一個或多個模組,所述一個或者多個模組被存儲於所述記憶體10中,並由所述處理器20執行,以完成本發明。所述一個或多個模組可是能夠完成特定功能之一系列電腦程式指令段,所述指令段用於描述所述商品交易程式30於所述商品交易裝置100中之執行過程。例如,所述商品交易程式30可被分割成圖3中之提供模組101、驗證模組102、廣播模組103、儲存模組104、發送模組105、轉移模組106及更新模組107。各模組具體功能參見下圖3中各模組之功能。
The
本領域技術人員可理解,所述示意圖僅是商品交易裝置100之示例,並不構成對商品交易裝置100之限定,可包括比圖示更多或更少之部件,或者組合某些部件,或者不同之部件,例如所述商品交易裝置100還可包括網路接入設備、匯流排等。
Those skilled in the art can understand that the schematic diagram is only an example of the
所稱處理器20可是中央處理單元(Central Processing Unit,CPU),
還可是其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可是微處理器或者所述處理器20亦可是任何常規之處理器等,所述處理器20可利用各種介面與匯流排連接商品交易裝置100之各個部分。
The so-called
所述記憶體10可用於存儲所述商品交易程式30與/或模組,所述處理器20藉由運行或執行存儲於所述記憶體10內之電腦程式與/或模組,以及調用存儲於記憶體10內之資料,實現所述商品交易裝置100之各種功能。所述記憶體10可包括高速隨機存取記憶體,還可包括非易失性記憶體,例如硬碟機、記憶體、插接式硬碟機,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)、至少一個磁碟記憶體件、快閃記憶體器件、或其他非易失性固態記憶體件。
The
圖3為本發明商品交易程式較佳實施例之功能模組圖。 Fig. 3 is a functional module diagram of a preferred embodiment of the commodity trading program of the present invention.
參閱圖3所示,商品交易程式30可包括提供模組101、驗證模組102、廣播模組103、儲存模組104、發送模組105、轉移模組106及更新模組107。於一實施方式中,上述模組可為存儲於所述記憶體10中且可被所述處理器20調用執行之可程式化軟體指令。可理解之是,於其他實施方式中,上述模組亦可為固化於所述處理器20中之程式指令或固件(firmware)。
Referring to FIG. 3, the
所述提供模組101用於提供商品上架介面及商品購買介面,以供所述製造商利用所述商品上架介面將商品內容上架到所述區塊鏈系統1及供所述消費者利用所述商品購買介面發起商品交易。
The providing
於一實施方式中,於區塊鏈系統1中,任意一用戶可使用其私密金鑰將所擁有之數位資產轉移到其他使用者之區塊鏈位址,區塊鏈系統1中之
每一節點均儲存有所述消費者、所述製造商及所述通路商之帳戶餘額及區塊鏈位址資訊。為實現商品交易,商品交易裝置100需提供商品上架介面及商品購買介面,以便賣家進行商品上架及買家進行商品選購。具體地,所述提供模組101提供商品上架介面及商品購買介面,進而所述製造商可利用所述商品上架介面將商品內容上架到所述區塊鏈系統1,所述消費者可利用所述商品購買介面進行商品選購,發起商品交易。
In one embodiment, in the blockchain system 1, any user can use his private key to transfer his digital assets to the blockchain addresses of other users. In the blockchain system 1,
Each node stores the account balance and blockchain address information of the consumer, the manufacturer, and the distributor. In order to realize commodity transactions, the
於一實施方式中,所述商品內容可包括商品名稱、商品售價、商品唯一識別碼及商品上架數量等資訊。 In one embodiment, the product content may include information such as the name of the product, the price of the product, the unique identification code of the product, and the quantity of the product on the shelf.
驗證模組102用在於所述消費者發起商品交易時,控制每一所述節點A-D對所述商品交易進行驗證。
The
於一實施方式中,所述商品交易包括購買之商品名稱及數量資訊。比如,消費者可藉由手機APP接入節點A並發起所述商品交易,消費者可於購買頁面選定想購買之商品並生成付款訂單,以進行付款。所述驗證模組102用於控制每一所述節點A-D對所述商品交易進行驗證。
In one embodiment, the commodity transaction includes purchased commodity name and quantity information. For example, a consumer can access node A through a mobile phone APP and initiate the commodity transaction. The consumer can select the commodity that he wants to purchase on the purchase page and generate a payment order to make payment. The
於一實施方式中,所述驗證可包括確認商品交易確實是由所述消費者發起以及確認本次商品交易之真實性。 In one embodiment, the verification may include confirming that the commodity transaction is indeed initiated by the consumer and confirming the authenticity of the commodity transaction.
廣播模組103用在於所述節點對所述商品交易驗證通過時,廣播驗證通過消息至所述區塊鏈系統1。
The
於一實施方式中,當節點對所述商品交易驗證通過時,所述廣播模組103廣播驗證通過消息至所述區塊鏈系統1。
In one embodiment, when a node passes the verification of the commodity transaction, the
可理解之是,當區塊鏈網路中之任意一節點對所述商品交易驗證通過時,該節點會廣播驗證通過消息至其他節點。比如,節點A會廣播驗證通過消息至其他節點B-D,亦可接收到其他節點B-D廣播之驗證通過消息。 It is understandable that when any node in the blockchain network passes the verification of the commodity transaction, the node will broadcast a verification pass message to other nodes. For example, node A will broadcast a verification passed message to other nodes B-D, and may also receive verification passed messages broadcast by other nodes B-D.
儲存模組104用在於所述節點接收到超過第一預設數量之驗證通
過消息時,儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從所述通路商取得所購買之商品。
The
於一實施方式中,當所述節點接收到超過第一預設數量之驗證通過消息時,表明區塊鏈網路對所述商品交易達成共識,所述節點可對本次商品交易產生之區塊進行記帳,所述儲存模組104可儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從所述通路商取得所購買之商品。舉例而言,當節點A接收到超過第一預設數量之驗證通過消息時,表明區塊鏈網路對所述商品交易達成共識,儲存模組104儲存所述消費者所購買之商品名稱及數量資訊至節點A。所述消費者優選從線下之通路商取得所購買之商品,所述製造商並不直接發貨給所述消費者。
In one embodiment, when the node receives a verification pass message exceeding the first preset number, it indicates that the blockchain network has reached a consensus on the commodity transaction, and the node can determine the area generated by the commodity transaction. The
於一實施方式中,所述第一預設數量可根據具體使用之共識機制進行設定。比如所述第一預設數量可是2/3總節點數量。 In one embodiment, the first preset number can be set according to the consensus mechanism used. For example, the first preset number may be 2/3 of the total number of nodes.
於一實施方式中,當所述製造商與多個通路商建立有合作關係且多個通路商均於所述區塊鏈系統1中具有區塊鏈位址時,所述消費者可從任意一所述通路商取得所購買之部分或者全部商品。 In one embodiment, when the manufacturer has established a cooperative relationship with multiple distributors and the multiple distributors all have blockchain addresses in the blockchain system 1, the consumer can access any 1. The distributor obtains part or all of the purchased commodities.
於一實施方式中,所述消費者可憑藉唯一之區塊鏈位址來表明其身份,以從所述通路商取得所購買之部分或者全部商品。 In one embodiment, the consumer can use a unique blockchain address to identify his identity, so as to obtain part or all of the purchased goods from the distributor.
於一實施方式中,所述消費者還可憑藉取貨憑證從所述通路商取得所購買之部分或者全部商品。具體地,當所述商品交易成功時,發送模組105用於發送商品取貨憑證至所述消費者,以供所述消費者從所述通路商取得所購買之商品。所述取貨憑證可包含有所購買之商品名稱及數量資訊,還可進一步包含有可進行取貨之通路商之資訊。所述消費者同樣可依據所述取貨憑證從任意一所述通路商取得所購買之部分或者全部商品。
In one embodiment, the consumer can also obtain part or all of the purchased goods from the distributor by virtue of the pick-up voucher. Specifically, when the commodity transaction is successful, the sending
當所述商品交易成功時,轉移模組106用於將所述消費者帳戶中
之第一金額之虛擬幣轉移到所述製造商帳戶中。
When the commodity transaction is successful, the
於一實施方式中,所述第一金額為所述消費者所購買之商品總金額。具體地,所述第一金額可根據所述製造商預先設定之商品售價及用戶購買之商品數量計算得到。 In one embodiment, the first amount is the total amount of goods purchased by the consumer. Specifically, the first amount can be calculated based on the product price set by the manufacturer and the number of products purchased by the user.
可理解所述第一金額還可藉由商品售價與購買數量之乘積,再減去商品優惠價格計算得到。 It can be understood that the first amount can also be calculated by multiplying the product price and the purchased quantity, and then subtracting the preferential price of the product.
更新模組107用於根據所述消費者從所述通路商進行取貨之取貨資訊更新所述消費者所擁有之商品名稱及數量資訊。
The
於一實施方式中,當所述消費者從所述通路商進行取貨時,更新模組107可根據取貨資訊更新所述消費者所擁有之商品名稱及數量資訊。
In one embodiment, when the consumer picks up the goods from the distributor, the
可理解當所述消費者請求從所述通路商取得所購買之商品時,需要先驗證所述消費者之身份資訊,當所述消費者之身份資訊被驗證通過時,還需進一步確認所述消費者所擁有之商品及商品剩餘數量是否與所述消費者節當前期望取得之商品資訊匹配,比如,確認所述消費者期望取得之商品是否均於其所擁有之商品之中,確認所述消費者所擁有之商品剩餘數量是否大於或等於當前期望取得之商品數量,如果所述消費者期望取得之商品於其所擁有之商品之中且所述消費者所擁有之商品剩餘數量大於或等於當前期望取得之商品數量,認定所述消費者所擁有之商品及商品剩餘數量與所述消費者節當前期望取得之商品資訊匹配;當所述消費者所擁有之商品及商品剩餘數量與所述消費者節當前期望取得之商品資訊匹配時,確認進行取貨交易,並於取貨交易完成時,根據取貨資訊更新所述消費者所擁有之商品名稱及數量資訊。 It can be understood that when the consumer requests to obtain the purchased goods from the distributor, the consumer's identity information needs to be verified first, and when the consumer's identity information is verified, the consumer's identity information needs to be further confirmed Whether the products owned by the consumer and the remaining quantity of the products match the product information that the consumer currently expects to obtain, for example, confirm whether the products that the consumer expects to obtain are among the products they own, and confirm the Whether the remaining quantity of goods owned by the consumer is greater than or equal to the quantity of goods currently expected to obtain, if the goods that the consumer expects to obtain are among the goods owned by the consumer and the remaining quantity of goods owned by the consumer is greater than or equal to For the current expected quantity of products, it is determined that the products owned by the consumer and the remaining number of products match the product information currently expected to be obtained by the consumer section; when the products owned by the consumer and the remaining number of products match the said When the product information currently expected to be obtained in the Consumer Festival matches, confirm the pick-up transaction, and when the pick-up transaction is completed, update the product name and quantity information owned by the consumer according to the pick-up information.
於一實施方式中,所述製造商預設為每一上架商品設置有與所述通路商之分潤金額,對於同一商品,所述製造商可為多個通路商設置相同或者不相同之分潤金額。比如,製造商A1為其售賣之商品B1設置通路商C1之分潤 金額為5虛擬幣,設置通路商C2之分潤金額為5.5虛擬幣,設置通路商C3之分潤金額為6虛擬幣,設置通路商C4之分潤金額為5虛擬幣。 In one embodiment, the manufacturer presets that each item on the shelf has a profit sharing amount with the distributor. For the same product, the manufacturer can set the same or different points for multiple distributors. The amount of profit. For example, manufacturer A1 sets the profit of distributor C1 for its products B1 The amount is 5 virtual coins, the profit sharing amount of the distributor C2 is set to 5.5 virtual coins, the profit sharing amount of the distributor C3 is set to 6 virtual coins, and the profit sharing amount of the distributor C4 is set to 5 virtual coins.
於一實施方式中,當所述消費者從所述通路商取得預設數量之商品後,轉移模組106還用於將所述製造商帳戶中之第二金額之虛擬幣轉移到所述通路商帳戶中,其中所述第二金額根據所述分潤金額及所述預設數量計算得到。比如,製造商A1為其售賣之商品B1設置通路商C1之分潤金額為5虛擬幣,當所述消費者從所述製造商A1購買了2包商品B1並從所述通路商C1取得2包商品B1,轉移模組106將所述製造商帳戶中之10虛擬幣轉移到所述通路商C1之帳戶中。
In one embodiment, after the consumer obtains a preset quantity of commodities from the distributor, the
舉例而言,消費者之區塊鏈地址為“ABCD”,製造商A1之區塊鏈地址為“AAAA”,通路商“7-11便利店”之區塊鏈地址為“CCCC”,通路商“全家便利店”之區塊鏈地址為“DDDD”,商品交易過程如下所述。a).製造商A1將商品“波卡洋芋片”及“純吃茶”上架到區塊鏈系統1。如表格1所示,製造商A1設定“波卡洋芋片”售價為20虛擬幣,通路商“7-11便利店”之分潤金額為10虛擬幣,通路商“全家便利店”之分潤金額為12虛擬幣;製造商A1還設定“純吃茶”售價為25虛擬幣,通路商“7-11便利店”之分潤金額為15虛擬幣,通路商“全家便利店”之分潤金額為15虛擬幣。 For example, the consumer’s blockchain address is “ABCD”, the manufacturer’s A1’s blockchain address is “AAAA”, the distributor “7-11 Convenience Store”’s blockchain address is “CCCC”, and the distributor’s blockchain address is “CCCC”. The blockchain address of "Family Family Convenience Store" is "DDDD", and the commodity transaction process is as follows. a). Manufacturer A1 puts the products "Poka Potato Chips" and "Pure Tea" on the blockchain system 1. As shown in Table 1, manufacturer A1 sets the price of "Poca Chips" at 20 virtual coins, the distribution amount of distributors "7-11 Convenience Store" is 10 virtual coins, and distributors "Family Family Convenience Store" are divided The profit amount is 12 virtual coins; manufacturer A1 also sets the price of "Pure Tea" at 25 virtual coins, and the distributor "7-11 Convenience Store" has a profit of 15 virtual coins, and the distributor "Family Convenience Store" The dividend amount is 15 virtual coins.
圖4為本發明一實施方式中商品交易方法之流程圖。根據不同之需求,所述流程圖中步驟之順序可改變,某些步驟可省略。 Fig. 4 is a flowchart of a commodity transaction method in an embodiment of the present invention. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.
步驟S400,提供商品上架介面及商品購買介面,以供所述製造商利用所述商品上架介面將商品內容上架到所述區塊鏈系統及供所述消費者利用所述商品購買介面發起商品交易請求。 Step S400: Provide a commodity shelf interface and a commodity purchase interface for the manufacturer to use the commodity shelf interface to upload commodity content to the blockchain system and for the consumer to use the commodity purchase interface to initiate commodity transactions request.
步驟S402,當所述消費者發起商品交易時,控制每一所述節點對所述商品交易進行驗證。 Step S402, when the consumer initiates a commodity transaction, control each of the nodes to verify the commodity transaction.
步驟S404,當所述節點對所述商品交易驗證通過時,廣播驗證通過消息至所述區塊鏈系統1。 Step S404, when the node passes the verification of the commodity transaction, broadcast a verification passed message to the blockchain system 1.
步驟S406,當所述節點接收到超過第一預設數量之驗證通過消息時,儲存所述消費者所購買之商品名稱及數量資訊,以供所述消費者從所述通路商取得所購買之商品。 Step S406: When the node receives a verification message exceeding the first preset number, it stores the name and quantity information of the product purchased by the consumer, so that the consumer can obtain the purchased product from the distributor. commodity.
步驟S408,根據所述消費者從所述通路商進行取貨之取貨資訊更新所述消費者所擁有之商品名稱及數量資訊。 In step S408, the product name and quantity information owned by the consumer is updated according to the information of the consumer's pick-up from the distributor.
上述基於區塊鏈系統之商品交易裝置、方法及電腦可讀取存儲介 質,於區塊鏈網路中進行商品交易,可最大程度避免發生使用者資訊洩露、資金損失等問題,且允許買家於多個不同之通路商中取得其購買之部分或者全部商品。 The above-mentioned commodity transaction device, method and computer readable storage medium based on the blockchain system Quality. Commodity transactions in the blockchain network can avoid user information leakage and capital loss to the greatest extent, and allow buyers to obtain some or all of the products they purchase from multiple different distributors.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施方式,本發明之範圍並不以上述實施方式為限,舉凡熟悉本案技藝之人士爰依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention meets the requirements of an invention patent, and Yan filed a patent application in accordance with the law. However, the above are only the preferred embodiments of the present invention, and the scope of the present invention is not limited to the above embodiments. Anyone familiar with the art of the present case makes equivalent modifications or changes based on the spirit of the present invention. Should be covered in the scope of the following patent applications.
S400~S408:步驟 S400~S408: steps
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108132874A TWI724540B (en) | 2019-09-11 | 2019-09-11 | Device and method for trading commodity based on block chain system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW108132874A TWI724540B (en) | 2019-09-11 | 2019-09-11 | Device and method for trading commodity based on block chain system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202111632A TW202111632A (en) | 2021-03-16 |
TWI724540B true TWI724540B (en) | 2021-04-11 |
Family
ID=76035483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW108132874A TWI724540B (en) | 2019-09-11 | 2019-09-11 | Device and method for trading commodity based on block chain system and storage medium |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI724540B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
US20170132625A1 (en) * | 2015-11-05 | 2017-05-11 | Mastercard International Incorporated | Method and system for use of a blockchain in a transaction processing network |
CN107341729A (en) * | 2017-08-04 | 2017-11-10 | 现在(北京)支付股份有限公司 | Computer webpage method of payment based on block chain technology |
CN109389466A (en) * | 2018-09-25 | 2019-02-26 | 杭州复杂美科技有限公司 | A kind of delivery of cargo method, equipment and storage medium based on block chain |
CN109389478A (en) * | 2018-10-26 | 2019-02-26 | 深圳市元征科技股份有限公司 | A kind of commodity information management method and system, equipment, computer storage medium |
TW201933224A (en) * | 2018-01-26 | 2019-08-16 | 宏碁股份有限公司 | Transaction record method and system based on blockchain |
-
2019
- 2019-09-11 TW TW108132874A patent/TWI724540B/en active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170132625A1 (en) * | 2015-11-05 | 2017-05-11 | Mastercard International Incorporated | Method and system for use of a blockchain in a transaction processing network |
CN106656974A (en) * | 2016-10-17 | 2017-05-10 | 江苏通付盾科技有限公司 | Block chain grouping consensus method and system |
CN107341729A (en) * | 2017-08-04 | 2017-11-10 | 现在(北京)支付股份有限公司 | Computer webpage method of payment based on block chain technology |
TW201933224A (en) * | 2018-01-26 | 2019-08-16 | 宏碁股份有限公司 | Transaction record method and system based on blockchain |
CN109389466A (en) * | 2018-09-25 | 2019-02-26 | 杭州复杂美科技有限公司 | A kind of delivery of cargo method, equipment and storage medium based on block chain |
CN109389478A (en) * | 2018-10-26 | 2019-02-26 | 深圳市元征科技股份有限公司 | A kind of commodity information management method and system, equipment, computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
TW202111632A (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10592985B2 (en) | Systems and methods for a commodity contracts market using a secure distributed transaction ledger | |
KR20210024994A (en) | Digital asset exchange | |
US20050240536A1 (en) | Networked electronic trading system | |
CA2990715A1 (en) | Capital receipt and payment system based on electronic voucher | |
KR102259567B1 (en) | System and method for managing online shopping malls based on commodity brands | |
KR102437601B1 (en) | A product trading system based on NFT matched with a unique code and a product trading method using the same | |
EP3918745A2 (en) | Digital asset management systems and methods | |
CN111340492A (en) | Transaction method and device based on digital certificate | |
US20140122367A1 (en) | Social Shipping | |
KR20200012321A (en) | Block Chain Based Intellectual Property Management System and Method | |
CN110288339B (en) | Second-hand mobile phone transaction information processing system and method based on block chain | |
US20180260865A1 (en) | Trusted fulfillment agent network | |
KR20190127270A (en) | Auction confidence system using blockchain | |
CN110659992A (en) | Heavy metal transaction data processing method and device based on block chain | |
TWI724540B (en) | Device and method for trading commodity based on block chain system and storage medium | |
CN110223063B (en) | Supply chain data management method and device based on zero knowledge proof | |
CN112488828A (en) | Commodity transaction device and method based on block chain system and readable storage medium | |
US8612304B1 (en) | Seller to seller transactions | |
CA2995865A1 (en) | Electronic-certificate-based transaction method and system | |
CN110675260A (en) | Agricultural product transaction data processing method and device based on block chain | |
KR102706299B1 (en) | Commodities trading system based on blockchain | |
KR102474905B1 (en) | Quality evaluation system of fresh products based on collective intelligence | |
KR20200093779A (en) | Block chain based product purchasing agent method and system | |
TWI690882B (en) | Storage medium, device and method for processing commodity trading information | |
KR102677397B1 (en) | Shared Real Estate Sales System and method |