TW202147196A - 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
TW202147196A
TW202147196A TW109119040A TW109119040A TW202147196A TW 202147196 A TW202147196 A TW 202147196A TW 109119040 A TW109119040 A TW 109119040A TW 109119040 A TW109119040 A TW 109119040A TW 202147196 A TW202147196 A TW 202147196A
Authority
TW
Taiwan
Prior art keywords
bidding
user
blockchain
queuing number
queuing
Prior art date
Application number
TW109119040A
Other languages
Chinese (zh)
Other versions
TWI748503B (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

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

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

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

隨著社會的發展,許多場合,例如醫院看病、銀行辦理業務、商場購買商品等,都需要人們取號排隊以確定交易處理的先後順序。在排隊的過程中,經常會出現過號的情形,此時,業務辦理方通常會讓持有後面號碼的人替換過號人辦理對應的業務。然而,由於業務辦理方的選號沒有固定規則,並且不夠公開透明,可能指定排隊號碼靠後的人先於靠前的人辦理業務,或者導致冒用排隊號碼的人替換過號人辦理業務,如此對正常排隊的人不公平,容易造成糾紛。With the development of society, many occasions, such as hospital visits, bank transactions, shopping malls, etc., require people to queue up to determine the order of transaction processing. In the process of queuing, the situation of over-numbering often occurs. At this time, the business handler usually asks the person who holds the following number to replace the person who has passed the number to handle the corresponding business. However, since there are no fixed rules for the number selection of the business operator, and it is not open and transparent enough, it may designate the person with the later queue number to handle the business before the person at the front, or cause the person with the queue number to replace the person who has passed the number to handle the business. It is unfair to people who are in the normal queue, 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 a blockchain-based smart contract for queuing number bidding to ensure the fairness and transparency of queuing number bidding.

本發明的第一方面提供一種基於區塊鏈的排隊號碼競標方法,所述方法包括:A first aspect of the present invention provides a blockchain-based bidding method for queuing numbers, the method comprising:

根據競標規則生成智慧合約;Generate smart contracts according to bidding rules;

所述智慧合約接收排隊叫號裝置發送的競標號碼;The smart contract receives the bidding number sent by the queuing number calling device;

所述智慧合約接收複數個用戶的移動終端發送的投標申請,其中,所述投標申請包括所述用戶的排隊號碼;The smart contract receives bidding applications sent by mobile terminals of a plurality of users, wherein the bidding applications include the queuing numbers of the users;

根據所述競標號碼及每個投標用戶的排隊號碼計算每個投標用戶的投標籌碼值;Calculate the bidding chip value of each bidding user according to the bidding number and the queuing number of each bidding user;

將每個投標用戶的投標籌碼由用戶帳戶位址發送至智慧合約位址;Send each bidding user's bidding chips from the user account address to the smart contract address;

根據每個投標用戶的投標籌碼執行所述智慧合約以確定所述競標號碼的得標用戶;及Execute the smart contract according to the bidding chips of each bidding user to determine the winning user of the bidding number; and

將競標資訊存儲在區塊中,並藉由共識機制寫入區塊鏈。Store the bidding information in the block and write it into the blockchain through the consensus mechanism.

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

優選地,所述方法還包括:Preferably, the method further includes:

將所述競標結果發送至所述得標用戶的移動終端;及sending the bidding result to the mobile terminal of the winning user; and

對所述競標資訊進行廣播。The bidding information is broadcast.

優選地,所述方法還包括: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 bid chip value into bid chips according to preset rules; and

將未得標用戶的投標籌碼退還至所述未得標用戶的帳戶位址。Return the bidding chips of the unsuccessful bidder to the account address of the unsuccessful bidder.

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

優選地,所述方法還包括:Preferably, the method further includes:

發送控制指令以控制所述排隊叫號裝置根據所述競標結果進行叫號,其中,所述控制指令包括所述得標用戶的排隊號碼。Sending a control instruction to control the queuing number calling 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:

當所述得標用戶辦理業務時,對所述得標用戶的排隊號碼、區塊鏈位址及私密金鑰進行驗證。When the bid-winning user handles the business, the queuing number, blockchain address and private key of the bid-winning user are verified.

優選地,所述投標申請還包括私密金鑰,所述方法還包括:Preferably, the bidding application further includes a private key, and the method further includes:

對所述移動終端發送的私密金鑰進行加密以生成區塊鏈位址。The private key sent by the mobile terminal is encrypted to generate a blockchain address.

本發明的第二方面提供一種電子裝置,所述電子裝置包括:A second aspect of the present invention provides an electronic device, the electronic device comprising:

處理器;以及processor; and

記憶體,所述記憶體中存儲有複數個程式模組,所述複數個程式模組由所述處理器載入並執行上述的基於區塊鏈的排隊號碼競標方法。A memory, wherein a plurality of program modules are stored in the memory, and the plurality of program modules are loaded by the processor and execute 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-mentioned blockchain-based queuing number bidding method, electronic device and storage medium The blockchain-based smart contract receives the queuing number sent by the user's mobile terminal, automatically calculates the value of the bidding chip, and determines the bidding result according to the value of the bidding chip to ensure the queuing number. Open, fair and transparent bidding.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本申請的實施例及實施例中的特徵可以相互組合。In order to more clearly understand the above objects, features and advantages of the present invention, 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 may be combined with each other in the case of no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。In the following description, many specific details are set forth in order to facilitate a full understanding of the present invention, and the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts 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 one of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, 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 blockchain-based queuing number bidding method provided by the preferred embodiment of the present invention.

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

所述電子裝置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., wherein 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, and is configured 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 number calling device 2 at least includes a speaker (not shown in the figure), which is used for queuing number calling by outputting voice. In other embodiments, the queuing number calling device 2 at least includes a display screen (not shown), which is used for queuing number calling by displaying characters 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 executable on the processor 10, such as a queuing number bidding program. When the processor 10 executes the computer program 30, the steps in the blockchain-based queuing number bidding method are implemented, such as steps S401-S409 shown in FIG. 4 . Alternatively, when the processor 10 executes the computer program 30, the functions of each module/unit in the queuing number bidding system, such as modules 101-109 in FIG. 3, are implemented.

示例性的,所述電腦程式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 performing 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 a generating module 101, a receiving module 102, a computing module 103, a sending module 104, a determining module 105, a storage module 106, a returning module 107, Verification module 108 and broadcast module 109 . For the 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, and may include more or less components than the one shown, or combine some components, or different Components, for example, the electronic device 1 may also include input and output devices, network access devices, bus bars, and the like.

所稱處理器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), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Off-the-shelf 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 can be a microprocessor or the processor 10 can also be any conventional processor, etc. The processor 10 is the control center of the electronic device 1, and 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, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; storage data The area may store data created according to the use of the electronic device 1 (such as audio data, phone book, etc.) and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (Secure Digital, SD) card, flash memory card (Flash Card), at least one 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 program 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 performed by the queuing number bidding system 100 . Referring to FIG. 3 , the functional modules may include a generation module 101, a reception module 102, a calculation module 103, a transmission 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 perform fixed functions, and are stored in the memory 20 . It can be understood that, in other embodiments, the above-mentioned modules can 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 run on the blockchain network, it is the activity rules and related agreements commonly recognized by the parties involved in a certain activity, and these rules and agreements are passed through The way of code is expressed and executed in the blockchain network. Said smart contracts allow for trusted transactions without third parties, 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 the user with the smallest bidding chip is determined as the winning user. That is, the content of the smart contract includes that the bidding number is less than or equal to the bidding number, and the user with the smallest bidding chip is determined as the winning user. Wherein, the bid number is the queuing number of the user.

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

