Disclosure of Invention
The invention aims to provide an information monitoring method, a blockchain system, an information monitoring device and a storage medium, so as to relatively realize the monitoring of transaction amount of a blockchain with privacy protection, thereby ensuring the stability and usability of the whole blockchain system.
In order to solve the technical problems, the present invention provides an information monitoring method applied to a blockchain system, the method comprising:
public parameters are disclosed to transaction nodes in the blockchain system, wherein the public parameters comprise trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on pre-stored trapdoor information;
acquiring a tracking key generated by a transaction node, wherein the tracking key is generated based on public parameters and transaction information fragments;
calculating a transaction information segment corresponding to the local based on the tracking key, the public parameter and trapdoor information;
and generating transaction information according to the transaction information fragments in the local corresponding transaction information fragments and other supervision nodes.
Preferably, before acquiring the tracking key generated by the transaction node, the method further comprises:
acquiring a verification result of a verification node in the blockchain system on the validity verification of the tracking key in a zero knowledge proof mode, wherein the validity verification is generated by a transaction node on the basis of a Bulletproffs verification framework;
and when the verification result represents that the validity proof passes the verification, executing the step of acquiring the tracking key generated by the transaction node.
Preferably, the blockchain system includes a privacy preserving blockchain system.
In addition, the invention also provides an information monitoring method which is applied to the transaction node in the blockchain system, and the method comprises the following steps:
the method comprises the steps of obtaining public parameters disclosed by supervision nodes in a blockchain system, wherein the number of the supervision nodes is larger than 1, the public parameters comprise trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on trapdoor information pre-stored by the supervision nodes;
acquiring transaction information and dividing the transaction information into transaction information fragments;
calculating the public parameters and the corresponding transaction information fragments to generate a tracking key;
the tracking key is issued to the blockchain system for the supervising node to calculate transaction information based on the tracking key, the public parameters and trapdoor information.
Preferably, the method further comprises:
generating a validity proof of the tracking key based on a proof framework of Bulletproffs, and issuing the validity proof and the tracking key to the blockchain system so that a verification node of the blockchain system can verify the validity proof in a zero knowledge proof mode;
issuing a tracking key to a blockchain system, comprising:
the tracking key is issued to each authentication node of the blockchain system.
Preferably, dividing the transaction information into transaction information pieces includes:
binary expansion is carried out on the transaction information to generate each binary bit of the transaction information;
dividing binary bits to generate transaction information fragments;
generating a tracking key by operating the public parameters with the corresponding transaction information fragments, including:
and calculating the numerical value of each binary bit in the corresponding transaction information fragment through the public parameter to generate the tracking key.
Preferably, the number of trapdoor information is less than or equal to the number of binary bits in the transaction information;
generating a tracking key by calculating the common parameter and the numerical value of each binary bit in the corresponding transaction information fragment, wherein the tracking key comprises the following components:
dividing binary digit values in the transaction information fragments into value groups, wherein the number of the value groups is consistent with the number of trapdoor information, and the value groups uniquely correspond to the trapdoor information;
The tracking key is calculated from the values of the binary digits in the set of values and the corresponding common parameters, the trapdoor common parameters corresponding to the set of values being generated based on trapdoor information corresponding to the set of values.
Preferably, the certifying framework based on Bulletproffs generates a certification of validity for the tracking key, comprising:
the certifying framework based on Bulletproffs generates a certification of legitimacy corresponding to each tracking key and a certification of legitimacy of the entirety of all tracking keys.
In addition, the invention also provides a blockchain system, which comprises at least two transaction nodes and at least two supervision nodes, wherein:
the transaction node is used for acquiring public parameters disclosed by the supervision node in the blockchain system, wherein the public parameters comprise trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on trapdoor information pre-stored by the supervision node; acquiring transaction information and dividing the transaction information into transaction information fragments; calculating the public parameters and the corresponding transaction information fragments to generate a tracking key; issuing the tracking key to a blockchain system for the supervision node to calculate transaction information according to the tracking key, the public parameters and trapdoor information;
A supervision node for disclosing common parameters to transaction nodes in the blockchain system; acquiring a tracking key generated by a transaction node; calculating a transaction information segment corresponding to the local based on the tracking key, the public parameter and trapdoor information; and generating transaction information according to the transaction information fragments in the local corresponding transaction information fragments and other supervision nodes.
In addition, the invention also provides an information monitoring device, which comprises a memory, a processor and a bus, wherein the memory stores an information monitoring program which can be transmitted to the processor by the bus and run on the processor, and the information monitoring program realizes the information monitoring method when being executed by the processor.
In addition, the invention also provides a computer readable storage medium, on which an information monitoring program is stored, the information monitoring program being executable by one or more processors to implement the information monitoring method as described above.
According to the information monitoring method provided by the invention, the transaction node obtains the public parameters generated by the supervision node in the blockchain system during system initialization, the public parameters comprise trapdoor public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trapdoor public parameters are calculated and generated based on trapdoor information stored by the supervision node, further, transaction information is obtained, the transaction information is divided into transaction information fragments, further, a tracking key is generated through calculation of the public parameters and the corresponding transaction information fragments, after the tracking key is generated, the tracking key is issued to the blockchain system, so that the supervision node can calculate the transaction information fragments together according to the tracking key, the public parameters and the trapdoor information, and complete transaction information is generated together through the transaction information fragments corresponding to the supervision nodes. Because the trapdoor public parameters transmitted by the supervisory node are generated based on trapdoor information calculation stored by the supervisory node, and the trapdoor information is recorded in the supervisory node, the supervisory node can acquire partial contents of transaction information through decryption operation on the tracking key by the trapdoor information, and on the basis, the supervisory nodes can restore complete transaction information together based on the transaction information fragments acquired by the supervisory node, so that the effect of the supervisory nodes on monitoring the transaction information in the blockchain system together is realized, and the overall stability and usability of the blockchain system are further ensured. In addition, the invention also provides a blockchain system, information monitoring equipment and a storage medium, and the beneficial effects are the same as those described above.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
In the block chain-based transaction process, the verification of the legality of the transaction amount often needs to be realized in an interval verification mode, that is, corresponding promise information and interval verification are generated according to the transaction amount, and the promise information only can reflect a designated interval of the transaction amount, but cannot reveal the specific transaction amount. The interval certification scheme widely applied in a plurality of blockchain projects with privacy protection is a Bulletproffs interval certification scheme with shorter certification size and higher verification speed.
In an actual scenario, the blockchain with privacy protection may be frequently used by malicious users for illegal transactions such as small-amount transactions, asset transfer and the like, or the situation that the user account amount is suddenly changed due to system loopholes, but the existence of an abnormal state cannot be judged because the transaction amount cannot be known, so that the overall stability of the blockchain system is difficult to ensure, and in addition, the supervision of transaction contents is difficult to realize, so that the overall usability of the blockchain system cannot be ensured.
The core of the invention is to provide an information monitoring method, a blockchain system, an information monitoring device and a storage medium, so as to relatively realize the monitoring of transaction amount of a blockchain with privacy protection, thereby ensuring the stability and usability of the whole blockchain system.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 1 is a flowchart of an information monitoring method according to an embodiment of the present invention. Referring to fig. 1, the specific steps of the information monitoring method include:
step S10: public parameters are disclosed to transaction nodes in the blockchain system, wherein the public parameters comprise trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on pre-stored trapdoor information.
It should be noted that, the execution body for executing the steps in this embodiment should be a supervisory node in the blockchain system, where the supervisory node may be considered as a series of blockchain nodes with information monitoring functions in the blockchain system, and in this embodiment, the number of supervisory nodes is greater than 1, where the information monitoring functions refer to that when the supervisory node performs transaction communications on a transaction node in the blockchain system, each supervisory node can monitor and learn part of the content of the transaction information of the transaction node, and all supervisory nodes can restore complete transaction information together according to respective transaction information. In addition, the same blockchain node in the blockchain system can execute the working logic of the supervision node or the transaction node, thereby becoming the supervision node or the transaction node.
In this step, the supervisory node discloses public parameters to the transaction nodes in the blockchain system, wherein the public parameters include trapdoor public parameters and system public parameters. The system public parameter is randomly generated during system initialization or generated according to preset generation logic; the trapdoor common parameters are calculated and generated based on trapdoor information pre-stored in the supervisory node, and it is emphasized that trapdoor information is only recorded in the supervisory node and can only be informed of specific content by the supervisory node. The key point of the step is that the trapdoor common parameters are generated based on trapdoor information calculation, the trapdoor information comprises trapdoor functions, trapdoor keys and the like, a series of parameters used for encrypting data and decrypting the encrypted data are generated through trapdoor information calculation, and the trapdoor common parameters are generated by encrypting elliptic curve random numbers based on the trapdoor functions and the trapdoor keys in the trapdoor information.
After the trapdoor public parameters are generated, the trapdoor public parameters are sent to transaction nodes in the blockchain system, and the purpose is that the transaction nodes can carry out further operation processing on transaction information in transactions through the trapdoor public parameters.
Step S11: and acquiring a tracking key generated by the transaction node, wherein the tracking key is generated based on the public parameters and the transaction information fragments.
After the trapdoor public parameters are sent to the transaction nodes in the blockchain system, the tracking key transmitted by the transaction nodes is further acquired, and the key point of the step is that the tracking key is generated based on the transaction information of the transaction nodes and the trapdoor public parameters, that is, the tracking key simultaneously contains the transaction information and factors of the trapdoor public parameters, so that in the subsequent step, the supervision node can calculate transaction information fragments according to the tracking key, the trapdoor public parameters and the trapdoor information.
Step S12: a locally corresponding transaction information piece is calculated based on the tracking key, the public parameters and trapdoor information.
After the trapdoor public parameters are sent to the transaction nodes in the blockchain system, the transaction nodes disclose the tracking keys to the blockchain system, and the trapdoor information and the public parameters stored by the transaction nodes calculate and generate transaction information fragments corresponding to the tracking keys.
Step S13: and generating transaction information according to the transaction information fragments in the local corresponding transaction information fragments and other supervision nodes.
In this embodiment, each supervision node can restore the transaction information segment corresponding to the supervision node according to the tracking key corresponding to the supervision node, and the transaction information segments corresponding to each supervision node are different and are part of the complete transaction segment, so this step generates complete transaction information together according to the transaction information segment corresponding to the local and the transaction information segments of other supervision nodes.
According to the information monitoring method provided by the invention, the transaction node obtains the public parameters generated by the supervision node in the blockchain system during system initialization, the public parameters comprise trapdoor public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trapdoor public parameters are calculated and generated based on trapdoor information stored by the supervision node, further, transaction information is obtained, the transaction information is divided into transaction information fragments, further, a tracking key is generated through calculation of the public parameters and the corresponding transaction information fragments, after the tracking key is generated, the tracking key is issued to the blockchain system, so that the supervision node can calculate the transaction information fragments together according to the tracking key, the public parameters and the trapdoor information, and complete transaction information is generated together through the transaction information fragments corresponding to the supervision nodes. Because the trapdoor public parameters transmitted by the supervisory node are generated based on trapdoor information calculation stored by the supervisory node, and the trapdoor information is recorded in the supervisory node, the supervisory node can acquire partial contents of transaction information through decryption operation on the tracking key by the trapdoor information, and on the basis, the supervisory nodes can restore complete transaction information together based on the transaction information fragments acquired by the supervisory node, so that the effect of the supervisory nodes on monitoring the transaction information in the blockchain system together is realized, and the overall stability and usability of the blockchain system are further ensured.
On the basis of the above embodiments, the present invention also provides the following series of preferred embodiments.
Fig. 2 is a flowchart of another information monitoring method according to an embodiment of the present invention. Referring to fig. 2, the specific steps of the information monitoring method include:
step S20: public parameters are disclosed to transaction nodes in the blockchain system, wherein the public parameters comprise trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on pre-stored trapdoor information.
Step S21: and acquiring a verification result of validity verification of the tracking key by a verification node in the blockchain system in a zero knowledge proof mode, wherein the validity verification is generated by the transaction node on the basis of a Bulletproffs verification framework.
It should be noted that, the validity proof in this step is generated by the transaction node operating the tracking key based on the proof framework of the bulletproof, so as to prove that the transaction information fragment is in the normal value range according to the validity proof to the verification node, but the verification node cannot learn the content of the specific transaction information fragment of the transaction performed by the transaction node according to the validity proof. In addition, the proving framework of the Bulletproffs is a Bulletproffs interval proving scheme, and compared with the interval proving scheme based on the Borromean, the interval proving scheme based on the Bulletproffs has similar operation amount increased on the basis of the original scheme, but because the Bulletproffs is superior to the Borromean scheme in space and efficiency, the interval proving scheme based on the Bulletproffs is more suitable for being applied to a privacy protection blockchain system under the supervision requirement.
In this embodiment, the verification node is configured to verify, by using a zero knowledge proof manner, a validity proof generated by the transaction node, so as to determine, by using a verification result of the validity proof, whether a tracking key generated by the transaction node is available. Where zero knowledge proof refers to a transaction node, i.e. a transaction node, proving and believing itself to possess a certain message, i.e. a tracking key generated from a transaction information piece, to a verifier, i.e. a verification node, but the proving process cannot reveal any information about the certified message to the verifier. The validation node may be a blockchain node in a blockchain system that has the function of validating proof of validity.
Step S22: and when the verification result represents that the validity proof passes the verification, acquiring a tracking key generated by the transaction node, wherein the tracking key is generated based on the public parameters and the transaction information fragment.
Judging whether the validity proof generated based on the tracking key is legal or not according to the verification result, if so, indicating that the tracking key is available, further acquiring the tracking key generated by the transaction node according to the trapdoor public parameter and the transaction information fragment, and further analyzing the corresponding transaction information fragment according to the tracking key.
Step S23: a locally corresponding transaction information piece is calculated based on the tracking key, the public parameters and trapdoor information.
Step S24: and generating transaction information according to the transaction information fragments in the local corresponding transaction information fragments and other supervision nodes.
According to the embodiment, the availability of the tracking key is verified through the verification node in the blockchain system, and the tracking key generated by the transaction node according to the trapdoor public parameter and the transaction information fragment is further acquired after the verification is passed, so that the accuracy of calculating the transaction information fragment according to the tracking key and the trapdoor information is relatively improved.
Based on the above embodiments, as a preferred implementation, the blockchain system includes a privacy preserving blockchain system.
Since the privacy protection blockchain system has relatively high data privacy, the data in the system can be relatively ensured to have high security in storage and transmission. The privacy preserving blockchain system further includes a door coin system and a door coin-like system.
Fig. 3 is a flowchart of another information monitoring method according to an embodiment of the present invention. Referring to fig. 3, the specific steps of the information monitoring method include:
Step S30: the method comprises the steps of obtaining public parameters disclosed by supervision nodes in a blockchain system, wherein the number of the supervision nodes is larger than 1, the public parameters comprise trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on trapdoor information pre-stored by the supervision nodes.
It should be noted that, the execution body for executing the steps in this embodiment should be a transaction node in the blockchain system, where the transaction node obtains public parameters issued by a plurality of supervision nodes in the blockchain system, and the public parameters include trapdoor public parameters and system public parameters generated based on trapdoor information pre-stored by the supervision nodes.
Step S31: transaction information is acquired and divided into transaction information segments.
In this step, the transaction node obtains the transaction information generated when executing the transaction itself, and divides the transaction information into a certain number of transaction information segments, the data length of each transaction information segment may be determined according to the actual requirement, each transaction information segment should be able to be combined into complete transaction information, and the number of transaction information segments should be consistent with the number of the supervision nodes.
Step S32: and calculating the public parameters and the corresponding transaction information fragments to generate a tracking key.
Because the corresponding relation exists between the transaction information fragments and the supervision nodes, in the step, after the transaction nodes acquire the transaction information fragments, the corresponding supervision nodes are learned according to the transaction information fragments, and then the transaction information fragments are operated through public parameters issued by the supervision nodes in the blockchain system, and corresponding tracking keys are generated. It can be seen that for all transaction node segments there is a corresponding generated tracking key.
Step S33: the tracking key is issued to the blockchain system for the supervising node to calculate transaction information based on the tracking key, the public parameters and trapdoor information.
After the tracking key corresponding to each transaction information segment is generated, the transaction node further issues the tracking key to the blockchain system, and the monitoring node in the blockchain system can acquire the tracking key, calculate the tracking key according to the public parameters and trapdoor information, generate corresponding transaction information segments, and jointly calculate transaction information according to the transaction information segments of other monitoring nodes.
According to the information monitoring method provided by the invention, the transaction node obtains the public parameters generated by the supervision node in the blockchain system during system initialization, the public parameters comprise trapdoor public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trapdoor public parameters are calculated and generated based on trapdoor information stored by the supervision node, further, transaction information is obtained, the transaction information is divided into transaction information fragments, further, a tracking key is generated through calculation of the public parameters and the corresponding transaction information fragments, after the tracking key is generated, the tracking key is issued to the blockchain system, so that the supervision node can calculate the transaction information fragments together according to the tracking key, the public parameters and the trapdoor information, and complete transaction information is generated together through the transaction information fragments corresponding to the supervision nodes. Because the trapdoor public parameters transmitted by the supervisory node are generated based on trapdoor information calculation stored by the supervisory node, and the trapdoor information is recorded in the supervisory node, the supervisory node can acquire partial contents of transaction information through decryption operation on the tracking key by the trapdoor information, and on the basis, the supervisory nodes can restore complete transaction information together based on the transaction information fragments acquired by the supervisory node, so that the effect of the supervisory nodes on monitoring the transaction information in the blockchain system together is realized, and the overall stability and usability of the blockchain system are further ensured.
On the basis of the above embodiment, as a preferred implementation manner, the method further includes:
generating a validity proof of the tracking key based on a proof framework of Bulletproffs, and issuing the validity proof and the tracking key to the blockchain system so that a verification node of the blockchain system can verify the validity proof in a zero knowledge proof mode;
issuing a tracking key to a blockchain system, comprising:
the tracking key is issued to each authentication node of the blockchain system.
It should be noted that, the validity proof in this embodiment is generated by the transaction node operating the tracking key based on the proof framework of the Bulletprofs, so as to prove that the transaction information fragment is in the normal value range interval to the verification node according to the validity proof, but the verification node cannot learn the specific value of the transaction by the transaction node according to the validity proof. Furthermore, it should be emphasized that after the verification node verifies that the validity of the tracking key has passed, the transaction node needs to issue the tracking key to the blockchain system through the verification node in order to ensure that the tracking key is not tampered with.
The verification node in this embodiment is configured to verify, by using a zero knowledge proof manner, a validity proof generated by the transaction node, so as to determine, by using a verification result of the validity proof, whether a tracking key generated by the transaction node is available. Where zero knowledge proof refers to a transaction node, i.e. a transaction node, proving and believing itself to possess a certain message, i.e. a tracking key generated from a transaction information piece, to a verifier, i.e. a verification node, but the proving process cannot reveal any information about the proven message to the verifier. The validation node may be a blockchain node in a blockchain system that has the function of validating proof of validity.
And the supervision node judges whether the legality proof generated based on the tracking key is legal or not according to the verification result of the verification node, and if the legality proof is legal, the supervision node further acquires the tracking key for monitoring.
According to the embodiment, the availability of the tracking key is verified through the verification node in the blockchain system, and the tracking key generated by the transaction node according to the trapdoor public parameter and the transaction information fragment is further acquired after the verification is passed, so that the accuracy of generating the transaction information fragment according to the tracking key and trapdoor information calculation is relatively improved.
On the basis of the above embodiment, as a preferred embodiment, dividing the transaction information into transaction information pieces includes:
binary expansion is carried out on the transaction information to generate each binary bit of the transaction information;
dividing binary bits to generate transaction information fragments;
generating a tracking key by operating the public parameters with the corresponding transaction information fragments, including:
and calculating the numerical value of each binary bit in the corresponding transaction information fragment through the public parameter to generate the tracking key.
It should be noted that, in this embodiment, before the tracking key is calculated according to the transaction information and the trapdoor public parameter, binary expansion is performed on the transaction information, that is, the transaction information is expanded in a binary manner to generate the numerical value of each binary bit of the transaction information, and then the corresponding tracking key is calculated according to the numerical value of each binary bit of the transaction information fragment and the trapdoor public parameter, so as to generate the tracking key corresponding to the numerical value of each binary bit. According to the method and the device, the transaction information is subjected to binary expansion, corresponding tracking keys are respectively generated for the numerical values of each binary bit, and confidentiality of the transaction information can be further improved.
On the basis of the above embodiment, further, the number of trapdoor information is less than or equal to the number of binary bits in the transaction information;
generating a tracking key by calculating the common parameter and the numerical value of each binary bit in the corresponding transaction information fragment, wherein the tracking key comprises the following components:
dividing binary digit values in the transaction information fragments into value groups, wherein the number of the value groups is consistent with the number of trapdoor information, and the value groups uniquely correspond to the trapdoor information;
the tracking key is calculated from the values of the binary digits in the set of values and the corresponding common parameters, the trapdoor common parameters corresponding to the set of values being generated based on trapdoor information corresponding to the set of values.
In the preferred embodiment, the value sets are actually divided into smaller pieces than the transaction pieces, and the transaction information pieces include the value sets.
The number of trapdoor information of the whole supervision node is smaller than or equal to the number of binary digits in the transaction information, and because a tracking key corresponding to each binary digit needs to be generated, in this embodiment, each trapdoor public parameter generates the tracking key with the value of the binary digit in the corresponding numerical value group. The implementation method relatively reduces the resource overhead occupied during trapdoor public parameter generation, and further improves the overall stability of the block chain system.
Further, as a preferred embodiment, the certifying framework based on the bulletproof pro ofs generates a certification of validity of the tracking key, including:
the certifying framework based on Bulletproffs generates a certification of legitimacy corresponding to each tracking key and a certification of legitimacy of the entirety of all tracking keys.
The key point of this embodiment is that the validity certificates of the tracking keys generated based on the certifying framework of the bulletproof pro os are respectively the corresponding validity certificates of the respective tracking keys and the validity certificates of the entire tracking keys, so this embodiment can further improve the comprehensiveness of the validity certificates, thereby further improving the reliability of verifying the tracking keys.
To enhance understanding of the foregoing technical content, the following further describes the information monitoring method through specific scene embodiments:
in order to realize the function of multiparty joint supervision, the invention carries out the generation mode of trapdoorsLine improvement and optimization, assuming that the binary number of the monetary value is n, and k supervision nodes exist on the chain, assuming that the supervision scope of each supervision node is n i With a number of bits (each n i Without constraint, can be equal or unequal, i.e. n i ∈[1,n]At this time satisfy n 1 +…+n k N, that is, each supervision node can only track part of the amount information, and cannot obtain the whole information, and in order to obtain the whole information, all supervision nodes are required to be combined together, and complete transaction information is recovered together through a trusted means or technical methods such as multiparty security calculation, so that the authority constraint on the supervision nodes is realized.
It should be noted that after defining the supervision scope of each supervision node, n is determined 1 ,…,n k Each supervision node can automatically select the number of generated trapdoors and the number of bits which are responsible for tracking of each trapdoor information for the bits in the supervision range of the supervision node, after all supervision and division are finished, each supervision node generates the trapdoors of the supervision node, calculates the public parameters with the trapdoors, and uses the public parameters with the trapdoors and the public parameters provided by the system as all public parameters to be disclosed on a chain.
Illustrating the division of supervision: taking the door coin as an example, the total amount number of digits is 32, namely the number of digits of transaction information is 32, and assuming that 4 supervision nodes (A, B, C, D) exist, 5,7,9 and 11 bits (5+7+9+11=32) are respectively supervised, and the sequence is a respectively 0 →a 4 ,a 5 →a 11 ,a 12 →a 20 ,a 21 →a 31 For A, he manages 5 bits, he can choose to generate 1 trapdoor information, and track the amount of 5 bits with this trapdoor information, but the tracking time is 2 5 =32, he can also generate 5 trapdoor information to track the 5-bit amount, tracking time 5.2, respectively 1 =10, but at this time the number of tracking keys of the user increases and the validity of the corresponding tracking key proves.
In fact, this is an alternative to balance the computing power and resources of the parties, and for the supervising node a we recommend to generate 2 trapdoor information, supervising 2 and 3 bits respectively; for the supervising node B, we recommend to generate 2 trapdoor information, supervising 3 and 4 bits respectively; for the supervision node C, we recommend to generate 3 trapdoor information, and respectively supervise 3, 3 and 3 bits; for the policing node D we recommend generating 3 trapdoor information, policing 3, 4 bits respectively.
The selection scheme of each supervision node is not unique and is determined according to the scene and the requirement of a specific application, but once the jurisdiction of the information of each trapdoor is determined, the jurisdiction is published, common parameters with trapdoors are calculated, and then the common parameters with trapdoors are disclosed on a chain.
The following description of traceable bulletproof interval proving scheme supporting multi-party supervision is given by the supervision scope division and the division of trapdoor information quantity and each trapdoor information:
The supervision node execution section:
1. system random generation elliptic curve (or other discrete code group) generatorE.g. (n=32);
2. the supervision node A randomly selects trapdoor information y 0 ,y 1 Calculation ofAnd
3. the supervision node B randomly selects trapdoor information y 2 ,y 3 Calculation ofAnd
4. the supervision node C randomly selects trapdoor information y 4 ,y 5 ,y 6 Calculation ofAndand +.>
5. The supervision node D randomly selects trapdoor information y 7 ,y 8 ,y 9 Calculation ofAndand +.>
6. System publication g= (g) 0 ,…,g n-1 ),h=(h 0 ,…,h n-1 ) And division (2,3,3,4,3,3,3,3,4,4) = (b) 0 ,…,b 9 ) And sending all public parameters to all users.
The transaction node execution section:
1. the transaction node calculates a transaction information fragment commitment v=h γ g a Wherein a is [0,2 ] n -1]Unfolding the a bit to a=a 0 +…+2 i a i +…+2 n-1 a n-1 ,a i =0, 1; wherein V represents a promised value, gamma represents a confusing element, and a represents a privacy monetary value;
2. randomly selecting alpha by transaction nodes, and calculatingWhere α is a random number (note here that α is not a in the previous step);
3. for each j=0, …,9, for all i j =0,…,b j -1, transaction node calculation
The above is actually described as the calculation content of the transaction node;
a total of 20 TKs are generated i ;
4. For each TK i The transaction node calculates pi (TKi) promise proof;
5. transaction node computation And give +.>Proof of promise>Together as all TKs i Is a legal proof of (2);
6. transaction node output
7. The transaction node completes the remaining certificates in accordance with the procedure of bumletproffs.
The authentication node executing section:
1. verifying the correctness of all pi (TKi);
2. calculation ofVerification->Accuracy of (3);
3. the correctness of the Bulletproffs was verified.
The supervising node obtains the part of the transaction information according to the tracking key TKi:
1. for each j=0, …,9, the supervising node calculates
Let us take the supervision node a as an example, and introduce the supervision process:
2. calculate and compareOutput->
3. Calculate and compareOutput->
Wherein the trapdoor information quantity (i.e. the number of transaction information pieces) is 10=t, corresponding TK i The number is 20=2t, t may be used in the mathematical expression, e.g.Or j=0, …, t-1.
Note that all d i Alternative to (1, 1) so each trapdoor information y j The corresponding supervision operand isSimultaneously supervising result a i =0,1。
4. All the supervision nodes track the transaction information fragments in the own supervision range bit, and summarize and output (a 0 ,…,a n-1 ) Calculate the complete transaction information fragment a=a 0 +…+2 i a i +…+2 n-1 a n-1 。
In the above example, according to the supervision partitioning, the user performs partitioning on the supervision bits to generate corresponding TKs i And gives a proof of validity thereof (including a single TK i Proof pi (TK i ) Evidence of population)The distribution mode of trapdoor information to transaction information fragments is selected by the supervision nodes, the bit length of each trapdoor information responsible for supervision is not required to be equal, each supervision node can only track a certain amount of money and cannot acquire all amounts of money, the autonomy and the adaptability of the blockchain system are improved, and meanwhile the function of multiparty joint supervision is realized.
The embodiments of the information monitoring method are described in detail hereinabove, and the present invention further provides an information monitoring device corresponding to the method, and since the embodiments of the information monitoring device portion and the embodiments of the method portion correspond to each other, the embodiments of the information monitoring device portion refer to the description of the embodiments of the method portion, which is not repeated herein.
The information monitoring device provided by the embodiment of the invention comprises a memory, a processor and a bus, wherein the memory stores an information monitoring program which can be transmitted to the processor by the bus and run on the processor, and the information monitoring method is realized when the information monitoring program is executed by the processor.
The cloud computing service device may be a node that makes up a CDN network or a blockchain network.
The memory includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory may be an internal storage unit of the cloud computing service device, such as a hard disk of the cloud computing service device, in some embodiments. The memory may also be an external storage device of the cloud computing service device in other embodiments, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the cloud computing service device. Further, the memory may also include both an internal storage unit and an external storage device of the cloud computing service device. The memory may be used not only to store application software installed in the cloud computing service apparatus and various types of data, such as codes of video transcoding programs, but also to temporarily store data that has been output or is to be output.
The processor may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing data stored in the memory, e.g. executing video transcoding programs or the like.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc.
The method comprises the steps that a transaction node obtains public parameters generated by a supervision node in a blockchain system during system initialization, the public parameters comprise trapdoor public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trapdoor public parameters are calculated and generated based on trapdoor information stored by the supervision node, transaction information is further obtained, the transaction information is divided into transaction information fragments, a tracking key is generated through operation of the public parameters and corresponding transaction information fragments, the tracking key is issued to the blockchain system after the tracking key is generated, so that the supervision node can calculate transaction information fragments together according to the tracking key, the public parameters and the trapdoor information, and complete transaction information is generated jointly through transaction information fragments corresponding to the supervision nodes. Because the trapdoor public parameters transmitted by the supervisory node are generated based on trapdoor information calculation stored by the supervisory node, and the trapdoor information is recorded in the supervisory node, the supervisory node can acquire partial contents of transaction information through decryption operation on the tracking key by the trapdoor information, and on the basis, the supervisory nodes can restore complete transaction information together based on the transaction information fragments acquired by the supervisory node, so that the effect of the supervisory nodes on monitoring the transaction information in the blockchain system together is realized, and the overall stability and usability of the blockchain system are further ensured.
Fig. 4 is a schematic structural diagram of a blockchain system according to an embodiment of the present invention.
As shown in fig. 4, the blockchain system provided by the present invention includes at least two transaction nodes 10 and at least two supervision nodes 11, wherein:
the transaction node 10 is configured to obtain public parameters disclosed by supervisory nodes in the blockchain system, where the number of the supervisory nodes is greater than 1, and the public parameters include trapdoor public parameters and system public parameters, and the trapdoor public parameters are generated based on trapdoor information pre-stored by the supervisory nodes; acquiring transaction information and dividing the transaction information into transaction information fragments; calculating the public parameters and the corresponding transaction information fragments to generate a tracking key; issuing the tracking key to a blockchain system for the supervision node to calculate transaction information according to the tracking key, the public parameters and trapdoor information;
a supervision node 11 for disclosing common parameters to transaction nodes in the blockchain system; acquiring a tracking key generated by a transaction node; calculating a transaction information segment corresponding to the local based on the tracking key, the public parameter and trapdoor information; and generating transaction information according to the transaction information fragments in the local corresponding transaction information fragments and other supervision nodes.
According to the blockchain system provided by the invention, the transaction node acquires the public parameters generated by the supervision node in the blockchain system during system initialization, the public parameters comprise trapdoor public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trapdoor public parameters are calculated and generated based on trapdoor information stored by the supervision node, further transaction information is acquired, the transaction information is divided into transaction information fragments, further a tracking key is generated through calculation of the public parameters and the corresponding transaction information fragments, after the tracking key is generated, the tracking key is issued to the blockchain system, so that the supervision node can calculate the transaction information fragments together according to the tracking key, the public parameters and the trapdoor information, and complete transaction information is generated together through the transaction information fragments corresponding to the supervision nodes. Because the trapdoor public parameters transmitted by the supervisory node are generated based on trapdoor information calculation stored by the supervisory node, and the trapdoor information is recorded in the supervisory node, the supervisory node can acquire partial contents of transaction information through decryption operation on the tracking key by the trapdoor information, and on the basis, the supervisory nodes can restore complete transaction information together based on the transaction information fragments acquired by the supervisory node, so that the effect of the supervisory nodes on monitoring the transaction information in the blockchain system together is realized, and the overall stability and usability of the blockchain system are further ensured.
In addition, the invention also provides a computer readable storage medium, on which an operation terminal data processing program is stored, the operation terminal data processing program can be executed by one or more processors to implement the information monitoring method as described above.
The invention provides an information monitoring computer readable storage medium, wherein a transaction node acquires public parameters generated by a supervision node in a blockchain system during system initialization, the public parameters comprise trapdoor public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trapdoor public parameters are calculated and generated based on trapdoor information stored by the supervision node, transaction information is further acquired, the transaction information is divided into transaction information fragments, the public parameters and corresponding transaction information fragments are calculated to generate a tracking key, the tracking key is issued to the blockchain system after the tracking key is generated, and the supervision node calculates transaction information fragments together according to the tracking key, the public parameters and the trapdoor information and generates complete transaction information together through the transaction information fragments corresponding to a plurality of supervision nodes. Because the trapdoor public parameters transmitted by the supervisory node are generated based on trapdoor information calculation stored by the supervisory node, and the trapdoor information is recorded in the supervisory node, the supervisory node can acquire partial contents of transaction information through decryption operation on the tracking key by the trapdoor information, and on the basis, the supervisory nodes can restore complete transaction information together based on the transaction information fragments acquired by the supervisory node, so that the effect of the supervisory nodes on monitoring the transaction information in the blockchain system together is realized, and the overall stability and usability of the blockchain system are further ensured.
The information monitoring method, the blockchain system, the information monitoring device and the storage medium provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.