CN112150150A - Block chain-based electronic ticket transaction system and method - Google Patents

Block chain-based electronic ticket transaction system and method Download PDF

Info

Publication number
CN112150150A
CN112150150A CN202011066000.3A CN202011066000A CN112150150A CN 112150150 A CN112150150 A CN 112150150A CN 202011066000 A CN202011066000 A CN 202011066000A CN 112150150 A CN112150150 A CN 112150150A
Authority
CN
China
Prior art keywords
transaction
transaction information
center server
electronic ticket
database
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.)
Granted
Application number
CN202011066000.3A
Other languages
Chinese (zh)
Other versions
CN112150150B (en
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.)
Chongqing Academy of Science and Technology
Original Assignee
Chongqing Academy of Science and 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 Chongqing Academy of Science and Technology filed Critical Chongqing Academy of Science and Technology
Priority to CN202011066000.3A priority Critical patent/CN112150150B/en
Publication of CN112150150A publication Critical patent/CN112150150A/en
Application granted granted Critical
Publication of CN112150150B publication Critical patent/CN112150150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24549Run-time optimisation
    • 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/602Providing cryptographic facilities or services
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/04Payment circuits
    • G06Q20/045Payment circuits using payment protocols involving tickets
    • G06Q20/0457Payment circuits using payment protocols involving tickets the tickets being sent electronically
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention relates to the technical field of block chains, in particular to an electronic ticket transaction system based on a block chain, which comprises a plurality of central servers arranged in each zone, wherein each central server comprises a receiving module, a first judging module, a processing module, a database, a second judging module and an output module, wherein: the receiving module is used for acquiring the transaction information of the electronic ticket and demarcating a seller center server and a buyer center server according to the transaction information; the first judgment module is used for judging whether the electronic ticket transaction occurs in the same area, and if so, the transaction is completed; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server; the processing module is used for carrying out validity verification on the transaction information and storing the transaction information passing the validity verification into a database; by adopting the scheme, the characteristic that the block chain cannot be tampered can be utilized, and the safety of cross-region transaction is guaranteed.

Description

