CN108564372A - A method of the storage guest room based on block chain and intelligent contract and order data - Google Patents

A method of the storage guest room based on block chain and intelligent contract and order data Download PDF

Info

Publication number
CN108564372A
CN108564372A CN201810188517.6A CN201810188517A CN108564372A CN 108564372 A CN108564372 A CN 108564372A CN 201810188517 A CN201810188517 A CN 201810188517A CN 108564372 A CN108564372 A CN 108564372A
Authority
CN
China
Prior art keywords
data
block
guest room
accounting nodes
information
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
CN201810188517.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.)
Qingdao Huashan Oil Products Co Ltd
Original Assignee
Qingdao Huashan Oil Products Co Ltd
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 Qingdao Huashan Oil Products Co Ltd filed Critical Qingdao Huashan Oil Products Co Ltd
Priority to CN201810188517.6A priority Critical patent/CN108564372A/en
Publication of CN108564372A publication Critical patent/CN108564372A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants

Abstract

The invention discloses a kind of methods in storage guest room and order data based on block chain and intelligent contract, the method is using the block chain formed by guest room information as main chain, order information is executed in the form of intelligent contract as side chain, the present invention changes on the data storage method of traditional database, he is on the basis of traditional database is all independent per data, the data of block chain are stored to form associated chain structure, there is the condition code of a upper block in record on each block, mutual verification can be all formed between data every in this way, once data are tampered, condition code will change, and this data will be identified as in vain by other people;Therefore it can not be distorted with the form of block chain storage data.

Description

