CN109086628A - A kind of order processing method and relevant apparatus - Google Patents

A kind of order processing method and relevant apparatus Download PDF

Info

Publication number
CN109086628A
CN109086628A CN201810921397.6A CN201810921397A CN109086628A CN 109086628 A CN109086628 A CN 109086628A CN 201810921397 A CN201810921397 A CN 201810921397A CN 109086628 A CN109086628 A CN 109086628A
Authority
CN
China
Prior art keywords
information
order
target
real estate
block chain
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201810921397.6A
Other languages
Chinese (zh)
Inventor
朱杰
余荣
张浩川
黄旭民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong University of Technology
Original Assignee
Guangdong University of Technology
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 Guangdong University of Technology filed Critical Guangdong University of Technology
Priority to CN201810921397.6A priority Critical patent/CN109086628A/en
Publication of CN109086628A publication Critical patent/CN109086628A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6272Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database by registering files or documents with a third party
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of order processing methods, system, device and computer readable storage medium, client node determines target information of real estate from the information of real estate for being stored in block chain, order information is generated using user information and target information of real estate, by order information storage to block chain, target hotel node system monitors block chain, and information will be received after listening to the order information and be also published to block chain, make client node listened to from block chain receive information after by the order amount of money deliver contract account, target hotel node system is handed to by contract account.Due to information of real estate, order information, receives information etc. and be maintained in block chain, transaction is not necessarily to the addition of the third-party institution, there are no need the third-party institution to store information, to effectively prevent third-party institution's data loss problem caused by attacking, and since these information datas are stored on block chain as block data, the safety and trackability of information has been effectively ensured.

Description

