CN112583870B - Ticket sale and check system and control method thereof - Google Patents

Ticket sale and check system and control method thereof Download PDF

Info

Publication number
CN112583870B
CN112583870B CN201910935336.XA CN201910935336A CN112583870B CN 112583870 B CN112583870 B CN 112583870B CN 201910935336 A CN201910935336 A CN 201910935336A CN 112583870 B CN112583870 B CN 112583870B
Authority
CN
China
Prior art keywords
ticket
block chain
block
contract
outbound
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.)
Active
Application number
CN201910935336.XA
Other languages
Chinese (zh)
Other versions
CN112583870A (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201910935336.XA priority Critical patent/CN112583870B/en
Priority to PCT/CN2020/118288 priority patent/WO2021057995A1/en
Publication of CN112583870A publication Critical patent/CN112583870A/en
Application granted granted Critical
Publication of CN112583870B publication Critical patent/CN112583870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The invention provides a ticket selling and checking system and a control method thereof, wherein the system comprises: the system comprises block chain node servers arranged in a plurality of areas, and a ticket machine and a ticket checking machine which correspond to the block chain node servers, wherein the block chain node servers are used for maintaining a block chain, and the block chain node servers are used for carrying out contract interaction with the ticket machine and the ticket checking machine and maintaining the block chain according to a contract interaction result. Therefore, the sale and check system provided by the embodiment of the invention has the advantages that the block chain link point server is introduced to carry out contract interaction with the ticket selling machine and the ticket checking machine, and the block chain is maintained according to the contract interaction result, so that the reliability and the safety of the automatic sale and check system are improved by utilizing the characteristics of decentralization of the block chain technology, data encryption and non-falsification of historical data.

Description

Ticket selling and checking system and control method thereof
Technical Field
The invention relates to the technical field of rail transit, in particular to a ticket selling and checking system and a control method of the ticket selling and checking system.
Background
At present, an Automatic Fare Collection (AFC) System for rail transit is widely applied to a dense region like a high-speed rail or a subway and the like.
The rail transit AFC system in the related art usually adopts three-level management of a central server, a station server and a station terminal, even a two-level management mode of the central server and the station terminal, namely, a centralized network management idea of central server management is adopted.
However, the related art has the following problems: 1) if the central server breaks down suddenly or the network is interrupted, the automatic fare collection system of all the sites is likely to be degraded to run, even be paralyzed; 2) if the storage of the central server is damaged, the line transaction information is possibly lost; 3) if the network security is insufficient, the network is vulnerable to network attacks or data is maliciously tampered.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, a first object of the present invention is to provide a ticket vending system that can improve the reliability and safety of an automatic ticket vending system.
A second object of the present invention is to provide a control method of a ticket vending and checking system.
In order to achieve the above object, a ticket selling and checking system provided in an embodiment of a first aspect of the present invention includes block link point servers disposed in multiple regions, and a ticket machine and a ticket checker corresponding to the block link point servers, where the block link node servers are configured to maintain a block chain, and the block link point servers are configured to perform contract interaction with the ticket machine and the ticket checker, and maintain the block chain according to a result of the contract interaction.
According to the ticket selling and checking system provided by the embodiment of the invention, the block chain node server is introduced to carry out contract interaction with the ticket selling machine and the ticket checking machine, and the block chain is maintained according to the contract interaction result, so that the reliability and the safety of the automatic ticket selling and checking system are improved by utilizing the characteristics of decentralization of a block chain technology, data encryption and non-falsification of historical data.
In addition, the fare collection system according to the above embodiment of the present invention may also have the following additional technical features:
according to an embodiment of the present invention, the ticket vending machine is configured to receive a ticket purchasing request of a ticket purchaser, generate a ticket selling contract request according to the ticket purchasing request, and send the ticket selling contract request to the corresponding block link node server, where the block link node server generates ticket selling block data according to the ticket selling contract, and issues the ticket selling block data to the block link to synchronize the block link.
According to an embodiment of the invention, the block link node server is further configured to send success information to the ticket machine after synchronizing the block chain to cause the ticket machine to generate a ticket.
According to an embodiment of the invention, the ticket checker is configured to read ticket information, generate an inbound contract request according to the ticket information, and send the inbound contract request to the block link point server, where the block link node server generates inbound block data according to the inbound contract, and issues the inbound block data to the block link to synchronize the block link.
According to an embodiment of the invention, the ticket checker is further configured to read ticket information, generate an outbound contract request according to the ticket information, and send the outbound contract request to the block chain node server, where the block chain node server generates ticket checking block data according to the outbound contract, and issues the ticket checking block data to the block chain to synchronize the block chain.
According to an embodiment of the invention, the fare collection system further comprises: a central management server; and the central management server is used for monitoring the operation condition of the block chain and maintaining and managing the network of the block chain and the contract.
In order to achieve the above object, a second aspect of the present invention provides a control method for a ticket vending and checking system, where the ticket vending and checking system includes block-link servers disposed in multiple regions, and ticket machines and ticket validators corresponding to the block-link servers, the control method includes: controlling the block chain link point server to perform contract interaction with the ticket vending machine and the ticket checking machine; and maintaining the block chain according to the contract interaction result.
According to the control method of the ticket selling and checking system, the block chain node server is controlled to carry out contract interaction with the ticket selling machine and the ticket checking machine, and the block chain is maintained according to the contract interaction result, so that the reliability and the safety of the automatic ticket selling and checking system are improved by using the characteristics of decentralization of a block chain technology, data encryption and incapability of tampering of historical data.
In addition, the control method of the ticket sale and check system according to the above embodiment of the present invention may also have the following additional technical features:
according to an embodiment of the present invention, the method for controlling a ticket vending and checking system further includes: receiving a ticket buying request of a ticket buyer, generating a ticket selling contract request according to the ticket buying request, and sending the ticket selling contract request to the corresponding block chain link server; and generating ticketing block data according to the ticketing contract, and issuing the ticketing block data to the block chain to synchronize the block chain.
According to an embodiment of the present invention, the method for controlling a ticket vending and checking system further includes: after the block chains are synchronized, success information is sent to control the ticket machine to generate tickets.
According to an embodiment of the present invention, the method for controlling a ticket vending and checking system further includes: reading ticket information, generating a pull-in contract request according to the ticket information, and sending the pull-in contract request to the block link point server; and generating inbound block data according to the inbound contract, and issuing the inbound block data to the block chain to synchronize the block chain.
According to an embodiment of the present invention, the method for controlling the fare collection system further includes: reading ticket information, generating an outbound contract request according to the ticket information, and sending the outbound contract request to the block link point server; and generating ticket checking block data according to the outbound contract, and issuing the ticket checking block data to the block chain to synchronize the block chain.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic diagram of a prior art blockchain network architecture;
FIG. 2 is a block diagram of a ticket vending system according to an embodiment of the present invention;
FIG. 3 is a block diagram of a ticket vending system according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a ticket purchasing process according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of an inbound ticket checking process according to an embodiment of the present invention;
FIG. 6 is a flow chart illustrating an outbound ticket checking process according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a ticketing system in accordance with one embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for controlling a ticket vending and checking system according to an embodiment of the present invention;
FIG. 9 is a flow chart illustrating a method for controlling a fare collection system according to an embodiment of the present invention;
FIG. 10 is a flow chart illustrating a method of controlling a fare collection system according to an embodiment of the invention;
fig. 11 is a flowchart illustrating a control method of the ticket vending system according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
It should be noted that, in the embodiment of the present invention, the adopted blockchain technology is a technology that uses a decentralized consensus mechanism to maintain a complete, distributed, and non-falsifiable ledger database, and can enable participants in a blockchain to implement a unified ledger system without establishing a trust relationship, where a block is a public ledger, and can be maintained at multiple points, and a chain is a timestamp and is not falsifiable.
Further, as shown in fig. 1, the blockchain network is composed of a plurality of blockchain nodes, and maintains consistency of network data through a consensus mechanism, and each application node can query or write application data through the blockchain node.
Specifically, the blockchain system has the following characteristics: 1) distributed decentralization, since each node in the blockchain must follow the same accounting transaction rules, which are based on cryptographic algorithms, and each transaction requires approval by other users within the network. Therefore, the blockchain system does not need the intervention of a third-party intermediary structure or a trust mechanism, and can be used for realizing the decentralization of the ticket selling and checking system in the embodiment of the invention; 2) the system does not need to be trusted, and in a block chain network, through self-constraint of an algorithm, any behavior of a malicious deception system can be rejected and inhibited by other nodes. Therefore, the block chain system cannot be subjected to network fraud attack from a single node, and the method can be used for improving the network security of the ticket selling and checking system in the embodiment of the invention; 3) the block chain system adopts a one-way hash algorithm, each newly generated block is strictly advanced according to a time line sequence, and any action of trying to invade or tamper the data information of the block chain system is extremely easy to trace back and is rejected by other nodes due to the irreversibility of time. Therefore, the data of the block chain system is encrypted and cannot be tampered, and the encryption method can be used for encrypting the ticket business data and tampering the ticket business historical data of the ticketing system.
A ticket sale and check system and a control method thereof according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a block diagram of a ticket vending and checking system according to an embodiment of the present invention. As shown in fig. 2, the ticket vending and checking system 100 includes: the system comprises block chain point servers 1 arranged in a plurality of areas, ticket vending machines 2 and ticket checking machines 3 corresponding to the block chain point servers 1.
Wherein a plurality of blockchain node servers 1 are used to maintain blockchains.
Specifically, the block chain link server 1 is used for contract interaction with the ticket machine 2 and the ticket checking machine 3, and maintaining the block chain according to the contract interaction result.
It should be noted that a contract is a computer protocol running on a blockchain network that propagates, verifies, or executes contracts in an informational manner, which allows for trusted transactions according to the contract without third parties, and the transactions are traceable and not reversible.
Specifically, as shown in fig. 3, the block link node server 1 may include a contract interaction interface, a block synchronization module, a block encapsulation module, and a block publishing module, where the contract interaction interface may be used for contract interaction (i.e., interaction of business functions) with the ticket vending machine 2 and the ticket checking machine 3; the block synchronization module may be configured to process a consensus mechanism to synchronize data on a block chain; the block packaging module can be used for packaging the data of the contract into a block structure; the block publishing module may be used to publish the packaged blocks into a block chain.
That is to say, compared with the central server central management and storage of the conventional automatic fare collection system in the prior art, the fare collection system in the embodiment of the present invention introduces a block chain technology, and maintains a block chain through a plurality of block chain node servers 1, where the plurality of block chain node servers 1 all have complete data backup, in other words, if any node including the central server fails, other nodes can still continue to operate in service, and similarly, if any node including the central server is damaged by a storage device, other nodes still hold complete data and cannot cause data loss, and meanwhile, by means of a one-way hash algorithm and time irreversibility of the block chain, the ticket data of the fare collection system can be subjected to source verification to prevent the ticket history data from being illegally tampered by people.
Further, in the embodiment of the present invention, the ticket vending machine 2 is configured to receive a ticket purchasing request of a ticket purchaser, generate a ticket selling contract request according to the ticket purchasing request, and send the ticket selling contract request to the corresponding block chain link server 1, where the block chain link server 1 generates ticket selling block data according to the ticket selling contract, and issues the ticket selling block data to the block chain to synchronize the block chain.
That is, in the embodiment of the present invention, the ticket sale and inspection system 100 receives a ticket purchase request of a ticket purchaser through the ticket vending machine 2, generates a ticketing contract request according to the ticket purchase request, and transmits the ticketing contract request to the corresponding block link server 1, wherein the block link server 1 generates ticketing block data according to the ticketing contract and distributes the ticketing block data to the block chains to synchronize the block chains, thereby synchronizing the ticketing block data with the block link servers 1 disposed in a plurality of regions.
Specifically, as shown in fig. 3, the ticket vending machine 2 may include a ticket contract processing module and a state contract processing module, and the ticket vending machine 2 may obtain a random ticket sequence, a private key and a public key according to a ticket purchase request through the ticket contract processing module, and generate a digital signature for a ticket transaction using the private key, further generate a ticket contract according to information such as a ticket serial number, the public key, the digital signature, and a ticket authority, and send the ticket contract to the corresponding block link server 1 to apply for the ticket transaction, and may obtain a block link network state through the state contract processing module.
Further, in the embodiment of the present invention, the block link node server 1 is further configured to send success information to the ticket machine 2 after synchronizing the block chain to make the ticket machine 2 generate the ticket.
That is, the ticket machine 2 generates a ticket after receiving success information of the block chain synchronized by the block chain node server 1.
Specifically, as shown in fig. 4, taking a ticket purchasing process according to an embodiment of the present invention as an example, a ticket purchaser performs a coin-feed ticket purchasing process on the ticket vending machine 2, and the ticket vending machine 2 performs the following steps:
and S10, the ticket selling machine receives the ticket buying request of the ticket buyer and confirms that the ticket buying condition is met.
The ticket machine generates a random ticket serial number, a private key and a public key, and generates a digital signature for the current ticket transaction using the private key S11.
And S12, the ticket vending machine generates a ticket selling contract request according to the information of the ticket serial number, the public key, the digital signature, the ticket authority and the like, and sends the ticket selling contract request to the block chain node server.
And S13, after receiving the contract request, the block chain node server calculates the contract content, packages the calculation result into block data and issues the block data to the block chain.
And S14, synchronizing the block data by the block link point servers arranged in the plurality of areas through a consensus mechanism.
And S15, the block chain node server feeds back success information to the ticket vending machine.
And S16, the ticket selling machine writes the generated random key information into the ticket carrier and draws the ticket.
Further, in the embodiment of the present invention, the ticket checker 3 is configured to read ticket information, generate an inbound contract request according to the ticket information, and send the inbound contract request to the blockchain node server 1, where the blockchain node server 1 generates inbound block data according to the inbound contract, and issues the inbound block data to the blockchain to synchronize the blockchain.
Specifically, in the embodiment of the present invention, the ticket sale and check system 100 may read ticket information through the ticket checker 3, generate an inbound contract request according to the ticket information, and transmit the inbound contract request to the block chain node server 1, where the block chain node server 1 generates inbound block data according to an inbound contract, and distributes the inbound block data to the block chain to synchronize the block chain, so that the block chain node servers 1 disposed in a plurality of areas synchronize the inbound block data.
Specifically, as shown in fig. 5, taking an inbound ticket checking process according to an embodiment of the present invention as an example, a ticket holder takes a ticket and enters the station through the ticket checker 3, and the ticket checker 3 performs the following steps:
and S20, the ticket checking machine reads the ticket information (such as the key and serial number information of the ticket) and inquires the authority of the ticket from the block link point server.
And S21, if the ticket meets the entrance condition, generating an entrance contract request according to the information such as the public key, the digital signature and the ticket state related to the ticket, and sending the entrance contract request to the block chain link point server.
And S22, after receiving the incoming contract request, the block chain link point server calculates the contract content, encapsulates the calculation result into block data, issues the block data to the block chain, and feeds back information to the ticket checker after the block data is successfully issued.
And S23, the ticket checking machine responds to the passing.
Further, in the embodiment of the present invention, the ticket checker 3 is further configured to read ticket information, generate an outbound contract request according to the ticket information, and send the outbound contract request to the blockchain node server 1, where the blockchain node server 1 generates ticket checking block data according to the outbound contract, and issues the ticket checking block data to the blockchain to synchronize the blockchain.
Specifically, in the embodiment of the present invention, the fare collection system 100 may further read ticket information through the ticket validator 3, generate an outbound contract request according to the ticket information, and transmit the outbound contract request to the blockchain node server 1, and the blockchain node server 1 generates outbound blockdata according to the outbound contract, and issues the outbound blockdata to the blockchain to synchronize the blockchain, thereby synchronizing the outbound blockchain with the blockchain node servers 1 disposed in the plurality of regions.
Specifically, as shown in fig. 6, taking an outbound ticket checking process of an embodiment of the present invention as an example, a ticket holder takes a ticket out of the station through the ticket checker 3, and the ticket checker 3 executes the following steps:
and S30, the ticket checking machine reads the ticket information (such as the key and serial number information of the ticket) and inquires the authority of the ticket from the block link point server.
And S31, if the ticket meets the outbound condition, generating an outbound contract request according to the information such as the public key, the digital signature and the ticket state related to the ticket, and sending the outbound contract request to the block chain link point server.
And S32, after receiving the outbound contract request, the block chain link point server calculates the contract content, encapsulates the calculation result into block data, issues the block data to the block chain, and feeds back information to the ticket checker after the block data is successfully issued.
And S33, the ticket checker responds to the clearance.
Specifically, as shown in fig. 4, the ticket checker 3 may include a ticket checking contract processing module and a state contract processing module, and the ticket checker may generate an entrance contract request according to the ticket information through the ticket checking contract processing module and transmit the entrance contract request to the block chain node server 1 to check the riding authority of the ticket, and after performing the contract interaction, eliminate the riding authority of the ticket, and may acquire the block chain network state through the state contract processing module.
Further, in an embodiment of the present invention, as shown in fig. 7, the fare collection system 100 further includes: a central management server 4.
The central management server 4 may be configured to monitor the operation condition of the blockchain, and maintain and manage a network and a contract of the blockchain.
Specifically, as shown in fig. 4, the central management server 4 may include a network management module and a blockchain node module, where the network management module and the blockchain node module are connected to a blockchain network, and the central management server 4 may monitor operation conditions of all devices in the blockchain network through the network management module, and may perform out-of-band upgrade on the blockchain network; the block link point module is capable of handling block chain traffic.
It should be understood that the central management server 4 has the highest authority to perform modification management on contract versions, in addition, the central management server 4 can synchronize to a complete ticket transaction book from a block chain, in other words, the central management server 4 can perform operations such as storage, management and settlement on ticket data, and the central management server 4 can serve as an interface between the ticket sale and check system 100 and a third-party system, that is, if the third-party system needs to access data in the block chain, data access can be realized through the central management server 4, so that business requirements of ticket clearing can be realized.
In summary, according to the ticket sale and check system provided by the embodiment of the invention, the block chain node server is introduced to perform contract interaction with the ticket vending machine and the ticket check machine, and the block chain is maintained according to the contract interaction result, so that the reliability and the safety of the automatic ticket sale and check system are improved by using the characteristics of decentralization of the block chain technology, data encryption and non-falsification of historical data.
Fig. 8 is a flowchart illustrating a control method of the ticket vending and checking system according to an embodiment of the present invention. As shown in fig. 8, the control method of the ticket vending and checking system includes:
and S101, controlling the block chain node server to carry out contract interaction with the ticket vending machine and the ticket checking machine.
And S102, maintaining the block chain according to the contract interaction result.
That is to say, after the control block chain node server performs contract interaction with the ticket vending machine and the ticket checking machine, the block chain is also maintained according to the contract interaction result, so that the synchronization of a plurality of block chain node servers is realized.
Further, in an embodiment of the present invention, as shown in fig. 9, the method for controlling a ticket vending and checking system further includes:
s201, receiving a ticket buying request of a ticket buyer, generating a ticketing contract request according to the ticket buying request, and sending the ticketing contract request to a corresponding block chain link point server.
S202, generating ticketing block data according to the ticketing contract, and issuing the ticketing block data to the block chain to synchronize the block chain.
That is, after receiving a ticket purchase request of a ticket purchaser, a ticketing contract request is generated according to the ticket purchase request, and the ticketing contract request is transmitted to a corresponding block link server, and further, ticketing block data is generated according to the ticketing contract and is issued to the block link to synchronize the block link, thereby realizing synchronization of the ticketing block data.
Further, in an embodiment of the present invention, as shown in fig. 9, the method for controlling a ticket vending and checking system further includes:
and S203, after the synchronous block chain, sending success information to control the ticket machine to generate the ticket.
That is, after the synchronization block chain, success information is transmitted to control the ticket machine to generate a ticket.
Further, in an embodiment of the present invention, as shown in fig. 10, the method for controlling a ticket vending and checking system further includes:
s301, reading the ticket information, generating a contract request for entering a station according to the ticket information, and sending the contract request for entering the station to the block link point server.
S302, the inbound block data is generated according to the inbound contract and is distributed to the block chain to synchronize the block chain.
That is, after the ticket information is read, an inbound contract request is also generated according to the ticket information and sent to the block link point server, and inbound block data is generated according to the inbound contract and issued to the block chain to synchronize the block chain, thereby achieving synchronization of the inbound block data.
Further, in an embodiment of the present invention, as shown in fig. 11, the method for controlling a ticket vending and checking system further includes:
s401, reading the ticket information, generating an outbound contract request according to the ticket information, and sending the outbound contract request to the block link point server.
S402, generating ticket checking block data according to the outbound contract, and issuing the ticket checking block data to the block chain to synchronize the block chain.
That is, after the ticket information is read, an outbound contract request is also generated according to the ticket information and sent to the block link point server, and outbound block data is generated according to the outbound contract and issued to the block chain to synchronize the block chain, thereby achieving synchronization of the outbound block data.
It should be noted that the control method of the ticket sale and check system according to the embodiment of the present invention is based on the aforementioned ticket sale and check system according to the foregoing embodiment of the present invention, that is, the control method of the ticket sale and check system according to the embodiment of the present invention corresponds to the specific embodiment of the ticket sale and check system according to the foregoing embodiment of the present invention one to one, and details are not described here again.
In summary, according to the control method of the ticket sale and check system in the embodiment of the present invention, the block chain node server is controlled to perform contract interaction with the ticket vending machine and the ticket check machine, and the block chain is maintained according to the contract interaction result, so that the block chain technology is used to centralize, encrypt data, and prevent historical data from being tampered, thereby improving the reliability and security of the automatic ticket sale and check system.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the invention.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may be directly contacting the second feature or the first and second features may be indirectly contacting each other through intervening media. Also, a first feature "on," "above," and "over" a second feature may be directly on or obliquely above the second feature, or simply mean that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (7)

