Disclosure of Invention
The invention aims to provide an information monitoring method, a blockchain system, information monitoring equipment and a storage medium, so as to relatively realize monitoring of transaction amount of a blockchain with privacy protection, thereby ensuring the stability and usability of the blockchain system.
In order to solve the above technical problem, the present invention provides an information monitoring method, which is applied in a block chain system, and the method includes:
public parameters are disclosed to transaction nodes in a block chain system, the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on prestored trap door information;
acquiring a tracking key generated by a transaction node, wherein the tracking key is generated based on a public parameter and a transaction information fragment;
calculating a local corresponding transaction information segment based on the tracking key, the public parameter and the trapdoor information;
and generating transaction information according to the transaction information segments corresponding to the local nodes and the transaction information segments in other supervision nodes.
Preferably, before obtaining the tracking key generated by the transaction node, the method further comprises:
obtaining a verification result of a verification node in the block chain system on a legality proof of the tracking key through a zero-knowledge proof mode, wherein the legality proof is generated by the transaction node on the basis of a Bulletproofs proof frame on the tracking key;
and when the verification result shows that the validity certificate passes the verification, executing the step of acquiring the tracking key generated by the transaction node.
Preferably, the blockchain system comprises a privacy preserving blockchain system.
In addition, the invention also provides an information monitoring method, which is applied to the transaction node in the block chain system and comprises the following steps:
the method comprises the steps that public parameters disclosed by supervision nodes in a block chain system are obtained, the number of the supervision nodes is larger than 1, the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on trap door information pre-stored by the supervision nodes;
acquiring transaction information, and dividing the transaction information into transaction information segments;
calculating the public parameters and the corresponding transaction information segments to generate a tracking key;
and the tracking key is issued to the blockchain system so that the supervision node can calculate the transaction information according to the tracking key, the public parameter and the trapdoor information.
Preferably, the method further comprises:
generating a legality proof of the tracking key based on a proof framework of Bulletprofs, and issuing the legality proof and the tracking key to a block chain system so that a verification node of the block chain system verifies the legality proof in a zero-knowledge proof mode;
distributing a tracking key to a blockchain system, comprising:
and issuing the tracking key to each verification node of the blockchain system.
Preferably, the dividing of the transaction information into transaction information segments includes:
carrying out binary expansion on the transaction information to generate each binary bit of the transaction information;
dividing the binary bits to generate transaction information fragments;
generating a tracking key by operating the public parameter and the corresponding transaction information segment, comprising:
and generating the tracking key by operating the public parameter and the numerical value of each binary bit in the corresponding transaction information segment.
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 operating the public parameter and the value of each binary bit in the corresponding transaction information fragment, comprising:
dividing binary digit values in the transaction information fragment into value groups, wherein the number of the value groups is consistent with the number of the trapdoor information, and the value groups and the trapdoor information are in unique correspondence;
a tracking key is calculated based on the values of the binary bits in the set of values and the corresponding common parameters, the trapdoor common parameters corresponding to the set of values being generated based on the trapdoor information corresponding to the set of values.
Preferably, the Bulletproofs-based certification framework generates a legality certification for the tracking key, including:
the Bulletproofs-based certification framework generates a validity certification corresponding to each tracking key and a validity certification for the entire tracking key.
In addition, the invention also provides a block chain 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 block chain system, the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on trap door information pre-stored by the supervision node; acquiring transaction information, and dividing the transaction information into transaction information segments; calculating the public parameters and the corresponding transaction information segments to generate a tracking key; the tracking key is issued to a block chain system so that a supervision node can calculate transaction information according to the tracking key, the public parameter and the trapdoor information;
the supervision node is used for disclosing the public parameters to the transaction nodes in the blockchain system; acquiring a tracking key generated by a transaction node; calculating a local corresponding transaction information segment based on the tracking key, the public parameter and the trapdoor information; and generating transaction information according to the transaction information segments corresponding to the local nodes and the transaction information segments in other supervision nodes.
In addition, the invention also provides information monitoring equipment, 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 present invention also provides a computer readable storage medium, on which an information monitoring program is stored, where the information monitoring program can be executed by one or more processors to implement the information monitoring method as described above.
According to the information monitoring method provided by the invention, a transaction node acquires a public parameter generated by a supervision node in a blockchain system during system initialization, the public parameter comprises a trapdoor public parameter and a system public parameter, the number of the supervision nodes is more than 1, the trapdoor public parameter is generated by calculation based on trapdoor information stored by the supervision node, transaction information is further acquired, the transaction information is divided into transaction information segments, a tracking key is generated by operation of the public parameter and the corresponding transaction information segments, the tracking key is issued to the blockchain system after the tracking key is generated, so that the supervision nodes can calculate the transaction information segments according to the tracking key, the public parameter and the trapdoor information, and complete transaction information is generated by the transaction information segments corresponding to a plurality of supervision nodes. Because the common trap door parameters transmitted by the supervision nodes are generated by calculation based on the trap door information stored by the supervision nodes, and the trap door information is recorded in the supervision nodes, the supervision nodes can decrypt the tracking keys through the trap door information to obtain partial contents of the transaction information, and on the basis, a plurality of supervision nodes can restore the complete transaction information based on the transaction information fragments obtained by the supervision nodes, so that the effect of monitoring the transaction information in the block chain system by the supervision nodes is realized, and the integral stability and the availability of the block chain system are further ensured. In addition, the invention also provides a block chain system, information monitoring equipment and a storage medium, and the beneficial effects are as above.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In the transaction process based on the block chain, the certification that the transaction amount is legal is often realized by adopting an interval certification mode, that is, corresponding commitment information and interval certification are generated according to the transaction amount, wherein the commitment information only can reflect an appointed interval of the transaction amount, but specific transaction amount cannot be disclosed. The interval certification scheme currently widely used in many blockchain projects with privacy protection is a bulletprofs interval certification scheme that proves to be short in size and high in verification speed.
In an actual scene, a blockchain with privacy protection may be frequently used for illegal transactions such as small-amount transactions and asset transfer by a malicious user, or the situation that the amount of money of a user account changes suddenly due to system bugs occurs, but the amount of money of the transaction cannot be obtained, so that the existence of an abnormal state cannot be determined, the overall stability of the blockchain system is difficult to ensure, and in addition, the supervision on the content of the transaction is difficult to realize, and the overall availability of the blockchain system cannot be ensured.
The core of the invention is to provide an information monitoring method, a blockchain system, information monitoring equipment and a storage medium, so as to relatively realize monitoring of transaction amount of a blockchain with privacy protection, thereby ensuring the stability and usability of the blockchain system as a whole.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of an information monitoring method according to an embodiment of the present invention. Referring to fig. 1, the information monitoring method includes the following specific steps:
step S10: and disclosing public parameters to transaction nodes in the block chain system, wherein the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on prestored trap door information.
It should be noted that an execution main body for executing each step in this embodiment should be a monitoring node in the blockchain system, and the monitoring node may be considered as a series of blockchain nodes having an information monitoring function in the blockchain system, where the number of the monitoring nodes in this embodiment is greater than 1, the information monitoring function refers to that when a transaction node in the blockchain system performs transaction communication, each monitoring node can monitor and acquire partial content of transaction information of the transaction node, and all the monitoring 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, and then becomes the supervision node or the transaction node.
In this step, the supervision node discloses a common parameter to the transaction node in the blockchain system, and the common parameter includes a trapdoor common parameter and a system common parameter. The system public parameters are randomly generated or generated according to preset generation logic during system initialization; the common trap door parameter is calculated and generated based on the trap door information pre-saved in the supervision node, and it is emphasized that the trap door information is only recorded in the supervision node and specific contents can be learned only by the supervision node. The key point of the step is that the trapdoor public parameter is generated by calculation based on the trapdoor information, the trapdoor information comprises a trapdoor function, a trapdoor key and the like, and a series of parameters used for encrypting data and decrypting the encrypted data, and the trapdoor public parameter generated by calculation of the trapdoor information is essentially a result generated by encrypting an elliptic curve random number based on the trapdoor function and the trapdoor key in the trapdoor information.
After the trapdoor public parameter is generated, the trapdoor public parameter is sent to a transaction node in a block chain system, and the purpose is that the transaction node can further perform operation processing on transaction information in self transaction through the trapdoor public parameter.
Step S11: and acquiring a tracking key generated by the transaction node, wherein the tracking key is generated based on the public parameter and the transaction information segment.
After the trapdoor public parameter is sent to the transaction node in the blockchain system, a tracking key transmitted by the transaction node is further acquired, the key point of the step is that the tracking key is generated based on the transaction information of the transaction node and the trapdoor public parameter, namely, the tracking key simultaneously contains the transaction information and the trapdoor public parameter, so that in the subsequent step, the supervision node can calculate a transaction information segment according to the tracking key, the trapdoor public parameter and the trapdoor information.
Step S12: a locally corresponding transaction information segment is calculated based on the tracking key, the common parameter, and the trapdoor information.
After the trapdoor public parameter is sent to a transaction node in the blockchain system, the transaction node discloses a tracking key of the blockchain system and the trapdoor information and the public parameter stored in the transaction node, and a transaction information fragment corresponding to the tracking key is generated through calculation.
Step S13: and generating transaction information according to the transaction information segments corresponding to the local nodes and the transaction information segments in other supervision nodes.
In this embodiment, each monitoring node can restore the transaction information segment corresponding to the monitoring node according to the tracking key corresponding to the monitoring node, and the transaction information segments corresponding to each monitoring node are different and are part of the complete transaction segment, so that complete transaction information is generated together according to the transaction information segment corresponding to the local monitoring node and the transaction information segments of other monitoring nodes in this step.
According to the information monitoring method provided by the invention, a transaction node acquires a public parameter generated by a supervision node in a blockchain system during system initialization, the public parameter comprises a trapdoor public parameter and a system public parameter, the number of the supervision nodes is more than 1, the trapdoor public parameter is generated by calculation based on trapdoor information stored by the supervision node, transaction information is further acquired, the transaction information is divided into transaction information segments, a tracking key is generated by operation of the public parameter and the corresponding transaction information segments, the tracking key is issued to the blockchain system after the tracking key is generated, so that the supervision nodes can calculate the transaction information segments according to the tracking key, the public parameter and the trapdoor information, and complete transaction information is generated by the transaction information segments corresponding to a plurality of supervision nodes. Because the common trap door parameters transmitted by the supervision nodes are generated by calculation based on the trap door information stored by the supervision nodes, and the trap door information is recorded in the supervision nodes, the supervision nodes can decrypt the tracking keys through the trap door information to obtain partial contents of the transaction information, and on the basis, a plurality of supervision nodes can restore the complete transaction information based on the transaction information fragments obtained by the supervision nodes, so that the effect of monitoring the transaction information in the block chain system by the supervision nodes is realized, and the integral stability and the availability of the block chain 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 information monitoring method includes the following specific steps:
step S20: and disclosing public parameters to transaction nodes in the block chain system, wherein the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on prestored trap door information.
Step S21: and obtaining a verification result of a verification node in the block chain system on the legality certification of the tracking key in a zero-knowledge certification mode, wherein the legality certification is generated on the tracking key by the transaction node based on a certification framework of Bulletprofs.
It should be noted that the validity proof in this step is generated by the transaction node through operation on the tracking key based on the certification framework of butletprofos, and the purpose is to prove that the transaction information fragment is in a normal value range interval to the verification node according to the validity proof, but the verification node cannot obtain the content of the specific transaction information fragment transacted by the transaction node according to the validity proof. In addition, the bulletin proofs certification framework is a bulletin proofs interval certification scheme, and compared with a Borromean interval certification scheme, the bulletin proofs interval certification scheme has the advantages that the added operation amount is similar on the basis of the original scheme, but the bulletin proofs are superior to the Borromean scheme in terms of space and efficiency, so the bulletin proofs interval certification scheme is more suitable for being applied to a privacy protection block chain system under the supervision requirement.
In this embodiment, the verification node is configured to verify the validity certification generated by the transaction node in a zero-knowledge certification manner, so as to determine whether the tracking key generated by the transaction node is usable according to a verification result of the validity certification. The zero-knowledge proof refers to that a transaction node, namely, a transaction node, proves and makes a verifier, namely, a verification node, believe that the verifier owns a certain message, namely, a tracking key generated according to a transaction information segment is legal, but the proving process cannot leak any information about the proved message to the verifier. The verification node may be a blockchain node in the blockchain system having a function of verifying the validity proof.
Step S22: and when the verification result represents that the validity certificate passes the verification, acquiring a tracking key generated by the transaction node, wherein the tracking key is generated based on the public parameter and the transaction information fragment.
Judging whether a legality certificate generated based on the tracking key is legal or not according to a verification result, if so, indicating that the tracking key has usability, further acquiring the tracking key generated by the transaction node according to the trap door 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 segment is calculated based on the tracking key, the common parameter, and the trapdoor information.
Step S24: and generating transaction information according to the transaction information segments corresponding to the local nodes and the transaction information segments in 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 trap door public parameter and the transaction information fragment is further obtained after the verification is passed, so that the accuracy of calculating the transaction information fragment according to the tracking key and the trap door information is relatively improved.
Based on the above embodiments, as a preferred implementation, the blockchain system includes a privacy-preserving blockchain system.
Because the privacy protection blockchain system has relatively high data privacy, the data in the system can be relatively ensured to have higher security during storage and transmission. The privacy preserving blockchain system further includes a menuing system and a menuing-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 information monitoring method includes the following specific steps:
step S30: the method comprises the steps of obtaining public parameters disclosed by supervision nodes in a block chain system, wherein the number of the supervision nodes is larger than 1, the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on trap door information pre-stored by the supervision nodes.
It should be noted that an execution main body for executing each step in this embodiment should be a transaction node in the blockchain system, where the transaction node acquires a common parameter issued by a plurality of supervisory nodes in the blockchain system, and the common parameter includes a trap common parameter generated based on trap information pre-stored by the supervisory nodes and a system common parameter.
Step S31: and acquiring the transaction information, and dividing the transaction information into transaction information segments.
In this step, the transaction node acquires transaction information generated when the transaction node executes a transaction, and divides the transaction information into a certain number of transaction information segments, the data length of each transaction information segment can be determined according to actual requirements, each transaction information segment can be combined into complete transaction information, and the number of the transaction information segments is consistent with the number of the monitoring nodes.
Step S32: and generating a tracking key by operating the public parameter and the corresponding transaction information segment.
Because the transaction information segment and the supervision node have a corresponding relationship, in the step, after the transaction node acquires the transaction information segment, the transaction node acquires the corresponding supervision node according to the transaction information segment, and then the transaction information segment is operated through public parameters issued by the supervision node in the blockchain system, and a corresponding tracking key is generated. It can be seen that for all transaction node segments there is a corresponding generated tracking key.
Step S33: and the tracking key is issued to the blockchain system so that the supervision node can calculate the transaction information according to the tracking key, the public parameter and the 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, the supervision node in the blockchain system can acquire the tracking key, the tracking key is calculated according to the public parameter and the trapdoor information to generate the corresponding transaction information segment, and the transaction information is generated through common calculation according to the transaction information segments of other supervision nodes.
According to the information monitoring method provided by the invention, a transaction node acquires a public parameter generated by a supervision node in a blockchain system during system initialization, the public parameter comprises a trapdoor public parameter and a system public parameter, the number of the supervision nodes is more than 1, the trapdoor public parameter is generated by calculation based on trapdoor information stored by the supervision node, transaction information is further acquired, the transaction information is divided into transaction information segments, a tracking key is generated by operation of the public parameter and the corresponding transaction information segments, the tracking key is issued to the blockchain system after the tracking key is generated, so that the supervision nodes can calculate the transaction information segments according to the tracking key, the public parameter and the trapdoor information, and complete transaction information is generated by the transaction information segments corresponding to a plurality of supervision nodes. Because the common trap door parameters transmitted by the supervision nodes are generated by calculation based on the trap door information stored by the supervision nodes, and the trap door information is recorded in the supervision nodes, the supervision nodes can decrypt the tracking keys through the trap door information to obtain partial contents of the transaction information, and on the basis, a plurality of supervision nodes can restore the complete transaction information based on the transaction information fragments obtained by the supervision nodes, so that the effect of monitoring the transaction information in the block chain system by the supervision nodes is realized, and the integral stability and the availability of the block chain system are further ensured.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
generating a legality proof of the tracking key based on a proof framework of Bulletprofs, and issuing the legality proof and the tracking key to a block chain system so that a verification node of the block chain system verifies the legality proof in a zero-knowledge proof mode;
distributing a tracking key to a blockchain system, comprising:
and issuing the tracking key to each verification node of the blockchain system.
It should be noted that the validity proof in this embodiment is generated by the transaction node performing an operation on the tracking key based on a Bulletproofs certification framework, and the purpose is to certify, to the verification node, that the transaction information fragment is in a normal value domain interval according to the validity proof, but the verification node cannot obtain a specific value of the transaction performed by the transaction node according to the validity proof, and in addition, the Bulletproofs certification framework is a Bulletproofs interval certification scheme. Furthermore, it should be emphasized that after the verification node verifies the validity proof of the tracking key, 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.
The verification node of the embodiment is configured to verify the validity certification generated by the transaction node in a zero-knowledge certification manner, so as to determine whether the tracking key generated by the transaction node is usable according to a verification result of the validity certification. Wherein, the zero-knowledge proof means that the transaction node, i.e. the transaction node, proves and makes itself believe to own a certain message, i.e. the tracking key generated from the transaction information segment, to the verifier, i.e. the verification node, but the proving process cannot reveal any information about the proved message to the verifier. The verification node may be a blockchain node in the blockchain system having a function of verifying the validity proof.
And the supervision node judges whether the validity proof generated based on the tracking key has validity or not according to the verification result of the verification node, and if the validity proof has validity, 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 block chain system, and the tracking key generated by the transaction node according to the trap door public parameter and the transaction information fragment is further obtained after the verification is passed, so that the accuracy of generating the transaction information fragment according to the tracking key and the trap door 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:
carrying out binary expansion on the transaction information to generate each binary bit of the transaction information;
dividing the binary bits to generate transaction information fragments;
generating a tracking key by operating the public parameter and the corresponding transaction information segment, comprising:
and generating the tracking key by operating the public parameter and the numerical value of each binary bit in the corresponding transaction information segment.
It should be noted that the key point of this embodiment is to perform binary expansion on the transaction information before calculating the tracking key according to the transaction information and the trapdoor common parameter, 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 calculate the corresponding tracking key according to the numerical value of each binary bit of the transaction information segment and the trapdoor common parameter, so as to generate the tracking key corresponding to the numerical value of each binary bit. The embodiment expands the transaction information in binary and generates corresponding tracking keys for the numerical value of each binary bit, thereby further improving the security of the transaction information.
On the basis of the above embodiment, further, the number of the trapdoor information is less than or equal to the number of the binary bits in the transaction information;
generating a tracking key by operating the public parameter and the value of each binary bit in the corresponding transaction information fragment, comprising:
dividing binary digit values in the transaction information fragment into value groups, wherein the number of the value groups is consistent with the number of the trapdoor information, and the value groups and the trapdoor information are in unique correspondence;
a tracking key is calculated based on the values of the binary bits in the set of values and the corresponding common parameters, the trapdoor common parameters corresponding to the set of values being generated based on the trapdoor information corresponding to the set of values.
It should be noted that, in this preferred embodiment, the value group is actually a finer-grained partition than the transaction segment, and the transaction information segment includes the value group.
The number of the trapdoor information of the whole supervision node is less than or equal to the number of the binary bits in the transaction information, and since a tracking key corresponding to each binary bit needs to be generated, in this embodiment, each trapdoor common parameter is respectively generated with the value of the binary bit in the corresponding value group to generate the tracking key. The embodiment relatively reduces the resource overhead occupied by the trap door public parameter during generation, and further improves the overall stability of the block chain system.
Further, as a preferred embodiment, the Bulletproofs-based certification framework generates a legality certification for the tracking key, including:
the Bulletproofs-based certification framework generates a validity certification corresponding to each tracking key and a validity certification for the entire tracking key.
The key point of the present embodiment is that the validity certificates for the tracking keys generated by the certification framework based on butletproofs are the validity certificates corresponding to the respective tracking keys and the validity certificates for all the tracking keys as a whole, and therefore the present embodiment can further improve the comprehensiveness of the validity certificates, thereby further improving the reliability of the verification of the tracking keys.
In order to deepen understanding of the above technical contents, the information monitoring method is further explained by a specific scene embodiment as follows:
in order to realize the function of multiparty combined supervision, the generation mode of the trapdoor is improved and optimized, the binary digit number of money is assumed to be n, k supervision nodes exist on a chain, and the supervision range of each supervision node is assumed to be niOne bit (each n)iNot being restricted, may be equal or unequal, i.e. ni∈[1,n]When n is satisfied1+…+nkN, each supervision node can only track partial amount information and cannot obtain the whole information, and in order to obtain the whole information, all the supervision nodes are required to be combined, and complete transaction information is recovered together through a trusted means or a multi-party secure computing and other technical methods, so that the right constraint on the supervision nodes is realized.
It should be noted that after the supervision range of each supervision node is defined, n is determined1,…,nkAnd each supervision node can automatically select the number of generated trapdoors and the number of bits for tracking the information of each trapdoor according to the bits in the supervision range of the supervision node, and after all supervision partitions are finished, each supervision node generates the own trapdoor, calculates the common parameters with the trapdoors, and discloses the common parameters with the trapdoors as all the common parameters on the chain together with the common parameters provided by the system.
The supervised division is illustrated: taking the menuo currency as an example, the total amount of money is 32, that is, the number of digits of the transaction information is 32, and assuming that there are 4 supervision nodes (A, B, C, D), which supervise 5, 7, 9, and 11 bits (5+7+9+11 equals to 32), the sequence is a0→a4,a5→a11,a12→a20,a21→a31For A, he supervises 5 bits, and he can choose to generate 1 trapdoor information, and track the amount of 5 bits with this trapdoor information, but the tracking time is 25He can also be 32 ═ l5 pieces of trap door information are generated, the sum of the 5 bits is tracked, and the tracking time is 5 & 21At this time, the number of tracking keys and corresponding legal certificates of the tracking keys of the user are increased to 10.
In fact, this is a trade-off to balance the computing power and resources of the parties, and for supervising node a, we recommend generating 2 trapdoor information, supervising 2 and 3 bits respectively; for supervising node B, we recommend to generate 2 trapdoor information, supervising 3 and 4 bits respectively; for the supervision node C, 3 pieces of trapdoor information are recommended to be generated, and 3 bits are supervised respectively; for supervising node D, we recommend to generate 3 trapdoor information, supervising 3,4 bits respectively.
The selection scheme of each supervisory node is not unique and is determined according to the scene and the requirement of a specific application, but once the jurisdiction range of each trapdoor information is determined, the scope is published, common parameters with the trapdoors are calculated and then published on a chain.
We now give an introduction to traceable bulletprofoofs interval certification schemes supporting multi-party supervision, in terms of supervision range partitioning and amount of trapdoor information, and partitioning of each trapdoor information:
the supervision node executes part:
1. system randomly generates elliptic curve (or other discrete cipher group) generator
For example (n-32);
2. supervision node A randomly selects trapdoor information y
0,y
1Calculating
And
3. supervising node B randomly selecting trap door information y
2,y
3Calculating
And
4. supervision node C randomly selects trapdoor information y
4,y
5,y
6Calculating
And
and
5. supervision node D randomly selects trapdoor information y
7,y
8,y
9Calculating
And
and
6. system publication g ═ g (g)0,…,gn-1),h=(h0,…,hn-1) And dividing (2,3,3,4,3,3,3, 4,4) ═ b0,…,b9) All common parameters are sent to all users.
The transaction node executes the part:
1. the transaction node calculates the commitment V as h of the transaction information segmentγgaWherein a ∈ [0,2 ]n-1]The bit a is expanded into a ═ a0+…+2iai+…+2n-1an-1,ai0, 1; wherein V represents a commitment value, gamma represents a confusion element, and a represents a privacy dollar value;
2. randomly selecting alpha from the trading node, and calculating
Where α is a random number (note that here α is not a in the previous step);
3. 0, …,9 for each j, for all ij=0,…,bj-1, transaction node calculation
The above actually characterizes the calculation content of the transaction node;
a total of 20 TKs are generated
i;
4. For each TKiThe transaction node calculates pi (TKi) commitment proof;
5. transaction node computing
And give
The proof of promise is a proof of acceptance,
taken together as all TKs
iA proof of legitimacy of (c);
6. transaction node output
7. The transaction node completes the remaining proofs following the steps of buckletprofos.
The authentication node executes a part:
1. verifying the correctness of all pi (TKi);
2. computing
Authentication
The correctness of the test;
3. the correctness of Bulletprofs was verified.
The supervision node acquires the part of the transaction information according to the tracking key TKi:
1. for each j 0, …,9, the supervising node calculates
Taking the supervision node a as an example, we introduce the supervision process:
2. calculate and compare
Output of
3. Calculate and compare
Output of
Where the number of trapdoor messages (i.e. the number of transaction message sections at the same time) 10 ═ t, the corresponding TK
iThe number is 20-2 t, t can be used in mathematical expressions, e.g.
Or j ═ 0, …, t-1.
Note that all d
iIs only-1, so that each trapdoor information y is
jCorresponding monitorThe amount of the operation is
Monitoring results a at the same time
i=0,1。
4. All the supervision nodes track the transaction information segments within the supervision range bits of the supervision nodes and output the transaction information segments in a summary mode (a)0,…,an-1) Calculating the complete transaction information segment a ═ a0+…+2iai+…+2n-1an-1。
In the above example, according to the supervision partition, the user divides the supervision bits to generate the corresponding TKs
iAnd give proof of its legitimacy (including a single TK)
iIs proof of pi (TK)
i) ) and overall certification
The distribution mode of the trapdoor information to the transaction information fragments is selected by the supervision nodes, the bit length of each trapdoor information for supervision does not need to be equal, each supervision node can only track a certain amount of money bits independently, and cannot acquire all money, so that the autonomy and the adaptability of the block chain system are improved, and the function of multi-party combined supervision is realized.
In the above, the embodiment of the information monitoring method is described in detail, and the present invention further provides an information monitoring device corresponding to the method.
The information monitoring device provided by the embodiment of the invention comprises a memory, a processor and a bus, wherein an information monitoring program which can be transmitted to the processor by the bus and runs on the processor is stored in the memory, 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 constituting a CDN network or a blockchain network.
Wherein the memory includes at least one type of readable storage medium including flash memory, hard disk, multi-media card, card type 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, such as a plug-in hard disk equipped on the cloud computing service device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. 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 device and various types of data, such as codes of a video transcoding program, etc., but also to temporarily store data that has been output or is to be output.
The processor may be, in some embodiments, a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip for executing program code stored in memory or Processing data, such as executing a video transcoding program.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
The transaction node acquires public parameters generated by supervision nodes in a blockchain system when the system is initialized, 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 generated by calculation based on the trapdoor information stored by the supervision nodes, transaction information is further acquired, the transaction information is divided into transaction information fragments, tracking keys are generated by operation of the public parameters and the corresponding transaction information fragments, the tracking keys are issued to the blockchain system after the tracking keys are generated, the transaction information fragments are calculated by the supervision nodes according to the tracking keys, the public parameters and the trapdoor information, and complete transaction information is generated by the transaction information fragments corresponding to the supervision nodes. Because the common trap door parameters transmitted by the supervision nodes are generated by calculation based on the trap door information stored by the supervision nodes, and the trap door information is recorded in the supervision nodes, the supervision nodes can decrypt the tracking keys through the trap door information to obtain partial contents of the transaction information, and on the basis, a plurality of supervision nodes can restore the complete transaction information based on the transaction information fragments obtained by the supervision nodes, so that the effect of monitoring the transaction information in the block chain system by the supervision nodes is realized, and the integral stability and the availability of the block chain system are further ensured.
Fig. 4 is a schematic structural diagram of a block chain 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 used for acquiring public parameters disclosed by the supervision nodes in the block chain system, the number of the supervision nodes is greater than 1, the public parameters comprise trap door public parameters and system public parameters, and the trap door public parameters are generated based on trap door information pre-stored by the supervision nodes; acquiring transaction information, and dividing the transaction information into transaction information segments; calculating the public parameters and the corresponding transaction information segments to generate a tracking key; the tracking key is issued to a block chain system so that a supervision node can calculate transaction information according to the tracking key, the public parameter and the trapdoor information;
a supervision node 11 for disclosing the common parameters to the transaction nodes in the blockchain system; acquiring a tracking key generated by a transaction node; calculating a local corresponding transaction information segment based on the tracking key, the public parameter and the trapdoor information; and generating transaction information according to the transaction information segments corresponding to the local nodes and the transaction information segments in other supervision nodes.
According to the block chain system provided by the invention, the transaction node acquires the public parameter generated by the supervision node in the block chain system during system initialization, the public parameter comprises the trap door public parameter and the system public parameter, the number of the supervision nodes is more than 1, the trap door public parameter is generated by calculation based on the trap door information stored by the supervision node, further transaction information is acquired, the transaction information is divided into transaction information segments, further a tracking key is generated by operation of the public parameter and the corresponding transaction information segments, after the tracking key is generated, the tracking key is issued to the block chain system, so that the supervision nodes can calculate the transaction information segments according to the tracking key, the public parameter and the trap door information, and the transaction information segments corresponding to a plurality of supervision nodes can generate complete transaction information together. Because the common trap door parameters transmitted by the supervision nodes are generated by calculation based on the trap door information stored by the supervision nodes, and the trap door information is recorded in the supervision nodes, the supervision nodes can decrypt the tracking keys through the trap door information to obtain partial contents of the transaction information, and on the basis, a plurality of supervision nodes can restore the complete transaction information based on the transaction information fragments obtained by the supervision nodes, so that the effect of monitoring the transaction information in the block chain system by the supervision nodes is realized, and the integral stability and the availability of the block chain system are further ensured.
In addition, the present invention also provides a computer readable storage medium, on which an operation terminal data processing program is stored, the operation terminal data processing program being executable by one or more processors to implement the information monitoring method as described above.
The transaction node acquires public parameters generated by the supervision node in a blockchain system during system initialization, the public parameters comprise trap door public parameters and system public parameters, the number of the supervision nodes is larger than 1, the trap door public parameters are generated through calculation based on the trap door information stored by the supervision node, transaction information is further acquired and divided into transaction information segments, tracking keys are generated through operation of the public parameters and the corresponding transaction information segments, the tracking keys are issued to the blockchain system after the tracking keys are generated, the transaction information segments are calculated by the supervision nodes according to the tracking keys, the public parameters and the trap door information, and complete transaction information is generated through the transaction information segments corresponding to the supervision nodes. Because the common trap door parameters transmitted by the supervision nodes are generated by calculation based on the trap door information stored by the supervision nodes, and the trap door information is recorded in the supervision nodes, the supervision nodes can decrypt the tracking keys through the trap door information to obtain partial contents of the transaction information, and on the basis, a plurality of supervision nodes can restore the complete transaction information based on the transaction information fragments obtained by the supervision nodes, so that the effect of monitoring the transaction information in the block chain system by the supervision nodes is realized, and the integral stability and the availability of the block chain system are further ensured.
The information monitoring method, the block chain system, the information monitoring device and the storage medium provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.