CN110322321B - Block chain-based electronic bill transfer method, device, equipment and medium - Google Patents

Block chain-based electronic bill transfer method, device, equipment and medium Download PDF

Info

Publication number
CN110322321B
CN110322321B CN201910576402.9A CN201910576402A CN110322321B CN 110322321 B CN110322321 B CN 110322321B CN 201910576402 A CN201910576402 A CN 201910576402A CN 110322321 B CN110322321 B CN 110322321B
Authority
CN
China
Prior art keywords
user
transfer
ticket
bill
electronic
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
CN201910576402.9A
Other languages
Chinese (zh)
Other versions
CN110322321A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910576402.9A priority Critical patent/CN110322321B/en
Publication of CN110322321A publication Critical patent/CN110322321A/en
Application granted granted Critical
Publication of CN110322321B publication Critical patent/CN110322321B/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/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses an electronic bill transfer method, device, equipment and medium based on a block chain. The method comprises the following steps: verifying the validity of the received bill transfer transaction request; the method comprises the steps that a bill transfer transaction request is generated when an electronic bill transfer event of a first user is monitored; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bills; writing the electronic ticket into the blockchain account of the second user in response to the received ticket transferee transaction request; wherein the ticket granting transaction request is generated upon monitoring the electronic ticket granting event of the second user. The embodiment of the invention realizes the real transfer of the electronic bill to the blockchain account of the transferee, simplifies the operation of the transferor, and improves the authenticity, the safety and the efficiency of the transfer of the electronic bill.

Description

Block chain-based electronic bill transfer method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to an electronic bill transfer method, device, equipment and medium based on a block chain.
Background
With the wide application of the internet to various fields of work and life, bill information such as presentation bills and movie tickets is electronized, and users purchase electronic bills through the internet instead of paper bills.
Currently, a user purchases an electronic ticket via the internet, and electronic ticket information is stored in the user's personal account. If the user does not have time to view the electronic bill after purchasing the electronic bill, the electronic bill is transferred to other users by refunding the bill based on the account of the user or issuing bill transfer information in other ways, such as sending the two-dimensional code of the electronic bill to the transferee user.
However, the current electronic ticket transfer method does not realize the real transfer of the electronic ticket, the electronic ticket exists in the personal account of the transferor user, and the transferee user only has the right of use. In addition, based on virtual electronic bill, the user does not have paper bill, and single user can't verify the truth to electronic bill, lets the user know the authenticity of bill hardly, leads to electronic bill's transfer success rate to hang down.
Disclosure of Invention
The embodiment of the invention provides an electronic bill transfer method, device, equipment and medium based on a block chain, which can realize the storage and transfer of electronic bills on line and ensure the safety of electronic bill transfer.
In a first aspect, embodiments of the present invention provide an electronic bill transfer method based on a block chain, which is performed by a block chain link point, and the method includes:
verifying the validity of the received bill transfer transaction request; wherein the ticket transfer transaction request is generated when an electronic ticket transfer event of a first user is monitored;
if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
writing the electronic ticket into a blockchain account of a second user in response to the received ticket-granted transaction request; wherein the ticket granted transaction request is generated upon monitoring an electronic ticket granted event of the second user.
In a second aspect, an embodiment of the present invention provides an electronic bill transfer method based on a block chain, which is executed by a service end, and the method includes:
when an electronic bill transfer event of a first user is monitored, a bill transfer transaction request is generated;
sending the ticket transfer transaction request to a blockchain node to instruct the blockchain node to perform the following: verifying the validity of the bill transfer transaction request; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
when an electronic bill yielding event of a second user is monitored, generating a bill yielding transaction request of the second user;
sending the ticket transferee transaction request to the blockchain node to instruct the blockchain node to write an electronic ticket into the second user's blockchain account.
In a third aspect, an embodiment of the present invention provides an electronic ticket transfer apparatus based on a block chain, where the apparatus is configured at a block chain node, and the apparatus includes:
the bill transfer verification module is used for verifying the validity of the received bill transfer transaction request; wherein the ticket transfer transaction request is generated when an electronic ticket transfer event of a first user is monitored;
the transfer information notification module is used for generating a bill transfer notification if the bill transfer transaction request is valid, and sending the bill transfer notification to other user nodes in the blockchain network for other users to acquire the transfer information of the electronic bill;
the ticket granting module is used for responding to the received ticket granting transaction request and writing the electronic ticket into the block chain account of the second user; wherein the ticket granted transaction request is generated upon monitoring an electronic ticket granted event of the second user.
In a fourth aspect, an embodiment of the present invention provides an electronic bill transfer apparatus based on a block chain, configured at a service end, where the apparatus includes:
the bill transfer monitoring module is used for generating a bill transfer transaction request when an electronic bill transfer event of a first user is monitored;
a transfer transaction sending module, configured to send the ticket transfer transaction request to a blockchain node to instruct the blockchain node to perform the following steps: verifying the validity of the bill transfer transaction request; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
the ticket-granting monitoring module is used for generating a ticket-granting transaction request of a second user when an electronic ticket-granting event of the second user is monitored;
and the block chain node sends the ticket transfer request to the block chain node to indicate the block chain node to write the electronic ticket into the block chain account of the second user.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for transferring electronic tickets based on blockchain according to any embodiment of the first aspect of the present invention, or implement the method for transferring electronic tickets based on blockchain according to any embodiment of the second aspect of the present invention.
In a sixth aspect, the embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the block chain based electronic ticket transfer method according to any embodiment of the first aspect of the present invention, or implements the block chain based electronic ticket transfer method according to any embodiment of the second aspect of the present invention when executed.
In the embodiment of the invention, the block chain link point verifies the validity of the received bill transfer transaction request initiated by the service end to which the first user belongs, if the verification is valid, a bill transfer notice is generated, and the bill transfer notice is sent to other user nodes in the block chain network, so that other users can acquire the transfer information of the electronic bill, thereby receiving the bill transfer transaction request initiated by the service end to which the second user belongs, and directly writing the electronic bill into the block chain account of the second user. According to the method and the device for electronic bill transfer, the transferred electronic bill information is notified to the user in the blockchain network through validity verification of the bill transfer transaction request, the electronic bill can be directly transferred to the blockchain account of the transferee as a digital asset when the user is granted, the electronic bill is truly transferred to the blockchain account of the transferee, repeated operation that the transferor sends the electronic bill to the transferee again after issuing the bill transfer transaction request is avoided, operation of the transferor is simplified, and authenticity, safety and efficiency of electronic bill transfer are improved.
Drawings
Fig. 1 is a schematic architecture diagram of an electronic bill transfer system based on a block chain according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a lightweight node according to an embodiment of the present invention;
fig. 3 is a flowchart of an electronic bill transfer method based on a block chain according to an embodiment of the present invention;
fig. 4 is a flowchart of an electronic bill transfer method based on a block chain according to a second embodiment of the present invention;
fig. 5 is a flowchart of an electronic bill transfer method based on a block chain according to a third embodiment of the present invention;
fig. 6 is a flowchart of an electronic bill transfer method based on a block chain according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic bill transfer device based on a block chain according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic bill transfer device based on a block chain according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
To clearly describe the technical solution of the embodiment, an application class system architecture diagram based on a block chain is first described. Fig. 1 is a schematic architecture diagram of an electronic bill transfer system based on a block chain according to an embodiment of the present invention. Referring to fig. 1, the system includes a blockchain network for storing and managing electronic tickets and their related information, which may include at least lightweight nodes. The lightweight node is used as a node in the blockchain network, can directly send a request to the blockchain, and receives transaction data fed back by the blockchain network or other blockchain nodes. A certain node in the blockchain network may serve as a service application platform, such as an electronic ticket service platform, to provide service services for users in the blockchain network. The block chain network can also comprise user nodes, the user nodes can be used as channels for communication between the block chain and external equipment, can receive information sent by the external equipment, generate transaction processing requests and transmit the transaction processing requests to the block chain network, and transmit information inquired from the block chain to the external equipment; the user node can also be in communication connection with a service application platform of the non-block chain node, and the service application platform is in communication connection with external equipment. Meanwhile, the user node is used as a node in the block chain network, and can process the transaction processing request in the block chain.
In particular, a lightweight node is a blockchain network node that does not store or store portions of block data and transaction data. The lightweight node configured in the terminal device 210 in fig. 2 provides an upper layer interactive interface for data interaction with the application client through the upper layer interactive interface. The lightweight node can realize functions through software and is integrated in an operating system. The upper layer interactive interface can be an interface for the lightweight node to directly interact with the client, and can also be an interface configured through an operating system.
The upper layer interactive interface can obtain client interactive data from the application program client. Illustratively, the client interaction data may be corresponding functional requirement data generated by triggering the functional options of the application client by the user; it is also possible that the application client receives other applications in the terminal device 210 or receives the function requirement data transmitted by other terminal devices. Functional requirement data can be understood as control commands relating to the blockchain network and as transaction requests relating to entity data.
The lightweight node configured in the terminal device 210 further provides a network interaction interface for performing data interaction with other blockchain network nodes 220 in the blockchain network through the network interaction interface.
Wherein the client interaction data is associated with blockchain network node interaction data. Illustratively, the blockchain network node interaction data may be client interaction data; the client interactive data can also be converted into client interactive data associated data in a form which can be transmitted by a block chain network; but also data fed back by the blockchain network received based on the client interaction data or client interaction data associated data.
It should be noted that the lightweight node may be loaded in the operating system of the terminal device 210, so as to directly drive hardware, such as a CPU, a storage device, a network communication device, and the like, through a driver of the terminal device 210 to implement a corresponding function; the lightweight node may also be installed in the terminal device 210 as an independent third-party application, and the corresponding function is implemented through the operation of the third-party application.
The lightweight node is provided with the deployment data of the block chain, so that the lightweight node can participate in the transaction request interaction process of the block chain, but not store all block data, and when the lightweight node needs to inquire the transaction data in the block, the lightweight node can acquire the transaction data from other nodes in real time and verify the transaction data in a set mode.
It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 3 is a flowchart of an electronic bill transfer method based on a blockchain according to an embodiment of the present invention, where this embodiment is applicable to an online transfer situation of an electronic bill, and the method is executed by a blockchain link node, and may be executed by an electronic bill transfer apparatus based on a blockchain configured at a blockchain node, where the apparatus may be implemented in a software and/or hardware manner, and is preferably an electronic device carrying the blockchain node.
The method specifically comprises the following steps:
s310, verifying the validity of the received bill transfer transaction request; wherein the ticket transfer transaction request is generated upon monitoring an electronic ticket transfer event of the first user.
In an embodiment of the present invention, the first user refers to a user who has purchased an electronic ticket and performs ticket transfer. The ticket transfer transaction request refers to a request for initiating a ticket transfer transaction to the blockchain network, and the ticket transfer transaction request is generated by a service end used by the first user. Specifically, the service end is a platform for providing an electronic ticketing service, and may be a client installed on a user terminal device and interacting with a user, and correspondingly, the user terminal device is used as a lightweight node in a block chain network; or a background server of a client interacted by a user, wherein the server is used as a service application platform in a block chain node mode.
The first user has a blockchain account, and the user does not have a strict corresponding relation with a node in the blockchain network. That is, one user may correspond to several nodes, one node may also bear several users, and there is no fixed corresponding relationship between nodes and users. The user can manage the account data of the user through the public key and the private key of the user, and correspondingly, the bill transfer transaction request at least can include the first user address, namely the information of the blockchain account of the first user, the transferred electronic bill, the transferred quantity, the transferred price and the like.
In this embodiment, the blockchain account of the first user writes the electronic bill to be transferred, and when the business end to which the first user belongs monitors the electronic bill transfer requirement of the first user, a bill transfer transaction request is generated and transmitted to the blockchain network. Correspondingly, other nodes in the block chain network receive the ticket transfer transaction request broadcast in the block chain network, and can perform validity verification on the ticket transfer transaction request.
Specifically, different from the conventional verification method of the block link point for the transaction processing request, the block link point in this embodiment may directly verify the validity of the ticket transfer transaction request according to the electronic ticket voucher purchasing data stored in the block chain, that is, the electronic ticket to be transferred by the first user is used as a digital asset, and it is verified whether the electronic ticket to be transferred actually exists in the block chain account of the first user, that is, whether the electronic ticket exists is verified. The block chain node is prevented from calculating the account information of the first user block chain again according to the bill transfer transaction request, and the process of comparing the calculation result with the information in the received bill transfer transaction request is avoided, but whether the electronic bill exists or not is directly verified. If the verification exists, the validity of the ticket transfer transaction and the authenticity of the electronic bill required to be transferred are verified.
Illustratively, a block chain node receiving a bill transfer transaction request may invoke an authentication intelligent contract to determine whether an electronic bill to be transferred exists in a block chain account of a first user; and if so, determining that the bill transfer transaction request is valid. And if the bill transfer transaction request is invalid, rejecting the bill transfer transaction request, and writing the failed transfer record of the first user as transaction data into the block chain.
Correspondingly, before the validity verification of the received ticket transfer transaction request, the purchase process of the electronic ticket by the first user is also included. Specifically, when monitoring a first ticket purchasing event of the first user, the service end to which the first user belongs generates a ticket issuing transaction request, and transmits the ticket issuing transaction request to the block chain network. Correspondingly, other nodes in the blockchain network receive the ticketing transaction request broadcast in the blockchain network, call the ticketing intelligent contract to generate an electronic bill, and write the generated electronic bill into the blockchain account of the first user. And writing the purchase voucher data of the electronic bill generated according to the first user information into the block chain as transaction data.
And S320, if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bills.
In the embodiment of the invention, the block chain node point which receives the bill transfer transaction request verifies the validity of the bill transfer transaction request, and if the bill transfer transaction request is valid, that is, the electronic bill to be transferred exists in the block chain account of the first user, and the validity of the bill transfer transaction and the authenticity of the electronic bill to be transferred are verified, the block chain node point may generate a bill transfer notification for notifying other users in the block chain network of knowing the transfer information of the electronic bill.
In particular, the validation of validity and the generation of the notification may be performed by any blockchain node participating in the blockchain network, preferably a blockchain generation node. For example, the blockchain generation node may generate a ticket transfer notification when the ticket transfer transaction request is validated, and transmit the ticket transfer notification into the blockchain network, so that other nodes in the blockchain network terminate validation of the ticket transfer transaction request and receive the ticket transfer notification. In this embodiment, the node generating the ticket transfer notification is not limited, the validation of the ticket transfer transaction request may be performed by an intelligent contract, and the node generating the ticket transfer notification may be determined by a consensus mechanism.
In this embodiment, the other user nodes may be lightweight nodes, for example, are installed at a client of the user terminal, and show the assignment information in the ticket assignment notification in a client page; or the other user nodes can be servers of the service application platform, and the servers push the transfer information in the bill transfer notification to the client of each user in the form of messages or notifications to be displayed. Wherein, the bill transfer notice at least comprises transferred electronic bills, transferred quantity, transfer price and other transfer information. Accordingly, after receiving the transfer information of the electronic ticket, other users in the blockchain network can decide whether to purchase the electronic ticket transferred in the blockchain.
S330, in response to the received bill granting transaction request, writing the electronic bill into the blockchain account of the second user; wherein the ticket granted transaction request is generated upon detection of an electronic ticket granted event of the second user.
In an embodiment of the present invention, the second user is a user who purchases an electronic ticket transferred in the blockchain network. A ticket-granted transaction request refers to a request to initiate a ticket-granted transaction to the blockchain network, the ticket-granted transaction request being generated by a service used by the second user. The service end used by the second user may be a client or a server of the service application platform, which is the same as the service end used by the first user. The ticket grant transaction request at least includes information of the second user address, i.e. the blockchain account of the second user, the granted electronic ticket, the granted amount, the paid element, and the like.
In this embodiment, when the service end to which the second user belongs monitors an electronic ticket granting event of the second user, a ticket granting transaction request of the second user is generated and transmitted to the blockchain network. Correspondingly, other nodes in the blockchain network receive the request of the ticket granting transaction broadcast in the blockchain network and directly write the electronic ticket into the blockchain account of the second user. For example, the blockchain generation node directly responds to the request of the ticket-granted transaction, writes the electronic ticket granted by the second user into the blockchain account of the second user, and clears the electronic ticket transferred from the blockchain account of the first user. The electronic ticket to be transferred may be a brand new electronic ticket purchased by the first user, or may be a second-hand electronic ticket that is given by the first user in the blockchain network.
In the embodiment, the electronic ticket associated with the ticket transfer transaction request which is validated effectively is directly written into the blockchain account of the second user, so that the second user purchases the electronic ticket from the first user after the blockchain is validated effectively, and the first user sends the electronic ticket to the second user, namely, multiple interactions between the second user and the first user are avoided. The electronic bill is not required to be sent to the transferee by the transferor, and the transfer market of the electronic bill is standardized.
In this embodiment, for traceability of the electronic ticket, transfer voucher data of the electronic ticket is generated according to the first user information and the second user information, and the transfer voucher data of the electronic ticket is written into the block chain as transaction data.
According to the technical scheme of the embodiment, the block chain link point verifies the validity of the received bill transfer transaction request initiated by the service end to which the first user belongs, if the verification is valid, a bill transfer notice is generated, and the bill transfer notice is sent to other user nodes in the block chain network, so that other users can obtain the transfer information of the electronic bill, and therefore the bill transfer transaction request initiated by the service end to which the second user belongs is received, and the electronic bill is directly written into the block chain account of the second user. According to the method and the device for electronic bill transfer, the transferred electronic bill information is notified to the user in the blockchain network through validity verification of the bill transfer transaction request, the electronic bill can be directly transferred to the blockchain account of the transferee as a digital asset when the user is granted, the electronic bill is truly transferred to the blockchain account of the transferee, repeated operation that the transferor sends the electronic bill to the transferee again after issuing the bill transfer transaction request is avoided, operation of the transferor is simplified, and authenticity, safety and efficiency of electronic bill transfer are improved.
Example two
On the basis of the first embodiment, the embodiment provides a preferred embodiment of the block chain-based electronic bill transfer method, which can link the data of the purchasing and transferring links of the electronic bill, thereby realizing the traceability of the electronic bill and facilitating the user to obtain the authenticity of the electronic bill. Fig. 4 is a flowchart of an electronic bill transfer method based on a block chain according to a second embodiment of the present invention, and as shown in fig. 4, the method specifically includes the following steps:
s410, receiving a ticket issuing transaction request generated when a business end monitors a first ticket purchasing event of a first user; and calling the intelligent contract for drawing the ticket to generate an electronic ticket, and writing the generated electronic ticket into the blockchain account of the first user.
In the embodiment of the invention, the service end is a platform for providing the electronic ticket service, and can be a client end which is arranged on the user terminal equipment and interacts with a user, and correspondingly, the user terminal equipment is used as a lightweight node in a block chain network; or a background server of a client interacted by a user, wherein the server is used as a service application platform in a block chain node mode.
In this embodiment, the first user first performs the purchasing action of the electronic ticket before owning or reselling the electronic ticket, that is, the first user currently refers to the user who is purchasing the electronic ticket. The ticket making transaction request refers to a request of a user for initiating a transaction for purchasing an electronic ticket to the blockchain network.
Specifically, when the first user purchases a ticket for the first time, if the service end to which the first user belongs monitors the first ticket purchase event according to the interaction behavior of the first user, for example, the behavior of the first user controlling an electronic ticket purchase page loaded by the client, or the behavior of the first user submitting purchase information, etc., a ticket issue transaction request is generated and transmitted to the blockchain network. Accordingly, other nodes in the blockchain network may receive the ticketing transaction request transmitted in the blockchain network. The ticketing transaction request can include ticket information such as a blockchain account of the first user, a designated use place of the electronic ticket to be ticketed, an applicable crowd type and the like.
In this embodiment, the intelligent contract for drawing tickets is configured in the block chain network in advance, and is used for limiting the ticket drawing rule of the electronic ticket and processing the ticket drawing transaction request. After receiving the request of the ticketing transaction, the blockchain node calls a ticketing intelligent contract, generates an electronic bill purchased by the first user according to a ticketing rule of the electronic bill in the ticketing intelligent contract, for example, generates bill information such as a unique bill number and a valid period of a use place specified by the electronic bill, and writes the electronic bill into a blockchain account of the first user as a digital asset of the first user.
And S420, writing the purchase voucher data of the electronic bill generated according to the first user information into the block chain as transaction data.
In the embodiment of the invention, each electronic bill can be used as an independent digital asset based on the property of the block chain, and the transaction process of the asset needs a full-flow chain. Correspondingly, the voucher purchasing data of the electronic bill is generated according to the first user information, and the voucher purchasing data can comprise information of a designated use place of the electronic bill, a unique ticket number of the designated use place, an applicable crowd type, an effective period, a transaction price, a transaction time, a first user block chain account and the like. Therefore, the data of the purchase voucher is written into the block chain as transaction data, and the electronic bill can be traced according to the data of the purchase voucher stored in the block chain, so that the real safety of the electronic bill is ensured, and the information of the electronic bill is prevented from being tampered.
S430, verifying the validity of the received bill transfer transaction request; wherein the ticket transfer transaction request is generated upon monitoring an electronic ticket transfer event of the first user.
In the embodiment of the invention, the blockchain account of the first user writes the electronic bill to be transferred, and when the business terminal to which the first user belongs monitors the electronic bill transfer requirement of the first user, a bill transfer transaction request is generated and transmitted to the blockchain network. Correspondingly, other nodes in the block chain network receive the ticket transfer transaction request broadcast in the block chain network, and can perform validity verification on the ticket transfer transaction request.
Optionally, invoking an authentication intelligent contract, and determining whether an electronic bill to be transferred exists in the blockchain account of the first user; and if so, determining that the bill transfer transaction request is valid.
In this embodiment, the verification intelligent contract is a verification rule configured in advance in the blockchain network and used for limiting the validity of the ticket transfer transaction request, and verifies the authenticity of whether the transfer user associated with the ticket transfer transaction request has the electronic ticket to be transferred. And after receiving the bill transfer transaction request, the blockchain node calls a verification intelligent contract, and verifies whether the electronic bill to be transferred exists in the blockchain account of the first user according to a verification rule for verifying the validity of the bill transfer transaction request in the verification intelligent contract. And if the electronic bill to be transferred exists in the blockchain account of the first user, determining that the bill transfer transaction request is valid.
Optionally, if the bill transfer transaction request is invalid, the bill transfer transaction request is rejected, and the failed transfer record of the first user is written into the block chain as transaction data.
In this embodiment, if it is verified that the electronic ticket to be transferred does not exist in the blockchain account of the first user, it is determined that the ticket transfer transaction request is invalid. For ticket transfer transaction requests that are validated to be invalid, the block chain node may reject the ticket transfer transaction request. And determining a failed transfer record of the first user according to the first user information and the invalid bill transfer transaction request, and writing the failed transfer record serving as transaction data into a block chain. The transfer failure record may include the blockchain account of the first user, invalid electronic ticket information, transfer price, transfer failure time, and other information.
In the embodiment, through the cochain processing of the failed transfer record, not only is the authenticity of electronic bill transfer ensured, but also the failed transfer label can be added to the first user according to the failed transfer record, or the electronic bill transfer credit degree of the first user is reduced, so that when the first user initiates the bill transfer transaction request again, the bill transfer transaction request of the first user is emphatically verified, even the bill transfer transaction request of the first user is directly rejected, and the invalid application of the first user on the amount is avoided.
And S440, if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bills.
S450, in response to the received bill granting transaction request, writing the electronic bill into the blockchain account of the second user; wherein the ticket granted transaction request is generated upon detection of an electronic ticket granted event of the second user.
And S460, generating transfer voucher data of the electronic bill according to the first user information and the second user information, and writing the transfer voucher data of the electronic bill into the block chain as transaction data.
In an embodiment of the present invention, transfer voucher data of the electronic ticket is generated according to the first user information and the second user information, and the transfer voucher data may include information such as a first user blockchain account, a second user blockchain account, a transfer time, and voucher purchase data of the transferred electronic ticket. The transfer voucher data is written into the block chain as transaction data, and the electronic bills can be traced according to the transfer voucher data stored in the block chain, so that the real safety of the electronic bills is ensured, and the information of the electronic bills is prevented from being tampered.
According to the technical scheme of the embodiment, the block chain node point responds to the ticket issuing transaction request of the first user according to the ticket issuing intelligent contract, writes the generated electronic ticket into the block chain account of the first user, links the purchasing voucher data to complete the purchasing of the electronic ticket. And the block chain node responds to the bill transfer transaction request of the first user according to the verification intelligent contract, and generates a bill transfer notice for the bill transfer transaction request which is verified to be effective so as to inform other users in the block chain network of the transfer information of the electronic bill. And finally, the block chain node point responds to the bill transference transaction request of the second user, writes the electronic bill into the block chain account of the second user, links the transfer certificate data and completes the transfer of the electronic bill.
According to the embodiment of the invention, the electronic bill purchasing and transferring link data is linked, so that the user can conveniently obtain the authenticity of the electronic bill, the electronic bill is conveniently transferred, and the traceability of the electronic bill is realized. In the transfer process, the transferred electronic bill information is notified to the user in the blockchain network through the validity verification of the bill transfer transaction request, the electronic bill can be directly transferred to the blockchain account of the transferee as a digital asset when the user is granted, the electronic bill is truly transferred to the blockchain account of the transferee, the repeated operation that the transferor sends the electronic bill to the transferee again after issuing the bill transfer transaction request is avoided, the operation of the transferor is simplified, and the authenticity, the safety and the efficiency of electronic bill transfer are improved.
EXAMPLE III
Fig. 5 is a flowchart of an electronic bill transfer method based on a block chain according to a third embodiment of the present invention, where this embodiment is applicable to the case of online transfer of an electronic bill, and the method is executed by a service end, and may be executed by an electronic bill transfer apparatus based on a block chain configured at the service end, where the apparatus may be implemented in a software and/or hardware manner, and is preferably an electronic device, such as a client or a server, that carries an electronic bill service platform. The method specifically comprises the following steps:
and S510, generating a bill transfer transaction request when the electronic bill transfer event of the first user is monitored.
In the embodiment of the invention, the service end is a platform for providing the electronic ticket service, and can be a client end which is arranged on the user terminal equipment and interacts with a user, and correspondingly, the user terminal equipment is used as a lightweight node in a block chain network; or a background server of a client interacted by a user, wherein the server is used as a service application platform in a block chain node mode.
In this embodiment, the electronic ticket transfer event refers to an event that a user transfers an electronic ticket to another user in the blockchain network through a service end, and the electronic ticket to be transferred may be a brand new electronic ticket purchased by a first user or a second-hand electronic ticket that the first user is given in the blockchain network. In view of the fact that the service end can monitor and respond to the operation behaviors of the user in real time, the service end can monitor the electronic bill transfer event of the first user through the behaviors that the first user controls the electronic bill transfer page loaded by the client side or the first user submits transfer information and the like.
In this embodiment, when the service end monitors an electronic bill transfer event of the first user, a bill transfer transaction request is generated. The ticket transfer transaction request is a request for initiating a ticket transfer transaction to the blockchain network, and the ticket transfer transaction request at least may include information such as a first user address, namely a blockchain account of the first user, transferred electronic tickets, a transferred amount, a transferred price and the like.
S520, sending a request of the ticket data transfer transaction to the block chain node to indicate the block chain node to execute the following steps: verifying the validity of the bill transfer transaction request; and if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bills.
In the embodiment of the invention, the service end transmits the generated bill transfer transaction request to the block chain. Correspondingly, the block chain node receives the bill transfer transaction request broadcast in the block chain network, and verifies the validity of the bill transfer transaction request. The block chain node can call a verification intelligent contract, and whether the electronic bill to be transferred exists in the block chain account of the first user is determined according to a verification rule specified by the verification intelligent contract. And if the blockchain node determines that the electronic bill to be transferred exists in the blockchain account of the first user, determining that the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to acquire the transfer information of the electronic bill.
S530, when the electronic bill granting event of the second user is monitored, a bill granting transaction request of the second user is generated.
In an embodiment of the present invention, the electronic ticket acceptance event refers to an acceptance event of an electronic ticket assigned by another user in the block chain network by a user through a service end. In view of the fact that the service end can monitor and respond to the operation behaviors of the user in real time, the service end can monitor the electronic bill transference event of the second user through the actions of controlling the electronic bill transference page loaded by the client side by the second user, or submitting the second-hand bill purchasing information by the second user.
In this embodiment, when the service end monitors an electronic ticket granting event of the first user, a ticket granting transaction request is generated. The ticket transference transaction request is a request for initiating a ticket transference transaction to the blockchain network, and the ticket transference transaction request at least includes information of a second user address, namely, a blockchain account of the second user, an electronic ticket to be transfered, a transfered amount, a paid element and the like.
And S540, sending a ticket granted transaction request to the block chain node to indicate the block chain node to write the electronic ticket into the block chain account of the second user.
In the embodiment of the invention, the service end transmits the generated bill assigned transaction request to the block chain. Correspondingly, the block chain node responds to the bill transfer transaction request, writes the electronic bill transferred from the second user into the block chain account of the second user, and clears the transferred electronic bill in the block chain account of the first user.
According to the technical scheme of the embodiment, the business end generates the corresponding transaction processing request by monitoring the electronic bill transfer event and the electronic bill transference event of the user and transmits the transaction processing request to the block chain network, so that the block chain nodes receiving the transaction processing request verify and transfer the electronic bills. According to the method and the device, the validity of the bill transfer transaction request sent by the service end is verified through the block chain link points, and the valid electronic bills are written into the block chain account of the transferee, so that the electronic bills are truly transferred into the block chain account of the transferee, repeated operation that the transferor sends the electronic bills to the transferee again after issuing the bill transfer transaction request is avoided, the operation of the transferor is simplified, and the authenticity, the safety and the efficiency of electronic bill transfer are improved.
Example four
On the basis of the third embodiment, the embodiment provides a preferred embodiment of the block chain-based electronic bill transfer method, which can link the data of the purchasing and transferring links of the electronic bill, thereby realizing the traceability of the electronic bill and facilitating the user to obtain the authenticity of the electronic bill. Fig. 6 is a flowchart of an electronic bill transfer method based on a block chain according to a fourth embodiment of the present invention, and as shown in fig. 6, the method specifically includes the following steps:
s610, when the first ticket purchasing event of the first user is monitored, a ticket drawing transaction request is generated.
In the specific embodiment of the present invention, the first ticket purchasing event refers to a ticket purchasing event performed by a user on a brand new electronic ticket through a service end, that is, the electronic ticket purchased by the first user is a ticket that has not been generated in the block chain network. In view of the fact that the service end can monitor and respond to the operation behaviors of the user in real time, the service end can monitor the electronic bill transfer event of the first user through the behaviors that the first user controls an electronic bill purchase page loaded by the client side or the first user submits purchase information and the like.
In this embodiment, when the service end monitors a first ticket purchasing event of the first user, a ticket issuing transaction request is generated. The ticket making transaction request refers to a request of a user for initiating a transaction for purchasing an electronic ticket to the blockchain network. The ticketing transaction request at least comprises the block chain account of the first user, the appointed use place of the electronic ticket to be ticketed, the applicable crowd type and other ticketing information.
And S620, sending a ticket issuing transaction request to the block chain node to indicate the block chain node to call the ticket issuing intelligent contract to generate an electronic bill, and writing the generated electronic bill into the block chain account of the first user.
In the embodiment of the invention, the service end transmits the generated ticket issuing transaction request to the block chain. Correspondingly, the block chain node responds to the ticket issuing transaction request, generates an electronic ticket and writes the electronic ticket into the block chain account of the first user. The block chain node can call the intelligent ticket issuing contract, and generates the electronic ticket purchased by the first user according to the ticket issuing rule of the electronic ticket in the intelligent ticket issuing contract and the ticket information included in the ticket issuing transaction request.
And S630, generating a bill transfer transaction request when the electronic bill transfer event of the first user is monitored.
S640, sending a request for a data transfer transaction to the block link point to instruct the block link point to execute the following steps: verifying the validity of the bill transfer transaction request; and if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bills.
S650, generating a bill granting affair request of the second user when the electronic bill granting event of the second user is monitored.
And S660, sending a ticket granted transaction request to the block chain node to indicate the block chain node to write the electronic ticket into the block chain account of the second user.
According to the technical scheme of the embodiment, the business end generates the corresponding ticket outlet transaction request by monitoring the first ticket purchasing event of the user and transmits the corresponding ticket outlet transaction request to the block chain network, so that the block chain link points receiving the ticket outlet transaction request generate and write the electronic tickets, and the first user can transfer the electronic tickets owned by the first user in the block chain network. The embodiment of the invention generates the electronic bill to be purchased based on the block chain property, thereby realizing the traceability of the electronic bill. The method and the device have the advantages that the validity verification is carried out on the bill transfer transaction request sent by the service end through the block chain link point, and the effective electronic bills are written into the block chain account of the transferee, so that the electronic bills are truly transferred to the block chain account of the transferee, the repeated operation that the transferor sends the electronic bills to the transferee again after issuing the bill transfer transaction request is avoided, the operation of the transferor is simplified, and the authenticity, the safety and the efficiency of electronic bill transfer are improved.
EXAMPLE five
Fig. 7 is a schematic structural diagram of an electronic bill transfer apparatus based on a block chain according to a fifth embodiment of the present invention, where this embodiment is applicable to an online transfer situation of an electronic bill, and the apparatus is configured at a block chain node, so that an electronic bill transfer method based on a block chain according to any embodiment of the present invention can be implemented. The device specifically comprises the following steps:
the bill transfer verification module 710 is used for verifying the validity of the received bill transfer transaction request; wherein the ticket transfer transaction request is generated when an electronic ticket transfer event of a first user is monitored;
an assignment information notification module 720, configured to generate a bill assignment notification if the bill assignment transaction request is valid, and send the bill assignment notification to other user nodes in the blockchain network, so that other users can obtain assignment information of the electronic bill;
a ticket transference module 730 for writing the electronic ticket to the blockchain account of the second user in response to the received ticket transference transaction request; wherein the ticket granted transaction request is generated upon monitoring an electronic ticket granted event of the second user.
Optionally, the ticket transfer validation module 710 is specifically configured to:
calling a verification intelligent contract, and determining whether the electronic bill to be transferred exists in the blockchain account of the first user;
and if so, determining that the bill transfer transaction request is valid.
Optionally, the ticket transfer validation module 710 is specifically configured to:
after the validity of the received bill transfer transaction request is verified, if the bill transfer transaction request is invalid, rejecting the bill transfer transaction request, and writing the failed transfer record of the first user as transaction data into a block chain.
Further, the apparatus further includes a credential data uplink module 740, specifically configured to:
after the electronic bill is written into the blockchain account of the second user, generating transfer voucher data of the electronic bill according to the first user information and the second user information;
and writing the transfer voucher data of the electronic bill as transaction data into a block chain.
Further, the apparatus further includes a ticket issuing module 750, specifically configured to:
before the validity verification is carried out on the received bill transfer transaction request, receiving a bill drawing transaction request generated when a business end monitors that a first ticket purchasing event of a first user is carried out;
and calling the intelligent contract for drawing the ticket to generate the electronic ticket, and writing the generated electronic ticket into the blockchain account of the first user.
Further, the credential data chaining module 740 is further configured to:
and writing the purchase voucher data of the electronic bill generated according to the first user information into the block chain as transaction data.
According to the technical scheme of the embodiment, through the mutual cooperation of the functional modules, the functions of monitoring a ticket purchasing event for the first time, generating a ticket issuing transaction request, transmitting the ticket issuing transaction request, generating an electronic ticket, writing the electronic ticket into a blockchain account, verifying the validity of the ticket transfer transaction request, notifying ticket transfer information, responding the ticket transfer transaction request and the like are realized. According to the method and the device for electronic bill transfer, the transferred electronic bill information is notified to the user in the blockchain network through validity verification of the bill transfer transaction request, the electronic bill can be directly transferred to the blockchain account of the transferee as a digital asset when the user is granted, the electronic bill is truly transferred to the blockchain account of the transferee, repeated operation that the transferor sends the electronic bill to the transferee again after issuing the bill transfer transaction request is avoided, operation of the transferor is simplified, and authenticity, safety and efficiency of electronic bill transfer are improved.
EXAMPLE six
Fig. 8 is a schematic structural diagram of an electronic bill transfer apparatus based on a block chain according to a sixth embodiment of the present invention, where this embodiment is applicable to an online transfer situation of an electronic bill, and the apparatus is configured at a service end, and can implement an electronic bill transfer method based on a block chain according to any embodiment of the present invention. The device specifically comprises the following steps:
the bill transfer monitoring module 810 is used for generating a bill transfer transaction request when an electronic bill transfer event of a first user is monitored;
a transfer transaction sending module 820, configured to send the ticket transfer transaction request to a blockchain node to instruct the blockchain node to perform the following: verifying the validity of the bill transfer transaction request; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
the ticket granting monitoring module 830 is configured to generate a ticket granting transaction request of a second user when an electronic ticket granting event of the second user is monitored;
an assigned transaction sending module 840, configured to send the ticket assigned transaction request to the blockchain node to instruct the blockchain node to write the electronic ticket into the blockchain account of the second user.
Further, the apparatus further comprises:
a ticket issuing monitoring module 850, configured to generate a ticket issuing transaction request when a first ticket purchasing event of the first user is monitored;
and the ticketing transaction sending module 860 is configured to send the ticketing transaction request to a blockchain node to instruct the blockchain node to invoke a ticketing intelligent contract to generate the electronic ticket, and write the generated electronic ticket into the blockchain account of the first user.
According to the technical scheme of the embodiment, through the mutual cooperation of the functional modules, the functions of monitoring the ticket purchasing event for the first time, generating the ticket issuing transaction request, transmitting the ticket issuing transaction request, obtaining the electronic ticket, transferring the electronic ticket, giving the electronic ticket and the like are realized. According to the method and the device for electronic bill transfer, the transferred electronic bill information is notified to the user in the blockchain network through validity verification of the bill transfer transaction request, the electronic bill can be directly transferred to the blockchain account of the transferee as a digital asset when the user is granted, the electronic bill is truly transferred to the blockchain account of the transferee, repeated operation that the transferor sends the electronic bill to the transferee again after issuing the bill transfer transaction request is avoided, operation of the transferor is simplified, and authenticity, safety and efficiency of electronic bill transfer are improved.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention, and fig. 9 shows a block diagram of an exemplary apparatus suitable for implementing the embodiment of the present invention. The device shown in fig. 9 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
The device 12 shown in fig. 9 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention. The device 12 is preferably an electronic device carrying a blockchain node, or an electronic device or server carrying an electronic ticket service platform.
As shown in FIG. 9, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors 16, a system memory 28, and a bus 18 that connects the various system components (including the system memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing by executing at least one program of the programs stored in the system memory 28, for example, implementing the method for transferring electronic tickets based on blockchain executed by blockchain nodes according to the first aspect of the present invention, or implementing the method for transferring electronic tickets based on blockchain executed by a service end according to the second aspect of the present invention.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the program, when executed by a processor, can implement the method for transferring electronic tickets based on block chains, performed by block chain link points in any of the above embodiments, where the method includes:
verifying the validity of the received bill transfer transaction request; wherein the ticket transfer transaction request is generated when an electronic ticket transfer event of a first user is monitored;
if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
writing the electronic ticket into a blockchain account of a second user in response to the received ticket-granted transaction request; wherein the ticket granted transaction request is generated upon monitoring an electronic ticket granted event of the second user.
An eighth embodiment of the present invention further provides a computer-readable storage medium, where a computer program (or referred to as computer-executable instructions) is stored thereon, and when the program is executed by a processor, the method for transferring an electronic ticket based on a blockchain, performed by a service end in any of the above embodiments, may be implemented, where the method includes:
when an electronic bill transfer event of a first user is monitored, a bill transfer transaction request is generated;
sending the ticket transfer transaction request to a blockchain node to instruct the blockchain node to perform the following: verifying the validity of the bill transfer transaction request; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
when an electronic bill yielding event of a second user is monitored, generating a bill yielding transaction request of the second user;
sending the ticket transferee transaction request to the blockchain node to instruct the blockchain node to write an electronic ticket into the second user's blockchain account.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. The electronic bill transfer method based on the block chain is characterized by being executed by block chain link points, and comprises the following steps:
verifying the validity of the received bill transfer transaction request; the method comprises the steps that a bill transfer transaction request is generated when an electronic bill transfer event of a first user is monitored, and the electronic bill is generated by an intelligent contract;
if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
writing the electronic ticket into a blockchain account of a second user in response to the received ticket-granted transaction request; wherein the ticket granted transaction request is generated upon monitoring an electronic ticket granted event of the second user.
2. The method of claim 1, wherein validating the received ticket transfer transaction request comprises:
calling a verification intelligent contract, and determining whether the electronic bill to be transferred exists in the blockchain account of the first user;
and if so, determining that the bill transfer transaction request is valid.
3. The method of claim 1, wherein after said validating the received ticket transfer transaction request, further comprising:
and if the bill transfer transaction request is invalid, rejecting the bill transfer transaction request, and writing the failed transfer record of the first user as transaction data into a block chain.
4. The method of claim 1, further comprising, after the writing the electronic ticket to the blockchain account of the second user:
generating transfer voucher data of the electronic bill according to the first user information and the second user information;
and writing the transfer voucher data of the electronic bill as transaction data into a block chain.
5. The method of claim 1, wherein prior to said validation of the received ticket transfer transaction request, further comprising:
receiving a ticket issuing transaction request generated by a service end when monitoring the first ticket purchasing event of the first user;
and calling the intelligent contract for drawing the ticket to generate the electronic ticket, and writing the generated electronic ticket into the blockchain account of the first user.
6. The method of claim 5, further comprising, after the writing the generated electronic ticket to the blockchain account of the first user:
and writing the purchase voucher data of the electronic bill generated according to the first user information into the block chain as transaction data.
7. The electronic bill transfer method based on the block chain is characterized by being executed by a service end, and comprises the following steps:
when an electronic bill transfer event of a first user is monitored, a bill transfer transaction request is generated, wherein the electronic bill is generated by an intelligent contract;
sending the ticket transfer transaction request to a blockchain node to instruct the blockchain node to perform the following: verifying the validity of the bill transfer transaction request; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
when an electronic bill yielding event of a second user is monitored, generating a bill yielding transaction request of the second user;
sending the ticket transferee transaction request to the blockchain node to instruct the blockchain node to write an electronic ticket into the second user's blockchain account.
8. The method of claim 7, further comprising:
generating a ticket issuing transaction request when the first ticket purchasing event of the first user is monitored;
and sending the ticket issuing transaction request to a blockchain node to instruct the blockchain node to call a ticket issuing intelligent contract to generate the electronic ticket, and writing the generated electronic ticket into a blockchain account of the first user.
9. Electronic bill transfer device based on block chain, characterized in that, dispose the block chain node, the device includes:
the bill transfer verification module is used for verifying the validity of the received bill transfer transaction request; the method comprises the steps that a bill transfer transaction request is generated when an electronic bill transfer event of a first user is monitored, and the electronic bill is generated by an intelligent contract;
the transfer information notification module is used for generating a bill transfer notification if the bill transfer transaction request is valid, and sending the bill transfer notification to other user nodes in the blockchain network for other users to acquire the transfer information of the electronic bill;
the ticket granting module is used for responding to the received ticket granting transaction request and writing the electronic ticket into the block chain account of the second user; wherein the ticket granted transaction request is generated upon monitoring an electronic ticket granted event of the second user.
10. The electronic bill transfer device based on the block chain is characterized in that the device is configured at a service end and comprises:
the bill transfer monitoring module is used for generating a bill transfer transaction request when an electronic bill transfer event of a first user is monitored, wherein the electronic bill is generated by an intelligent contract;
a transfer transaction sending module, configured to send the ticket transfer transaction request to a blockchain node to instruct the blockchain node to perform the following steps: verifying the validity of the bill transfer transaction request; if the bill transfer transaction request is valid, generating a bill transfer notice, and sending the bill transfer notice to other user nodes in the blockchain network for other users to obtain the transfer information of the electronic bill;
the ticket-granting monitoring module is used for generating a ticket-granting transaction request of a second user when an electronic ticket-granting event of the second user is monitored;
and the block chain node sends the ticket transfer request to the block chain node to indicate the block chain node to write the electronic ticket into the block chain account of the second user.
11. An electronic bill transfer apparatus based on a block chain, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the blockchain-based electronic ticket transfer method of any one of claims 1-6 or the blockchain-based electronic ticket transfer method of any one of claims 7-8.
12. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, implements the blockchain-based electronic ticket transfer method according to any one of claims 1 to 6, or implements the blockchain-based electronic ticket transfer method according to any one of claims 7 to 8.
CN201910576402.9A 2019-06-28 2019-06-28 Block chain-based electronic bill transfer method, device, equipment and medium Active CN110322321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910576402.9A CN110322321B (en) 2019-06-28 2019-06-28 Block chain-based electronic bill transfer method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910576402.9A CN110322321B (en) 2019-06-28 2019-06-28 Block chain-based electronic bill transfer method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN110322321A CN110322321A (en) 2019-10-11
CN110322321B true CN110322321B (en) 2022-02-22

Family

ID=68121312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910576402.9A Active CN110322321B (en) 2019-06-28 2019-06-28 Block chain-based electronic bill transfer method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN110322321B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110910136A (en) * 2019-11-18 2020-03-24 腾讯科技(深圳)有限公司 Data processing method and device based on block chain and storage medium
CN112884437B (en) * 2021-02-20 2023-12-08 京东科技信息技术有限公司 Asset management method and device
CN113657877A (en) * 2021-02-20 2021-11-16 支付宝(杭州)信息技术有限公司 Asset management method, system and device based on block chain

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170123766A (en) * 2016-04-29 2017-11-09 삼성에스디에스 주식회사 Terminal and system for preventing redundancy transaction, and method using the same
TW201741955A (en) * 2016-05-18 2017-12-01 碩網資訊股份有限公司 An electronic ticket system using block chain and method thereof
CN107369008A (en) * 2017-07-17 2017-11-21 北京京东金融科技控股有限公司 For improving management method, the apparatus and system of bill business security
CN108805711A (en) * 2018-05-28 2018-11-13 肖鑫茹 A kind of block chain issuance of shares purchase transfer system

Also Published As

Publication number Publication date
CN110322321A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN110322321B (en) Block chain-based electronic bill transfer method, device, equipment and medium
CN110458562B (en) Bill reimbursement method, device and equipment and computer storage medium
JP5346958B2 (en) Online shop management using instant messaging system
KR101254358B1 (en) Self-owned resources interactive method and processing method of electronic trade information and system
CN101025812A (en) Apparatus and method for performing secure financial transactions in an instant messaging environment
US20150074785A1 (en) Using service request ticket for multi-factor authentication
US11687942B2 (en) Method and apparatus for processing account of blockchain network, and storage medium
US20130191172A1 (en) Ticket transfer
JP2016510456A (en) System and method for processing off-network transaction messages
EP4358000A1 (en) Digital currency-based payment method, platform, terminal, and payment system
JP2004030633A (en) Method for electronically tracking electronic device
US20130031182A1 (en) Resolving an exchange of objects in a communication network
US11922410B2 (en) Online decentralized identity verification for a multi-sided network
TW201945989A (en) System of smart ticket, method for issuing ticket and computer-readable storage device
CN112037056B (en) Transaction processing method, device, equipment and storage medium
CN111105304B (en) Data processing method and device, storage medium and electronic terminal
CN114066451A (en) Method and system for managing fund transaction and electronic equipment
JP4472679B2 (en) Settlement ticket processing server, system, method and program thereof
CN111641523B (en) User data management method, device, system and storage medium
KR102462614B1 (en) Method and management server for processing on mobile for joining members
JP2006260070A (en) Automobile auction system, provision method for automobile auction service, and automobile auction program
JP2022011103A (en) Escrow processing method, system and program using virtual currency
RU24028U1 (en) PAYMENT SYSTEM IN THE TELECOMMUNICATION NETWORK
CN111489139A (en) Order payment method, device, equipment and medium based on big data
CN117808579A (en) Resource issuing method, device, equipment and storage 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