1. The sale and check system is characterized by comprising block chain node servers arranged in a plurality of areas, ticket machines and ticket verifiers corresponding to the block chain node servers, wherein the block chain node servers are used for maintaining block chains,
the block chain link point server is used for carrying out contract interaction with the ticket vending machine and the ticket checking machine and maintaining the block chain according to the contract interaction result;
the ticket checking machine is used for reading ticket information, generating an inbound contract request according to the ticket information and sending the inbound contract request to the block chain node server, wherein the block chain node server generates inbound block data according to the inbound contract and issues the inbound block data to the block chain to synchronize the block chain, so that the block chain node servers arranged in a plurality of areas synchronize the inbound block data;
the ticket checking machine is further used for reading ticket information, generating an outbound contract request according to the ticket information, and sending the outbound contract request to the block link point server, wherein the block link node server generates outbound block data according to the outbound contract, and issues the outbound block data to the block link to synchronize the block link, so that the block link point servers arranged in a plurality of areas synchronize the outbound block data.
2. The fare collection system of claim 1,
the ticket vending machine is used for receiving a ticket purchasing request of a ticket purchaser, generating a ticket selling contract request according to the ticket purchasing request, and sending the ticket selling contract request to the corresponding block chain node server, wherein the block chain node server generates ticket selling block data according to the ticket selling contract and distributes the ticket selling block data to the block chain so as to synchronize the block chain.
3. The fare collection system of claim 2 wherein the block chain node server is further configured to send success information to the ticket machine to cause the ticket machine to generate tickets after synchronizing the block chain.
4. The fare collection system according to any one of claims 1-3, characterized in that the system further comprises: a central management server;
and the central management server is used for monitoring the operation condition of the block chain and maintaining and managing the network of the block chain and the contract.
5. A control method of a ticket sale and check system is characterized in that the ticket sale and check system comprises block chain point servers arranged in a plurality of areas, ticket machines and ticket verifiers corresponding to the block chain point servers, and the control method comprises the following steps:
controlling the block chain link point server to perform contract interaction with the ticket vending machine and the ticket checking machine;
maintaining the block chain according to the contract interaction result;
reading ticket information, generating a pull-in contract request according to the ticket information, and sending the pull-in contract request to the block link point server;
generating inbound block data according to the inbound contract, and issuing the inbound block data to the block chain to synchronize the block chain;
reading ticket information, generating an outbound contract request according to the ticket information, and sending the outbound contract request to the block link point servers to enable the block link point servers arranged in a plurality of areas to synchronize the inbound block data;
outbound block data are generated according to the outbound contract, and the outbound block data are issued to the block chain to synchronize the block chain, so that the block chain link point servers arranged in the plurality of areas synchronize the inbound block data.
6. The method of controlling a fare collection system according to claim 5, further comprising:
receiving a ticket buying request of a ticket buyer, generating a ticket selling contract request according to the ticket buying request, and sending the ticket selling contract request to the corresponding block chain link server;
and generating ticketing block data according to the ticketing contract, and issuing the ticketing block data to the block chain to synchronize the block chain.
7. The method of controlling a fare collection system according to claim 6, further comprising: after the synchronization of the block chains, successful information is sent to control the ticket machine to generate tickets.
CN201910935336.XA 2019-09-29 2019-09-29 Ticket sale and check system and control method thereof Active CN112583870B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910935336.XA CN112583870B (en) 2019-09-29 2019-09-29 Ticket sale and check system and control method thereof
PCT/CN2020/118288 WO2021057995A1 (en) 2019-09-29 2020-09-28 Fare collection system and control method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910935336.XA CN112583870B (en) 2019-09-29 2019-09-29 Ticket sale and check system and control method thereof