在本實施方式中,當所述排隊叫號裝置2在對一排隊號碼叫號後的預設時間內無人回應時,將所述排隊號碼發送至所述電子裝置1。所述接收模組102在接收到所述排隊號碼後,將所述排隊號碼設置為競標號碼,並將所述競標號碼發送給當前正在排隊的用戶的移動終端3。In this embodiment, when the queuing number calling 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 further configured to receive bidding applications sent by the mobile terminals 3 of a plurality of users through the smart contract.

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

所述計算模組103用於根據所述競標號碼及每個投標用戶的排隊號碼計算每個投標用戶的投標籌碼值。The calculation module 103 is configured 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, bidding chip value=queue number−bidding number+1. For example, when the bidding user's queue 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 computing module 103 also sends the bidding chip value of each bidding user to the mobile terminal 3 of the corresponding bidding user, and when the bidding user's mobile terminal 3 receives the bidding chip value, The bid chip values are converted into bid chips according to preset rules. In this embodiment, the preset rule is that the bidding chip is equal to an amount equal to the value of the bidding chip. For example, when the bidding chip value is 9, the bidding chip is 9 yuan. In other embodiments, the preset rule is that the bidding chips are equal to the member points equal to the value of the bidding chips. 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 determining module 105 determines the user with the smallest bidding chip as 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 determining 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 blockchain through a consensus mechanism.

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

所述發送模組104還用於將所述競標結果發送至所述得標用戶的移動終端3。The sending module 104 is further configured 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 bidder to the account address of the unsuccessful bidder.

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

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

所述驗證模組108用於當所述得標用戶辦理業務時,對所述得標用戶的排隊號碼、區塊鏈位址及私密金鑰進行驗證。在本實施方式中,所述區塊鏈位址為對所述移動終端發送的私密金鑰進行加密而生成。The verification module 108 is used to verify the queuing number, blockchain address and private key of the winning user when the bidding 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 queuing number of the winning bid, 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 the bidding application is sent, it is determined that the queuing number of the winning bidder, the blockchain address and the private key have passed the verification. When the queuing number is different from the queuing number of the winning bid, the address of the blockchain is different from the address of the block of the bidding transaction in the blockchain, or the private key is the same as the one when the bidding application is sent. When the private keys are different, it is determined that the queuing number, blockchain address or private key of the winning user has not passed the verification, 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, so as to broadcast the bidding information.

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

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

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

