CN112132588B - Data processing method and device based on block chain, routing equipment and storage medium - Google Patents

Data processing method and device based on block chain, routing equipment and storage medium Download PDF

Info

Publication number
CN112132588B
CN112132588B CN202011347124.9A CN202011347124A CN112132588B CN 112132588 B CN112132588 B CN 112132588B CN 202011347124 A CN202011347124 A CN 202011347124A CN 112132588 B CN112132588 B CN 112132588B
Authority
CN
China
Prior art keywords
terminal
bill
target
data
digital certificate
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
CN202011347124.9A
Other languages
Chinese (zh)
Other versions
CN112132588A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011347124.9A priority Critical patent/CN112132588B/en
Publication of CN112132588A publication Critical patent/CN112132588A/en
Application granted granted Critical
Publication of CN112132588B publication Critical patent/CN112132588B/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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/045Payment circuits using payment protocols involving tickets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • G06Q20/38215Use of certificates or encrypted proofs of transaction rights
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The embodiment of the invention discloses a data processing method, a device, a routing device and a storage medium based on a block chain, wherein the method comprises the following steps: receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data and comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type of the target bill data; acquiring a service authority of a first terminal, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network; if the target service type is the service type contained in the service authority of the first terminal, the bill generation request is sent to the block chain network, so that the block chain network generates target bill data according to the sending record, and the second terminal acquires the target bill data from the block chain network, and the ordered execution of the bill data of different service types in the block chain network can be ensured.

Description