Publications (2)

Publication Number Publication Date
CN112583870A CN112583870A (en) 2021-03-30
CN112583870B true CN112583870B (en) 2022-09-09

Family

ID=75111257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910935336.XA Active CN112583870B (en) 2019-09-29 2019-09-29 Ticket sale and check system and control method thereof

Country Status (2)

Country Link
CN (1) CN112583870B (en)
WO (1) WO2021057995A1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274496A (en) * 2018-08-01 2019-01-25 何世容 A kind of electronic passenger ticket storage system and electronic passenger ticket storage method based on block chain

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201741955A (en) * 2016-05-18 2017-12-01 碩網資訊股份有限公司 An electronic ticket system using block chain and method thereof
WO2018039374A1 (en) * 2016-08-24 2018-03-01 Upgraded Inc. Digital securitization, obfuscation, policy and commerce of event tickets
CN107077682A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Method and device for inquiring state information of electronic ticket and block link point
CN107169826B (en) * 2017-05-09 2021-02-12 武汉凤链科技有限公司 Tourist attraction ticketing method and system based on block chain
CN107369008A (en) * 2017-07-17 2017-11-21 北京京东金融科技控股有限公司 For improving management method, the apparatus and system of bill business security
JP2019121147A (en) * 2017-12-31 2019-07-22 株式会社A.L.I.Technologies Method and system for ticket examination using block chain network
CN109905379A (en) * 2019-02-02 2019-06-18 江苏通付盾科技有限公司 Lottery rewarding method and device based on block chain
CN109949428A (en) * 2019-03-14 2019-06-28 深圳市雷凌广通技术研发有限公司 A kind of ticket-checked device for rail traffic based on block chain technology
AU2019204713A1 (en) * 2019-04-08 2019-06-27 Advanced New Technologies Co., Ltd. Transferring digital tickets based on blockchain networks
CN110262892B (en) * 2019-05-13 2020-02-14 特斯联(北京)科技有限公司 Ticket issuing method and device based on distributed storage data chain and data chain node

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274496A (en) * 2018-08-01 2019-01-25 何世容 A kind of electronic passenger ticket storage system and electronic passenger ticket storage method based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"区块链技术综述及铁路应用展望";王成;《中国铁路》;20170915;正文第4节 *

