TWI748503B - Queuing number bidding method based on block chain, electronic device, and storage medium - Google Patents

Queuing number bidding method based on block chain, electronic device, and storage medium Download PDF

Info

Publication number
TWI748503B
TWI748503B TW109119040A TW109119040A TWI748503B TW I748503 B TWI748503 B TW I748503B TW 109119040 A TW109119040 A TW 109119040A TW 109119040 A TW109119040 A TW 109119040A TW I748503 B TWI748503 B TW I748503B
Authority
TW
Taiwan
Prior art keywords
bidding
user
queuing
smart contract
queuing number
Prior art date
Application number
TW109119040A
Other languages
Chinese (zh)
Other versions
TW202147196A (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 TW109119040A priority Critical patent/TWI748503B/en
Application granted granted Critical
Publication of TWI748503B publication Critical patent/TWI748503B/en
Publication of TW202147196A publication Critical patent/TW202147196A/en

Links

Images

Landscapes

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

Abstract

A queuing number bidding method based on block chain is provided. The method includes generating a smart contract according to bidding rules; the smart contract receiving a bidding number transmitted by a queuing numbering device; the smart contract receiving bidding applications transmitted by mobile terminals of multiple users, the bidding application includes a queuing number of the user; calculating a bidding chip value of each user based on the bidding number and the queuing number of each user; and transmitting a bidding chip of the user from a user account address to a smart contract address; executing the smart contract according to the bidding chip of each user to determine a winning user of the bid number; and storing bid information to a block and write the bid information to the blockchain according to a consensus mechanism. An electronic device and a storage medium are also provided.

Description

基於區塊鏈的排隊號碼競標方法、電子裝置及存儲介質 Block chain-based queuing number bidding method, electronic device and storage medium

本發明涉及區塊鏈技術領域,尤其涉及一種基於區塊鏈的排隊號碼競標方法、電子裝置及存儲介質。 The present invention relates to the field of blockchain technology, and in particular to a method for bidding on a queuing number based on a blockchain, an electronic device and a storage medium.

隨著社會的發展,許多場合,例如醫院看病、銀行辦理業務、商場購買商品等,都需要人們取號排隊以確定交易處理的先後順序。在排隊的過程中,經常會出現過號的情形,此時,業務辦理方通常會讓持有後面號碼的人替換過號人辦理對應的業務。然而,由於業務辦理方的選號沒有固定規則,並且不夠公開透明,可能指定排隊號碼靠後的人先於靠前的人辦理業務,或者導致冒用排隊號碼的人替換過號人辦理業務,如此對正常排隊的人不公平,容易造成糾紛。 With the development of society, many occasions, such as seeing a doctor in a hospital, handling business at a bank, purchasing goods in a shopping mall, etc., require people to queue up to determine the order of transaction processing. In the process of queuing, there are often cases of passing the number. At this time, the business operator usually asks the person holding the latter number to replace the person who has the number to handle the corresponding business. However, because there are no fixed rules for the number selection of the business operator, and it is not sufficiently open and transparent, it may designate the person with the lower queuing number to handle the business before the person at the front, or cause the person who faked the queuing number to replace the previous person to handle the business. It is unfair to those who normally line up, and it is easy to cause disputes.

有鑒於此,有必要提供一種基於區塊鏈的排隊號碼競標方法、電子裝置及存儲介質,基於區塊鏈的智慧合約進行排隊號碼的競標,保證排隊號碼競標的公正及透明。 In view of this, it is necessary to provide a blockchain-based queuing number bidding method, electronic device and storage medium, and blockchain-based smart contracts for queuing number bidding to ensure the fairness and transparency of the queuing number bidding.

本發明的第一方面提供一種基於區塊鏈的排隊號碼競標方法,所述方法包括: 根據競標規則生成智慧合約;所述智慧合約接收排隊叫號裝置發送的競標號碼;所述智慧合約接收複數個用戶的移動終端發送的投標申請,其中,所述投標申請包括所述用戶的排隊號碼;根據所述競標號碼及每個投標用戶的排隊號碼計算每個投標用戶的投標籌碼值;將每個投標用戶的投標籌碼由用戶帳戶位址發送至智慧合約位址;根據每個投標用戶的投標籌碼執行所述智慧合約以確定所述競標號碼的得標用戶;及將競標資訊存儲在區塊中,並藉由共識機制寫入區塊鏈。 The first aspect of the present invention provides a method for bidding for a queuing number based on a blockchain, the method comprising: The smart contract is generated according to the bidding rules; the smart contract receives the bid number sent by the queuing device; the smart contract receives the bid application sent by the mobile terminal of a plurality of users, wherein the bid application includes the user's queuing number ; Calculate the bidding chip value of each bidding user according to the bidding number and the queuing number of each bidding user; send the bidding chips of each bidding user from the user account address to the smart contract address; according to each bidding user’s The bidding chip executes the smart contract to determine the winning user of the bidding number; and stores the bidding information in a block, and writes it into the block chain through a consensus mechanism.

優選地,所述競標資訊包括所述智慧合約、所述競標號碼、參與競標的用戶帳戶資訊、每個投標用戶的投標籌碼值及競標結果。 Preferably, the bidding information includes the smart contract, the bidding number, the user account information participating in the bidding, the bidding chip value of each bidding user, and the bidding result.

優選地,所述方法還包括:將所述競標結果發送至所述得標用戶的移動終端;及對所述競標資訊進行廣播。 Preferably, the method further includes: sending the bidding result to the mobile terminal of the winning user; and broadcasting the bidding information.

優選地,所述方法還包括:將確定的每個投標用戶的投標籌碼值發送至每個投標用戶的移動終端;根據預設規則將所述投標籌碼值轉換為投標籌碼;及將未得標用戶的投標籌碼退還至所述未得標用戶的帳戶位址。 Preferably, the method further includes: sending the determined bidding chip value of each bidding user to the mobile terminal of each bidding user; converting the bidding chip value into bidding chips according to preset rules; The user's bidding chips are returned to the account address of the unsuccessful user.

優選地,所述智慧合約的內容包括投標號碼大於或等於競標號碼以及確定投標籌碼最小的用戶為得標用戶。 Preferably, the content of the smart contract includes a bid number greater than or equal to the bid number and the user with the smallest bidding chip is determined to be the winning user.

優選地,所述方法還包括: 發送控制指令以控制所述排隊叫號裝置根據所述競標結果進行叫號,其中,所述控制指令包括所述得標用戶的排隊號碼。 Preferably, the method further includes: Sending a control instruction to control the queuing device to call a number according to the bidding result, wherein the control instruction includes the queuing number of the bid-winning user.

優選地,所述方法還包括:當所述得標用戶辦理業務時,對所述得標用戶的排隊號碼、區塊鏈位址及私密金鑰進行驗證。 Preferably, the method further includes: verifying the queuing number, blockchain address and private key of the winning user when the winning user handles the business.

優選地,所述投標申請還包括私密金鑰,所述方法還包括:對所述移動終端發送的私密金鑰進行加密以生成區塊鏈位址。 Preferably, the bid application further includes a private key, and the method further includes: encrypting the private key sent by the mobile terminal to generate a blockchain address.

本發明的第二方面提供一種電子裝置,所述電子裝置包括:處理器;以及記憶體,所述記憶體中存儲有複數個程式模組,所述複數個程式模組由所述處理器載入並執行上述的基於區塊鏈的排隊號碼競標方法。 A second aspect of the present invention provides an electronic device, the electronic device comprising: a processor; and a memory in which a plurality of program modules are stored, and the plurality of program modules are carried by the processor Incorporate and implement the above-mentioned blockchain-based queuing number bidding method.

本發明的第三方面提供一種電腦可讀的存儲介質,其上存儲有至少一條電腦指令,所述指令由處理器並載入執行上述的基於區塊鏈的排隊號碼競標方法。 A third aspect of the present invention provides a computer-readable storage medium on which at least one computer instruction is stored, and the instruction is loaded by a processor to execute the above-mentioned blockchain-based queuing number bidding method.

上述基於區塊鏈的排隊號碼競標方法、電子裝置及存儲介質基於區塊鏈的智慧合約接收用戶移動終端發送的排隊號碼,自動計算投標籌碼值,並根據投標籌碼值確定競標結果,保證排隊號碼競標的公開、公正及透明。 The above block chain-based queuing number bidding method, electronic device and storage medium are based on the smart contract of the block chain to receive the queuing number sent by the user's mobile terminal, automatically calculate the bidding chip value, and determine the bidding result according to the bidding chip value to ensure the queuing number Open, fair and transparent bidding.

1:電子裝置 1: Electronic device

10:處理器 10: processor

100:排隊號碼競標系統 100: Queuing number bidding system

101:生成模組 101: Generate Module

102:接收模組 102: receiving module

103:計算模組 103: Calculation Module

104:發送模組 104: send module

105:確定模組 105: Determine the module

106:存儲模組 106: storage module

107:退還模組 107: Return the module

108:驗證模組 108: Verification Module

109:廣播模組 109: Broadcast Module

20:記憶體 20: Memory

30:電腦程式 30: computer program

2:排隊叫號裝置 2: Queue calling device

3:移動終端 3: mobile terminal

S401-S409:步驟 S401-S409: steps

圖1是本發明較佳實施方式提供的基於區塊鏈的排隊號碼競標方法的應用環境架構示意圖。 FIG. 1 is a schematic diagram of the application environment architecture of the blockchain-based queuing number bidding method provided by the preferred embodiment of the present invention.

圖2是本發明較佳實施方式提供的電子裝置的結構示意圖。 FIG. 2 is a schematic structural diagram of an electronic device provided by a preferred embodiment of the present invention.

圖3是本發明較佳實施方式提供的排隊號碼競標系統的結構示意圖。 Fig. 3 is a schematic structural diagram of a queuing number bidding system provided by a preferred embodiment of the present invention.

圖4是本發明較佳實施方式提供的基於區塊鏈的排隊號碼競標方法的流程圖。 Fig. 4 is a flowchart of a block chain-based bidding method for queuing numbers according to a preferred embodiment of the present invention.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。 In order to be able to understand the above objectives, features and advantages of the present invention more clearly, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other if there is no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In the following description, many specific details are set forth in order to fully understand the present invention. The described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本發明的技術領域的技術人員通常理解的含義相同。本文中在本發明的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本發明。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments, and are not intended to limit the present invention.

請參閱圖1所示,為本發明較佳實施方式提供的基於區塊鏈的排隊號碼競標方法的應用環境架構示意圖。 Please refer to FIG. 1, which is a schematic diagram of the application environment architecture of the block chain-based queuing number bidding method provided by the preferred embodiment of the present invention.

本發明中的基於區塊鏈的排隊號碼競標方法應用在電子裝置1中,所述電子裝置1與一排隊叫號裝置2及至少一個移動終端3藉由網路建立通信連接。所述網路可以是有線網路,也可以是無線網路,例如無線電、無線保真(Wireless Fidelity,WIFI)、蜂窩、衛星、廣播等。 The block chain-based queuing number bidding method of the present invention is applied to an electronic device 1, and the electronic device 1 establishes a communication connection with a queuing number device 2 and at least one mobile terminal 3 through a network. The network can be a wired network or a wireless network, such as radio, wireless fidelity (WIFI), cellular, satellite, broadcast, etc.

所述電子裝置1可以為安裝有排隊號碼競標程式的電子設備,例如個人電腦、伺服器等,其中,所述伺服器可以是單一的伺服器、伺服器集群或雲端伺服器等。 The electronic device 1 may be an electronic device installed with a queuing number bidding program, such as a personal computer, a server, etc., where the server may be a single server, a server cluster, or a cloud server.

所述排隊叫號裝置2可以為個人電腦,用於根據用戶的排隊請求生成排隊號碼,並將生成的排隊號碼發送至對應用戶的移動終端3。在本實施方式中,所述排隊叫號裝置2至少包括揚聲器(圖未示),用於藉由輸出語音的方式進行排隊叫號。在其他實施方式中,所述排隊叫號裝置2至少包括顯示螢幕(圖未示),用於藉由在顯示幕上顯示文字或數字的方式進行排隊叫號。 The queuing number calling device 2 may be a personal computer, which is used to generate a queuing number according to a user's queuing request, and send the generated queuing number to the mobile terminal 3 of the corresponding user. In this embodiment, the queuing and calling device 2 at least includes a speaker (not shown in the figure), which is used for queuing and calling a number by outputting voice. In other embodiments, the queuing device 2 at least includes a display screen (not shown) for queuing numbers by displaying text or numbers on the display screen.

所述移動終端3可以是智慧手機或平板電腦等。 The mobile terminal 3 may be a smart phone or a tablet computer or the like.

請參閱圖2所示,為本發明電子裝置較佳實施方式的結構示意圖。 Please refer to FIG. 2, which is a schematic structural diagram of a preferred embodiment of the electronic device of the present invention.

所述電子裝置1包括,但不僅限於,處理器10、記憶體20以及存儲在所述記憶體20中並可在所述處理器10上運行的電腦程式30,例如排隊號碼競標程式。所述處理器10執行所述電腦程式30時實現基於區塊鏈的排隊號碼競標方法中的步驟,例如圖4所示的步驟S401~S409。或者,所述處理器10執行所述電腦程式30時實現排隊號碼競標系統中各模組/單元的功能,例如圖3中的模組101-109。 The electronic device 1 includes, but is not limited to, a processor 10, a memory 20, and a computer program 30 stored in the memory 20 and running on the processor 10, such as a queuing number bidding program. The processor 10 implements the steps in the blockchain-based queuing number bidding method when the computer program 30 is executed, such as steps S401 to S409 shown in FIG. 4. Alternatively, when the processor 10 executes the computer program 30, the function of each module/unit in the queuing number bidding system, such as the modules 101-109 in FIG. 3, is realized.

示例性的,所述電腦程式30可以被分割成一個或複數個模組/單元,所述一個或者複數個模組/單元被存儲在所述記憶體20中,並由所述處理器10執行,以完成本發明。所述一個或複數個模組/單元可以是能夠完成特定功能的一系列電腦程式指令段,所述指令段用於描述所述電腦程式30在所述電子裝置1中的執行過程。例如,所述電腦程式30可以被分割成圖3中的生成模組101、接收模組102、計算模組103、發送模組104、確定模組105、存儲模組106、退還模組107、驗證模組108及廣播模組109。各模組具體功能參見排隊號碼競標系統實施例中各模組的功能。 Exemplarily, the computer program 30 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 20 and executed by the processor 10 , To complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 30 in the electronic device 1. For example, the computer program 30 can be divided into the generating module 101, the receiving module 102, the calculating module 103, the sending module 104, the determining module 105, the storage module 106, the returning module 107, The verification module 108 and the broadcast module 109. For specific functions of each module, refer to the functions of each module in the embodiment of the queuing number bidding system.

本領域技術人員可以理解,所述示意圖僅僅是電子裝置1的示例,並不構成對電子裝置1的限定,可以包括比圖示更多或更少的部件,或者組 合某些部件,或者不同的部件,例如所述電子裝置1還可以包括輸入輸出設備、網路接入設備、匯流排等。 Those skilled in the art can understand that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. It may include more or less components or groups than shown in the figure. Some components, or different components, for example, the electronic device 1 may also include input and output devices, network access devices, buses, and so on.

所稱處理器10可以是中央處理單元(Central Processing Unit,CPU),還可以是其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可以是微處理器或者所述處理器10也可以是任何常規的處理器等,所述處理器10是所述電子裝置1的控制中心,利用各種介面和線路連接整個電子裝置1的各個部分。 The so-called processor 10 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), and dedicated integrated circuits (Application Specific Integrated Circuit, ASIC). , Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor 10 may also be any conventional processor, etc. The processor 10 is the control center of the electronic device 1, which uses various interfaces and lines to connect the entire electronic device 1 Various parts.

