Data processing method and related products based on SPV node cascade
By adopting the data processing method of SPV node cascade in the blockchain system, the problem of service providers illegally obtaining private key signatures in tax data processing is solved, the data security and reliability are realized, and the blockchain records are ensured. accuracy.
Patent Information
- Application Number
- CN201910894626.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-20
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2039-10-16
AI Technical Summary
In the blockchain system, there are unsafe factors in tax data processing. Service providers may illegally obtain private key signatures and forge transaction records, resulting in inconsistent with the blockchain records, affecting the reliability and security of the data.
Using a data processing method based on SPV node cascade, the data level is obtained by receiving data processing requests. When the level exceeds the preset level, a signature request is sent to the SPV node of the first tax bureau, and after confirmation, the data is transferred to the second service provider. SPV nodes ensure data security and reliability.
Through node cascade, the security and reliability of data processing are further guaranteed, illegal operations by service providers are avoided, and the authenticity and consistency of data are ensured.
Smart Images

Figure CN110598455B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method based on SPV node cascading and related products. Background Art
[0002] SPV is the abbreviation for “Simplified Payment Verification”.
[0003] In the existing blockchain system, when processing data, only consensus nodes in the blockchain need to confirm the consensus, and the data will be uploaded to the chain after the consensus nodes confirm the data. However, this method still has unsafe factors in terms of taxation. For example, service provider A illegally obtains the private key signature of service provider B and forges the transaction record of service provider B, resulting in inconsistency between the actual transaction of service provider B and the recorded information in the blockchain. In order to improve the reliability and security of tax data processing, it is necessary to provide a more reliable data processing method. Summary of the invention
[0004] The embodiments of the present application provide a data processing method and related products based on SPV node cascading, which can improve the reliability and security of tax data processing.
[0005] A first aspect of an embodiment of the present application provides a data processing method based on SPV node cascading, which is applied to a blockchain, wherein the blockchain includes at least a first tax bureau SPV node, a first service provider SPV node, and a second service provider SPV node, including:
[0006] receiving a data processing request sent by the first service provider SPV node, the data processing request carrying data and the second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to the second service provider SPV node corresponding to the second service provider SPV node identifier;
[0007] obtaining a level of said data;
[0008] When the level of the data exceeds a preset level, sending a request for obtaining a signature to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature;
[0009] When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node.
[0010] A second aspect of the embodiment of the present application provides a data processing system based on SPV node cascading, which is applied to a blockchain, wherein the blockchain includes at least a first tax bureau SPV node, a first service provider SPV node, and a second service provider SPV node, including:
[0011] A request receiving module, configured to receive a data processing request sent by a first service provider SPV node, the data processing request carrying data and a second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to a second service provider SPV node corresponding to the second service provider SPV node identifier;
[0012] A level acquisition module, used for acquiring the level of the data;
[0013] A signature acquisition module, configured to send a signature acquisition request to the first tax bureau SPV node when the level of the data exceeds a preset level, so as to instruct the first tax bureau SPV node to confirm the data processing request and send a signature;
[0014] The data processing module is used to transfer the data to the second service provider SPV node upon receiving the signature sent by the first tax bureau SPV node.
[0015] A third aspect of an embodiment of the present application provides a terminal, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the described method.
[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method described.
[0017] Implementing the embodiments of the present application has at least the following beneficial effects:
[0018] Through the embodiment of the present application, by receiving the data processing request sent by the first service provider SPV node, the level of the data is obtained. When the level of the data exceeds the preset level, a signature acquisition request is sent to the first tax bureau SPV node. When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node. By adopting this method, data processing is performed by adopting the node cascading method, which further ensures the security and reliability of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] in:
[0021] Figure 1 An optional structural diagram of a distributed system provided by an embodiment of the present invention applied to a blockchain system;
[0022] Figure 2 It is an optional schematic diagram of a block structure provided by an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a data processing system based on SPV node cascading provided by an embodiment of the present invention;
[0024] Figure 4 It is a flowchart of a data processing method based on SPV node cascading provided by an embodiment of the present invention;
[0025] Figure 5 It is a flowchart of a data processing method based on SPV node cascading provided by an embodiment of the present invention;
[0026] Figure 6 is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention;
[0027] Figure 7 It is a structural diagram of a data processing system based on SPV node cascading provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0030] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0031] The related technology of the embodiment of the present invention mentions: Currently in the blockchain system, when processing data, only the consensus nodes in the blockchain need to confirm the consensus, and the data will be uploaded to the chain after the consensus nodes confirm it. However, this method still has unsafe factors in terms of taxation, such as service provider a illegally obtaining the private key signature of service provider b, forging service provider b's transaction records, causing the actual transaction of service provider b to be inconsistent with the recorded information in the blockchain. In order to improve the reliability and security of tax data processing, it is necessary to provide a more reliable data processing method.
[0032] To solve the above problems, the embodiment of the present invention provides a data processing scheme based on SPV node cascade. The so-called blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission (P2P transmission), consensus mechanism, encryption algorithm, etc. It is essentially a decentralized database; the blockchain can be composed of multiple serial transaction records (also known as blocks) that are connected and protected by cryptography. The distributed ledger connected by the blockchain allows multiple parties to effectively record transactions and can permanently check the transaction (cannot be tampered with). Among them, the consensus mechanism refers to the mathematical algorithm that realizes the establishment of trust and the acquisition of rights and interests between different nodes in the blockchain network; that is, the consensus mechanism is a mathematical algorithm recognized by all network nodes of the blockchain. The data processing scheme can utilize the decentralized characteristics of the blockchain to avoid the control of the entire transaction process by a centralized trading platform (third-party trading platform); it can realize the closed loop of the process of off-chain payment and on-chain transaction based on fair trading without a centralized trading platform.
[0033] The system involved in the embodiment of the present invention may be a distributed system formed by connecting a client and multiple nodes (computing devices of any form in an access network, such as a server and a user terminal) through network communication.
[0034] Take the distributed system as the blockchain system as an example, see Figure 1 , Figure 1 This is an optional structural diagram of the distributed system 100 provided by the embodiment of the present invention applied to the blockchain system. It is formed by multiple nodes (any form of computing devices in the access network, such as servers and user terminals) and clients, and the nodes form a peer-to-peer (P2P, Peer To Peer) network. The P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP, Transmission Control Protocol) protocol. In a distributed system, any machine such as a server or a terminal can join and become a node. The node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.
[0035] See also Figure 1 The functions of each node in the blockchain system shown include:
[0036] 1) Routing: a basic function of a node, used to support communication between nodes.
[0037] In addition to the routing function, the node can also have the following functions:
[0038] 2) Applications are deployed in the blockchain to implement specific businesses based on actual business needs, record data related to the implementation of functions to form record data, carry digital signatures in the record data to indicate the source of the task data, and send the record data to other nodes in the blockchain system for other nodes to add the record data to a temporary block when they successfully verify the source and integrity of the record data.
[0039] For example, the services implemented by the application include:
[0040] 2.1) Wallet, used to provide the function of conducting electronic currency transactions, including initiating transactions (i.e., sending the transaction record of the current transaction to other nodes in the blockchain system. After the other nodes successfully verify the transaction, as a response to acknowledge the validity of the transaction, the transaction record data is stored in the temporary block of the blockchain; of course, the wallet also supports querying the remaining electronic currency in the electronic currency address;
[0041] 2.2) Shared ledger, which is used to provide functions such as storage, query and modification of account data. The record data of the operation on the account data is sent to other nodes in the blockchain system. After other nodes verify the validity, as a response to acknowledging the validity of the account data, the record data is stored in a temporary block, and a confirmation can also be sent to the node that initiated the operation.
[0042] 2.3) Smart contracts are computerized protocols that can execute the terms of a contract. They are implemented by deploying code on a shared ledger that is executed when certain conditions are met. The code is used to complete automated transactions based on actual business needs, such as querying the logistics status of the goods purchased by the buyer and transferring the buyer's electronic currency to the merchant's address after the buyer signs for the goods. Of course, smart contracts are not limited to executing contracts for transactions, but can also execute contracts for processing received information.
[0043] 3) Blockchain, including a series of blocks that are connected to each other in the order of their generation. Once a new block is added to the blockchain, it will not be removed. The block records the record data submitted by the nodes in the blockchain system.
[0044] See also Figure 2 , Figure 2 This is an optional schematic diagram of the block structure provided by an embodiment of the present invention. Each block includes the hash value of the transaction record stored in this block (the hash value of this block) and the hash value of the previous block. Each block is connected by the hash value to form a blockchain. In addition, the block can also include information such as the timestamp when the block was generated. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information for verifying the validity of its information (anti-counterfeiting) and generating the next block.
[0045] The above-mentioned data processing scheme can be further applied to Figure 3In the data processing system shown, the data processing system may include a blockchain node system for running a blockchain network, and the blockchain node system includes at least a consensus node, a first tax bureau SPV node, a first service provider SPV node (first client) and a second service provider SPV node (second client). The blockchain node system can receive transaction data submitted by each client and execute the transaction data, and submit information such as transaction data and execution results to a shared account book (or distributed account book, distributed ledger, shared account book, etc.) through a consensus mechanism and P2P transmission. It may specifically include: a transaction link interface, a transaction execution module, a smart contract execution module, a Hash calculation and verification module, a block packaging module, a consensus and submission module, a P2P communication module, and the like. Among them, the transaction link interface refers to the external service interface provided when running a blockchain network, which can be used to receive transaction data uploaded by any blockchain client or payment information uploaded by a hosting system. The transaction execution module is responsible for the execution of transactions, such as transaction status verification, delayed execution control of transactions, etc. Only transactions that pass the verification and obtain the execution status can be added to the transaction candidate list of the packaged block. Among them, when the data request meets the preset conditions, the tax bureau SPV node is required to perform corresponding processing. The above preset conditions may be transaction abnormalities or data problems, or the data level meets a certain preset level, etc., to ensure the security of the data.
[0046] Based on the above description, please refer to Figure 4 , Figure 4 An interactive schematic diagram of a data processing method based on SPV node cascade is provided for an embodiment of the present application. The method is applied to a blockchain, wherein the blockchain includes at least a first tax bureau SPV node, a first service provider SPV node, and a second service provider SPV node, such as Figure 4 As shown, it may include steps 401-404, which are specifically as follows:
[0047] 401. Receive a data processing request sent by a first service provider SPV node, the data processing request carrying data and a second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to a second service provider SPV node corresponding to the second service provider SPV node identifier;
[0048] The service provider SPV node may be a consumer client, etc. The blockchain management device receives a data processing request sent by the first service provider SPV node, and the data processing request may be a data on-chain request or a data transfer request, etc., which is not specifically limited here. The data processing request may be used to instruct the data to be transferred to the second service provider SPV node corresponding to the second service provider SPV node identifier.
[0049] Among them, the above-mentioned data processing request can be a request selected by the blockchain management device that meets certain conditions, such as data involving sensitive words or large amounts of money.
[0050] If the first consumer client needs to transfer the electronic invoice information to the second consumer client, the first consumer client sends a data processing request to the blockchain management device, wherein the data processing request carries the electronic invoice information and the identifier of the second consumer client.
[0051] 402. Obtain the level of the data;
[0052] After receiving the above data processing request, the blockchain management device can obtain the level of the above data, such as the importance level, and determine different verification strategies according to different levels to ensure the security of the data.
[0053] Specifically, obtaining the level of the data includes:
[0054] Confirm whether there are sensitive words in the data according to a preset sensitive word library;
[0055] If there are no sensitive words in the data, obtaining the permission level of the first service provider SPV node and the permission level of the second service provider SPV node respectively;
[0056] Respectively obtaining a first result obtained by multiplying the authority level of the first service provider SPV node by a first preset parameter, and a second result obtained by multiplying the authority level of the second service provider SPV node by a second preset parameter;
[0057] The sum of the first result and the second result is used as the level of the data.
[0058] The authority level of the above-mentioned SPV nodes of each service provider can be determined by obtaining the frequency of different data processing performed by the SPV nodes of each service provider within a preset time, or the importance of the matters processed, etc.
[0059] Optionally, if there is no sensitive word in the data, obtaining the first information in the data;
[0060] The level of the data is determined according to the first information.
[0061] The first information may be the transaction amount involved, such as the amount of the invoice, or may be the reimbursement unit information, with different levels corresponding to different preset units.
[0062] If there are sensitive words in the data, the number of the sensitive words is obtained;
[0063] The level of the data is determined based on the mapping relationship between the preset number of sensitive words and the data level.
[0064] When sensitive words are involved in the data, the data level can be determined according to the number of sensitive words, or the sensitivity of the sensitive words, etc. For example, the higher the sensitivity, the higher the level of the data. Alternatively, when sensitive words are involved in the data, the level of the above data is directly determined to be a preset level.
[0065] If the number of sensitive words exceeds a preset threshold, a request failure message is sent to the first service provider SPV node, and the authority level of the first service provider SPV node is reduced to a preset authority level. Alternatively, the first service provider SPV node is blacklisted.
[0066] Specifically, the level of the electronic invoice information can be obtained by determining the level of the electronic invoice information through the amount information involved in the electronic invoice, or by obtaining the invoicing unit information from the electronic invoice information, such as unit A, and then obtaining the unit level corresponding to unit A to obtain the level of the electronic invoice information.
[0067] 403. When the level of the data exceeds a preset level, a request for obtaining a signature is sent to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature;
[0068] When the level of the data exceeds the preset level, such as the data is more sensitive or more important, it can be set to send a signature request to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature.
[0069] The first tax bureau SPV node can confirm the rationality of the data processing request, such as confirming whether the first service provider SPV node has the authority to transfer data to the second service provider SPV node, and whether the transferred data is reasonable. If the data processing request is confirmed to be reasonable, the first tax bureau SPV node sends a confirmation message.
[0070] When the level of the above-mentioned electronic invoice information exceeds the preset level, a signature acquisition request is sent to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature.
[0071] 404. When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node.
[0072] Optionally, if the level of the data exceeds the preset level, only the signature sent by the first tax bureau SPV node may be obtained. If obtained, the data may be transferred to the second service provider SPV node.
[0073] When the signature sent by the first tax bureau SPV node is received, the above electronic invoice information is transferred to the second consumer client.
[0074] The signature sent by the first tax bureau SPV node can also be obtained, and a private key signature request can be sent to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature. After the double signature is obtained, the data is transferred to the second service provider SPV node.
[0075] Wherein, the blockchain further includes a consensus node, and the method further includes:
[0076] Sending a request to a consensus node in the blockchain to instruct the consensus node to verify the information of the data transferred to the SPV node of the second service provider through a consensus mechanism;
[0077] When the verification is passed, the information of transferring the data to the SPV node of the second service provider is stored in the consensus node in the blockchain.
[0078] After passing the consensus verification, the chain operation will be carried out to ensure the openness of the information.
[0079] Wherein, when the level of the data is lower than the preset level, the method includes:
[0080] Sending a private key signature acquisition request to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature;
[0081] Receive the private key signature sent by the SPV node of the first service provider;
[0082] The data is transferred to the second service provider SPV node.
[0083] When the data level is low, the data can be transferred by simply obtaining the private key signature of the first service provider's SPV node.
[0084] Through the embodiment of the present application, by receiving the data processing request sent by the first service provider SPV node, the level of the data is obtained. When the level of the data exceeds the preset level, a signature acquisition request is sent to the first tax bureau SPV node. When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node. By adopting this method, data processing is performed by adopting the node cascading method, which further ensures the security and reliability of data processing.
[0085] See also Figure 5 , Figure 5 A flow chart of a data processing method based on SPV node cascading is provided for an embodiment of the present application. The method is applied to a blockchain, wherein the blockchain includes at least a first tax bureau SPV node, a first service provider SPV node, and a second service provider SPV node, such as Figure 5 As shown, it may include steps 501-508, which are specifically as follows:
[0086] 501. Receive a data processing request sent by a first service provider SPV node, the data processing request carrying data and a second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to a second service provider SPV node corresponding to the second service provider SPV node identifier;
[0087] If the first consumer client needs to transfer the electronic invoice information to the second consumer client, the first consumer client sends a data processing request to the blockchain management device, wherein the data processing request carries the electronic invoice information and the identifier of the second consumer client.
[0088] 502. Confirming the true level of the data;
[0089] The blockchain management device confirms the authenticity of the data by obtaining the transaction time, amount and information of the transaction parties corresponding to the electronic invoice information from the blockchain. The authenticity of different information items can be scored and different weights can be used to obtain the final authenticity score of the data. The authenticity level of the data can be obtained according to different scores corresponding to different authenticity levels.
[0090] 503. If the authenticity level of the data is lower than the first preset level and higher than the second preset level, a request is sent to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature, and a private key signature acquisition request is sent to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature;
[0091] If the authenticity level of the data is higher than the first preset level, a private key signature request may be sent only to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature. When the authenticity level of the data is higher, confirmation may be requested only from the first service provider SPV node.
[0092] If the authenticity level of the data is lower than the first preset level and higher than the second preset level, a request is sent to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature. At the same time, a request for obtaining a private key signature is sent to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature. By performing double confirmation, the security and reliability of data processing are improved.
[0093] 504. When receiving the signature sent by the first tax bureau SPV node and the private key signature sent by the first service provider SPV node, the data is transferred to the second service provider SPV node;
[0094] After the first tax bureau SPV node and the first service provider SPV node have confirmed, the above data can be transferred to the second service provider SPV node.
[0095] 505. Send a request to a consensus node in the blockchain to instruct the consensus node to verify the information of the data transferred to the SPV node of the second service provider through a consensus mechanism;
[0096] Among them, the blockchain or blockchain synchronizes the above data processing information at the same time. Before synchronizing the information, each consensus node needs to verify the above information and follow the principle that the minority nodes obey the majority nodes. When the majority of nodes pass the above verification, it means that the above information has completed the verification.
[0097] 506. When the verification is passed, the information of transferring the data to the SPV node of the second service provider is stored in the consensus node in the blockchain;
[0098] After verification is completed, the above information will be recorded in each consensus node.
[0099] 507. If the real level of the data is lower than the second preset level, a request is sent to the first tax bureau SPV node to instruct the first tax bureau SPV node to process the first service provider SPV node.
[0100] When the authenticity level of the data is low, it means that the data is unreliable or illegal, etc., then the real data corresponding to the above data is obtained through the First Tax Bureau SPV node, and the data at the erroneous service provider SPV node is changed to save the real data.
[0101] 508. Add the first service provider SPV node to the blacklist.
[0102] When the authenticity level of the data is low, the first service provider's SPV node will be blacklisted or punished by reducing permissions.
[0103] Among them, when the authenticity level of the data is lower than the second preset level, it means that the above data is illegally fabricated or violates regulations, etc., and a request is sent to the first tax bureau SPV node to instruct to obtain the real data corresponding to the data, such as by confirming the information with the consensus node, and then modifying the false data stored in the service provider SPV node based on the real data. Among them, the tax bureau SPV can use multiple signatures, which can be understood as the tax bureau SPV has a master key, which can unlock all service provider SPVs under the jurisdiction of the tax bureau SPV, handle the exception, and eliminate the illegal transaction process corresponding to service provider b.
[0104] Through the embodiment of the present application, by receiving the data processing request sent by the first service provider SPV node, the authenticity level of the data is obtained. When the authenticity level of the data meets the preset conditions, a signature acquisition request is sent to the first tax bureau SPV node and the first service provider SPV node. When the returned signature is received, the data is transferred to the second service provider SPV node. By adopting this method, the security and reliability of data processing are effectively guaranteed by using multiple nodes to confirm the data, and different confirmation mechanisms are set according to different data levels to improve the authenticity and reliability of the data and the efficiency of data processing.
[0105] For the above embodiments, please refer to Figure 6 , Figure 6 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, as shown in the figure, includes a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps;
[0106] receiving a data processing request sent by the first service provider SPV node, the data processing request carrying data and the second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to the second service provider SPV node corresponding to the second service provider SPV node identifier;
[0107] obtaining a level of said data;
[0108] When the level of the data exceeds a preset level, sending a request for obtaining a signature to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature;
[0109] When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node.
[0110] Through the embodiment of the present application, by receiving the data processing request sent by the first service provider SPV node, the level of the data is obtained. When the level of the data exceeds the preset level, a signature acquisition request is sent to the first tax bureau SPV node. When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node. By adopting this method, data processing is performed by adopting the node cascading method, which further ensures the security and reliability of data processing.
[0111] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0112] The embodiment of the present application can divide the terminal into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0113] In line with the above, see Figure 7 , Figure 7 A structural diagram of a data processing system based on SPV node cascading is provided for the embodiment of the present application. It includes a request receiving module 701, a level obtaining module 702, a signature obtaining module 703 and a data processing module 704, wherein:
[0114] A request receiving module 701 is used to receive a data processing request sent by a first service provider SPV node, the data processing request carries data and a second service provider SPV node identifier, and the data processing request is used to instruct to transfer the data to a second service provider SPV node corresponding to the second service provider SPV node identifier;
[0115] A level acquisition module 702 is used to acquire the level of the data;
[0116] A signature acquisition module 703 is used to send a signature acquisition request to the first tax bureau SPV node when the level of the data exceeds a preset level, so as to instruct the first tax bureau SPV node to confirm the data processing request and send a signature;
[0117] The data processing module 704 is used to transfer the data to the second service provider SPV node upon receiving the signature sent by the first tax bureau SPV node.
[0118] Furthermore, the acquisition level module 702 is used to:
[0119] Confirm whether there are sensitive words in the data according to a preset sensitive word library; if there are no sensitive words in the data, respectively obtain the authority level of the first service provider SPV node and the authority level of the second service provider SPV node; respectively obtain a first result obtained by multiplying the authority level of the first service provider SPV node by a first preset parameter, and a second result obtained by multiplying the authority level of the second service provider SPV node by a second preset parameter; and use the sum of the first result and the second result as the level of the data.
[0120] The level acquisition module 702 is further used to: if there are sensitive words in the data, obtain the number of the sensitive words; and confirm the level of the data according to the mapping relationship between the preset number of sensitive words and the data level.
[0121] It also includes a downgrade processing module, which is used to: if the number of sensitive words exceeds a preset threshold, send a request failure message to the first service provider SPV node, and reduce the authority level of the first service provider SPV node to a preset authority level.
[0122] Furthermore, it also includes a sending request module, which is used to:
[0123] Send a private key signature request to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature.
[0124] Furthermore, it also includes a verification module, which is used to: send a request to the consensus node in the blockchain to instruct the consensus node to verify the data through the consensus mechanism; when the verification passes, the information that the data is transferred to the second service provider SPV node is stored in the consensus node in the blockchain, and trigger the transfer of the data to the second service provider SPV node.
[0125] The request sending module is also used to: when the level of the data is lower than the preset level, send a request to obtain a private key signature to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature; receive the private key signature sent by the first service provider SPV node; and transfer the data to the second service provider SPV node.
[0126] It can be seen that through the embodiment of the present application, by receiving the data processing request sent by the first service provider SPV node, the level of the data is obtained. When the level of the data exceeds the preset level, a signature acquisition request is sent to the first tax bureau SPV node. When the signature sent by the first tax bureau SPV node is received, the data is transferred to the second service provider SPV node. By adopting this method, data processing is performed by adopting the method of node cascading, which further ensures the security and reliability of data processing.
[0127] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the data processing methods based on SPV node cascading as recorded in the above method embodiments.
[0128] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any one of the data processing methods based on SPV node cascading recorded in the above method embodiments.
[0129] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0130] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0131] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0132] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0134] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0135] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0136] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing method based on SPV node cascade, applied to a blockchain, wherein the blockchain comprises at least a first tax bureau SPV node, a first service provider SPV node, and a second service provider SPV node, characterized in that: include: receiving a data processing request sent by the first service provider SPV node, the data processing request carrying data and the second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to the second service provider SPV node corresponding to the second service provider SPV node identifier; obtaining the level of said data; When the level of the data exceeds a preset level, sending a request for obtaining a signature to the first tax bureau SPV node to instruct the first tax bureau SPV node to confirm the data processing request and send a signature; When receiving the signature sent by the first tax bureau SPV node, the data is transferred to the second service provider SPV node; The level of obtaining the data includes: Confirm whether there are sensitive words in the data according to a preset sensitive word library; If there are no sensitive words in the data, obtaining the permission level of the first service provider SPV node and the permission level of the second service provider SPV node respectively; Respectively obtaining a first result obtained by multiplying the authority level of the first service provider SPV node by a first preset parameter, and a second result obtained by multiplying the authority level of the second service provider SPV node by a second preset parameter; The sum of the first result and the second result is used as the level of the data.
2. The method according to claim 1, characterized in that If there are sensitive words in the data, the method includes: Obtain the number of sensitive words; The level of the data is determined based on the mapping relationship between the preset number of sensitive words and the data level.
3. The method according to claim 2, characterized in that If the number of the sensitive words exceeds a preset threshold, a request failure message is sent to the first service provider SPV node, and the authority level of the first service provider SPV node is reduced to a preset authority level.
4. The method according to claim 1, characterized in that After receiving the signature sent by the first tax bureau SPV node and before transferring the data to the second service provider SPV node, the steps include: Send a private key signature request to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature.
5. The method according to claim 1, characterized in that The blockchain also includes a consensus node, and after receiving the signature sent by the first tax bureau SPV node and before transferring the data to the second service provider SPV node, the consensus node includes: Sending a request to a consensus node in the blockchain to instruct the consensus node to verify the data through a consensus mechanism; When the verification is passed, the information that the data is transferred to the SPV node of the second service provider is stored in the consensus node in the blockchain, and the transfer of the data to the SPV node of the second service provider is triggered.
6. The method according to claim 1, characterized in that When the level of the data is lower than the preset level, the method includes: Sending a private key signature acquisition request to the first service provider SPV node to instruct the first service provider SPV node to confirm the data processing request and send a private key signature; Receive the private key signature sent by the SPV node of the first service provider; The data is transferred to the second service provider SPV node.
7. A data processing system based on SPV node cascade, applied to a blockchain, wherein the blockchain comprises at least a first tax bureau SPV node, a first service provider SPV node, and a second service provider SPV node, characterized in that: include: A request receiving module, configured to receive a data processing request sent by a first service provider SPV node, the data processing request carrying data and a second service provider SPV node identifier, the data processing request being used to instruct to transfer the data to a second service provider SPV node corresponding to the second service provider SPV node identifier; A level acquisition module, used for acquiring the level of the data; A signature acquisition module, configured to send a signature acquisition request to the first tax bureau SPV node when the level of the data exceeds a preset level, so as to instruct the first tax bureau SPV node to confirm the data processing request and send a signature; A data processing module, configured to transfer the data to the second service provider SPV node upon receiving the signature sent by the first tax bureau SPV node; Among them, the level acquisition module is used to confirm whether there are sensitive words in the data according to a preset sensitive word library; if there are no sensitive words in the data, respectively obtain the authority level of the first service provider SPV node and the authority level of the second service provider SPV node; respectively obtain a first result obtained by multiplying the authority level of the first service provider SPV node by a first preset parameter, and a second result obtained by multiplying the authority level of the second service provider SPV node by a second preset parameter; and use the sum of the first result and the second result as the level of the data.
8. A terminal, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