Block chain-based electronic ticket transaction system and method
Technical Field
The invention relates to the technical field of block chains, in particular to an electronic ticket transaction system and method based on a block chain.
Background
The ticket is a written certificate which is issued by a unit or a person, contains a certain value and is used for shopping or consumption; with the rapid development of the technology level, the form of the ticket is developed from a paper ticket to an electronic ticket; electronic tickets manufactured, transmitted and used through various electronic media become a common financial transaction mode, and compared with common paper tickets, the electronic tickets have the characteristics of low manufacturing and transmitting cost, convenience and easiness in management; however, the conventional electronic ticket management method has the disadvantages that the ticket information is easy to be falsified, the data storage process is unreliable, the settlement process is complicated, and the like.
To this end, the chinese patent publication No. CN107918868A discloses a system and method for trading electronic tickets in combination with blockchain, which is used for at least one consumer to perform electronic consumption for at least one business, wherein the system for trading electronic tickets comprises a trading server, an encryption server group, at least one business operation unit and at least one consumer operation unit, the trading server receives a set of commodity data, and generates a set of corresponding blockchain tickets from the encryption server group and provides the blockchain tickets to the consumer operation unit, when the consumer conducts the commodity transaction, the merchant obtains the blockchain ticket from the consumer operation unit through the merchant operation unit, and finally, and the transaction server carries out decryption verification and judges whether the blockchain ticket obtained by the proprietor is correct or not, and if so, the transaction server carries out the payment request of the blockchain ticket.
In the scheme, the credit problem can be solved under the conditions of decentralization and distrust by utilizing the block chain technology, most of fraudulent behaviors are resisted, and the safe storage and the non-falsification of transaction data are realized; however, if all electronic ticket transactions are circulated in a central server, the response speed will be slow due to the large amount of information during the peak period of the transaction.
Disclosure of Invention
The invention aims to provide a block chain-based electronic ticket transaction system and a block chain-based electronic ticket transaction method capable of performing cross-zone settlement.
The basic scheme provided by the invention is as follows: the utility model provides an electronic ticket transaction system based on block chain, is including setting up a plurality of central servers in each district, central server all includes receiving module, first judgement module, processing module, database, second judgement module and output module, wherein:
the receiving module is used for acquiring the transaction information of the electronic ticket and demarcating a seller center server and a buyer center server according to the transaction information;
the first judgment module is used for judging whether the electronic ticket transaction occurs in the same area, and if so, the transaction is completed; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server;
the processing module is used for carrying out validity verification on the transaction information and storing the transaction information passing the validity verification into a database;
the second judgment module is used for traversing the transaction information in the database, judging whether the transaction information passes the check of the seller center server and the buyer center server, and if so, performing uplink sealing on the transaction information according to a block chain algorithm;
and the transmission module is used for synchronously forwarding the transaction information to each central server.
The working principle and the advantages of the invention are as follows:
in the process of electronic ticket transaction, a seller center server and a buyer center server can be defined through an acceptance module according to the acquired transaction information; then the first judging module judges whether the electronic ticket trade is in the same area, if yes, the settlement can be directly carried out in the own central server and the trade can be completed; on the contrary, if the electronic ticket transaction is judged to be a cross-regional transaction, the transaction information is synchronously forwarded to the central servers of the buyer and the seller, and the transaction initiator of the two central servers checks the transaction information, so that the security of the cross-regional transaction of the electronic ticket can be improved to a certain extent; then, after the second judging module detects that both the buyer and the seller check the transaction information, the transaction information is subjected to chain linking and sealing according to a block chain algorithm; therefore, the characteristic that the block chain cannot be tampered is utilized, cross-region transaction between each central server is guaranteed to be not tampered, and the security of transaction information is greatly improved; and finally, the transaction information of the trans-regional transaction is synchronized to each central server through the transmission module for collection, so that the information of the trans-regional transaction can be traced.
In conclusion, the plurality of central servers are arranged, and the electronic ticket transaction in the same area is controlled to be settled in the local area, so that the electronic ticket transaction in the non-same area is subjected to cross-area settlement, and the response speed of the servers can be optimized and accelerated; and the transaction information of cross-region settlement can be linked and sealed, so that the security of the transaction is improved.
Further, the first determining module is further configured to extract a protocol address of the buyer center server and a protocol address of the buyer center server, respectively, and generate first identification information and second identification information; and judging whether the two parties of the transaction are in the same area or not according to the first identification information and the second identification information.
Has the advantages that: the method aims to provide a specific mode for judging whether the electronic ticket transaction occurs in the same area, namely, the area to which the server belongs can be easily and directly found by extracting the protocol addresses of the two servers.
Further, the second judging module is further configured to encrypt the transaction information according to the hash operation, calculate to obtain a corresponding hash value, store the hash value in the database, and generate a relation mapping table between the transaction information and the hash value.
Has the advantages that: the Hash operation is mainly to calculate a string of information through a Hash function in cryptography, and the obtained result is a character string with fixed number of bits, so that the information can be simplified, and a Hash value can be obtained in limited time and limited resources; and the method also has certain secrecy, so that the transaction information cannot be tampered.
Further, the second judging module is further configured to query the transaction information in the database according to a preset time period, and stop continuing to query until two identical transaction information are searched in the database.
Has the advantages that: in the scheme, the transaction information is stored in the database after being verified by the buyer and the seller, and the second judging module inquires the transaction information which passes the legality verification in the database according to the preset time period, so that real-time inquiry is not needed, and the system load is reduced.
Further, the second determining module is further configured to record the number of times of query, and if the number of times of query is greater than a preset number threshold, extend the time period.
Has the advantages that: the time period of traversing the database by each central server can be adjusted according to the ground, so that the times of querying the database are reduced, invalid query operation is avoided, and the system computation amount is reduced.
The invention also provides an electronic ticket transaction method based on the block chain, which comprises the following steps:
s1, acquiring the transaction information of the electronic ticket, and defining a seller center server and a buyer center server according to the transaction information;
s2, judging whether the electronic ticket transaction occurs in the same area, if so, completing the transaction; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server;
s3, carrying out validity verification on the transaction information, and storing the transaction information passing the validity verification into a database;
s4, traversing the transaction information in the database, and judging whether the transaction information passes the verification of the seller center server and the buyer center server, if so, performing uplink sealing on the transaction information according to the blockchain algorithm;
and S5, synchronously forwarding the transaction information to each central server.
Has the advantages that: by arranging a plurality of central servers and controlling the electronic ticket transaction in the same area to settle in the local area, the electronic ticket transaction in the non-same area is subjected to cross-area settlement, so that the response speed of the servers can be optimized and accelerated; the transaction information of cross-regional settlement can be linked and sealed, so that the security of the transaction is improved; in addition, by synchronizing the transaction information of the cross-region transaction to each central server for collection, the information of the cross-region transaction can be traced.
Further, the step S2 specifically includes a step S21, which extracts the protocol address of the buyer center server and the protocol address of the buyer center server, respectively, and generates first identification information and second identification information; and judging whether the two parties of the transaction are in the same area or not according to the first identification information and the second identification information.
Has the advantages that: a specific way of determining whether an electronic ticket transaction occurs in the same area can be provided.
Further, the step S4 specifically includes a step S41, querying the transaction information in the database according to a preset time period, and stopping querying continuously until two identical transaction information are found in the database.
Has the advantages that: the transaction information in the database is inquired according to the times within a set time period, real-time inquiry is not needed, and the operation load of the system can be reduced.
Further, the step S41 is followed by a step S42 of recording the number of queries, and if the number of queries is greater than a preset threshold, extending the time period.
Has the advantages that: the time period can be adjusted according to actual conditions, the times of querying the database are reduced, invalid query operation is avoided, and the system operation amount is reduced.
Further, the step S4 specifically includes step S43, encrypting the transaction information by hash operation, and calculating to obtain a corresponding hash value; and S44, storing the hash value into a database, and generating a relation mapping table of the transaction information and the hash value.
Has the advantages that: by adopting the Hash operation to process the transaction information, the information can be simplified, and a Hash value can be obtained in limited time and limited resources; and the method also has certain secrecy, so that the transaction information cannot be tampered.
Drawings
Fig. 1 is a system block diagram of a block chain-based electronic ticket transaction system and method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating a block chain-based electronic ticket transaction system and method according to a first embodiment of the present invention.
Detailed Description
The following is further detailed by the specific embodiments:
example one
As shown in fig. 1, an electronic ticket transaction system based on block chains includes a plurality of central servers disposed in each zone, each central server includes a receiving module, a first determining module, a processing module, a database, a second determining module and an output module, wherein:
the receiving module is used for acquiring the transaction information of the electronic ticket and demarcating a seller center server and a buyer center server according to the transaction information; because the electronic ticket relates to the buyer and the seller, the buyer central server and the buyer central server can be directly positioned according to the information of the buyer and the seller contained in the electronic ticket, and after the buyer and the seller central server are determined, the central servers of other areas are defined as third-party central servers;
the first judgment module is used for judging whether the electronic ticket transaction occurs in the same area, and if so, the transaction is completed; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server; in this embodiment, the first determining module is further specifically configured to extract a protocol address of the buyer center server and a protocol address of the buyer center server, respectively, and generate first identification information and second identification information; judging whether the two parties of the transaction are in the same area or not according to the first identification information and the second identification information; the protocol address is similar to the IP address of a server in the prior art, the server can synchronously acquire the protocol address of a central server in the process of electronic ticket transaction, and the server to which the electronic ticket belongs can be determined according to the protocol address, and the technology is the prior art and is not described herein again;
the processing module is used for carrying out validity verification on the transaction information and storing the transaction information passing the validity verification into a database; specifically, in the embodiment, the validity verification method mainly includes collecting fingerprint information or signatures of both the buyer and the seller for confirmation;
the second judgment module is used for traversing the transaction information in the database, judging whether the transaction information passes the check of the seller center server and the buyer center server, and if so, performing uplink sealing on the transaction information according to a block chain algorithm; because the electronic tickets are synchronously stored in the database after being checked by the central server, whether the electronic tickets pass the checks of both buyers and sellers can be judged by inquiring whether two identical electronic tickets exist in the database; if the judgment result is true, processing the transaction information by adopting the existing block chain algorithm, encrypting the transaction information by the second judgment module according to the hash operation, calculating to obtain a corresponding hash value, storing the hash value into a database, and generating a relation mapping table of the transaction information and the hash value, wherein the hash algorithm is the most algorithm used in the block chain, is widely used for constructing blocks and confirming the integrity of the transaction, and is the prior art, and the application of the method can avoid the tampering of the transaction information and improve the safety;
and the transmission module is used for synchronously forwarding the transaction information to each central server.
In the process of electronic ticket transaction, firstly, a receiving module defines a seller center server and a buyer center server according to acquired transaction information, and then a first judging module judges whether the electronic ticket transaction occurs in the same area, if so, the electronic ticket transaction can be directly settled and completed in the own center server; on the contrary, if the electronic ticket transaction is judged to be a cross-regional transaction, the transaction information is synchronously forwarded to the central servers of the buyer and the seller, and the transaction initiator of the two central servers checks the transaction information, so that the security of the cross-regional transaction of the electronic ticket can be improved to a certain extent; then, after the second judging module detects that both the buyer and the seller check the transaction information, the transaction information is subjected to chain linking and sealing according to a block chain algorithm; therefore, the characteristic that the block chain cannot be tampered is utilized, cross-region transaction between each central server is guaranteed to be not tampered, and the security of transaction information is greatly improved; and finally, the transaction information of the trans-regional transaction is synchronized to each central server through the transmission module for collection, so that the information of the trans-regional transaction can be traced.
A block chain based electronic ticket transaction method, a basic execution flow of the above system is shown in fig. 2, and the present embodiment specifically includes the following steps:
s1, acquiring the transaction information of the electronic ticket, and defining a seller center server and a buyer center server according to the transaction information;
s2, judging whether the electronic ticket transaction occurs in the same area, if so, completing the transaction; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server; specifically, the step S2 further includes a step S21, which is to extract the protocol address of the buyer center server and the protocol address of the buyer center server, respectively, and generate the first identification information and the second identification information; judging whether the two parties of the transaction are in the same area or not according to the first identification information and the second identification information;
s3, carrying out validity verification on the transaction information, and storing the transaction information passing the validity verification into a database;
s4, traversing the transaction information in the database, and judging whether the transaction information passes the verification of the seller center server and the buyer center server, if so, performing uplink sealing on the transaction information according to the blockchain algorithm;
s43, encrypting the transaction information through hash operation, and calculating to obtain a corresponding hash value;
s44, storing the hash value into a database, and generating a relation mapping table of the transaction information and the hash value;
and S5, synchronously forwarding the transaction information to each central server.
Example two
Compared with the first embodiment, the difference is that the second judgment module is further configured to query the transaction information in the database according to the preset time period, and stop continuing to query until two identical transaction information are searched in the database; the preset time period is 60s, which indicates that the second judgment module can automatically execute the query operation of the database once in 60s, judge whether two identical transaction information exist in the database, and stop querying at the moment; in another embodiment, the second determining module is further configured to record query times, and if the query times are greater than a preset time threshold, extend the time period; and the set time threshold is specifically 5 times, for example, when a certain transaction information query is executed, the central server a performs the query 6 times, and adjusts the time period to 70s to execute the query.
On the basis of the first embodiment, step S4 further includes step S41, querying transaction information in the database according to a preset time period, and stopping querying until two identical transaction information are found in the database; and S42, recording the query times, and if the query times are larger than a preset time threshold, prolonging the time period.
EXAMPLE III
Compared with the first embodiment, the difference is that the system further comprises a sealing module, which is used for encrypting the transaction request according to the hash operation, calculating to obtain a first hash value, generating a relational mapping table of the transaction request and the first hash value, and respectively storing the relational mapping table into the buyer center server and the seller center server; the transaction request comprises information of both transaction parties and transaction detail records. The sealing module is further configured to record storage time of the relational mapping table in the buyer center server and the seller center server, and if the storage time is greater than a preset time threshold (set to 3 days in this embodiment), only information of both parties of the transaction is reserved from the transaction detail record in the transaction request to generate a new transaction request; and encrypting the new transaction request according to the hash operation, calculating to obtain a second hash value, generating a relational mapping table of the new transaction request and the second hash value, and storing the relational mapping table in the third central server.
According to the scheme, the transaction detail records are still kept and the corresponding hash values are calculated in the buyer center server and the seller center server which have transaction operation, so that the integrity of data can be ensured, and the follow-up description and calling of the database are facilitated; and only the information of both transaction parties is stored in the third-party central server as a simplified transaction request, and the hash value is calculated instead of storing the transaction details which occupy larger space, so that the storage space of the central server can be saved.
In the prior art, after the transaction information is linked up synchronously, the ticket transaction information is backed up in all third-party central servers; and along with the continuous progress of the transaction, a large amount of transaction information can be accumulated in the third-party server, and a large amount of storage space is occupied. By adopting the scheme, the third-party central server which does not participate in the transaction does not store specific transaction details, only stores simple transaction object information, and can be convenient for subsequent extraction and identification of transaction information through the reference information, so that the storage space of the system can be saved.
The foregoing is merely an example of the present invention, and common general knowledge in the field of known specific structures and characteristics is not described herein in any greater extent than that known in the art at the filing date or prior to the priority date of the application, so that those skilled in the art can now appreciate that all of the above-described techniques in this field and have the ability to apply routine experimentation before this date can be combined with one or more of the present teachings to complete and implement the present invention, and that certain typical known structures or known methods do not pose any impediments to the implementation of the present invention by those skilled in the art. It should be noted that, for those skilled in the art, without departing from the structure of the present invention, several changes and modifications can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the practicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (10)