所述記憶體20可用於存儲所述電腦程式30和/或模組/單元,所述處理器10藉由運行或執行存儲在所述記憶體20內的電腦程式和/或模組/單元,以及調用存儲在記憶體20內的資料,實現所述電子裝置1的各種功能。所述記憶體20可主要包括存儲程式區和存儲資料區,其中,存儲程式區可存儲作業系統、至少一個功能所需的應用程式(比如聲音播放功能、圖像播放功能等)等;存儲資料區可存儲根據電子裝置1的使用所創建的資料(比如音訊資料、電話本等)等。此外,記憶體20可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如硬碟、記憶體、插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)、至少一個磁碟記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。 The memory 20 can be used to store the computer programs 30 and/or modules/units, and the processor 10 runs or executes the computer programs and/or modules/units stored in the memory 20, And call the data stored in the memory 20 to realize various functions of the electronic device 1. The memory 20 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; The area can store data (such as audio data, phone book, etc.) created based on the use of the electronic device 1 and the like. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), at least one magnetic disk memory device, flash memory device, or other volatile solid-state memory device.

請參閱圖3所示,本發明排隊號碼競標系統較佳實施方式的功能模組圖。 Please refer to FIG. 3, which is a functional module diagram of a preferred embodiment of the queuing number bidding system of the present invention.