Data processing method and device based on block chain, routing equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus based on a block chain, a routing device, and a storage medium.
Background
The blockchain is essentially a shared database, and data or information stored in the blockchain has the characteristics of being unforgeable, public and transparent, and the like, so that the blockchain is more widely applied to production and life of users based on the characteristics so as to ensure the safety of data storage. Currently, in order to ensure the ordered progress of the bill data of different service types, different block chains are often used to carry and execute different service types, for example, different block chains may be used to respectively implement the service of the invoicing type and the service of tax approval. However, as the number of service types related to the ticket data increases, the number of block chains to be built increases, which results in the cost of executing the service related to the ticket data, and increases the maintenance cost of the block chains.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, routing equipment and a storage medium based on a block chain, which can ensure the ordered execution of bill data of different service types in a block chain network when bill data of multiple service types are realized by one block chain.
In one aspect, an embodiment of the present invention provides a data processing method, including:
receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type to which the target bill data belongs;
acquiring service authority of the first terminal, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network, and the block chain network is used for generating bill data of multiple service types;
and if the target service type is the service type contained in the service authority of the first terminal, sending the bill generation request to the blockchain network so that the blockchain network generates the target bill data according to the sending record and the second terminal acquires the target bill data from the blockchain network.
In another aspect, an embodiment of the present invention provides a data processing apparatus, including:
the receiving unit is used for receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and the bill generation request comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type to which the target bill data belongs;
an obtaining unit, configured to obtain a service right of the first terminal, where the service right includes at least one service type opened by a block chain network for the first terminal, and the block chain network is used to generate ticket data of multiple service types;
a sending unit, configured to send the ticket generation request to the blockchain network if the target service type is a service type included in the service permission of the first terminal, so that the blockchain network generates the target ticket data according to the sending record, and the second terminal obtains the target ticket data from the blockchain network.
In another aspect, an embodiment of the present invention provides a routing device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports the routing device to execute the foregoing method, where the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps:
receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type to which the target bill data belongs;
acquiring service authority of the first terminal, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network, and the block chain network is used for generating bill data of multiple service types;
and if the target service type is the service type contained in the service authority of the first terminal, sending the bill generation request to the blockchain network so that the blockchain network generates the target bill data according to the sending record and the second terminal acquires the target bill data from the blockchain network.
In still another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which program instructions are stored, and when the program instructions are executed by a processor, the computer-readable storage medium is configured to perform the data processing method according to the first aspect.
In the embodiment of the present invention, when receiving a ticket generation request sent by a first terminal, a routing device may obtain a service right that a blockchain network opens for the first terminal, so as to determine a service type of ticket data that the first terminal may request the blockchain network to generate, and when the routing device determines that the service right that the blockchain network opens for the first terminal includes a target service type of target ticket data that the first terminal requests to generate, the routing device sends the ticket generation request of the first terminal to the blockchain network, so that the blockchain network generates the target ticket data based on a sending record of an electronic resource sent by a second terminal included in the ticket generation request to the first terminal, so that the second terminal may obtain the target ticket data from the blockchain network, so that the blockchain network may implement processing of the ticket data of each service type through a built chain, the utilization rate of resources in the blockchain network is effectively improved, the building and maintenance cost of the blockchain network is reduced, the target bill data generated based on the blockchain network can be prevented from being tampered, and the authenticity and reliability of the generated target bill data are guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1a is a schematic diagram of a data processing system according to an embodiment of the present invention;
FIG. 1b is a schematic diagram of a data processing system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of a data processing method provided by an embodiment of the invention;
fig. 3a is a schematic diagram of a digital certificate provided by an embodiment of the present invention;
FIG. 3b is a flow chart of generating target ticket data according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart diagram of a data processing method provided by an embodiment of the invention;
FIG. 5a is a schematic diagram of a method for performing a ticket lookup according to an embodiment of the present invention;
FIG. 5b is a schematic diagram of a method for performing a ticket lookup according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a data processing apparatus provided by an embodiment of the present invention;
fig. 7 is a schematic block diagram of a routing device according to an embodiment of the present invention.
Detailed Description
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The Blockchain (Blockchain) is essentially a decentralized database, which is a series of data blocks associated by using a cryptographic method, and each data block (or block) contains information of a batch of network transactions, which is used for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer. The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the valid request after consensus is completed on storage, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, and transmits the encrypted service information to a shared account (network communication) completely and consistently, and records and stores the encrypted service information. The embodiment of the invention provides a data processing method, which can process bill generation requests of different service types through a block chain built in a block chain network, thereby effectively reducing the number of the block chains built in the block chain network, further reducing the maintenance cost of the block chain network and effectively improving the utilization rate of the block chain built in the block chain network.
The block chain network described in the embodiment of the present invention is a network including only one block chain, and since the block chain network can process the ticket generation requests of different service types sent by the terminal, in order to ensure the ordered generation of the ticket data requested by each terminal (e.g., the first terminal), the block chain network can open different service types for different terminals in advance, that is, one terminal (e.g., the first terminal) can only request the block chain network to execute the ticket data of the service type opened by the terminal, so that the terminal can be prevented from randomly requesting the block chain network to generate the ticket data, and the behavior of requesting the ticket generation by the terminal can be effectively normalized. In an embodiment, when requesting the blockchain network to generate the target ticket data of the target service type, the first terminal may first send the ticket generation request to the routing device, and when determining that the target service type requested by the first terminal is a service type opened by the blockchain network for the first terminal, the routing device forwards the ticket generation request to the blockchain network, so that the blockchain network generates the target ticket data of the target service type. As shown in fig. 1a, it is a data processing system to which the data processing method is applied, and the data processing system includes a first terminal 10, a second terminal 11, a routing device 12, and a block chain network 13.
The first terminal 10, the second terminal 11 and the routing device 12 may be a node device in the blockchain network 13, or may not be a node device in the blockchain network 13, but the first terminal 10 and the second terminal 11 are both connected to the routing device 12, and the routing device 12 establishes a communication connection with the blockchain network 13. In one embodiment, the first terminal 10 and the second terminal 11 may establish a communication connection with the routing device 12 directly as shown in fig. 1a, or the first terminal 10 and the second terminal 11 may establish a communication connection with the routing device 12 through a Simple Payment Verification (SPV) node 14 as shown in fig. 1b, wherein the first terminal 10 is connected with the routing device 12 through an SPV1, and the second terminal 11 is connected with the routing device 12 through an SPV 2. In a specific implementation, if the first terminal 10 needs to generate target ticket data of a target service type for the second terminal 11, the first terminal 10 may send a ticket generation request to the routing device 12, and after receiving the ticket generation request, the routing device 12 may obtain a service right that the blockchain network 13 opens for the first terminal 10, so as to determine at least one service type that the blockchain network 13 allows the first terminal 10 to request.
In one embodiment, if the first terminal 10 sends a ticket generating request after performing resource replacement with the second terminal 11, it is understood that the ticket generating request indicates that the target traffic type to which the target ticket data to be generated belongs is an invoice traffic type, and besides, the traffic types that can be supported by the blockchain network 13 include: declare a type of service, a type of attestation, etc. Since the second terminal 11 can establish connection with the routing device 12 through the SPV2, the blockchain network 13 performs consensus processing on the generated target ticket data after generating the target ticket data based on the ticket generation request sent by the first terminal, and stores the target ticket data after the consensus processing is completed in a new block, and the SPV2 connected to the second terminal 11 can read the target ticket data from the new block after detecting that the blockchain network 13 generates a new block, so that the second terminal can timely acquire the target ticket data from the blockchain network after generating the target ticket data in the blockchain network.
Please refer to fig. 2, which is a schematic flowchart of a data processing method according to an embodiment of the present invention, where the data processing method may be executed by the routing device, where the routing device may be a terminal device or may also be a server device, and is not limited in this embodiment of the present invention, as shown in fig. 2, the method may include:
s201, receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and the bill generation request comprises a sending record of electronic resources sent by a second terminal to the first terminal and a target service type of the target bill data.
In one embodiment, the ticket generation request is generated by the first terminal and sent to the routing device by the second terminal after resource replacement is performed by the first terminal and the second terminal, where the resource replacement performed between the first terminal and the second terminal may be, for example, the second terminal sending an electronic resource to the first terminal to obtain an article resource from the first terminal, and then the first terminal needs to generate target ticket data based on the received electronic resource after obtaining the electronic resource sent by the second terminal from the second terminal, specifically, the target ticket data is invoice data, and then a target service type to which the target ticket data belongs is the invoice service type. It will be appreciated that the invoice data may be provided as a receipt for the first terminal and a receipt for the second terminal, and the first and second terminals may then make tax declarations based on the invoice data. In an embodiment, the ticket generation request may also be generated and sent to the routing device by the first terminal when the first terminal requests the ticket management device to complete tax declaration and request tax certification from the ticket management device, so that it can be understood that target ticket data requested to be generated by the first terminal is the tax certification, a target service type of the target ticket data is a certification service type, and since a block chain network can support different service types, the routing device can process ticket requests of different service types using the block chain network.
In an embodiment, in order to ensure the ordered proceeding of requests of each terminal device (or terminal) for ticket data, and to avoid the problem that the terminal device randomly makes requests for ticket data in the blockchain network, which may cause confusion of billing behavior, the blockchain network opens different service permissions for different terminal devices in advance, and it can be understood that each terminal device can only request ticket data for which a service permission is opened from the blockchain network, for example, the blockchain network is used to generate ticket data of N service types, if the blockchain network opens permissions for a first terminal for K service types, then the first terminal can only request ticket data of the service type in K from the blockchain network, and it can be understood that N is an integer greater than or equal to 1, and K is a positive integer less than or equal to N. Based on the difference of the service permissions opened by the blockchain network for different terminal devices, after receiving the ticket generating request of the first terminal, the routing device needs to determine the service permission of the first terminal first, that is, the routing device switches to execute step S202.
S202, acquiring service authority of the first terminal, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network, and the block chain network is used for generating bill data of multiple service types.
In one embodiment, the routing device may determine to obtain the service authority of the first terminal based on a digital certificate of the first terminal, where the digital certificate is sent to the first terminal by the ticket management device when the first terminal requests the ticket generation service from the ticket management device, the digital certificate may be, for example, a certificate issued by a certificate authority (such as the ticket management device described above), such as a CA (certification authority) certificate, and the CA certificate is a certificate application submitted by the first terminal to the ticket management device, and is used for performing identity verification on the first terminal by the ticket management device, and is assigned a key pair (i.e., a private key and a public key belonging to the first terminal) when the identity verification of the ticket management device on the first terminal passes. In one embodiment, when the first terminal submits a certificate application to the ticket management device, the information submitted to the ticket management device for generating the digital certificate includes: the registration information of the first terminal corresponds to the name, type, presence and the like of the enterprise, and after receiving the information submitted by the first terminal, the ticket management device can perform identity verification on the first terminal based on the information submitted by the first terminal, generate a digital certificate as shown in fig. 3a after the first terminal passes the identity verification, and send the generated digital certificate and a key pair distributed to the first terminal after binding signature.
In one embodiment, the digital certificate generated for the first terminal as shown in fig. 3a is a 9-bit (i.e. 9-bit) number code, where the first bit of the digital certificate is a version number, the second bit is a service type (type) allowed to be requested by the first terminal, the third to seventh bits are registry information of the first terminal (e.g. province and city area where the first terminal corresponds to an enterprise), and the eighth and ninth bits are sequences when the first terminal requests a ticket service from a ticket management device, that is, sequences used to indicate that the enterprise corresponding to the first terminal is the several enterprises in the ticket management device. It can be understood that, the process that the first terminal requests the ticket generating service from the ticket managing device is a process that the first terminal corresponds to an enterprise to register in the ticket managing device, and when the ticket managing device requests to register in the first terminal, the ticket managing device sends a digital certificate for determining the service authority of the first terminal to the first terminal, so that when the first terminal requests the ticket generating service, the digital certificate sent by the ticket managing device to the first terminal is also carried in the ticket generating request, and the ticket generating request carrying the digital certificate is sent to the routing device, so that the routing device can determine the service authority of the first terminal based on the digital certificate carried in the ticket generating request.
In one embodiment, after the first terminal completes registration at the ticket management device and the ticket management device determines the service authority opened for the first terminal, the ticket management device further sends the service authority allowing the first terminal to request the ticket data to the blockchain network through the routing device, so that the blockchain network can determine the service authority for the ticket data that can be provided for the first terminal. Specifically, the ticket management device may send the service right of the first terminal to the blockchain network through the routing device, or the ticket management device may also send the service right of the first terminal to an SPV node connected to the ticket management device, and then send the service right of the first terminal to the routing device through the SPV and further to the blockchain network. After the routing device determines the service authority of the first terminal, it may determine whether the service type opened for the first terminal includes the target service type of the target ticket data requested to be generated by the first terminal according to the service authority, that is, determine whether to allow the first terminal to request the target ticket data of the target service type, further, when determining to allow the first terminal to request the target ticket data of the target service type, the routing device proceeds to execute step S203.
S203, if the target service type is the service type contained in the service authority of the first terminal, sending the bill generation request to the blockchain network, so that the blockchain network generates target bill data according to the sending record, and the second terminal acquires the target bill data from the blockchain network.
When the routing device determines that the first terminal is allowed to obtain target bill data of a target service type, the routing device may send a bill generation request of the first terminal to the blockchain network, where the bill generation request includes a sending record of an electronic resource sent by the second terminal to the first terminal, a terminal identifier of the first terminal, signature information of the first terminal, and a terminal identifier of the second terminal, and in one embodiment, the signature information of the first terminal included in the bill generation request is used to authenticate the first terminal sending the bill generation request, where the signature information of the first terminal is obtained after the first terminal signs the bill generation request with a corresponding device private key, and then when the routing device verifies the signature information, the routing device may obtain a device public key of the first terminal from the blockchain network, and the device public key of the first terminal is adopted to carry out verification processing on the signature information, and when the verification is passed, the first terminal is determined to pass the identity verification. In addition, the terminal identifier of the first terminal and the terminal identifier of the second terminal are used for checking target bill data generated by the blockchain network, that is, the target bill data generated based on the bill generation request is only allowed to be checked by the first terminal corresponding to the first terminal identifier and the second terminal corresponding to the second terminal identifier, and other irrelevant terminal devices cannot check the target bill data, so that the safety problem of the bill data in the first terminal and the second terminal is effectively guaranteed.
In one embodiment, the ticket generating request further includes a terminal identifier of the related device, that is, if the terminal identifier of the related device is recorded in the ticket generating request, the related device may also enable viewing of the target ticket data and/or the ticket generating request, wherein the related device may be, for example, the above-mentioned ticket managing device, a logistics device for recording logistics records between the first terminal and the second terminal, and a recording device (such as a server device or a terminal device corresponding to a bank, etc.) for recording electronic resource transaction records between the first terminal and the second terminal, it is understood that based on the viewing of the ticket generating request and/or the target ticket data by the related device, the billing behavior between the first terminal and the second terminal may be effectively supervised, such as the logistics device and the recording device may enable the authenticity of resource replacement performed between the first terminal and the second terminal to be considered And the bill management device can effectively monitor whether the generated target bill data is generated in a sufficient amount, thereby ensuring the authenticity and reliability of the generated target bill data. The process of generating the target bill data based on resource replacement by the first terminal and the second terminal can be seen in fig. 3b, and the following steps are specifically executed:
(1) the method comprises the steps that a first terminal obtains resource replacement information between the first terminal and a second terminal, such as the sending quantity of electronic resources, obtained articles and the like, and generates a bill generation request based on the resource replacement information;
(2) sending a bill generation request (namely a billing request) to a routing device through an SPV (SPV) of a first terminal, wherein the routing device matches a digital certificate of the first terminal based on source information of the billing request after receiving the billing request to determine whether the billing request is from a terminal indicated by the digital certificate and has a service authority for bill data;
(3) and if the verification of the first terminal passes, sending the bill generation request to the block chain network, generating corresponding target bill data, and storing the target bill data in the block chain network.
For example, the first terminal may be a terminal corresponding to enterprise a, the second terminal is a terminal corresponding to enterprise B, and if enterprise B sends a target amount of electronic resources to the first terminal corresponding to enterprise a through the second terminal and obtains a target article from enterprise a, enterprise a sends a bill generation request to the routing device through the first terminal to request generation of an invoice, where the bill generation request includes: the signature information of the enterprise A, the target quantity corresponding to the electronic resource acquired by the first terminal, the terminal identification of the enterprise B corresponding to the second terminal and the like. After the routing device verifies the bill generation request, the routing device can send the bill generation request to the block chain network to generate corresponding target bill data, and store the target bill data in the block chain network, so that a second terminal corresponding to the enterprise B can obtain the target bill data from the block chain network. In one embodiment, when a second terminal acquires the target bill data from a blockchain network, the second terminal can automatically read the stored target bill data from a new block when an SPV connected to the second terminal detects that the new block is generated in the blockchain network, wherein the target bill data records an identifier of a terminal device available for browsing (or querying), so that other terminal devices can be effectively prevented from reading the target bill data from the blockchain, the leakage problem and the tampering problem of the bill data are caused, and the reliability of the generated target bill data is effectively improved.
In the embodiment of the present invention, when receiving a ticket generation request sent by a first terminal, a routing device may obtain a service right that a blockchain network opens for the first terminal, so as to determine a service type of ticket data that the first terminal may request the blockchain network to generate, and when the routing device determines that the service right that the blockchain network opens for the first terminal includes a target service type of target ticket data that the first terminal requests to generate, the routing device sends the ticket generation request of the first terminal to the blockchain network, so that the blockchain network generates the target ticket data based on a sending record of an electronic resource sent by a second terminal included in the ticket generation request to the first terminal, so that the second terminal may obtain the target ticket data from the blockchain network, so that the blockchain network may implement processing of the ticket data of each service type through a built chain, the utilization rate of resources in the blockchain network is effectively improved, the building and maintenance cost of the blockchain network is reduced, the target bill data generated based on the blockchain network can be prevented from being tampered, and the authenticity and reliability of the generated target bill data are guaranteed.
Referring to fig. 4, a schematic flow chart of a data processing method according to an embodiment of the present invention is shown in fig. 4, where the method includes:
s401, receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and the bill generation request comprises a sending record of electronic resources sent by a second terminal to the first terminal and a target service type of the target bill data.
In an embodiment, the specific implementation of step S401 may refer to the specific implementation of step S201 in the above embodiments, and is not described herein again.
S402, acquiring the digital certificate carried in the bill generation request.
And S403, performing certificate verification on the digital certificate, and acquiring the service authority of the first terminal according to the digital certificate when the digital certificate passes the certificate verification, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network, and the block chain network is used for generating bill data of multiple service types.
In steps S402 and S403, after receiving the ticket generating request sent by the first terminal, the routing device may determine, based on the digital certificate carried in the ticket generating request, the service right that the blockchain network opens for the first terminal, where after obtaining the ticket generating request, the routing device may first obtain the digital certificate carried in the ticket generating request, and perform certificate verification on the digital certificate to determine whether the digital certificate carried in the ticket generating request is the digital certificate of the first terminal that sends the ticket generating request, so as to avoid that the first terminal uses the digital certificates of other terminal devices to request for generating ticket data, and may effectively standardize a request behavior of the terminal devices for performing ticket data. In a specific implementation, after acquiring a digital certificate from a ticket generation request, when performing certificate verification on the digital certificate, a routing device may first acquire a terminal identifier recorded in the digital certificate and a terminal identifier of a first terminal; if the routing equipment determines that the terminal identifier recorded in the digital certificate is consistent with the terminal identifier of the first terminal, the routing equipment determines that the digital certificate carried in the bill generation request is the digital certificate of the first terminal sending the bill generation request, and then the routing equipment determines that the digital certificate passes verification. And if the routing equipment determines that the terminal identifier recorded in the digital certificate is inconsistent with the terminal identifier of the first terminal, the routing equipment determines that the digital certificate carried in the bill generation request is not the digital certificate of the first terminal sending the bill generation request, and then the routing equipment determines that the digital certificate does not pass the certificate verification and directly discards the bill generation request.
In one embodiment, the digital certificate records one or more service types, and if the routing device determines that the digital certificate passes the verification, the routing device may parse the digital certificate and determine the one or more service types recorded in the digital certificate, and further, the routing device may open the one or more service types recorded in the digital certificate as the service types included in the service right opened to the first terminal by the blockchain network. In one embodiment, before the routing device parses the digital certificate, the routing device may also perform a validity check on the digital certificate, wherein the digital certificate is sent to the first terminal by the ticket management device when the first terminal requests the ticket generating service to the ticket management device, then, when the ticket management device sends the generated digital certificate to the first terminal, the digital certificate includes signature information obtained by the ticket management device signing the digital certificate with a device private key, so that it can be understood that the validity of the digital certificate is verified by the routing device, that is, the validity of the signature information of the digital certificate is verified, specifically, the routing device can obtain a device public key of the ticket management device from a blockchain network, and perform signature verification on the signature information included in the digital certificate with the device public key; further, if the signature verification of the digital certificate by the device public key is successful, the digital certificate passes the signature verification, so that the digital certificate can be analyzed, and if the signature verification of the digital certificate by the device public key fails, the digital certificate fails to pass the signature verification, so that the ticket generation request is discarded.
After the routing device determines that the digital certificate carried in the ticket generating request passes the certificate verification and obtains the service authority of the first terminal, the routing device may turn to execute step S404.
S404, if the target service type is the service type contained in the service authority of the first terminal, the bill generation request is sent to the block chain network, so that the block chain network generates target bill data according to the sending record, and the second terminal acquires the target bill data from the block chain network.
In one embodiment, if the routing device determines that the target service type to which the target ticket data requested to be generated by the first terminal belongs is a type in a service right opened for the first terminal by a blockchain network, the ticket generation request may be forwarded to the blockchain network so that the blockchain network generates the target ticket data requested by the first terminal, wherein the blockchain network includes a plurality of node devices, one node device is used for generating ticket data of one service type, and when the routing device sends the ticket generation request to the blockchain network, the routing device may send the ticket generation request to the node device used for generating the target ticket data of the target service type so that the node device used for generating the target ticket data of the target service type generates the target ticket data according to a sending record of the electronic resource. In one embodiment, after the block chain network generates the target bill data, the target bill data can be subjected to consensus processing, and the target bill data subjected to consensus processing is stored in a new block of the block chain network; then, the second terminal may obtain the target ticket data with completed consensus from a new block of the blockchain network after determining that the target ticket data with completed consensus is completed by the blockchain network. In a specific implementation, the second terminal may send, to the blockchain network, a request for obtaining the storage information from the generated new block after detecting that the blockchain network generates a new block, and after obtaining the request of the second terminal, the blockchain network may determine, based on the terminal identifier of the second terminal, whether the second terminal has the query authority for the stored information, and if it is determined that the second terminal has the query authority, may send, to the second terminal, the information stored in the new block.
In an embodiment, after the block chain network generates the target ticket data and identifies the generated target ticket data, the identified target ticket data may be sent to the second terminal based on the address information (or the terminal identifier) of the second terminal carried in the ticket generation request, so that the second terminal obtains the target ticket data. In an embodiment, the ticket management device may also query the ticket data through the routing device, where after the ticket data is generated by the blockchain network, the generated ticket data and the corresponding service type are stored in an associated manner, so that when the ticket management device performs the ticket query, the ticket management device may send a ticket query request to the routing device, and after receiving the ticket query request sent by the ticket management device, the routing device may obtain the service type of the ticket data queried by the ticket query request indication; therefore, the bill data indicating the inquired service type can be obtained from the blockchain network according to the service type indicated by the bill inquiry request, the bill data obtained from the blockchain network is used as inquiry feedback data, and then the inquiry feedback data is sent to the bill management equipment.
In an embodiment, the bill management device is, for example, a device corresponding to a tax bureau, and the bill management device may be a server device, or may also be a terminal device, which is not limited in the embodiment of the present invention, if the bill management device is a device marked by 50 in fig. 5a, the routing device is a device marked by 51 in fig. 5a, the bill management device 50 may send a bill query request to the routing device 51, after obtaining the bill query request, the routing device 51 requests the blockchain network to obtain the bill data indicated by the bill query request, and after obtaining the bill data indicated by the bill query request, the blockchain network obtains the bill data indicated by the query request as query feedback data, and sends the query feedback data to the bill management device 50 through the routing device 51. In one embodiment, the ticket management device 50 may also be connected to the routing device through an SPV, as shown in fig. 5b, if the ticket management device 50 is a device corresponding to a tax bureau, the specific process of the tax bureau performing the tax inquiry is as follows:
(1) the tax bureau sends a tax check request (namely a bill query request) to the SPV through the corresponding bill management device, wherein the tax check request comprises a type field of the bill data requesting query;
(2) the SPV sends the tax checking request to the routing equipment, and the routing equipment acquires the stored invoicing data from the block chain network;
(3) the block chain network sends the stored billing data to the SPV through the routing equipment;
(4) and the SPV sends the billing data to bill management equipment corresponding to the tax bureau so as to be used for tax inquiry by the tax bureau.
In the embodiment of the present invention, in order to improve the utilization rate of a blockchain network, a blockchain may be used to execute bill data of different service types, so as to ensure the blockchain network to execute the bill data of different service types in order, the service type of the bill data request may be divided for different terminal devices first to determine different service permissions opened by the blockchain network for the different terminal devices, then after receiving the bill generation request from the first terminal, the routing device may determine the service permission of the first terminal based on a digital certificate carried by the bill generation request, so as to determine whether the blockchain network opens the permission to acquire the bill data of the target service type for the first terminal, and when it is determined that the permission is opened by the blockchain network for acquiring the bill data of the target service type for the first terminal, so that the behavior of the blockchain network for executing different service types when generating the bill data is specified, the authenticity of the generated bill data can be effectively ensured, and the terminal random billing behavior can be avoided.
Based on the description of the foregoing data processing method embodiment, an embodiment of the present invention further provides a data processing apparatus, which may be a computer program (including a program code) running in the routing device. The data processing apparatus may be configured to execute the data processing method as shown in fig. 2 and fig. 4, referring to fig. 6, and the data processing apparatus includes: a receiving unit 601, an acquiring unit 602, and a transmitting unit 603.
A receiving unit 601, configured to receive a ticket generation request sent by a first terminal, where the ticket generation request is used to request generation of target ticket data, and the ticket generation request includes a sending record of an electronic resource sent by a second terminal to the first terminal, and a target service type to which the target ticket data belongs;
an obtaining unit 602, configured to obtain a service right of the first terminal, where the service right includes at least one service type opened by a block chain network for the first terminal, and the block chain network is configured to generate ticket data of multiple service types;
a sending unit 603, configured to send the ticket generation request to the blockchain network if the target service type is a service type included in the service authority of the first terminal, so that the blockchain network generates the target ticket data according to the sending record, and the second terminal obtains the target ticket data from the blockchain network.
In an embodiment, the obtaining unit 602 is specifically configured to:
acquiring a digital certificate carried in the bill generation request, wherein the digital certificate is sent to a first terminal by bill management equipment when the first terminal requests bill generation service from the bill management equipment;
and carrying out certificate verification on the digital certificate, and acquiring the service authority of the first terminal according to the digital certificate when the digital certificate passes the certificate verification.
In an embodiment, the obtaining unit 602 is specifically configured to:
acquiring a terminal identifier recorded in the digital certificate and a terminal identifier of the first terminal;
and if the terminal identification recorded in the digital certificate is consistent with the terminal identification of the first terminal, determining that the digital certificate passes the certificate verification.
In an embodiment, the digital certificate records one or more service types, and the obtaining unit 602 is specifically configured to:
when the digital certificate passes the certificate verification, analyzing the digital certificate and determining one or more service types recorded by the digital certificate;
and taking one or more service types recorded by the digital certificate as service types included in the service authority opened to the first terminal by the block chain network.
In one embodiment, the digital certificate includes signature information obtained by the ticket management device signing the digital certificate with a device private key; the device further comprises: a verification unit 604 and a parsing unit 605.
The obtaining unit 602 is further configured to obtain a device public key of the ticket management device;
a verifying unit 604, configured to perform signature verification on signature information included in the digital certificate by using the device public key;
an analyzing unit 605, configured to trigger execution of a step of analyzing the digital certificate if the signature information passes the signature verification.
In one embodiment, the blockchain network comprises a plurality of node devices, one node device for generating ticket data for one traffic type; the sending unit 603 is specifically configured to:
and sending the bill generation request to the node equipment for generating the target bill data of the target service type, so that the node equipment for generating the target bill data of the target service type generates the target bill data according to the sending record.
In one embodiment, the blockchain network is configured to perform consensus processing on the target ticket data after the target ticket data is generated, and store the target ticket data after consensus processing into a new block of the blockchain network;
and the second terminal is used for acquiring the target bill data with the completed consensus from the new block of the block chain network when the block chain network confirms that the consensus on the target bill data is completed.
In one embodiment, the blockchain network is used for storing the generated bill data and the corresponding service type in an associated manner; the obtaining unit 602 is further configured to obtain, in response to a ticket query request sent by a ticket management device, a service type of ticket data queried by the ticket query request indication;
the obtaining unit 602 is further configured to obtain, according to the service type that the ticket query request indicates to query, ticket data that indicates the queried service type from the blockchain network, and use the ticket data obtained from the blockchain network as query feedback data;
the sending unit 603 is further configured to send the query feedback data to the ticket management device.
In this embodiment of the present invention, when receiving a ticket generating request sent by a first terminal, an obtaining unit 601 may obtain a service right opened by a blockchain network for the first terminal by an obtaining unit 602, so as to determine a service type of ticket data that the first terminal may request to generate by the blockchain network, and when determining that the service right opened by the blockchain network for the first terminal includes a target service type of target ticket data that the first terminal requests to generate, a sending unit 603 sends a ticket generating request of the first terminal to the blockchain network, so that the blockchain network generates the target ticket data based on a sending record of an electronic resource sent by a second terminal included in the ticket generating request to the first terminal, so that the second terminal may obtain the target ticket data from the blockchain network, so that the blockchain network can implement processing of the ticket data of each service type through a built chain, the utilization rate of resources in the blockchain network is effectively improved, the building and maintenance cost of the blockchain network is reduced, the target bill data generated based on the blockchain network can be prevented from being tampered, and the authenticity and reliability of the generated target bill data are guaranteed.
Fig. 7 is a schematic block diagram of a routing device according to an embodiment of the present invention. The routing device in the present embodiment as shown in fig. 7 may include: one or more processors 701; one or more input devices 702, one or more output devices 703, and memory 704. The processor 701, the input device 702, the output device 703, and the memory 704 are connected by a bus 705. The memory 704 is used to store a computer program comprising program instructions, and the processor 701 is used to execute the program instructions stored by the memory 704.
The memory 704 may include volatile memory (volatile memory), such as random-access memory (RAM); the memory 704 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), etc.; the memory 704 may also comprise a combination of the above types of memory.
The processor 701 may be a Central Processing Unit (CPU). The processor 701 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or the like. The PLD may be a field-programmable gate array (FPGA), a General Array Logic (GAL), or the like. The processor 701 may also be a combination of the above structures.
In an embodiment of the present invention, the memory 704 is configured to store a computer program, the computer program includes program instructions, and the processor 701 is configured to execute the program instructions stored in the memory 704, so as to implement the steps of the corresponding methods as described above in fig. 2 and fig. 4.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type to which the target bill data belongs;
acquiring service authority of the first terminal, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network, and the block chain network is used for generating bill data of multiple service types;
and if the target service type is the service type contained in the service authority of the first terminal, sending the bill generation request to the blockchain network so that the blockchain network generates the target bill data according to the sending record and the second terminal acquires the target bill data from the blockchain network.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
acquiring a digital certificate carried in the bill generation request, wherein the digital certificate is sent to a first terminal by bill management equipment when the first terminal requests bill generation service from the bill management equipment;
and carrying out certificate verification on the digital certificate, and acquiring the service authority of the first terminal according to the digital certificate when the digital certificate passes the certificate verification.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
acquiring a terminal identifier recorded in the digital certificate and a terminal identifier of the first terminal;
and if the terminal identification recorded in the digital certificate is consistent with the terminal identification of the first terminal, determining that the digital certificate passes the certificate verification.
In one embodiment, the digital certificate records one or more types of traffic, and the processor 701 is configured to invoke the program instructions to perform:
when the digital certificate passes the certificate verification, analyzing the digital certificate and determining one or more service types recorded by the digital certificate;
and taking one or more service types recorded by the digital certificate as service types included in the service authority opened to the first terminal by the block chain network.
In one embodiment, the digital certificate includes signature information obtained by the ticket management device signing the digital certificate with a device private key; the processor 701 is configured to call the program instructions for performing:
acquiring an equipment public key of the bill management equipment, and performing signature verification on signature information included in the digital certificate by adopting the equipment public key;
and if the signature information passes the signature verification, triggering and executing the step of analyzing the digital certificate.
In one embodiment, the blockchain network comprises a plurality of node devices, one node device for generating ticket data for one traffic type; the processor 701 is configured to call the program instructions for performing:
and sending the bill generation request to the node equipment for generating the target bill data of the target service type, so that the node equipment for generating the target bill data of the target service type generates the target bill data according to the sending record.
In one embodiment, the blockchain network is configured to perform consensus processing on the target ticket data after the target ticket data is generated, and store the target ticket data after consensus processing into a new block of the blockchain network;
and the second terminal is used for acquiring the target bill data with the completed consensus from the new block of the block chain network when the block chain network confirms that the consensus on the target bill data is completed.
In one embodiment, the blockchain network is used for storing the generated bill data and the corresponding service type in an associated manner; the processor 701 is configured to call the program instructions for performing:
responding to a bill query request sent by bill management equipment, and acquiring the service type of the bill data queried by the bill query request indication;
acquiring bill data indicating the inquired service type from the blockchain network according to the service type indicated by the bill inquiry request, and taking the bill data acquired from the blockchain network as inquiry feedback data;
and sending the query feedback data to the bill management equipment.
Embodiments of the present invention provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method embodiments as shown in fig. 2 or fig. 4. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a particular embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A data processing method, comprising:
receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type to which the target bill data belongs; the bill generation request comprises a terminal identification of a relevant device related to target bill data requested to be generated, and the relevant device comprises a bill management device or a logistics device;
acquiring a digital certificate carried in the bill generation request, and analyzing the digital certificate to obtain a service authority of a first terminal, wherein the service authority comprises at least one service type opened for the first terminal by a block chain network, the digital certificate is sent to the first terminal by a bill management device when the first terminal requests a bill generation service from the bill management device, the block chain network is used for generating bill data of multiple service types, and the digital certificate records one or more service types;
if the target service type is the service type contained in the service authority of the first terminal, sending the bill generation request to the blockchain network so that the blockchain network generates the target bill data according to the sending record and the second terminal acquires the target bill data from the blockchain network, wherein the service type contained in the service authority of the first terminal is the service type recorded in the digital certificate; and the bill generation request also comprises a terminal identifier of related equipment, and the target bill data and/or the bill generation request are checked by adopting the related equipment corresponding to the terminal identifier to obtain a checking result, so that the resource replacement executed by the first terminal and the second terminal is monitored to be really executed, and the authenticity and the reliability of the generated target bill data are ensured.
2. The method of claim 1, wherein the obtaining the service right of the first terminal comprises:
and carrying out certificate verification on the digital certificate, and acquiring the service authority of the first terminal according to the digital certificate when the digital certificate passes the certificate verification.
3. The method of claim 2, wherein the certificate verifying the digital certificate comprises:
acquiring a terminal identifier recorded in the digital certificate and a terminal identifier of the first terminal;
and if the terminal identification recorded in the digital certificate is consistent with the terminal identification of the first terminal, determining that the digital certificate passes the certificate verification.
4. The method according to claim 2, wherein the digital certificate records one or more service types, and the acquiring the service right of the first terminal according to the digital certificate when the digital certificate passes the certificate verification comprises:
when the digital certificate passes the certificate verification, analyzing the digital certificate and determining one or more service types recorded by the digital certificate;
and taking one or more service types recorded by the digital certificate as service types included in the service authority opened to the first terminal by the block chain network.
5. The method according to claim 4, wherein the digital certificate comprises signature information obtained by the ticket management device signing the digital certificate with a device private key; before the parsing the digital certificate, the method further comprises:
acquiring an equipment public key of the bill management equipment, and performing signature verification on signature information included in the digital certificate by adopting the equipment public key;
and if the signature information passes the signature verification, triggering and executing the step of analyzing the digital certificate.
6. The method of claim 1, wherein the blockchain network includes a plurality of node devices, a node device for generating billing data for a traffic type; the sending the bill generation request to the blockchain network so that the blockchain network generates the target bill data according to the sending record comprises:
and sending the bill generation request to the node equipment for generating the target bill data of the target service type, so that the node equipment for generating the target bill data of the target service type generates the target bill data according to the sending record.
7. The method according to claim 1, wherein the blockchain network is configured to perform consensus processing on the target ticket data after generating the target ticket data, and store the target ticket data with completed consensus in a new block of the blockchain network;
and the second terminal is used for acquiring the target bill data with the completed consensus from the new block of the block chain network when the block chain network confirms that the consensus on the target bill data is completed.
8. The method of claim 1, wherein the blockchain network is configured to store the generated ticket data and the corresponding traffic type in association; the method further comprises the following steps:
responding to a bill query request sent by bill management equipment, and acquiring the service type of the bill data queried by the bill query request indication;
acquiring bill data indicating the inquired service type from the blockchain network according to the service type indicated by the bill inquiry request, and taking the bill data acquired from the blockchain network as inquiry feedback data;
and sending the query feedback data to the bill management equipment.
9. A data processing apparatus, comprising:
the receiving unit is used for receiving a bill generation request sent by a first terminal, wherein the bill generation request is used for requesting generation of target bill data, and the bill generation request comprises a sending record of electronic resources sent to the first terminal by a second terminal and a target service type to which the target bill data belongs; the bill generation request comprises a terminal identification of a relevant device related to target bill data requested to be generated, and the relevant device comprises a bill management device or a logistics device;
an obtaining unit, configured to obtain a digital certificate carried in the ticket generating request, and analyze the digital certificate to obtain a service right of a first terminal, where the service right includes at least one service type opened by a block chain network for the first terminal, where the digital certificate is sent to the first terminal by a ticket management device when the first terminal requests a ticket generating service from the ticket management device, and the block chain network is used to generate ticket data of multiple service types;
a sending unit, configured to send the ticket generation request to the blockchain network if the target service type is a service type included in a service authority of the first terminal, so that the blockchain network generates the target ticket data according to the sending record, and enable the second terminal to obtain the target ticket data from the blockchain network, where the service type included in the service authority of the first terminal is the service type recorded in the digital certificate; and the bill generation request also comprises a terminal identifier of related equipment, and the target bill data and/or the bill generation request are checked by adopting the related equipment corresponding to the terminal identifier to obtain a checking result, so that the resource replacement executed by the first terminal and the second terminal is monitored to be really executed, and the authenticity and the reliability of the generated target bill data are ensured.
10. A routing device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1 to 8.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 8.
CN202011347124.9A 2020-11-26 2020-11-26 Data processing method and device based on block chain, routing equipment and storage medium Active CN112132588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011347124.9A CN112132588B (en) 2020-11-26 2020-11-26 Data processing method and device based on block chain, routing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011347124.9A CN112132588B (en) 2020-11-26 2020-11-26 Data processing method and device based on block chain, routing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112132588A CN112132588A (en) 2020-12-25
CN112132588B true CN112132588B (en) 2021-06-15