A kind of order processing method and relevant apparatus
Technical field
The present invention relates to block chain technical field, more specifically to a kind of order processing method, system, device and Computer readable storage medium.
Background technique
Hotel currently on the market is mostly manual service hotel, needs user that hotel is gone to check in, and hotel Room information needs to issue mostly in third-party platform, and the third-party platform is the platform of a centralization, carries prestige Guarantee and the temporary effect of fund.
The third-party platform newly risen has carried out online order business, to a certain extent can be with if airbnb is serviced Realize Unmanned operation, it may be assumed that hotel staff is with tenant user without completing transaction in the case where meeting.But hotel There is still a need for dependence third-party platform release informations, and need to pay the intermediary sevices expense of great number to platform.
As long as there are the service platforms of centralization, the hidden danger of leaking data is just certainly existed, such as: Google's user data is let out Dew, the leakage of Hyatt Regency Hotel customer data.Because data are all stored in the platform of centralization, these platforms just will appear data The problem of leakage.
Therefore, the safety for how guaranteeing user data is those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the present invention is to provide a kind of order processing method, system, device and computer readable storage medium, with Solve the problems, such as how to guarantee the safety of user data.
To achieve the above object, the embodiment of the invention provides following technical solutions:
A kind of order processing method is applied to client node, comprising:
Target information of real estate is determined in storing the information of real estate to block chain by hotel's node system in advance;
Order information is generated using pre-registered user information and the target information of real estate, and by the order information It stores to the block chain, so that the corresponding target hotel node system of the target information of real estate is listening to the order letter After breath, confirmation receives the order information, and will receive information and store to the block chain;
Listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to contract account so that The contract account delivers the order amount of money to target hotel node system.
Wherein, the method also includes:
Encryption room encrypted message is obtained in the block chain;The encryption room encrypted message is the target hotel The information that node system encrypts the password in the corresponding room of the order information using the public key of the client;
Encryption room encrypted message is decrypted to obtain the order letter using the private key of the client node Cease the password in corresponding room.
Wherein, the order information further includes the corresponding user's prestige integral of the user information.
Wherein, the information of real estate includes the prestige integral of the corresponding hotel system of the source of houses.
Wherein, the order information further includes user's ID authentication information.
Wherein, described to generate order information using pre-registered user information and the target information of real estate, and by institute Order information is stated to store to the block chain, comprising:
Order information is generated using pre-registered user information and the target information of real estate;
Determine the Target Public Key of the corresponding target hotel node system of the target information of real estate;
Encryption user's body is obtained to the user's ID authentication information in the order information using the Target Public Key Part authentication information, and will include the order information of the encryption user's ID authentication information as encryption order information;
The encryption order information is stored to the block chain, so that target hotel node system is listening to After stating encryption order information, using the private key of target hotel node system to the encryption user in the encryption order information Authentication information is decrypted to obtain the order information including user's user's ID authentication information, and receives institute in confirmation After stating order information, information will be received and stored to the block chain.
Present invention also provides a kind of order processing systems, are applied to client node, comprising:
First determining module, for determining target in storing the information of real estate to block chain by hotel's node system in advance Information of real estate;
Order generation module is believed for generating order using pre-registered user information and the target information of real estate Breath, and the order information is stored to the block chain, so that the corresponding target hotel node system of the target information of real estate For system after listening to the order information, confirmation receives the order information, and will receive information and store to the block chain;
Delivery module, for listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to Contract account, so that the contract account delivers the order amount of money to target hotel node system.
Present invention also provides a kind of client nodes, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of the order processing method.
Present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer-readable storage medium It is stored with computer program in matter, the step such as the order processing method is realized when the computer program is executed by processor Suddenly.
Present invention also provides a kind of order processing methods, are applied to hotel system node, comprising:
After listening to the order information, confirmation receives the order information;Wherein, the order information is client The order information that system is generated using pre-registered user information and target information of real estate;The target information of real estate is described The target information of real estate that FTP client FTP determines in storing the information of real estate to block chain by hotel's node system in advance;
To receive information to store to the block chain so that the FTP client FTP listen to it is described receive information after, The corresponding order amount of money of the information of real estate is delivered to contract account;
Receive the order amount of money delivered by the contract account.
By above scheme it is found that a kind of order processing method provided by the invention, is applied to client node, comprising: Target information of real estate is determined in storing the information of real estate to block chain by hotel's node system in advance;Utilize pre-registered use Family information and the target information of real estate generate order information, and the order information is stored to the block chain, so that institute The corresponding target hotel node system of target information of real estate is stated after listening to the order information, confirmation receives the order letter Breath, and information will be received and stored to the block chain;Listen to it is described receive information after, by the corresponding order of the information of real estate The amount of money is delivered to contract account, so that the contract account delivers the order amount of money to target hotel node system.
It can be seen that a kind of order processing method provided by the embodiments of the present application, client node is from being stored in block chain Information of real estate in determine target information of real estate, generate order information using user information and target information of real estate, and by order Information is directly stored in block chain, is monitored by target hotel node system block chain, and listening to the order information To receive information afterwards and be also published to block chain, make client node listened to from block chain receive information after the order amount of money is delivered To contract account, target hotel node system is handed to by contract account.Due to information of real estate, order information, receive information etc. It being stored in block chain, both parties are not necessarily to the addition of the third-party institution, there are no needing the third-party institution to store information, from And third-party institution's data loss problem caused by attacking is effectively prevented, and since these information datas are as area Block number is according to being stored on block chain, so that the safety and trackability of information be effectively ensured.
Present invention also provides a kind of order processing system, device, computer readable storage medium, it is applied to hotel's node Order processing method, above-mentioned technical effect equally may be implemented.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of order processing method flow diagram disclosed by the embodiments of the present invention;
Fig. 2 is a kind of specific order processing method flow diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of specific order processing method flow diagram disclosed by the embodiments of the present invention;
Fig. 4 is a kind of specific order processing system schematic diagram disclosed by the embodiments of the present invention;
Fig. 5 is a kind of specific order processing system structural schematic diagram disclosed by the embodiments of the present invention;
Fig. 6 is a kind of specific order processing apparatus structure schematic diagram disclosed by the embodiments of the present invention;
Fig. 7 is a kind of order processing method flow diagram disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of order processing method, system, device and computer readable storage mediums, with solution Certainly how to guarantee the problem of the safety of user data.
Referring to Fig. 1, a kind of order processing method provided in an embodiment of the present invention is applied to client node, specifically includes:
S101 determines target information of real estate in storing the information of real estate to block chain by hotel's node system in advance.
In the present solution, hotel's node and client node are used as block chain node, hotel's node and client node The processing of order is completed by calling intelligent contract respectively.A series of method or function, may be implemented in intelligent contract Operation to data on block chain, storage, inquiry and modification including data, the supplier of the source of houses, such as hotel system or room Information of real estate can be issued by intelligent contract and be disclosed on block chain by east, and tenant user can then inquire on block chain These disclosed informations of real estate, and in the source of houses for wherein selecting oneself to need.
Specifically, hotel's node system can be stored using intelligent contract using information of real estate as block data to block chain In.
It should be noted that in this application, as long as hotel's node system can be used in the side for being to provide the source of houses, no It must be one side of hotel, for example, it is also possible to be landlord, source of houses supplier of short rent etc., related hotel's node system is in the application In do not do specific restriction, as long as the supplier of the source of houses, which can use hotel's node system, improves corresponding information of real estate, And complete the order processing between the FTP client FTP of tenant.
Wherein information of real estate can have different types, such as the source of houses, the long source of houses rented, the source of houses of short rent in hotel, root Specific information of real estate can be set according to type difference.
Such as the information of real estate in hotel may include that unique identification (such as room number) of each room in hotel, room are set Apply the information such as information, the price in room.It should be noted that the price in room can be virtual coin price in block chain.
In the present solution, client node first can in all informations of real estate of block chain selection target information of real estate.
S102 generates order information using pre-registered user information and the target information of real estate, and orders described Single information is stored to the block chain so that the corresponding target hotel node system of the target information of real estate listen to it is described After order information, confirmation receives the order information, and will receive information and store to the block chain.
User first has to registration user information, user information can be with before carrying out order operation using client node Unique address of the client node used by a user in block chain is specifically included, which is used to receive, pay the bill, the public affairs of user The personal information of key and user, it should be noted that the private key of user is also to be obtained by registration, but private key can only be by Client node oneself saves.
It should be noted that in the present solution, the personal information of user, which can be user, is used to the username information that places an order, It is also possible to the Real Name information of user.If not including the Real Name information of user in personal information, it is not related to Order information can be directly stored in block chain by the privacy problem of user, and need to verify due to moving in hotel The true identity of user, this process can then be got off completion by line.
If including the Real Name information of user in personal information, since the data of block chain are open and clear , therefore any node of block chain is available in order to guarantee the safety of user's real information, also to be needed to these data The real information of user is encrypted with the public key of corresponding hotel system, only has hotel ordered by user can in this way It is decrypted with its private key so that the real information of user is got, after getting the real information of user, it can it is right on line to realize The verifying of user identity, such case in relation to the Real Name information in personal information including user will in the following embodiments It is described further, no longer will excessively repeat herein.
In this step, client node can carry out lower single operation to target information of real estate, to be obtained using registered in advance The user information and target information of real estate arrived generates order information.In addition to user information to be included, the target source of houses in order information Information will also include such as moving in time, check-out time order information.
In a specific embodiment, order information can also include the corresponding user's prestige integral of user information. User's prestige integrates the prestige degree of user indicated, hotel side can selectively be accepted an order information by the integral.Specifically Ground, user's prestige integral is defaulted as preset value when user completes and registers, and is increased, root according to the increase for completing quantity on order It is reduced according to the increase for complaining quantity, for example, being defaulted as 85 points when user completes and registers, completing an order adds 5 parts, is thrown Tell 5 points of processing button.
In another particular embodiment of the invention, information of real estate can also include the prestige product of the corresponding hotel system of the source of houses Point, the prestige integral of hotel system is namely using the prestige of the hotel of the system or other sources of houses supplier integral.Specifically, The prestige integral of hotel system is defaulted as preset value when hotel system is registered use, and is increased according to the increase of quantity on order Add, reduced according to the increase for complaining quantity, for example, 60 can be defaulted as when hotel system registers to use for the first time, completes one A order adds 1 point, is complained 1 point of button.
Hotel's node system can monitor the data on block chain, when listening to the information of real estate included by oneself Order information after, order information can be confirmed, and receive the order, while information storage will be received to block chain.
S103, listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to contract account, So that the contract account delivers the order amount of money to target hotel node system.
In this step, client node can also monitor the data on block chain, be generated when listening to oneself Order information it is corresponding receive information after, then carry out payment operation.
It is delivered to contract account firstly the need of by the corresponding order amount of money of information of real estate, after user completes order, contract Account can deliver the order amount of money to corresponding hotel's node system.It should be noted that judging that user completes the mode of order Either actively being revised as order status state is completed from client node system by user, it is also possible to by preparatory Object time corresponding with time, check-out time is moved in is set, when reaching this object time, then client node system or Order status is revised as that state is completed by hotel's node system automatically.After the status information of order is modified, can also it be stored in Block chain, hotel's node system can collect the corresponding order amount of money to contract account using the status information for the state that is completed.Its In, contract account is account corresponding to intelligent contract.
It can be seen that a kind of order processing method provided by the embodiments of the present application, client node is from being stored in block chain Information of real estate in determine target information of real estate, generate order information using user information and target information of real estate, and by order Information is directly stored in block chain, is monitored by target hotel node system block chain, and listening to the order information To receive information afterwards and be also published to block chain, make client node listened to from block chain receive information after the order amount of money is delivered To contract account, target hotel node system is handed to by contract account.Due to information of real estate, order information, receive information etc. It being stored in block chain, both parties are not necessarily to the addition of the third-party institution, there are no needing the third-party institution to store information, from And third-party institution's data loss problem caused by attacking is effectively prevented, and since these information datas are as area Block number is according to being stored on block chain, so that the safety and trackability of information be effectively ensured.
Many hotels, rented house use coded lock at present, obtain room password for the convenience of the user and are incorporated to house room, this Application provides a kind of more specifically order processing method, in the embodiment of the present application, after user places an order and pays the bill, online will Room password uploads to block chain by hotel's node system, and obtains encrypted message by client node.
A kind of specific order processing method provided by the embodiments of the present application is introduced below, one kind described below Specific order processing method, can be cross-referenced with above-described embodiment.
Referring to fig. 2, a kind of specific order processing method provided by the embodiments of the present application, specifically includes:
S201 determines target information of real estate in storing the information of real estate to block chain by hotel's node system in advance.
S202 generates order information using pre-registered user information and the target information of real estate, and orders described Single information is stored to the block chain so that the corresponding target hotel node system of the target information of real estate listen to it is described After order information, confirmation receives the order information, and will receive information and store to the block chain.
S203, listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to contract account, So that the contract account delivers the order amount of money to target hotel node system.
S204 obtains encryption room encrypted message in the block chain;The encryption room encrypted message is the mesh Mark hotel's node system is encrypted to obtain using the public key of the client to the password in the corresponding room of the order information Information.
In the present solution, hotel's node system can be by order information after client node completes the delivery of the order amount of money The password in corresponding room is supplied to client node.
Specifically, since the user that encrypted message can only be placed an order receives, target hotel node system needs to utilize The public key of the client to place an order encrypts the password in the corresponding room of order information, obtains encryption room encrypted message, so By the encryption room, encrypted message uploads to block chain afterwards, and client node obtains the encryption room message in cipher in block chain Breath.
S205 is decrypted encryption room encrypted message to obtain described order using the private key of the client node The password in the corresponding room of single information.
Specifically, client node is decrypted the encryption room encrypted message using the private key of oneself, so as to Obtain the password in corresponding room.
A kind of specific order processing method provided by the embodiments of the present application is introduced below, one kind described below Specific order processing method has mainly done further restriction and explanation to S102 in above-described embodiment, and in personal information Such case of Real Name information including user, which is made, to be discussed in detail, other step contents and above-described embodiment substantially phase Together, particular content can refer to above-described embodiment, will no longer repeat herein.
Referring to Fig. 3, a kind of specific order processing method provided by the embodiments of the present application is specifically included:
S301 determines target information of real estate in storing the information of real estate to block chain by hotel's node system in advance.
S302 generates order information using pre-registered user information and the target information of real estate.
S303 determines the Target Public Key of the corresponding target hotel node system of the target information of real estate.
In the present solution, in order to further ensure user information privacy, need to encrypt order information, thus Guarantee that the only corresponding target hotel system of order can just get the related content in order information.
Specifically, it is determined that the Target Public Key of the corresponding target hotel node system of target information of real estate.
S304 obtains encryption to the user's ID authentication information in the order information using the Target Public Key and uses Family authentication information, and will include the order information of the encryption user's ID authentication information as encryption order information.
In the present solution, the above order information further includes user's ID authentication information.Due in the present solution, user identity Authentication information includes personal real information, such as Real Name, identification card number of user etc., therefore in order to guarantee that user's is true Information is not disclosed block chain, to be obtained by a side of other non-targeted hotel's nodes, therefore, it is also desirable to recognize user identity Card information is encrypted.
Specifically, the user identity in order information is recognized using the public key of target hotel node, that is, Target Public Key Card information is encrypted, and the user's ID authentication information in order information is merely able to be carried out by the private key of target hotel node system Decryption, to ensure that the privacy of order information.
S305 stores the encryption order information to the block chain, so that target hotel node system is being supervised After hearing the encryption order information, using the private key of target hotel node system to adding in the encryption order information Close user's ID authentication information is decrypted to obtain the order information including user's ID authentication information, and receives in confirmation After the order information, information will be received and stored to the block chain.
S306, listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to contract account, So that the contract account delivers the order amount of money to target hotel node system.
A kind of specific order processing method provided by the embodiments of the present application is introduced below, one kind described below Specific order processing method can be cross-referenced with any of the above-described embodiment.
Referring to fig. 4, a kind of specific order processing system provided by the embodiments of the present application as shown in figure 4, include in system User, hotel staff, terminal browser, Web server, intelligent contract, block chain.
Wherein, Web server only provides the html page and necessary JS code in decentralization hotel, does not provide calculating Service, does not provide storage service, to reach the method for running of complete decentralization.That is, Web server only provides use It is shown in the hotel management node system that the client node system or hotel staff that define how to use in user use The front-end interface code of data, the code without including actual data processing, calculating.
Terminal browser, and hotel's pipe that the terminal browser including client node system and hotel staff use Manage the terminal browser of node system.Operation display decentralization hotel html page, while also running relevant web3.js generation Code, the effect of the web3.js packet are to realize in a browser directly operation decentralization hotel order management intelligence contract, in turn Data in the chain of operation block.User and hotel management personnel can be called in intelligent contract by respective terminal browser Method, function etc. realize the data in the chain of operation block.
It include a series of method/function in intelligent contract, for realizing operation of the user to data on block chain, including The storage of data and the inquiry of data, and modification.Hotel staff (or landlord) can be by intelligent contract, by the source of houses Information publication discloses on block chain, and user can then inquire these public informations on block chain, select oneself to need The order information of oneself is equally published to block chain by the source of houses, then, user, accomplishes disclosure/the characteristics of can not distorting.
Block chain: block chain is then the generated critical data for storing in entire process of exchange.It can be utilization Each platform of block chain technology, such as: ether mill, EOS etc..The main application mainstream of the application, mature ether mill technology are real Existing order processing method.
It applies in the process of the order processing method of client node referring specifically to following steps:
The first step, user register user information using FTP client FTP.
Specifically, field name included by user information and corresponding field meanings are referring to table 1.
1 user information field table of table
It should be noted that will also be including the private key of user in user information, but the private key of user is in following step In will not generate order information together with other users information.It can also include the true identity information of user in user information, For carrying out authentication on line.
User passes through the terminal browser of client node system, Web3.js is called, to call user in intelligent contract The correlation technique or function of information registering, to realize the registration of user information.
In addition, one side of hotel when coming into operation for the first time, it is also desirable to be registered, the particular content in the content hotel of registration Both included the Global Information in hotel, and also included the information in each room in hotel, after completing registration, the registration information in hotel can be deposited Block chain is stored up, so that user is inquired by client node system.
Field involved in hotel's Global Information and field meanings are referring to table 2.
2 hotel information field list of table
The field in each room and corresponding field meanings are referring to table 3 in hotel.
3 room information field list of table
Field name Field meanings explanation
RoomName In same hotel, room unique identification
RoomInfo Room facilities information
RoomPrice The price in room, virtual coin price in block chain
Similarly, hotel staff calls Web3.js by the terminal browser of hotel's node system, to call intelligence The correlation technique or function that hotel information, room information are registered in energy contract, to realize the registration of hotel information, room information.
Second step, user browse information of real estate all in block chain by the terminal browser of client node system, That is hotel, room information, and target information of real estate is determined wherein.
Third step, client node system are completed by generating the relevant method of order or function in the intelligent contract of calling User places an order to target information of real estate, and order information is stored to block chain.
The field of order information and corresponding field meanings are referring to table 4.
4 order information field list of table
It should be noted that also to include the user name of user in order information;And it needs to carry out user identity on line When verifying, field PrivateInformation can be added, it, then should without addition when without carrying out subscriber authentication on line Field.After order information storage to block chain, hotel's node system finds one's own order information by monitoring, if It accepts an order information, will just receive information storage into block chain, it specifically can be by by " hotel's confirmation mark in order information Will position " set indicates information of accepting an order, and then stores modified order information to block chain.
Third step, client node by monitoring, find hotel side receive information after, just run corresponding payment intelligence Energy contract pays the bill the order amount of money needed for the target source of houses in the form of virtual coin to contract account, and will be in order information " payment flag bit " set, by modified order information storage to block chain.
After hotel's node system is by monitoring " payment flag bit " set inquired in order information, just by the close of room Code is encrypted using the public key of client node system, is saved in block chain.
4th step, client node are decrypted to obtain the close of plaintext using the room password after oneself private key pair encryption Code.
5th step, user obtain the service of hotel side, if service terminates, Yong Hutong according to the time arranged in order information It crosses client node system and calls intelligent contract, by " order complement mark position " set in order information.
" hotel acknowledgement indicator position " in order information, " payment flag bit ", " order is complete listening to for hotel's node system At flag bit " all it is set, then, relevant intelligent contract is run, by user's provisional payment to the virtual coin in contract account It takes out.
A kind of order processing system provided by the embodiments of the present application is introduced below, at a kind of order described below Reason system can be cross-referenced with any of the above-described embodiment.
Referring to Fig. 5, a kind of order processing system provided by the embodiments of the present application is specifically included:
First determining module 501, for being determined in storing the information of real estate to block chain by hotel's node system in advance Target information of real estate.
Order generation module 502, for generating order using pre-registered user information and the target information of real estate Information, and the order information is stored to the block chain, so that the corresponding target hotel node of the target information of real estate For system after listening to the order information, confirmation receives the order information, and will receive information and store to the block chain.
Wherein, the order information further includes the corresponding user's prestige integral of the user information.
Wherein, the information of real estate includes the prestige integral of the corresponding hotel system of the source of houses.
Delivery module 503, for listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered To contract account, so that the contract account delivers the order amount of money to target hotel node system.
In one preferred embodiment, the system also includes:
Room encrypted message obtains module, for obtaining encryption room encrypted message in the block chain;The encryption Room encrypted message is that target hotel node system utilizes the public key of the client to the corresponding room of the order information Between the information that is encrypted of password;
Deciphering module is decrypted encryption room encrypted message for the private key using the client node To the password in the corresponding room of the order information.
In another preferred embodiment, the order generation module 502 includes:
Order information generation unit, for generating order using pre-registered user information and the target information of real estate Information;
Target Public Key determination unit, for determining the target of the corresponding target hotel node system of the target information of real estate Public key;
Order information encryption unit is ordered for being encrypted to obtain to encrypt to the order information using the Target Public Key Single information;
Storage unit, for storing the encryption order information to the block chain, so that target hotel node System believes the encryption order using the private key of target hotel node system after listening to the encryption order information Breath is decrypted to obtain the order information, and after confirmation receives the order information, will receive information and store to the area Block chain.
Wherein, the order information further includes user's ID authentication information.
The order processing system of the present embodiment is for realizing order processing method above-mentioned, therefore in order processing system The embodiment part of the visible order processing method hereinbefore of specific embodiment, for example, the first determining module 501, order is raw At module 502, delivery module 503 is respectively used to realize step S101, S102, S103 in the above order processing method, so, Its specific embodiment is referred to the description of corresponding various pieces embodiment, and details are not described herein.
Shown in Figure 6, the embodiment of the present application also discloses a kind of client node, including processor 801 and memory 602;Specifically, memory 602 includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with behaviour Make system and computer-readable instruction, which is operating system and computer-readable finger in non-volatile memory medium The operation of order provides environment.Processor 601 provides calculating and control ability for client node, and processor 601 executes memory When the program saved in 602, step provided by any of the above-described order processing embodiment of the method may be implemented.
Further, the client node in the present embodiment can also include:
Input interface 603, for obtaining the computer program of extraneous importing, and the computer program that will acquire save to In the memory 602, it can be also used for the various instructions and parameter that obtain extraneous terminal device transmission, and be transmitted to processor In 601, so that processor 601 is handled accordingly using above-mentioned various instructions and parametric evolving.In the present embodiment, the input is connect Mouth 603 can specifically include but be not limited to USB interface, serial line interface, speech input interface, fingerprint input interface, hard disk and reads Interface etc..
Output interface 604, the various data for generating processor 601 are exported to coupled terminal device, with Other terminal devices convenient for being connected with output interface 604 can get the various data of the generation of processor 601.The present embodiment In, the output interface 604 can specifically include but be not limited to USB interface, serial line interface etc..
Communication unit 605, for establishing telecommunication connection between client node and other nodes or web server. In the present embodiment, communication unit 605 can specifically include but be not limited to remote based on wireless communication technique or wire communication technology Journey communication unit.
Keyboard 606, the various parameters data or instruction inputted and tapping keycap in real time for obtaining user.
Display 607 carries out real-time display for the relevant information to file carry process, in time in order to user Understand order processing situation.
Mouse 608 can be used for assisting user input data and simplify the operation of user.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer Step provided by above-described embodiment may be implemented when program is executed by processor.The storage medium may include: USB flash disk, movement Hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic or disk.
Present invention also provides a kind of order processing methods applied to hotel's node system, and referring to Fig. 7, the application is provided A kind of order processing method, be applied to hotel's node system, specifically include:
S701, after listening to the order information, confirmation receives the order information;Wherein, the order information is The order information that FTP client FTP is generated using pre-registered user information and target information of real estate;The target information of real estate The target room determined in storing the information of real estate to block chain by hotel's node system in advance for the FTP client FTP Source information.
S702 will receive information and store to the block chain, so that the FTP client FTP is listening to the receiving letter After breath, the corresponding order amount of money of the information of real estate is delivered to contract account.
S703 receives the order amount of money delivered by the contract account.
Specific steps in the embodiment of the present application can in the hotel system node introduced in any of the above-described embodiment Hold cross-referenced, is no longer repeated herein.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of order processing method, which is characterized in that be applied to client node, comprising:
Target information of real estate is determined in storing the information of real estate to block chain by hotel's node system in advance;
Order information is generated using pre-registered user information and the target information of real estate, and the order information is stored To the block chain, so that the corresponding target hotel node system of the target information of real estate is listening to the order information Afterwards, confirmation receives the order information, and will receive information and store to the block chain;
Listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to contract account, so that described Contract account delivers the order amount of money to target hotel node system.
2. the method according to claim 1, wherein the method also includes:
Encryption room encrypted message is obtained in the block chain;The encryption room encrypted message is target hotel node The information that system encrypts the password in the corresponding room of the order information using the public key of the client;
Encryption room encrypted message is decrypted to obtain the order information pair using the private key of the client node The password in the room answered.
3. the method according to claim 1, wherein the order information further includes that the user information is corresponding User's prestige integral.
4. the method according to claim 1, wherein the information of real estate includes the corresponding hotel system of the source of houses Prestige integral.
5. the method according to claim 1, which is characterized in that the order information further includes user's body Part authentication information.
6. according to the method described in claim 5, it is characterized in that, described utilize pre-registered user information and the target Information of real estate generates order information, and the order information is stored to the block chain, comprising:
Order information is generated using pre-registered user information and the target information of real estate;
Determine the Target Public Key of the corresponding target hotel node system of the target information of real estate;
Encryption user identity is obtained to the user's ID authentication information in the order information using the Target Public Key to recognize Information is demonstrate,proved, and will include the order information of the encryption user's ID authentication information as encryption order information;
The encryption order information is stored to the block chain, so that target hotel node system is listening to described add After close order information, using the private key of target hotel node system to the encryption user identity in the encryption order information Authentication information is decrypted to obtain the order information including user's user's ID authentication information, and orders described in receiving confirming After single information, information will be received and stored to the block chain.
7. a kind of order processing system, which is characterized in that be applied to client node, comprising:
First determining module, for determining the target source of houses in storing the information of real estate to block chain by hotel's node system in advance Information;
Order generation module, for generating order information using pre-registered user information and the target information of real estate, and The order information is stored to the block chain, so that the corresponding target hotel node system of the target information of real estate is being supervised After hearing the order information, confirmation receives the order information, and will receive information and store to the block chain;
Delivery module, for listen to it is described receive information after, the corresponding order amount of money of the information of real estate is delivered to contract Account, so that the contract account delivers the order amount of money to target hotel node system.
8. a kind of client node characterized by comprising
Memory, for storing computer program;
Processor, realizing the order processing method as described in any one of claim 1 to 6 when for executing the computer program Step.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the step of the order processing method as described in any one of claim 1 to 6 when the computer program is executed by processor Suddenly.
10. a kind of order processing method, which is characterized in that be applied to hotel's node system, comprising:
After listening to the order information, confirmation receives the order information;Wherein, the order information is FTP client FTP The order information generated using pre-registered user information and target information of real estate;The target information of real estate is the client The target information of real estate that end system determines in storing the information of real estate to block chain by hotel's node system in advance;
To receive information to store to the block chain so that the FTP client FTP listen to it is described receive information after, by institute It states the corresponding order amount of money of information of real estate and is delivered to contract account;
Receive the order amount of money delivered by the contract account.
CN201810921397.6A 2018-08-14 2018-08-14 A kind of order processing method and relevant apparatus Pending CN109086628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921397.6A CN109086628A (en) 2018-08-14 2018-08-14 A kind of order processing method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921397.6A CN109086628A (en) 2018-08-14 2018-08-14 A kind of order processing method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN109086628A true CN109086628A (en) 2018-12-25

Family

ID=64834676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921397.6A Pending CN109086628A (en) 2018-08-14 2018-08-14 A kind of order processing method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN109086628A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800897A (en) * 2018-12-26 2019-05-24 中链科技有限公司 Hotel occupancy processing method, device, system and calculating equipment based on block chain
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain
CN109993667A (en) * 2019-03-29 2019-07-09 深圳市元征科技股份有限公司 A kind of hotel management method, device and block chain node server
CN110910217A (en) * 2019-11-21 2020-03-24 杭州浙大恩氏网络科技有限公司 Electronic ticket settlement method based on block chain
CN111179023A (en) * 2019-12-10 2020-05-19 北京互金新融科技有限公司 Order identification method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106971288A (en) * 2017-05-31 2017-07-21 无锡井通网络科技有限公司 A kind of distributed material flow tracking method based on block chain
CN107590546A (en) * 2016-07-06 2018-01-16 阿里巴巴集团控股有限公司 A kind of hotel information processing system
CN107705125A (en) * 2017-08-28 2018-02-16 杭州云象网络技术有限公司 A kind of payment marking method based on block chain
CN107958412A (en) * 2017-12-29 2018-04-24 云南飞网科技有限公司 One kind is rented a house platform and its network fingerprinting electronic door lock system
CN108062725A (en) * 2017-12-14 2018-05-22 北京华仁颐居信息科技有限公司 One kind is booked rooms online self-service moves in system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590546A (en) * 2016-07-06 2018-01-16 阿里巴巴集团控股有限公司 A kind of hotel information processing system
CN106971288A (en) * 2017-05-31 2017-07-21 无锡井通网络科技有限公司 A kind of distributed material flow tracking method based on block chain
CN107705125A (en) * 2017-08-28 2018-02-16 杭州云象网络技术有限公司 A kind of payment marking method based on block chain
CN108062725A (en) * 2017-12-14 2018-05-22 北京华仁颐居信息科技有限公司 One kind is booked rooms online self-service moves in system
CN107958412A (en) * 2017-12-29 2018-04-24 云南飞网科技有限公司 One kind is rented a house platform and its network fingerprinting electronic door lock system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李海强: "区块链在文旅产业应用或成主流", 《经济参考报》 *
王少国: "_旅游_区块链_大有可为", 《经济日报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800897A (en) * 2018-12-26 2019-05-24 中链科技有限公司 Hotel occupancy processing method, device, system and calculating equipment based on block chain
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain
CN109993667A (en) * 2019-03-29 2019-07-09 深圳市元征科技股份有限公司 A kind of hotel management method, device and block chain node server
WO2020199796A1 (en) * 2019-03-29 2020-10-08 深圳市元征科技股份有限公司 Hotel management method and apparatus, and blockchain node server
CN110910217A (en) * 2019-11-21 2020-03-24 杭州浙大恩氏网络科技有限公司 Electronic ticket settlement method based on block chain
CN111179023A (en) * 2019-12-10 2020-05-19 北京互金新融科技有限公司 Order identification method and device
CN111179023B (en) * 2019-12-10 2023-06-02 北京互金新融科技有限公司 Order identification method and device