在一些實施方式中,排隊號碼競標系統100運行於所述電子裝置1中。所述排隊號碼競標系統100可以包括複數個由程式碼段所組成的功能模組。 所述排隊號碼競標系統100中的各個程式段的程式碼可以存儲於電子裝置1的記憶體20中,並由所述至少一個處理器10所執行,以實現排隊號碼競標功能。 In some embodiments, the queuing number bidding system 100 runs in the electronic device 1. The queuing number bidding system 100 may include a plurality of functional modules composed of code segments. The code of each program segment in the queuing number bidding system 100 can be stored in the memory 20 of the electronic device 1 and executed by the at least one processor 10 to realize the queuing number bidding function.

本實施方式中,排隊號碼競標系統100根據其所執行的功能,可以被劃分為複數個功能模組。參閱圖3所示,所述功能模組可以包括生成模組101、接收模組102、計算模組103、發送模組104、確定模組105、存儲模組106、退還模組107、驗證模組108及廣播模組109。本發明所稱的模組是指一種能夠被至少一個處理器所執行並且能夠完成固定功能的一系列電腦程式段,其存儲在記憶體20中。可以理解的是,在其他實施例中,上述模組也可為固化於所述處理器10中的程式指令或固件(firmware)。 In this embodiment, the queuing number bidding system 100 can be divided into a plurality of functional modules according to the functions it performs. Referring to Figure 3, the functional modules may include a generation module 101, a receiving module 102, a calculation module 103, a sending module 104, a determination module 105, a storage module 106, a return module 107, and a verification module. Group 108 and broadcast module 109. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in the memory 20. It can be understood that, in other embodiments, the above-mentioned modules may also be program instructions or firmware solidified in the processor 10.