A method of the storage guest room based on block chain and intelligent contract and order data
Technical field
The present invention relates to data storage and lodging industry field, espespecially a kind of storage visitor based on block chain and intelligent contract The method in room and order data.
Background technology
Lodging industry concept includes the industry of all services of accommodating, such as hotel, hotel, youth hotel, Min Su, public affairs Residence, it is short rent a house, caravan hire out etc..
In existing lodging industry way to manage, the guest room data and order data of different businessmans and platform are all independent , so if a lodging industry businessman is if multiple reservation platforms issue the guest room information of oneself, due to each platform number According to can not intercommunication, so the frequent repetitive operation change guest room data between multiple platforms are needed, to ensure guest room information Accuracy prevents order time conflict from causing client that can not move in, and not only real-time is poor for frequent manual operation, is also easy to out It is wrong.
And since the problems such as privacy, safety, secrecy, mutual trust can not form a unified visitor between different platform and businessman Room and order data center, this is one biggest obstacle of lodging industry information sharing, and this method passes through block chain and intelligent contract skill The characteristics such as the transparency, decentralization, the safety of art build a data information sharing mutual trust system towards lodging industry, thorough Bottom solves this problem.
Invention content
The shortcomings that the technical problem to be solved by the present invention is to overcome the prior arts provides one kind and passing through area in lodging industry The method that guest room data and order data are stored based on block chain technology and intelligent contract technology, application by this method, The decentralization faith mechanism of block chain technology can be utilized to solve different businessmans in lodging industry, different reservation platforms, difference Information sharing between guest room managing system and data mutual trust problem.
In order to solve the above technical problem, the present invention provides the following technical solutions:
The present invention provides a kind of method in storage guest room and order data based on block chain and intelligent contract, and the method will be by The block chain that guest room information is formed is executed in the form of intelligent contract as side chain as main chain, by order information, including following Operating procedure:
S1:All regard all participants as a system;The guest room managing system of the system and the server for subscribing platform are made For an accounting nodes, each accounting nodes can be verified to receiving order and guest room data, be recorded and be kept accounts to other Node is broadcasted;
S2:The data of each guest room information and order information are regarded as a block, and corresponding ID is stored in each block Number and last block condition code, condition code is last block data by the burst of data obtained after encrypting conversion;Each All there are one corresponding side chains to store the order information in this guest room in guest room;Block and each guest room institute for storing guest room information are right The order information block answered stores all in accordance with the principle of block chain, and is mutually authenticated, can not altered data;
S3:According to the ID number and condition code of each block named in S1, and the area is in the block is also stored with a block ID number and condition code;Being formed all independent single blocks according to ID number and condition code by this method has incidence relation Block chain;
S4:In guest room information and the data core key value of order information deposit block chain, and other data remain stored in pair In the private data library for the accounting nodes management system answered;
S5:Encryption Algorithm and data store organisation involved in above-mentioned S1-S4 are increased income, anyone or mechanism are obtaining body Part ID and private key can do oneself management system or reservation platform according to the algorithm and data structure of announcement secondary later The system is added in exploitation;
S6:User finds correspondence according to the ID number and condition code of itself, and by the guest room information of accounting nodes management system The order information in guest room can search other guest room order messages further through the order information;Since area's data in the block are modified Later, condition code can also change, so block verification can be associated with by it illegally, be based on such authentication mechanism, entire block Data in Chain System can not be tampered and forge, and have great safety and uniqueness;
S7:The treatment mechanism of Data Concurrent conflict, an accounting nodes are wanted to exercise book keeping operation power and broadcast other accounting nodes to remember Before account information, book keeping operation power locking request is first sent to other accounting nodes, other accounting nodes are obtaining locking book keeping operation power After request, if other accounting nodes book keeping operation power of getting along well forms conflict, interim book keeping operation key is fed back, and temporarily no longer Receive other Accounting Requests, until locking is released, it is desirable to which the accounting nodes for exercising book keeping operation power obtain more than half accounting nodes notes After account key, just accounting information can be broadcasted to every other accounting nodes.
As a preferred technical solution of the present invention, it is to be stored with execution mechanism and dependency number to define the intelligent contract According to set, this collection is combined into several blocks and stored by block chain type, and intelligent contract will change it according to its execution mechanism Execution state, and the variation of execution state is broadcasted to other accounting nodes, other accounting nodes carry out after receiving broadcast Legitimate verification, preservation are simultaneously broadcasted to other accounting nodes.
As a preferred technical solution of the present invention, which uses P2P agreements, P2P agreements to be assisted for point-to- point communication View.
As a preferred technical solution of the present invention, block chained form system, the chained form system are formed in all guest rooms In have m guest room information, then corresponding guest room order information has m chain type order information.
The advantageous effect that is reached of the present invention is:The present invention is changed on the data storage method of traditional database Become, the data of block chain are stored to form the chain that is mutually related by he on the basis of traditional database is all independent per data Formula structure has the condition code of a upper block in the record on each block, in this way per data between can all be formed It is mutually authenticated, once data are tampered, condition code can change, and this data will be identified as in vain by other people;Cause This can not be distorted with the form of block chain storage data.
Description of the drawings
Attached drawing is used to provide further understanding of the present invention, and a part for constitution instruction, the reality with the present invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.
In the accompanying drawings:
Fig. 1 is overall structure of the present invention;
Fig. 2 is overall flow block diagram of the present invention.
Specific implementation mode
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
In the description of the present invention, it should be noted that the orientation of the instructions such as term "vertical", "upper", "lower", "horizontal" Or position relationship is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of description of the present invention and simplification of the description, and It is not that the device of instruction or hint meaning or element must have a particular orientation, with specific azimuth configuration and operation, therefore It is not considered as limiting the invention.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ", " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, can also be electrical connection;It can be directly connected, it can also be indirect by intermediary It is connected, can is the connection inside two elements.For the ordinary skill in the art, it can manage as the case may be Solve the concrete meaning of above-mentioned term in the present invention.
Embodiment:As shown in Figs. 1-2, the present invention provides a kind of storage guest room based on block chain and intelligent contract and order The method of data, the method is using the block chain formed by guest room information as main chain, by order information with the shape of intelligent contract Formula is executed as side chain, including following operating procedure:
S1:All regard all participants as a system;The guest room managing system of the system and the server for subscribing platform are made For an accounting nodes, each accounting nodes can be verified to receiving order and guest room data, be recorded and be kept accounts to other Node is broadcasted;
S2:The data of each guest room information and order information are regarded as a block, and corresponding ID is stored in each block Number and last block condition code, condition code is last block data by the burst of data obtained after encrypting conversion;Each All there are one corresponding side chains to store the order information in this guest room in guest room;Block and each guest room institute for storing guest room information are right The order information block answered stores all in accordance with the principle of block chain, and is mutually authenticated, can not altered data;
S3:According to the ID number and condition code of each block named in S1, and the area is in the block is also stored with a block ID number and condition code;Being formed all independent single blocks according to ID number and condition code by this method has incidence relation Block chain;
S4:In guest room information and the data core key value of order information deposit block chain, and other data remain stored in pair In the private data library for the accounting nodes management system answered;
S5:Encryption Algorithm and data store organisation involved in above-mentioned S1-S4 are increased income, anyone or mechanism are obtaining body Part ID and private key can do oneself management system or reservation platform according to the algorithm and data structure of announcement secondary later The system is added in exploitation;
S6:User finds correspondence according to the ID number and condition code of itself, and by the guest room information of accounting nodes management system The order information in guest room can search other guest room order messages further through the order information;Since area's data in the block are modified Later, condition code can also change, so block verification can be associated with by it illegally, be based on such authentication mechanism, entire block Data in Chain System can not be tampered and forge, and have great safety and uniqueness;
S7:The treatment mechanism of Data Concurrent conflict, since lodging industry is very high to the timeliness requirement of data access, so necessary Ensure access efficiency by technological means and concurrency conflict can be prevented, an accounting nodes want to exercise book keeping operation power to it Before his accounting nodes broadcast accounting information, book keeping operation power locking request, other accounting nodes are first sent to other accounting nodes After obtaining locking book keeping operation power request, if other accounting nodes book keeping operation power of getting along well forms conflict, interim book keeping operation is fed back Key, and temporarily no longer receive other Accounting Requests, until locking is released, it is desirable to which the accounting nodes for exercising book keeping operation power obtain After more than half accounting nodes book keeping operation keys, just accounting information can be broadcasted to every other accounting nodes.
It is the set for being stored with execution mechanism and related data to define the intelligent contract, this collection is combined into several blocks and passes through Block chain type is stored, and intelligent contract will change its execution state according to its execution mechanism, and the variation of execution state to Other accounting nodes are broadcasted, other accounting nodes carry out legitimate verification after receiving broadcast, preserve and saved to other book keeping operations Point is broadcasted;It is PPP(Point to Point Protocol) that the broadcast, which uses P2P agreements, P2P agreements,;Block chain type is formed in all guest rooms System has m guest room information in the chained form system, then corresponding guest room order information has m chain type order information.
Specifically:The server of guest room managing system and reservation platform in entire management system is as a book keeping operation section Point, each accounting nodes can be verified, recorded and be broadcasted to other accounting nodes to receiving order and guest room data; P2P agreements are PPP(Point to Point Protocol);The block chain that wherein guest room information is formed is as main chain, by order information with intelligent contract Form as side chain execute;The data of each guest room information and order information are now regarded as a block, in each block It is all stored with the ID number and condition code of a block, condition code is one that last block data obtains later by encrypting conversion String data.The block chain with incidence relation will be formed between design different blocks in this way with ID number and condition code; Its condition code can also change after being modified due to area's data in the block, so block verification can be associated with by it illegally, be based on this The authentication mechanism of sample, the data in entire block Chain System can not be tampered and forge, and have great safety and uniqueness Feature.
Finally it should be noted that:It these are only the preferred embodiment of the present invention, be not intended to restrict the invention, although Present invention has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, still can be right Technical solution recorded in foregoing embodiments is modified or equivalent replacement of some of the technical features.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in the protection of the present invention Within the scope of.