步驟S403,所述智慧合約接收複數個用戶的移動終端3發送的投標申請。Step S403, the smart contract receives bidding applications sent by the 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 bidding chips of each bidding user are sent from the user account address to the smart contract address.

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

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

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

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

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

進一步地,所述方法還包括步驟:當所述得標用戶辦理業務時,對所述得標用戶的排隊號碼、區塊鏈位址及私密金鑰進行驗證。Further, the method further includes the step of: verifying the queuing number, blockchain address and private key of the bid-winning user when the bid-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 modules/units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. , when the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of original code, object code, executable file, or some intermediate form. 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), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium Electric carrier signals and telecommunication signals are not included.

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

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

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施方式,舉凡熟悉本案技藝之人士,於爰依本發明精神所作之等效修飾或變化,皆應涵蓋於以下之申請專利範圍內。To sum up, the present invention complies with the requirements of an invention patent, and a patent application can be filed in accordance with the law. However, the above descriptions are only the preferred embodiments of the present invention, and for those who are familiar with the art of the present invention, equivalent modifications or changes made in accordance with the spirit of the present invention should all be covered within the scope of the following patent application.

1:電子裝置 10:處理器 100:排隊號碼競標系統 101:生成模組 102:接收模組 103:計算模組 104:發送模組 105:確定模組 106:存儲模組 107:退還模組 108:驗證模組 109:廣播模組 20:記憶體 30:電腦程式 2:排隊叫號裝置 3:移動終端 S401-S409:步驟1: Electronic device 10: Processor 100: Queuing Number Bidding System 101: Generating Mods 102: Receive module 103: Computing Modules 104: Send module 105: Determine the module 106: Storage Module 107: Return the mod 108: Verification Module 109: Broadcast Module 20: Memory 30: Computer Programs 2: Queue calling device 3: Mobile terminal S401-S409: Steps

圖1是本發明較佳實施方式提供的基於區塊鏈的排隊號碼競標方法的應用環境架構示意圖。 圖2是本發明較佳實施方式提供的電子裝置的結構示意圖。 圖3是本發明較佳實施方式提供的排隊號碼競標系統的結構示意圖。 圖4是本發明較佳實施方式提供的基於區塊鏈的排隊號碼競標方法的流程圖。1 is a schematic diagram of an application environment architecture of a blockchain-based queuing number bidding method provided by a preferred embodiment of the present invention. FIG. 2 is a schematic structural diagram of an electronic device provided by a preferred embodiment of the present invention. FIG. 3 is a schematic structural diagram of a queuing number bidding system provided by a preferred embodiment of the present invention. FIG. 4 is a flowchart of a method for bidding for queue numbers based on a blockchain provided by a preferred embodiment of the present invention.

none

S401-S409:步驟S401-S409: Steps

Claims (10)

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

Family Cites Families (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
US11556925B2 (en) * 2018-09-12 2023-01-17 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
CN109905874B (en) * 2019-01-04 2021-10-15 中国联合网络通信集团有限公司 Autonomous number selection method and system based on block chain
CN110223440B (en) * 2019-06-13 2020-10-02 北京瑞策科技有限公司 Random number shaking method and equipment for application block chain

Also Published As

Publication number Publication date
TWI748503B (en) 2021-12-01

Similar Documents

Publication Publication Date Title
WO2020088110A1 (en) Blockchain-based node management method and device
US20160358135A1 (en) Digital currency management method and digital currency node apparatus
TW202018619A (en) Blockchain-based private transactions and usage method and apparatus therefor
TWI706663B (en) Data storage method and system based on multiple blockchain networks
TWI706664B (en) Data storage method and system based on multiple blockchain networks
CN112199382A (en) Node group creating method and node group-based transaction method in alliance chain network
CN110020945B (en) Data reading method and system based on multiple block chain networks
CN111415140A (en) Aggregated payment management method, server and computer storage medium
CN111683082A (en) Data sharing method and system based on block chain and electronic equipment
TW202112113A (en) Resource sharing method, device, computer device and storage media
CN112991027A (en) Bidding information processing method, device, equipment and medium based on block chain
CN111899104B (en) Service execution method and device
CN112949866A (en) Poisson regression model training method and device, electronic equipment and storage medium
TWI748503B (en) Queuing number bidding method based on block chain, electronic device, and storage medium
CN111626878A (en) Order processing method and device, electronic equipment and storage medium
CN111464319A (en) Transaction storage and signature verification method based on centralized block chain type account book
CN111404954A (en) Hierarchical sharing method and device
CN113763139B (en) Queuing number bidding method based on blockchain, electronic device and storage medium
CN114092240A (en) Transaction method and device based on block chain, electronic equipment and storage medium
CN114741446A (en) Data uplink method, device, terminal and storage medium
CN110060152B (en) Data reading method and system based on multiple block chain networks
CN112650763A (en) Configuration method of product quota, related equipment and storage medium
TWI748590B (en) Software program verification method, electronic device, and storage medium
TWI759028B (en) Block packaging method, block packaging device based on blockchain transaction, and electronic device
TWI795645B (en) A currency trading method、a device based on a block chain and an electronic device