Family

ID=73852311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011347124.9A Active CN112132588B (en) 2020-11-26 2020-11-26 Data processing method and device based on block chain, routing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112132588B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116777397A (en) * 2023-08-02 2023-09-19 广州市振邦信息科技有限公司 Electronic bill management method, device, terminal and storage medium based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101951271B1 (en) * 2017-11-14 2019-02-22 주식회사 스마트솔루션 Real-time giro notification and payment system based on mobile messenger authentication, and method thereof
CN109636492A (en) * 2018-12-07 2019-04-16 深圳市智税链科技有限公司 Tax administration method, apparatus, medium and electronic equipment based on block catenary system
CN110400188A (en) * 2018-08-16 2019-11-01 深圳市智税链科技有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN110633963A (en) * 2019-09-16 2019-12-31 腾讯科技(深圳)有限公司 Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment
CN110738471A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 bill management method based on block chain network and related equipment
CN111275506A (en) * 2020-01-17 2020-06-12 腾讯科技(深圳)有限公司 Bill issuing method and block link point equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101951271B1 (en) * 2017-11-14 2019-02-22 주식회사 스마트솔루션 Real-time giro notification and payment system based on mobile messenger authentication, and method thereof
CN110400188A (en) * 2018-08-16 2019-11-01 深圳市智税链科技有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109636492A (en) * 2018-12-07 2019-04-16 深圳市智税链科技有限公司 Tax administration method, apparatus, medium and electronic equipment based on block catenary system
CN110633963A (en) * 2019-09-16 2019-12-31 腾讯科技(深圳)有限公司 Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment
CN110738471A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 bill management method based on block chain network and related equipment
CN111275506A (en) * 2020-01-17 2020-06-12 腾讯科技(深圳)有限公司 Bill issuing method and block link point equipment