Claims (4)

1. a kind of method in storage guest room and order data based on block chain and intelligent contract, which is characterized in that the method Using the block chain formed by guest room information as main chain, order information is executed in the form of intelligent contract as side chain, including Following operating procedure:
S1:All regard all participants as a system;The guest room managing system of the system and the server for subscribing platform are made For an accounting nodes, each accounting nodes can be verified to receiving order and guest room data, be recorded and be kept accounts to other Node is broadcasted;
S2:The data of each guest room information and order information are regarded as a block, and corresponding ID is stored in each block Number and last block condition code, condition code is last block data by the burst of data obtained after encrypting conversion;Each All there are one corresponding side chains to store the order information in this guest room in guest room;Block and each guest room institute for storing guest room information are right The order information block answered stores all in accordance with the principle of block chain, and is mutually authenticated, can not altered data;
S3:According to the ID number and condition code of each block named in S1, and the area is in the block is also stored with a block ID number and condition code;Being formed all independent single blocks according to ID number and condition code by this method has incidence relation Block chain;
S4:In guest room information and the data core key value of order information deposit block chain, and other data remain stored in pair In the private data library for the accounting nodes management system answered;
S5:Encryption Algorithm and data store organisation involved in above-mentioned S1-S4 are increased income, anyone or mechanism are obtaining body Part ID and private key can do oneself management system or reservation platform according to the algorithm and data structure of announcement secondary later The system is added in exploitation;
S6:User finds correspondence according to the ID number and condition code of itself, and by the guest room information of accounting nodes management system The order information in guest room can search other guest room order messages further through the order information;Since area's data in the block are modified Later, condition code can also change, so block verification can be associated with by it illegally, be based on such authentication mechanism, entire block Data in Chain System can not be tampered and forge, and have great safety and uniqueness;
S7:The treatment mechanism of Data Concurrent conflict, an accounting nodes are wanted to exercise book keeping operation power and broadcast other accounting nodes to remember Before account information, book keeping operation power locking request is first sent to other accounting nodes, other accounting nodes are obtaining locking book keeping operation power After request, if other accounting nodes book keeping operation power of getting along well forms conflict, interim book keeping operation key is fed back, and temporarily no longer Receive other Accounting Requests, until locking is released, it is desirable to which the accounting nodes for exercising book keeping operation power obtain more than half accounting nodes notes After account key, just accounting information can be broadcasted to every other accounting nodes.
2. the method in a kind of storage guest room and order data based on block chain and intelligent contract according to claim 1, It is characterized in that, it is the set for being stored with execution mechanism and related data to define the intelligent contract, this collection is combined into several blocks It is stored by block chain type, intelligent contract will change its execution state according to its execution mechanism, and the change of execution state Change and broadcasted to other accounting nodes, other accounting nodes carry out legitimate verification after receiving broadcast, preserve and to other notes Account node is broadcasted.
3. the method in a kind of storage guest room and order data based on block chain and intelligent contract according to claim 2, It is characterized in that, it is PPP(Point to Point Protocol) that the broadcast, which uses P2P agreements, P2P agreements,.
4. the method in a kind of storage guest room and order data based on block chain and intelligent contract according to claim 1, It is characterized in that, forming block chained form system in all guest rooms, there is m guest room information in the chained form system, then corresponding visitor Room order information has m chain type order information.
CN201810188517.6A 2018-03-07 2018-03-07 A method of the storage guest room based on block chain and intelligent contract and order data Pending CN108564372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810188517.6A CN108564372A (en) 2018-03-07 2018-03-07 A method of the storage guest room based on block chain and intelligent contract and order data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810188517.6A CN108564372A (en) 2018-03-07 2018-03-07 A method of the storage guest room based on block chain and intelligent contract and order data