Also Published As

Publication number Publication date
WO2021057995A1 (en) 2021-04-01
CN112583870A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN106982203B (en) Robust ATM network system based on block chain technology and information processing method thereof
US11502848B2 (en) Blockchain entity, off-chain entity, certification device for blockchain operations and method for performing a cooperation between a blockchain entity and an off-chain entity
US7249102B1 (en) Original data circulation method, system, apparatus, and computer readable medium
CN111444273B (en) Data authorization method and device based on block chain
AU2010295202B2 (en) Trusted message storage and transfer protocol and system
US8850208B1 (en) Certificate crosschecking by multiple certificate authorities
JP2013118706A (en) Radio frequency identification (rfid) authentication and key distribution system therefor
CN112733178B (en) Cross-chain trust method, device, equipment and medium based on digital certificate authentication
US11356258B2 (en) Methods and systems for distributed cryptographically secured data validation
CN113767382A (en) Method and system for universal sourcing solution for blockchain supply chain applications
CN113169866A (en) Techniques to prevent collusion using simultaneous key distribution
CN110598375B (en) Data processing method, device and storage medium
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
CN112311779B (en) Data access control method and device applied to block chain system
CN111740841A (en) Method and device for generating and verifying tracing code
WO2008065345A1 (en) Cyber cash
CN115456613A (en) Digital collection transaction method and equipment
CN111353893A (en) Transaction data processing method and device based on block chain
CN116720839B (en) Financial information management method based on blockchain technology and supervision system thereof
CN117056899A (en) Electronic certificate generation method and device
CN112583870B (en) Ticket sale and check system and control method thereof
EP1221145A1 (en) Method and system for performing a transaction between a client and a server over a network
CN112163917B (en) Bill processing method and device based on blockchain, medium and electronic equipment
CN113869901B (en) Key generation method, key generation device, computer-readable storage medium and computer equipment
CN111769956B (en) Service processing method, 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
GR01 Patent grant
GR01 Patent grant