Also Published As

Publication number Publication date
CN112132588A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN110609869B (en) Block chain-based data storage method, related equipment and storage medium
EP3591564B1 (en) Event attestation for an electronic device
CN110633963B (en) Electronic bill processing method, electronic bill processing device, computer readable storage medium and computer readable storage device
CN110535971B (en) Interface configuration processing method, device, equipment and storage medium based on block chain
CN111080295A (en) Block chain-based electronic contract processing method and equipment
WO2017143757A1 (en) Trustworthiness measuring method and device for cloud computing platform
CN110602116B (en) Block chain based data verification method, device and computer readable storage medium
CN102171652A (en) Method for provisioning trusted software to an electronic device
CN112115205B (en) Cross-chain trust method, device, equipment and medium based on digital certificate authentication
CN111523890A (en) Data processing method and device based on block chain, storage medium and equipment
CN112953978B (en) Multi-signature authentication method, device, equipment and medium
CN111488372A (en) Data processing method, device and storage medium
CN111460457A (en) Real estate property registration supervision method, device, electronic equipment and storage medium
CN111880919A (en) Data scheduling method, system and computer equipment
CN112235301A (en) Method and device for verifying access authority and electronic equipment
CN112132588B (en) Data processing method and device based on block chain, routing equipment and storage medium
CN112256799A (en) Data processing method and device based on block chain, server and storage medium
CN112583594A (en) Data processing method, acquisition device, gateway, trusted platform and storage medium
CN112926979A (en) Payment information processing method combined with block chain communication and block chain information platform
CN111814204B (en) Block chain-based data consensus method, related equipment and storage medium
CN113706261A (en) Block chain-based power transaction method, device and system
CN112884484A (en) Enterprise identity authentication method and system based on block chain
CN112163917A (en) Bill processing method, device, medium and electronic equipment based on block chain
CN113704712A (en) Identity authentication method, device and system and electronic equipment
CN110598374A (en) Block chain-based work registration method, device and computer-readable 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40035769

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant