Disclosure of Invention
In order to solve the technical problems, the application provides a processing method, a system and a blockchain platform for important blank certificates. Because the state information of the important blank certificates is stored on the alliance chain platform, when the block comprising the changed data is added into the alliance chain platform, the block information needs to be checked, so that the problem that the state information is tampered is avoided.
The embodiment of the application discloses the following technical scheme:
in a first aspect, the present application provides a method for processing an important blank credential, which is applied to a federation chain platform, where the federation chain platform at least corresponds to the following two server nodes: a first service end node and a second service end node; the method comprises the following steps:
the alliance chain platform receives the block uploaded by the first service end node; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node;
the alliance chain platform verifies the block;
if the verification is passed, the alliance chain platform stores the block and updates the state information according to the change data, so that the first server node and/or the second server node acquire the updated state information through the alliance chain platform.
As a possible implementation manner, the method further comprises:
the alliance chain platform configures a first subkey for the first service end node; the alliance chain platform configures a second subkey for the second server node; wherein the first sub-key and the second sub-key are used to generate a first key;
the federation chain platform verifying the block includes:
and the alliance chain platform generates a second key according to the first sub-key uploaded by the first server node and the acquired second sub-key, and checks the block by judging whether the second key is consistent with the first key.
As a possible implementation manner, the configuring, by the federation chain platform, the first subkey for the first server node includes:
the alliance chain platform reconfigures the first subkey every other preset period to update the data of the first subkey;
the federation chain platform configuring a second subkey for the second server node includes:
and the alliance chain platform reconfigures the second subkey every other preset period to update the data of the second subkey.
As a possible implementation manner, the coalition chain platform configures the identification of the important blank credential in advance; the method further comprises the following steps after the alliance chain platform updates the state information according to the change data:
and the alliance chain platform stores the corresponding relation between the identification and the state information.
As a possible implementation manner, the coalition chain platform further corresponds to at least one user end node; the method further comprises the steps of:
and the alliance chain platform generates the identifier through a hash algorithm pair according to the change data, so that the user end node obtains the state information corresponding to the identifier through the identifier according to the corresponding relation.
In a second aspect, the present application provides a processing system for an important blank credential, where the processing system is applied to a federation chain platform, and the federation chain platform at least corresponds to the following two server nodes: a first service end node and a second service end node; the system comprises: the device comprises an uploading module, a checking module and a processing module;
the uploading module is used for receiving the block uploaded by the first server node by the alliance chain platform; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node;
the verification module is used for verifying the block by the alliance chain platform;
and the processing module is used for storing the block by the alliance chain platform if the verification is passed, and updating the state information according to the change data so that the first service end node and/or the second service end node can acquire the updated state information through the alliance chain platform.
As a possible implementation manner, the system further comprises: a configuration module;
the configuration module is used for configuring a first subkey for the first server node by the alliance chain platform; the alliance chain platform configures a second subkey for the second server node; wherein the first sub-key and the second sub-key are used to generate a first key;
the verification module is further configured to generate a second key according to the first subkey uploaded by the first server node and the obtained second subkey by using the alliance chain platform, and verify the block by judging whether the second key is consistent with the first key.
As a possible implementation manner, the configuration module is further configured to reconfigure the first subkey by the federation chain platform every preset period to update the data of the first subkey; the coalition chain platform is further used for reconfiguring the second subkey every preset period so as to update the data of the second subkey.
As a possible implementation manner, the configuration module is further configured to pre-configure the identifier of the important blank credential by using the federation chain platform;
the processing module is further configured to store, by the federation chain platform, a correspondence between the identifier and the state information after the federation chain platform updates the state information according to the change data.
As a possible implementation manner, the coalition chain platform further corresponds to at least one user end node; the processing module is further configured to generate the identifier through a hash algorithm pair according to the change data by using the federation chain platform, so that the user end node obtains, according to the corresponding relationship, state information corresponding to the identifier through the identifier.
In a third aspect, the present application provides a blockchain platform including the system of any of the second aspects of the present application.
According to the technical scheme, the application has the following advantages:
the application discloses a processing method, a system and a blockchain platform of an important blank certificate, which are applied to a alliance chain platform, wherein the alliance chain platform at least corresponds to the following two server nodes: a first service end node and a second service end node; the method comprises the following steps: the alliance chain platform receives the block uploaded by the first service end node; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node; the alliance chain platform verifies the block; if the verification is passed, the alliance chain platform stores the block and updates the state information according to the change data, so that the first server node and/or the second server node acquire the updated state information through the alliance chain platform. Because the state information of the important blank certificates is stored on the alliance chain platform, when the block comprising the changed data is added into the alliance chain platform, the block information needs to be checked, so that the problem that the state information is tampered is avoided.
Detailed Description
In the prior art, the state information of the important blank certificates is stored in a central server in a bank, and other branch network points can acquire the state information of the important blank certificates by accessing the central server. However, there are a number of drawbacks to a centralized server. For example, because the state information of the important blank document is only stored by the centralized server, the problem of malicious tampering exists, the data is tampered in time, and other branch network points can consider the tampered data to be normal data, which is not beneficial to monitoring and managing the state information of the important blank document; in addition, when the centralized server fails, other branch network points cannot access the server, cannot acquire state information of important blank certificates, cannot recover data in the server once the data in the server is lost due to the failure, and has low reliability.
In order to solve the above problems, the present application provides a method, a system and a blockchain platform for processing important blank certificates.
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Embodiment one:
an embodiment of the present application provides a method for processing an important blank document, and the method is specifically described below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for processing an important blank document is provided in an embodiment of the present application.
The processing method of the important blank certificate is applied to a alliance chain platform, and the alliance chain platform at least corresponds to the following two service end nodes: a first service end node and a second service end node; the method comprises the following steps:
step 101: the alliance chain platform receives the block uploaded by the first service end node; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node.
It should be understood that, before the first service end node may be one branch node of a bank and the second service end node may be another branch node of the bank, it is required to obtain change information of the important blank credential by the user before the first service end node uploads the block, then generate change data according to the change information, and package the change data into the block.
Wherein, the change information refers to the operation of the user on the important blank certificate, for example: warehouse entry, allocation, reception, adjustment, delivery, sale, loss reporting, voiding and the like. The change data refers to processing information generated after the service personnel processes the operation of the important blank certificate of the user, and can also comprise change information, and the service personnel belongs to the first service end node. The state information is affected by the change data, i.e. the state information will change at any time after the change data is generated.
And after the first server node packages and generates a block according to the change data, the block is sent to the alliance chain platform.
Step 102: the coalition chain platform verifies the block.
It will be appreciated that, rather than the first server node and/or the second server node uploading a block to the federated chain platform, the federated chain platform will add the block to the federated chain platform, but will need to verify the block. How the blocks are verified is described in detail below.
As a possible implementation manner, the federation chain platform configures a first subkey for the first server node; the alliance chain platform configures a second subkey for the second server node; wherein the first sub-key and the second sub-key are used to generate a first key; the federation chain platform verifying the block includes: and the alliance chain platform generates a second key according to the first sub-key uploaded by the first server node and the acquired second sub-key, and checks the block by judging whether the second key is consistent with the first key.
In the above embodiment, the federation chain platform distributes sub-keys to a plurality of server nodes in advance, each server node only knows its own sub-key, and when the server node sends a block to the federation chain platform, the sub-key is additionally sent to the federation chain platform to verify whether it is a node having authority to upload the block. When the node is judged to be the node with the uploading authority, the alliance chain platform calculates according to the subkey and the obtained subkeys of other nodes to obtain the key. If the key is the key which the alliance chain platform passes through authentication, proving that other nodes agree to the block uploaded by the node, that is, the other nodes agree to add the block to the alliance chain platform.
It is understood that the other nodes may be part of the server end nodes of the federation chain, or all of the server end nodes, and are not limited in this application.
In addition, the federation chain platform configuring a first subkey for the first server node includes: the alliance chain platform reconfigures the first subkey every other preset period to update the data of the first subkey; the federation chain platform configuring a second subkey for the second server node includes: and the alliance chain platform reconfigures the second subkey every other preset period to update the data of the second subkey. The sub-key of each server node is updated at random, so that the security of the sub-key is further ensured, and the risk that the sub-key is maliciously stolen by other nodes is further avoided.
Step 103: if the verification is passed, the alliance chain platform stores the block and updates the state information according to the change data, so that the first server node and/or the second server node acquire the updated state information through the alliance chain platform.
After verification is passed, the block is added to the alliance chain platform by the alliance chain, meanwhile, the alliance chain platform can obtain the change data, after the change data is obtained, the state information is updated according to the change data, and when other service end nodes access the alliance chain platform, the latest state information of the important blank certificate in the latest state can be obtained.
As a possible implementation manner, the coalition chain platform configures the identification of the important blank credential in advance; the method further comprises the following steps after the alliance chain platform updates the state information according to the change data: and the alliance chain platform stores the corresponding relation between the identification and the state information.
In the above embodiment, the correspondence between the identifier and the state information is stored, so that when other service end nodes access the federation chain platform, the latest state information of the important blank credential is quickly obtained, and the efficiency of obtaining the state information is further improved.
As a possible implementation manner, the coalition chain platform further corresponds to at least one user end node; the method further comprises the steps of: and the alliance chain platform generates the identifier through a hash algorithm pair according to the change data, so that the user end node obtains the state information corresponding to the identifier through the identifier according to the corresponding relation.
In the above embodiment, the federation chain platform includes not only a server node but also a user end node. The server node is a node with state information that modifies all important blank credentials, or is a control node. The user end node is a read-only node, and the important blank credential information that can be viewed by the user end node is limited.
It can be understood that each user end node only knows the change data of the own node on the own important blank certificate, and can generate an identifier by carrying out hash operation on the change data. And the user terminal node can obtain the state information corresponding to the identifier according to the corresponding relation through the identifier. Other user segment nodes can only acquire the important blank credential information of the user segment nodes, but cannot acquire the important blank credential information of other people, so that the privacy of the state information of the important blank credential is further improved.
According to the technical scheme, the application has the following advantages:
the application discloses a processing method of an important blank certificate, which is applied to a alliance chain platform, wherein the alliance chain platform at least corresponds to the following two service end nodes: a first service end node and a second service end node; the method comprises the following steps: the alliance chain platform receives the block uploaded by the first service end node; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node; the alliance chain platform verifies the block; if the verification is passed, the alliance chain platform stores the block and updates the state information according to the change data, so that the first server node and/or the second server node acquire the updated state information through the alliance chain platform. Because the state information of the important blank certificates is stored on the alliance chain platform, when the block comprising the changed data is added into the alliance chain platform, the block information needs to be checked, so that the problem that the state information is tampered is avoided.
Embodiment two:
the second embodiment of the present application provides a method for processing an important blank document, and the following detailed description is given with reference to the accompanying drawings.
Referring to fig. 2, a schematic diagram of a processing system for providing an important blank document according to an embodiment of the present application is provided.
The processing system of the important blank certificate is characterized by being applied to a alliance chain platform, wherein the alliance chain platform at least corresponds to the following two service end nodes: a first service end node and a second service end node; the system comprises: an uploading module 201, a checking module 202 and a processing module 203.
The uploading module 201 is configured to receive, by the federation chain platform, a block uploaded by the first server node; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node.
The verification module 202 is configured to verify the block by using the federation chain platform.
The processing module 203 is configured to store the block by the federation chain platform if the verification passes, and update the state information according to the change data, so that the first server node and/or the second server node obtains updated state information through the federation chain platform.
As a possible implementation manner, the system further comprises: the module 204 is configured.
The configuration module 204 is configured to configure the first subkey for the first server node by using the federation chain platform; the alliance chain platform configures a second subkey for the second server node; wherein the first sub-key and the second sub-key are used to generate a first key.
The verification module 202 is further configured to generate a second key according to the first subkey uploaded by the first server node and the obtained second subkey by using the federation chain platform, and verify the block by determining whether the second key is consistent with the first key.
As a possible implementation manner, the configuration module 204 is further configured to reconfigure the first subkey by the federation chain platform every preset period to update the data of the first subkey; the coalition chain platform is further used for reconfiguring the second subkey every preset period so as to update the data of the second subkey.
As a possible implementation manner, the configuration module 204 is further configured to pre-configure the identifier of the important blank credential by using the federation chain platform.
The processing module 203 is further configured to store, after the federation chain platform updates the state information according to the change data, a correspondence between the identifier and the state information.
As a possible implementation manner, the coalition chain platform further corresponds to at least one user end node; the processing module 203 is further configured to generate the identifier by using a hash algorithm pair according to the change data by using the federation chain platform, so that the user end node obtains, according to the corresponding relationship, state information corresponding to the identifier by using the identifier.
According to the technical scheme, the application has the following advantages:
the application discloses a processing system of an important blank certificate, which is applied to a alliance chain platform, wherein the alliance chain platform at least corresponds to the following two service end nodes: a first service end node and a second service end node; the system comprises: the device comprises an uploading module, a checking module and a processing module; the uploading module is used for receiving the block uploaded by the first server node by the alliance chain platform; the block comprises change data, wherein the change data is generated by changing the state information of the important blank certificate by the first server node; the verification module is used for verifying the block by the alliance chain platform; and the processing module is used for storing the block by the alliance chain platform if the verification is passed, and updating the state information according to the change data so that the first service end node and/or the second service end node can acquire the updated state information through the alliance chain platform. Because the state information of the important blank certificates is stored on the alliance chain platform, when the block comprising the changed data is added into the alliance chain platform, the block information needs to be checked, so that the problem that the state information is tampered is avoided.
Embodiment III:
an embodiment III of the present application provides a blockchain platform, including the system of any of the embodiments II of the present application.
After the system is adopted by the blockchain platform, the state information of the important blank certificates is stored on the blockchain platform, when the block comprising the changed data is added into the blockchain platform, the block information needs to be checked, so that the problem that the state information is tampered is avoided, meanwhile, the state information is stored on the blockchain platform, and when the server node has single-point faults, other server nodes can still access the blockchain platform, the reliability is high, and the condition of data loss is avoided.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.