1. The utility model provides an electronic ticket transaction system based on block chain which characterized in that, is including setting up a plurality of central servers in each district, central server all includes receiving module, first judgement module, processing module, database, second judgement module and output module, wherein:
the receiving module is used for acquiring the transaction information of the electronic ticket and demarcating a seller center server and a buyer center server according to the transaction information;
the first judgment module is used for judging whether the electronic ticket transaction occurs in the same area, and if so, the transaction is completed; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server;
the processing module is used for carrying out validity verification on the transaction information and storing the transaction information passing the validity verification into a database;
the second judgment module is used for traversing the transaction information in the database, judging whether the transaction information passes the check of the seller center server and the buyer center server, and if so, performing uplink sealing on the transaction information according to a block chain algorithm;
and the transmission module is used for synchronously forwarding the transaction information to each central server.
2. The blockchain-based electronic ticket transaction system of claim 1, wherein: the first judging module is further used for respectively extracting the protocol address of the buyer center server and the protocol address of the seller center server to generate first identification information and second identification information; and judging whether the two parties of the transaction are in the same area or not according to the first identification information and the second identification information.
3. The blockchain-based electronic ticket transaction system of claim 1, wherein: the second judgment module is further used for encrypting the transaction information according to the hash operation, calculating to obtain a corresponding hash value, storing the hash value into the database, and generating a relational mapping table of the transaction information and the hash value.
4. The blockchain-based electronic ticket transaction system of claim 1, wherein: the second judging module is further configured to query the transaction information in the database according to a preset time period, and stop continuing to query until two identical transaction information are searched in the database.
5. The blockchain-based electronic ticket transaction system of claim 4, wherein: the second judgment module is further configured to record the number of times of query, and if the number of times of query is greater than a preset number threshold, extend the time period.
6. An electronic ticket transaction method based on a block chain is characterized by comprising the following steps:
s1, acquiring the transaction information of the electronic ticket, and defining a seller center server and a buyer center server according to the transaction information;
s2, judging whether the electronic ticket transaction occurs in the same area, if so, completing the transaction; otherwise, respectively forwarding the transaction information to the seller center server and the buyer center server;
s3, carrying out validity verification on the transaction information, and storing the transaction information passing the validity verification into a database;
s4, traversing the transaction information in the database, and judging whether the transaction information passes the verification of the seller center server and the buyer center server, if so, performing uplink sealing on the transaction information according to the blockchain algorithm;
and S5, synchronously forwarding the transaction information to each central server.
7. The block chain-based electronic ticket transaction method of claim 6, wherein: the step S2 further includes a step S21, which is to extract the protocol address of the buyer center server and the protocol address of the buyer center server, respectively, and generate first identification information and second identification information; and judging whether the two parties of the transaction are in the same area or not according to the first identification information and the second identification information.
8. The block chain-based electronic ticket transaction method of claim 6, wherein: the step S4 further includes a step S41, querying the transaction information in the database according to a preset time period, and stopping querying continuously until two identical transaction information are found in the database.
9. The block chain-based electronic ticket transaction method of claim 8, wherein: step S42 is further included after step S41, the number of queries is recorded, and if the number of queries is greater than a preset number threshold, the time period is extended.
10. The block chain-based electronic ticket transaction method of claim 6, wherein: the step S4 further includes step S43, encrypting the transaction information by hash operation, and calculating to obtain a corresponding hash value; and S42, storing the hash value into a database, and generating a relation mapping table of the transaction information and the hash value.
CN202011066000.3A 2020-09-30 2020-09-30 Electronic ticket transaction system and method based on blockchain Active CN112150150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011066000.3A CN112150150B (en) 2020-09-30 2020-09-30 Electronic ticket transaction system and method based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011066000.3A CN112150150B (en) 2020-09-30 2020-09-30 Electronic ticket transaction system and method based on blockchain