Publications (1)

Publication Number Publication Date
CN108564372A true CN108564372A (en) 2018-09-21

Family

ID=63532449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810188517.6A Pending CN108564372A (en) 2018-03-07 2018-03-07 A method of the storage guest room based on block chain and intelligent contract and order data

Country Status (1)

Country Link
CN (1) CN108564372A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109584110A (en) * 2018-11-22 2019-04-05 广州点睿信息科技有限公司 A kind of intelligent hotel managing device and method based on block chain
CN109829718A (en) * 2019-01-30 2019-05-31 缀初网络技术(上海)有限公司 A kind of block chain multi-layer framework and its operation method based on storage application scenarios
CN111327648A (en) * 2018-12-13 2020-06-23 北京果仁宝软件技术有限责任公司 Processing method and system based on block chain intelligent contract
CN111343157A (en) * 2020-02-11 2020-06-26 南京峰凯云歌数据科技有限公司 Information encryption system based on block chain
CN112926085A (en) * 2021-03-05 2021-06-08 合肥都市链情商务有限公司 Database data storage and tamper-proof system and method based on block chain contract
CN112968940A (en) * 2021-01-30 2021-06-15 银盛通信有限公司 Internet transaction data storage method based on partition authentication technology

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109584110A (en) * 2018-11-22 2019-04-05 广州点睿信息科技有限公司 A kind of intelligent hotel managing device and method based on block chain
CN111327648A (en) * 2018-12-13 2020-06-23 北京果仁宝软件技术有限责任公司 Processing method and system based on block chain intelligent contract
CN111327648B (en) * 2018-12-13 2022-04-12 北京果仁宝软件技术有限责任公司 Processing method and system based on block chain intelligent contract
CN109829718A (en) * 2019-01-30 2019-05-31 缀初网络技术(上海)有限公司 A kind of block chain multi-layer framework and its operation method based on storage application scenarios
CN109829718B (en) * 2019-01-30 2022-12-23 缀初网络技术(上海)有限公司 Block chain multi-level framework based on storage application scene and operation method thereof
CN111343157A (en) * 2020-02-11 2020-06-26 南京峰凯云歌数据科技有限公司 Information encryption system based on block chain
CN112968940A (en) * 2021-01-30 2021-06-15 银盛通信有限公司 Internet transaction data storage method based on partition authentication technology
CN112926085A (en) * 2021-03-05 2021-06-08 合肥都市链情商务有限公司 Database data storage and tamper-proof system and method based on block chain contract
CN112926085B (en) * 2021-03-05 2023-06-20 合肥都市链情商务有限公司 Database data storage and tamper-proof system and method based on blockchain contracts