Similar Documents

Publication Publication Date Title
CN109167695B (en) Federal learning-based alliance network construction method and device and readable storage medium
CN109086628A (en) A kind of order processing method and relevant apparatus
CN108229926B (en) Service settlement method and related device
CN104954322B (en) A kind of binding processing method of account, apparatus and system
CN108681898A (en) A kind of data trade method and system based on block chain
CN108564353A (en) Payment system based on block chain and method
US10621576B1 (en) Mobile payments using payment tokens
CN106982205A (en) Digital asset treating method and apparatus based on block chain
CN108876383A (en) A kind of data trade method, device and equipment based on block chain
CN108241979B (en) Multi-account book transfer method based on block chain, electronic device and readable storage medium
CN108564471A (en) Energy internet security intelligent trading system based on block chain technology and its method
CN109547477A (en) A kind of data processing method and its device, medium, terminal
US20200286044A1 (en) Maintenance station management method, system and data management serve
CZ20013012A3 (en) Telepayment method and system for implementing said method
CN110210207A (en) Authorization method and equipment
CN112001781B (en) Freight quotation method, system and device
CN109117608A (en) A kind of data processing method, device and relevant device
CN109919614A (en) A kind of method for protecting intelligent contract privacy using zero-knowledge proof in block chain
US20100262837A1 (en) Systems And Methods For Personal Digital Data Ownership And Vaulting
KR101669188B1 (en) System for total management in real estate
CN111126987B (en) Resource transfer information processing method and device, storage medium and electronic device
CN110210976A (en) A kind of method of commerce and its equipment based on block chain
CN113538019B (en) Food traceability information evidence storing method and device
CN110210975A (en) Data trade method and its equipment on block chain
CN109272318A (en) Applied to requesting party's client resource stream method of commerce, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181225

RJ01 Rejection of invention patent application after publication