Publications (2)

Publication Number Publication Date
CN112150150A true CN112150150A (en) 2020-12-29
CN112150150B CN112150150B (en) 2023-08-08

Family

ID=73952356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011066000.3A Active CN112150150B (en) 2020-09-30 2020-09-30 Electronic ticket transaction system and method based on blockchain

Country Status (1)

Country Link
CN (1) CN112150150B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573442A (en) * 2014-12-29 2015-04-29 北京网秦天下科技有限公司 E-coupon generation method and device
JP2016053765A (en) * 2014-09-02 2016-04-14 株式会社バンダイナムコエンターテインメント Server system for virtual currency management, program, and virtual currency management system
US20170091733A1 (en) * 2014-04-11 2017-03-30 Cardlink Services Limited Sending bills
CN107016272A (en) * 2017-03-28 2017-08-04 深圳市源畅通科技有限公司 A kind of high anti-information of security performance loses telecommunications transaction login system
CN107025602A (en) * 2017-02-24 2017-08-08 杭州象链网络技术有限公司 A kind of financial asset transaction system construction method based on alliance's chain
CN107146101A (en) * 2017-04-24 2017-09-08 杭州趣链科技有限公司 A kind of universal electric issuing preferential tickets method based on block chain
TW201741955A (en) * 2016-05-18 2017-12-01 碩網資訊股份有限公司 An electronic ticket system using block chain and method thereof
CN107807984A (en) * 2017-10-31 2018-03-16 上海分布信息科技有限公司 A kind of block chain network of subregion and its method for realizing subregion common recognition
CN107918868A (en) * 2016-10-07 2018-04-17 华讯资讯服务有限公司 Electronic ticket transaction system combined with block chain and electronic ticket transaction method thereof
CN109087101A (en) * 2018-08-07 2018-12-25 北京三快在线科技有限公司 Transaction method of calibration, device, storage medium and electronic equipment
CN109345194A (en) * 2018-09-12 2019-02-15 北京东港瑞宏科技有限公司 A kind of electronic bill flow system
CN109754248A (en) * 2018-12-27 2019-05-14 江苏荣泽信息科技股份有限公司 A kind of innovation Securities management system based on block chain
CN109919687A (en) * 2019-03-26 2019-06-21 阿里巴巴集团控股有限公司 Method and system are checked and write off in electronic ticket granting based on block chain and real-name authentication
WO2019184296A1 (en) * 2018-03-28 2019-10-03 深圳市网心科技有限公司 Blockchain-based digital information transaction method, system and apparatus, and storage device
CN110533429A (en) * 2019-08-30 2019-12-03 北京金山云网络技术有限公司 Transaction endorsement method, apparatus and block chain network in block chain
KR20190136610A (en) * 2018-05-31 2019-12-10 박덕용 Apparatus and method for transaction processing using smart contract based on blockchain
CN110633329A (en) * 2019-10-12 2019-12-31 链农(深圳)信息科技有限公司 System and method for block chain transaction record
CN110738474A (en) * 2019-10-14 2020-01-31 普联软件股份有限公司 method and system for encrypting digital currency tokens based on SM2 cryptographic algorithm
US20200097862A1 (en) * 2018-09-26 2020-03-26 Mastercard International Incorporated Method and system for ownership verification via blockchain
CN111143886A (en) * 2019-12-20 2020-05-12 江苏荣泽信息科技股份有限公司 Government science and technology innovation service platform and method based on block chain
US20200193432A1 (en) * 2017-04-24 2020-06-18 Blocksettle Ab Method and system for settling a blockchain transaction
CN111461733A (en) * 2020-04-03 2020-07-28 银清科技有限公司 Account information query method, device and system based on block chain

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170091733A1 (en) * 2014-04-11 2017-03-30 Cardlink Services Limited Sending bills
JP2016053765A (en) * 2014-09-02 2016-04-14 株式会社バンダイナムコエンターテインメント Server system for virtual currency management, program, and virtual currency management system
CN104573442A (en) * 2014-12-29 2015-04-29 北京网秦天下科技有限公司 E-coupon generation method and device
TW201741955A (en) * 2016-05-18 2017-12-01 碩網資訊股份有限公司 An electronic ticket system using block chain and method thereof
CN107918868A (en) * 2016-10-07 2018-04-17 华讯资讯服务有限公司 Electronic ticket transaction system combined with block chain and electronic ticket transaction method thereof
CN107025602A (en) * 2017-02-24 2017-08-08 杭州象链网络技术有限公司 A kind of financial asset transaction system construction method based on alliance's chain
CN107016272A (en) * 2017-03-28 2017-08-04 深圳市源畅通科技有限公司 A kind of high anti-information of security performance loses telecommunications transaction login system
CN107146101A (en) * 2017-04-24 2017-09-08 杭州趣链科技有限公司 A kind of universal electric issuing preferential tickets method based on block chain
US20200193432A1 (en) * 2017-04-24 2020-06-18 Blocksettle Ab Method and system for settling a blockchain transaction
CN107807984A (en) * 2017-10-31 2018-03-16 上海分布信息科技有限公司 A kind of block chain network of subregion and its method for realizing subregion common recognition
WO2019184296A1 (en) * 2018-03-28 2019-10-03 深圳市网心科技有限公司 Blockchain-based digital information transaction method, system and apparatus, and storage device
KR20190136610A (en) * 2018-05-31 2019-12-10 박덕용 Apparatus and method for transaction processing using smart contract based on blockchain
CN109087101A (en) * 2018-08-07 2018-12-25 北京三快在线科技有限公司 Transaction method of calibration, device, storage medium and electronic equipment
CN109345194A (en) * 2018-09-12 2019-02-15 北京东港瑞宏科技有限公司 A kind of electronic bill flow system
US20200097862A1 (en) * 2018-09-26 2020-03-26 Mastercard International Incorporated Method and system for ownership verification via blockchain
CN109754248A (en) * 2018-12-27 2019-05-14 江苏荣泽信息科技股份有限公司 A kind of innovation Securities management system based on block chain
CN109919687A (en) * 2019-03-26 2019-06-21 阿里巴巴集团控股有限公司 Method and system are checked and write off in electronic ticket granting based on block chain and real-name authentication
CN110533429A (en) * 2019-08-30 2019-12-03 北京金山云网络技术有限公司 Transaction endorsement method, apparatus and block chain network in block chain
CN110633329A (en) * 2019-10-12 2019-12-31 链农(深圳)信息科技有限公司 System and method for block chain transaction record
CN110738474A (en) * 2019-10-14 2020-01-31 普联软件股份有限公司 method and system for encrypting digital currency tokens based on SM2 cryptographic algorithm
CN111143886A (en) * 2019-12-20 2020-05-12 江苏荣泽信息科技股份有限公司 Government science and technology innovation service platform and method based on block chain
CN111461733A (en) * 2020-04-03 2020-07-28 银清科技有限公司 Account information query method, device and system based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨帆;王燕霞;李国勇;周扬眉;王佩;: "成渝地区双城经济圈综合科技服务模式研究及应用示范", 中国基础科学, no. 02 *
陈思捷;王浩然;严正;沈泽宇;平健;张宁;康重庆;: "区块链价值思辨:应用方向与边界", 中国电机工程学报, no. 07 *

Also Published As

Publication number Publication date
CN112150150B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
AU756154B2 (en) Financial risk prediction system
CN109711836A (en) A kind of storage method of transaction, storage network and electronic equipment
US8191140B2 (en) Indicating a security breach of a protected set of files
DE69900169T2 (en) CREDIT CARD SYSTEM AND PROCEDURE
US10410214B2 (en) System and method for financial transaction validation
CN108009445B (en) Semi-centralized trusted data management system
JP2004532448A (en) Distributed quantum encrypted pattern generation and scoring
CN111198888B (en) Method and system for dynamically generating and supervising digital currency crown word number
CN112801778B (en) Alliance type bad asset block chain system
US8209755B2 (en) Signaling a security breach of a protected set of files
US20210365584A1 (en) Portable reputation brokering using linked blockchains and shared events
WO2007143059A2 (en) Monitoring a status of a database by placing a false identifier in the database
US20140129449A1 (en) Receiving an indication of a security breach of a protected set of files
WO2020000777A1 (en) Method and apparatus for acquiring individual credit information on the basis of block chain, and computer device
CN113919938A (en) Domestic buyer's warranty financing method, device, equipment and medium based on block chain
WO2019177788A1 (en) Detecting alterations of journal data structures
CN113674098A (en) Non-standard warehouse receipt pledge financing method, device and equipment based on block chain
CN108960827A (en) A kind of computer system executing the application of block chain
CN111815462A (en) Block chain based medical insurance claim settlement method, system and readable storage medium
US20070282723A1 (en) Monitoring a status of a database by placing a false identifier in the database
JPH0785172A (en) Transaction method in electronic small amount settlement system
CN112150150A (en) Block chain-based electronic ticket transaction system and method
CN112150160B (en) Electronic ticket transaction suggestion generation method and system
CN107516214B (en) Credit card anti-theft method based on block chain
EP3907968A1 (en) Method and system for blockchain intrusion prevention

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
GR01 Patent grant
GR01 Patent grant