Similar Documents

Publication Publication Date Title
CN108564372A (en) A method of the storage guest room based on block chain and intelligent contract and order data
CN109787815B (en) Government information resources shared system based on block chain
US20230091605A1 (en) Accessing an internet of things device using blockchain metadata
US11838407B2 (en) Computer-implemented systems and methods for using a blockchain to perform an atomic swap
CN102195969B (en) Trusted group of a plurality of devices with single sign on, secure authentication
US20190139047A1 (en) Block chain based resource management
WO2019184155A1 (en) Blockchain node authority control method, blockchain system and storage medium
US20070283153A1 (en) Method and system for mutual authentication of wireless communication network nodes
CN111327426B (en) Data sharing method and related device, equipment and system
CN107886602A (en) A kind of method for unlocking and system
CN103281305A (en) Security gateway-based access control method for smart city system
CN105075219A (en) Network system comprising a security management server and a home network, and method for including a device in the network system
CN109767530A (en) Smart lock control method, apparatus and system based on block chain
Nair et al. Decentralizing Custodial Wallets with MFKDF
CN117056981A (en) Digital identity management method and device
Tauber et al. Approaching the challenge of eID interoperability: An Austrian perspective
CN116484329A (en) Data work ownership processing method and device based on blockchain
Chang et al. An intelligent context-aware communication system for one single autonomic region to realize smart living
Zhu et al. Three‐level quantum satellite communication framework and its applications
CN106357595A (en) Encryption method and encryption system based on SIM card
Sukumaran DNA-based authentication to access internet of things-based healthcare data
Thorve et al. Decentralized Identity Management Using Blockchain
KR102392150B1 (en) Method for a peer terminal to transmit block data to a client terminal in Hyperledger Fabric Architecture
US20230247022A1 (en) Unified identification verification system
Djellali et al. Design of authentication model preserving intimacy and trust in intelligent environments

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180921