所述生成模組101用於根據競標規則生成智慧合約。 The generating module 101 is used for generating smart contracts according to bidding rules.

在本實施方式中,所述智慧合約是存儲及運行在區塊鏈網路上的一段程式碼,是參與某項活動的相關方共同認可的活動規則及相關約定,並把這些規則及約定藉由代碼的方式表現出來,放在區塊鏈網路中去執行。所述智慧合約允許在沒有第三方的情況下進行可信交易,這些交易可追蹤且不可逆轉。 In this embodiment, the smart contract is a piece of code stored and running on the blockchain network. It is an activity rule and related agreement recognized by the parties involved in a certain activity, and these rules and agreements are used by The way the code is expressed, it is executed on the blockchain network. The smart contract allows for credible transactions without a third party, which are traceable and irreversible.

在本實施方式中,所述競標規則為投標號碼大於或等於競標號碼,以及確定投標籌碼最小的用戶為得標用戶。即,所述智慧合約的內容包括投標號碼大於或等於競標號碼,以及確定投標籌碼最小的用戶為得標用戶。其中,所述投標號碼為用戶的排隊號碼。 In this embodiment, the bidding rule is that the bidding number is greater than or equal to the bidding number, and it is determined that the user with the smallest bidding chip is the winning user. That is, the content of the smart contract includes that the bid number is greater than or equal to the bid number, and the user with the smallest bidding chip is determined to be the winning user. Wherein, the bid number is the queuing number of the user.

所述接收模組102用於藉由所述智慧合約接收所述排隊叫號裝置2發送的競標號碼。 The receiving module 102 is used for receiving the bidding number sent by the queuing device 2 through the smart contract.

在本實施方式中,當所述排隊叫號裝置2在對一排隊號碼叫號後的預設時間內無人回應時,將所述排隊號碼發送至所述電子裝置1。所述接收模組102在接收到所述排隊號碼後,將所述排隊號碼設置為競標號碼,並將所述競標號碼發送給當前正在排隊的用戶的移動終端3。 In this embodiment, when the queuing number device 2 does not respond within a preset time after calling a queuing number, the queuing number is sent to the electronic device 1. After receiving the queuing number, the receiving module 102 sets the queuing number as a bidding number, and sends the bidding number to the mobile terminal 3 of the user currently queuing.

所述接收模組102還用於藉由所述智慧合約接收複數個用戶的移動終端3發送的投標申請。 The receiving module 102 is also used to receive bid applications sent by the mobile terminals 3 of a plurality of users through the smart contract.

在本實施方式中,所述投標申請至少包括所述用戶的排隊號碼及私密金鑰。其中,所述私密金鑰用於對所述投標申請加密。所述接收模組102藉由公開金鑰對所述投標申請進行解密而獲得用戶的排隊號碼。其中,所述公開金鑰為根據所述私密金鑰進行加密演算法而生成。 In this embodiment, the bid application at least includes the user's queuing number and private key. Wherein, the private key is used to encrypt the bid application. The receiving module 102 decrypts the bid application by the public key to obtain the user's queuing number. Wherein, the public key is generated by performing an encryption algorithm based on the private key.

所述計算模組103用於根據所述競標號碼及每個投標用戶的排隊號碼計算每個投標用戶的投標籌碼值。 The calculation module 103 is used to calculate the bidding chip value of each bidding user according to the bidding number and the queuing number of each bidding user.

在本實施方式中,投標籌碼值=排隊號碼-競標號碼+1。例如,當投標用戶排隊號碼為20,競標號碼為12時,則投標籌碼值為9。 In this embodiment, the bidding chip value=queuing number-bidding number+1. For example, when the bidding user's queuing number is 20 and the bidding number is 12, the bidding chip value is 9.

所述發送模組104用於將每個投標用戶的投標籌碼由用戶帳戶位址發送至智慧合約位址。 The sending module 104 is used to send the bidding chips of each bidding user from the user account address to the smart contract address.

在本實施方式中,所述用戶帳戶位址為用戶帳戶在區塊鏈中的網路位址,所述智慧合約位址為所述智慧合約在區塊鏈中的網路位址。 In this embodiment, the user account address is the network address of the user account in the blockchain, and the smart contract address is the network address of the smart contract in the blockchain.

在本實施方式中,所述計算模組103還將每個投標用戶的投標籌碼值發送至對應投標用戶的移動終端3,所述投標用戶的移動終端3在接收到所述投標籌碼值時,根據預設規則將所述投標籌碼值轉換為投標籌碼。在本實施方式,所述預設規則為所述投標籌碼等於所述投標籌碼值等額的金額。例如,當所述投標籌碼值為9時,所述投標籌碼為9元錢。在其他實施方式中,所述預設規則為所述投標籌碼等於所述投標籌碼值等額的會員積分。例如,當所述投標籌碼值為9時,所述投標籌碼為9會員積分。 In this embodiment, the calculation module 103 also sends the bidding chip value of each bidding user to the mobile terminal 3 of the corresponding bidding user. When the mobile terminal 3 of the bidding user receives the bidding chip value, The value of the bidding chips is converted into bidding chips according to preset rules. In this embodiment, the preset rule is that the bidding chips are equal to the value of the bidding chips. For example, when the bidding chip value is 9, the bidding chip is 9 yuan. In other implementation manners, the preset rule is that the bidding chip is equal to the member points of the same amount of the bidding chip value. For example, when the bidding chip value is 9, the bidding chip is 9 member points.

所述確定模組105用於根據每個投標用戶的投標籌碼執行所述智慧合約以確定所述競標號碼的得標用戶。 The determining module 105 is configured to execute the smart contract according to the bidding chips of each bidding user to determine the winning user of the bidding number.

在本實施方式中,根據所述智慧合約,所述確定模組105確定具有最小投標籌碼的用戶為所述競標號碼的得標用戶。例如,當甲的投標籌碼為9元錢,乙的投標籌碼為31元錢時,所述確定模組105確定甲為所述競標號碼的得標用戶。 In this embodiment, according to the smart contract, the determination module 105 determines that the user with the smallest bidding chip is the winning user of the bidding number. For example, when A’s bidding chip is 9 yuan and B’s bidding chip is 31 yuan, the determination module 105 determines that A is the winning user of the bidding number.

所述存儲模組106用於將競標資訊存儲在區塊中,並藉由共識機制寫入區塊鏈。 The storage module 106 is used to store the bidding information in the block and write it into the block chain through a consensus mechanism.

在本實施方式中,所述競標資訊包括所述智慧合約、所述競標號碼、參與競標的用戶帳戶資訊、每個投標用戶的所述投標籌碼值及競標結果。 In this embodiment, the bidding information includes the smart contract, the bidding number, user account information participating in the bidding, the bidding chip value of each bidding user, and the bidding result.

所述發送模組104還用於將所述競標結果發送至所述得標用戶的移動終端3。 The sending module 104 is also used to send the bidding result to the mobile terminal 3 of the winning user.

所述退還模組107用於將未得標用戶的投標籌碼退還至所述未得標用戶的帳戶位址。 The return module 107 is used to return the bidding chips of the unsuccessful user to the account address of the unsuccessful user.

所述發送模組104還用於發送控制指令以控制所述排隊叫號裝置2根據所述競標結果進行叫號。 The sending module 104 is also used to send control instructions to control the queuing number calling device 2 to call number according to the bidding result.

在本實施方式中,所述控制指令包括所述得標用戶的排隊號碼。 所述排隊叫號裝置2在接收到所述控制指令時,對所述得標用戶的排隊號碼進行叫號。 In this embodiment, the control instruction includes the queuing number of the winning user. When the queuing number calling device 2 receives the control instruction, it calls the queuing number of the bid-winning user.

所述驗證模組108用於當所述得標用戶辦理業務時,對所述得標用戶的排隊號碼、區塊鏈位址及私密金鑰進行驗證。在本實施方式中,所述區塊鏈位址為對所述移動終端發送的私密金鑰進行加密而生成。 The verification module 108 is used for verifying the queuing number, blockchain address and private key of the winning user when the winning user handles the business. In this embodiment, the blockchain address is generated by encrypting the private key sent by the mobile terminal.

在本實施方式中,當所述排隊號碼與得標的排隊號碼相同、所述區塊鏈位址與所述競標交易的區塊在所述區塊鏈中的位址相同及所述私密金鑰與發送投標申請時的私密金鑰相同時,確定所述得標用戶的排隊號碼、所述區塊鏈位址及私密金鑰通過驗證。當所述排隊號碼與得標的排隊號碼不同、所述 區塊鏈位址與所述競標交易的區塊在所述區塊鏈中的位址不同或所述私密金鑰與發送投標申請時的私密金鑰不同時,確定所述得標用戶的排隊號碼、區塊鏈位址或私密金鑰未通過驗證,用戶無法辦理業務。 In this embodiment, when the queuing number is the same as the winning queuing number, the blockchain address is the same as the address of the block of the bidding transaction in the blockchain, and the private key When it is the same as the private key when sending the bid application, it is determined that the queuing number, the blockchain address, and the private key of the winning user are verified. When the queuing number is different from the winning queuing number, the When the blockchain address is different from the address of the block of the bidding transaction in the blockchain or the private key is different from the private key when sending the bid application, determine the queue of the winning user The number, blockchain address, or private key is not verified, and the user cannot handle the business.

所述廣播模組109用於對所述競標資訊進行廣播。 The broadcasting module 109 is used for broadcasting the bidding information.

所述廣播模組109根據區塊鏈將所述競標資訊發送至每一投標用戶的移動終端3,從而對所述競標資訊進行廣播。 The broadcasting module 109 sends the bidding information to the mobile terminal 3 of each bidding user according to the blockchain, thereby broadcasting the bidding information.

請參閱圖4所示,是本發明提供的基於區塊鏈的排隊號碼競標方法的流程圖。根據不同的需求,所述流程圖中步驟的順序可以改變,某些步驟可以省略。 Please refer to FIG. 4, which is a flowchart of the method for bidding for queuing numbers based on blockchain provided by the present invention. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S401,根據競標規則生成智慧合約。 In step S401, a smart contract is generated according to the bidding rules.

步驟S402,所述智能合約接收排隊叫號裝置2發送的競標號碼。 In step S402, the smart contract receives the bidding number sent by the queuing number device 2.

步驟S403,所述智慧合約接收複數個用戶的移動終端3發送的投標申請。 Step S403: The smart contract receives bidding applications sent by mobile terminals 3 of a plurality of users.

步驟S404,根據所述競標號碼及每個投標用戶的排隊號碼計算每個投標用戶的投標籌碼值。 Step S404: Calculate the bidding chip value of each bidding user according to the bidding number and the queuing number of each bidding user.

步驟S405,將每個投標用戶的投標籌碼由用戶帳戶位址發送至智慧合約位址。 In step S405, the bid chips of each bidding user are sent from the user account address to the smart contract address.

步驟S406,根據每個投標用戶的投標籌碼執行所述智慧合約以確定所述競標號碼的得標用戶。 In step S406, the smart contract is executed according to the bidding chips of each bidding user to determine the winning bidder of the bidding number.

步驟S407,將競標資訊存儲在區塊中,並藉由共識機制寫入區塊鏈。 In step S407, the bidding information is stored in the block and written into the block chain through the consensus mechanism.

步驟S408,將競標結果發送至所述得標用戶的移動終端3。 Step S408, sending the bidding result to the mobile terminal 3 of the winning user.

步驟S409,將未得標用戶的投標籌碼退還至所述未得標用戶的帳戶位址。 Step S409: Return the bidding chips of the unsuccessful user to the account address of the unsuccessful user.

進一步地,所述方法還包括步驟:發送控制指令以控制所述排隊叫號裝置2根據所述競標結果進行叫號。 Further, the method further includes the step of sending a control instruction to control the queuing number calling device 2 to call number according to the bidding result.

進一步地,所述方法還包括步驟:當所述得標用戶辦理業務時,對所述得標用戶的排隊號碼、區塊鏈位址及私密金鑰進行驗證。 Further, the method further includes the step of verifying the queuing number, blockchain address and private key of the winning user when the winning user handles the business.

進一步地,所述方法還包括步驟:對所述競標資訊進行廣播。 Further, the method further includes the step of broadcasting the bidding information.

所述電子裝置1集成的模組/單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取的存儲介質中。基於這樣的理解,本發明實現上述實施例方法中的全部或部分流程,也可以藉由電腦程式來指令相關的硬體來完成,所述的電腦程式可存儲於一電腦可讀的存儲介質中,所述電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。其中,所述電腦程式包括電腦程式代碼,所述電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。所述電腦可讀的存儲介質可以包括:能夠攜帶所述電腦程式代碼的任何實體或裝置、記錄介質、U盤、移動硬碟、磁碟、光碟、電腦記憶體、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、電載波信號、電信信號以及軟體分發介質等。需要說明的是,所述電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波信號和電信信號。 If the integrated module/unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware by a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the foregoing method embodiments. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original program code, object code, executable file, or some intermediate forms. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

本發明提供的基於區塊鏈的排隊號碼競標方法、電子裝置及存儲介質基於區塊鏈的智慧合約,接收用戶移動終端發送的排隊號碼,自動計算投標籌碼值,並根據投標籌碼值確定競標結果,保證排隊號碼競標的公開、公正及透明。 The block chain-based queuing number bidding method, electronic device and storage medium provided by the present invention are based on the smart contract of the block chain, receiving the queuing number sent by the user's mobile terminal, automatically calculating the bidding chip value, and determining the bidding result according to the bidding chip value , To ensure the openness, fairness and transparency of queuing number bidding.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體 形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附申請專利範圍而不是上述說明限定,因此旨在將落在申請專利範圍的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將申請專利範圍中的任何附圖標記視為限制所涉及的申請專利範圍。此外,顯然“包括”一詞不排除其他單元或步驟,單數不排除複數。複數個單元或裝置也可以由同一個單元或裝置藉由軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 For those skilled in the art, it is obvious that the present invention is not limited to the details of the above-mentioned exemplary embodiments, and other specific details can be used without departing from the spirit or basic characteristics of the present invention. Form to realize the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the scope of the attached patent application rather than the above description, so it is intended to fall within the application. The meaning of the equivalent elements of the patent scope and all changes within the scope are included in the present invention. Any reference signs in the scope of the patent application should not be regarded as limiting the scope of the patent application involved. In addition, it is obvious that the word "comprise" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices can also be implemented by the same unit or device by software or hardware. Words such as first and second are used to denote names, but do not denote any specific order.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施方式,舉凡熟悉本案技藝之人士,於爰依本發明精神所作之等效修飾或變化,皆應涵蓋於以下之申請專利範圍內。 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. For those who are familiar with the technique of the present invention, equivalent modifications or changes made in accordance with the spirit of the present invention should be covered by the following patent applications.

S401-S409:步驟 S401-S409: steps

Claims (10)

一種基於區塊鏈的排隊號碼競標方法,其中,所述方法包括:根據競標規則生成智慧合約;所述智慧合約接收排隊叫號裝置發送的競標號碼;所述智慧合約接收複數個用戶的移動終端發送的投標申請,其中,所述投標申請包括所述用戶的排隊號碼及私密金鑰,所述排隊號碼由所述排隊叫號裝置基於用戶的排隊請求生成並發送至所述移動終端;根據所述競標號碼及每個投標用戶的所述排隊號碼計算每個投標用戶的投標籌碼值;將每個投標用戶的投標籌碼由用戶帳戶位址發送至智慧合約位址;根據每個投標用戶的所述投標籌碼執行所述智慧合約以確定所述競標號碼的得標用戶;及將競標資訊存儲在區塊中,並藉由共識機制寫入區塊鏈。 A block chain-based bidding method for queuing numbers, wherein the method comprises: generating a smart contract according to bidding rules; the smart contract receives a bid number sent by a queuing device; and the smart contract receives mobile terminals of a plurality of users A sent bid application, wherein the bid application includes the user's queuing number and a private key, and the queuing number is generated by the queuing device based on the user's queuing request and sent to the mobile terminal; The bidding number and the queuing number of each bidding user are used to calculate the bidding chip value of each bidding user; the bidding chips of each bidding user are sent from the user account address to the smart contract address; according to the bidding chip value of each bidding user The bidding chip executes the smart contract to determine the winning user of the bidding number; and stores the bidding information in a block, and writes it into the block chain through a consensus mechanism. 如請求項1所述之基於區塊鏈的排隊號碼競標方法,其中,所述競標資訊包括所述智慧合約、所述競標號碼、參與競標的用戶帳戶資訊、每個投標用戶的所述投標籌碼值及競標結果。 The block chain-based bidding method for queuing numbers according to claim 1, wherein the bidding information includes the smart contract, the bidding number, user account information participating in the bidding, and the bidding chip of each bidding user Value and bidding results. 如請求項2所述之基於區塊鏈的排隊號碼競標方法,其中,所述方法還包括:將所述競標結果發送至所述得標用戶的所述移動終端;及對所述競標資訊進行廣播。 The block chain-based queuing number bidding method according to claim 2, wherein the method further includes: sending the bidding result to the mobile terminal of the winning user; and performing the bidding information broadcast. 如請求項1所述之基於區塊鏈的排隊號碼競標方法,其中,所述方法還包括:將確定的每個投標用戶的所述投標籌碼值發送至每個投標用戶的所述移動終端; 根據預設規則將所述投標籌碼值轉換為所述投標籌碼;及將未得標用戶的所述投標籌碼退還至所述未得標用戶的帳戶位址。 The block chain-based queuing number bidding method according to claim 1, wherein the method further includes: sending the determined bid chip value of each bidding user to the mobile terminal of each bidding user; Converting the value of the bidding chips into the bidding chips according to a preset rule; and returning the bidding chips of the unsuccessful user to the account address of the unsuccessful user. 如請求項1所述之基於區塊鏈的排隊號碼競標方法,其中,所述智慧合約的內容包括投標號碼大於或等於所述競標號碼以及確定所述投標籌碼最小的用戶為得標用戶。 The block chain-based bidding method for queuing numbers according to claim 1, wherein the content of the smart contract includes a bid number greater than or equal to the bid number and the user with the smallest bidding chip is determined to be the winning user. 如請求項1所述之基於區塊鏈的排隊號碼競標方法,其中,所述方法還包括:發送控制指令以控制所述排隊叫號裝置根據競標結果進行叫號,其中,所述控制指令包括所述得標用戶的所述排隊號碼。 The block chain-based bidding method for queuing numbers according to claim 1, wherein the method further comprises: sending a control instruction to control the queuing number device to call numbers according to the bidding result, wherein the control instruction includes The queuing number of the winning user. 如請求項6所述之基於區塊鏈的排隊號碼競標方法,其中,所述方法還包括:當所述得標用戶辦理業務時,對所述得標用戶的所述排隊號碼、區塊鏈位址及所述私密金鑰進行驗證。 The method for queuing number bidding based on blockchain as described in claim 6, wherein the method further includes: when the winning user handles the business, checking the queuing number and blockchain of the winning user The address and the private key are verified. 如請求項7所述之基於區塊鏈的排隊號碼競標方法,其中,所述方法還包括:對所述移動終端發送的所述私密金鑰進行加密以生成所述區塊鏈位址。 The method for queuing number bidding based on the blockchain according to claim 7, wherein the method further comprises: encrypting the private key sent by the mobile terminal to generate the blockchain address. 一種電子裝置,其中,所述電子裝置包括:處理器;以及記憶體,所述記憶體中存儲有複數個程式模組,所述複數個程式模組由所述處理器載入並執行如請求項1至8中任意一項所述之基於區塊鏈的排隊號碼競標方法。 An electronic device, wherein the electronic device includes: a processor; and a memory in which a plurality of program modules are stored, and the plurality of program modules are loaded by the processor and executed as requested The blockchain-based queuing number bidding method described in any one of items 1 to 8. 一種電腦可讀的存儲介質,其上存儲有至少一條電腦指令,其中,所述指令由處理器載入並執行如請求項1至8中任意一項所述之基於區塊鏈的排隊號碼競標方法。 A computer-readable storage medium having at least one computer instruction stored thereon, wherein the instruction is loaded by a processor and executed as described in any one of request items 1 to 8 based on the blockchain-based queuing number bidding method.
TW109119040A 2020-06-05 2020-06-05 Queuing number bidding method based on block chain, electronic device, and storage medium TWI748503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109119040A TWI748503B (en) 2020-06-05 2020-06-05 Queuing number bidding method based on block chain, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109119040A TWI748503B (en) 2020-06-05 2020-06-05 Queuing number bidding method based on block chain, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
TWI748503B true TWI748503B (en) 2021-12-01
TW202147196A TW202147196A (en) 2021-12-16

Family

ID=80680826

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109119040A TWI748503B (en) 2020-06-05 2020-06-05 Queuing number bidding method based on block chain, electronic device, and storage medium

Country Status (1)

Country Link
TW (1) TWI748503B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201364605Y (en) * 2009-01-08 2009-12-16 浙江金大科技有限公司 Queue machine system
TWI541754B (en) * 2015-05-13 2016-07-11 南開科技大學 Queuing reservation system and method thereof
CN109905874A (en) * 2019-01-04 2019-06-18 中国联合网络通信集团有限公司 The method and system of the autonomous number of selecting based on block chain
CN110223440A (en) * 2019-06-13 2019-09-10 北京艾摩瑞策科技有限公司 A kind of random number of shaking method and apparatus of application block chain
US20200082399A1 (en) * 2018-09-12 2020-03-12 International Business Machines Corporation Ensuring information fairness and input privacy using a blockchain in a competitive scenario governed by a smart contract
US20200177579A1 (en) * 2018-12-03 2020-06-04 Kountable, Inc. Encrypted Blockchain Object Transfers Using Smart Contracts

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201364605Y (en) * 2009-01-08 2009-12-16 浙江金大科技有限公司 Queue machine system
TWI541754B (en) * 2015-05-13 2016-07-11 南開科技大學 Queuing reservation system and method thereof
US20200082399A1 (en) * 2018-09-12 2020-03-12 International Business Machines Corporation Ensuring information fairness and input privacy using a blockchain in a competitive scenario governed by a smart contract
US20200177579A1 (en) * 2018-12-03 2020-06-04 Kountable, Inc. Encrypted Blockchain Object Transfers Using Smart Contracts
CN109905874A (en) * 2019-01-04 2019-06-18 中国联合网络通信集团有限公司 The method and system of the autonomous number of selecting based on block chain
CN110223440A (en) * 2019-06-13 2019-09-10 北京艾摩瑞策科技有限公司 A kind of random number of shaking method and apparatus of application block chain

Also Published As

Publication number Publication date
TW202147196A (en) 2021-12-16

Similar Documents

Publication Publication Date Title
WO2019218816A1 (en) Block chain-based service data processing method and apparatus, and electronic device and storage medium
TWI706663B (en) Data storage method and system based on multiple blockchain networks
TWI706664B (en) Data storage method and system based on multiple blockchain networks
CN111415140A (en) Aggregated payment management method, server and computer storage medium
CN110020945B (en) Data reading method and system based on multiple block chain networks
CN110007916B (en) Interface rendering method and device of business system and server
CA3057388A1 (en) Methods and devices for processing certificates in blockchain system
CN111683082A (en) Data sharing method and system based on block chain and electronic equipment
CN112184218B (en) Data processing method and device and data processing device
TW202112113A (en) Resource sharing method, device, computer device and storage media
TWI748503B (en) Queuing number bidding method based on block chain, electronic device, and storage medium
CN112991027A (en) Bidding information processing method, device, equipment and medium based on block chain
CN111899104B (en) Service execution method and device
CN111464319A (en) Transaction storage and signature verification method based on centralized block chain type account book
CN113763139B (en) Queuing number bidding method based on blockchain, electronic device and storage medium
CN107204914B (en) Information processing method and device, computer device and storage medium
CN110060152B (en) Data reading method and system based on multiple block chain networks
CN114677138A (en) Data processing method, data processing equipment and computer readable storage medium
TWI748590B (en) Software program verification method, electronic device, and storage medium
CN112685075A (en) Gray scale distribution method and device, electronic equipment and computer readable medium
US20210374739A1 (en) Blockchain transaction privacy protection method and blockchain node device
CN111375209A (en) Login method of fishing game application program, computer device and computer readable storage medium
TWI748816B (en) Method and device for storing comment data, server and storage medium
CN113486385B (en) Jewelry sharing method, device, equipment and storage medium based on block chain
TW202147226A (en) A currency trading method、a device based on a block chain and an electronic device