A blockchain obfuscated transaction method based on shard node mutual assistance
Through sharding of blockchain nodes and a multi-layer encryption signature mechanism, the credibility and attack risk issues of existing blockchain obfuscation transaction methods are solved, and an efficient and safe obfuscation transaction process is achieved.
Patent Information
- Application Number
- CN202311251955.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-09-26
AI Technical Summary
Existing blockchain obfuscation transaction methods have credibility issues and the risk of denial of service attacks. The centralized method relies on third-party service providers and is unreliable, while the decentralized method is vulnerable to malicious node monitoring.
Adopting a blockchain obfuscation transaction method based on mutual assistance of shard nodes, the blockchain nodes are sharded into forward shards and reverse shards, and the output address is ensured through multi-layer encryption and signature mechanisms. The confidentiality and accuracy of information reduce the risk of attacks.
It improves the efficiency and privacy protection of obfuscated transactions, reduces the risk of denial of service attacks, and ensures the security of participants’ output addresses and the reliability of transactions.
Smart Images

Figure CN117254962B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain obfuscated transaction method based on sharding node mutual assistance. Background Art
[0002] The obfuscated transaction method is one of the important means to solve the problem of blockchain privacy protection. Its main idea is to disperse the relationship between traders in unrelated addresses by exchanging assets between different users, obfuscate and hide the transaction process of the blockchain to increase the difficulty of analysis for attackers and achieve the purpose of privacy protection.
[0003] Existing obfuscated transaction methods are mainly divided into two categories: the first category is the centralized obfuscated transaction method represented by Mixcoin and Blindcoin, where users need to implement obfuscated transactions through providers who provide obfuscated transaction services. Although the purpose of address obfuscation can be achieved to a certain extent, the credibility of the third-party obfuscated transaction service provider cannot be guaranteed; the second category is the decentralized obfuscated transaction method represented by CoinJoin and CoinShuffle, where users can complete address obfuscation without the participation of third-party service providers, which fundamentally solves the credibility problem of centralized obfuscated transaction methods. However, there are also shortcomings such as malicious nodes monitoring obfuscated transaction relationships and being vulnerable to denial of service attacks. Summary of the invention
[0004] The purpose of the present invention is to overcome the above problems existing in the prior art and to greatly improve its technical effect on the basis of the original technology; to this end, the present invention provides a blockchain obfuscated transaction method based on shard node mutual assistance, the obfuscated transaction method comprising:
[0005] First, the blockchain nodes are sharded, and the blockchain is divided into multiple forward shards and multiple reverse shards. Through negotiation, the connection between the forward shards and the reverse shards is established;
[0006] Encrypt the output address of the node in each shard, and send the encrypted output address information to the nodes on the shard that are connected to the shard;
[0007] Each shard selects the node with the best performance, and sends all output address information received by the shard to the node with the best performance;
[0008] Numbering the nodes with the best performance in the forward shard and the reverse shard respectively, and transmitting the output addresses obtained from the nodes with the best performance through multi-layer encryption in the order of the numbers;
[0009] After the output address obtained by the best-performing node is transmitted through multi-layer encryption, the last node with the best-performing node number in the forward shard and the reverse shard obtains the output address information list of all reverse shard nodes and all forward shard nodes respectively;
[0010] The last node with the best node number in the forward shard will broadcast the output address information list obtained to all the reverse shard nodes, and the last node with the best node number in the reverse shard will broadcast the output address information list obtained to all the forward shard nodes;
[0011] The nodes in each forward shard verify whether their output address is in the output address information list broadcast by the last node with the best node number in the reverse shard. The nodes in each reverse shard verify whether their output address is in the output address information list broadcast by the last node with the best node number in the forward shard. If it exists, the node in the forward shard signs the obtained output address information list with its own private key and broadcasts it to all other nodes in the forward shard. The node in the reverse shard signs the obtained output address information list with its own private key and broadcasts it to all other nodes in the reverse shard.
[0012] Until each node in the forward shard receives the output address information list signed by all other forward shard nodes, and each node in the reverse shard receives the output address information list signed by all other reverse shard nodes, after all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
[0013] Furthermore, when the blockchain nodes are sharded, the blockchain nodes are divided into different shards according to the blockchain sharding processing method, where the number of different shards is n, and n is an even number; the nodes in the n shards negotiate to group two shards into one group, that is, to group the even number of shards into Groups, one shard in each group is called a forward shard, and the other shard is called a reverse shard.
[0014] Furthermore, the method of encrypting the output address of the node in each shard is as follows:
[0015] X i Use the public keys of all nodes in the shard to get their output address d i Encrypt and sign with your own private key, and the encrypted output address information is: , where d i Node X in the shard i The output address of k jis the public key of each node in the shard to which the node belongs; the nodes in each shard will encrypt the output address information k (ad i ) is randomly sent to a node in another shard in the same group as the shard to which it belongs; that is, within the same group, the output address information k (ad i ) is sent to the node in the reverse shard, and the output address information k (ad i ) is sent to the nodes in the forward shard.
[0016] Furthermore, each shard selects the best performing node by: selecting the best performing node in the shard based on the time required for the nodes in each shard to verify the transaction information; then the nodes in each shard send the obtained output address information to the best performing node in the shard to which it belongs.
[0017] Furthermore, each shard organizes the obtained output address information to form an output address information set, and packages the output address information of the set together into K (ad m ´) are sent together to the node Xd with the best performance in the shard to which they belong m , the node with the best performance in the shard obtains the output address list ad through decryption m in, .
[0018] Furthermore, the output address obtained by multi-layer encryption for the best performance node includes: respectively transmitting the best performance node Xd of each shard of the forward shard and the reverse shard m The nodes are numbered with Arabic numerals 1, 2, ..., and the output addresses obtained from the nodes with the best performance are transmitted through multi-layer encryption according to the numbering sequence; the output addresses obtained from the nodes with the best performance are transmitted through multi-layer encryption according to the numbering sequence, including: the node Xd1 with the best performance numbered 1 in the forward shard uses the public key of the node with the best performance in other forward shards to perform multi-layer encryption on the output address list ad1´ to obtain k (Xda1), and k (Xda1) is sent to the node Xd2 with the best performance numbered 2 in the forward shard after signing with the private key; wherein, ; Then, the best performing node Xd2 of the forward shard numbered 2 uses its own key to decrypt k(Xda1) to obtain de(k(Xda1)), and then performs multi-layer encryption on the output address list ad2´ and inserts it into the decrypted information to obtain k(Xda2) and signs it with the private key, and sends it to the best performing node Xd3 of the forward shard numbered 3; where the expressions of de(k(Xda1)) and k(Xda2) are:
[0019]
[0020]
[0021] Continue calculating according to this rule until you find the node Xd with the largest number and the best performance. m Receive the encrypted output address information k (Xda m-1 ), the node with the largest number and the best performance Xd m Use your own private key pair k (Xda m-1 ) to obtain the output address list of the first m-1 numbers, node Xd m Receive all output address lists in the reverse fragment address 反向 ;k(Xda m-1 ) and address 反向 The representation is as follows:
[0022]
[0023] .
[0024] The output address of the best performing node in the reverse shard is delivered in the same way as the output address of the best performing node in the forward shard. By delivering the output address of the best performing node in the reverse shard, the best performing node with the largest number in the reverse shard receives the list of all output addresses in the forward shard. 正向 ; List of all output addresses in the forward shard address 正向 And the list of all output addresses in the reverse fragment address 反向 The list of all output addresses that make up the blockchain is address, that is, address:
[0025] .
[0026] Furthermore, Arabic numerals are numbered, and the node with the largest number and the best performance is regarded as the last node of the node with the best performance.
[0027] Furthermore, the node with the largest number and best performance in the forward shard broadcasts the obtained output list information address to all nodes in the reverse shard. 反向 , the node with the largest number and best performance in the reverse shard broadcasts the obtained output list information address to all nodes in the forward shard 正向 ; The nodes in each forward shard verify whether their output address is in the output address list address broadcast by the node with the largest number and best performance in the reverse shard 正向In the forward shard, the nodes in each reverse shard verify whether their output address is in the output address list broadcast by the node with the largest number and best performance in the forward shard. 反向 In the process, if a node in a shard finds that its output address is not in the output address information list, it will refuse to sign and cannot generate a mixed transaction.
[0028] Further, until each node in the forward shard receives the output address list address signed by all other forward shard nodes 正向 At the same time, until each node in the reverse shard receives the output address list address signed by all other reverse shard nodes 反向 After all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
[0029] The beneficial effects of the present invention are:
[0030] The present invention adopts blockchain node sharding, randomly groups shards, and regards the shards divided into one group as forward shards and reverse shards respectively. It can simultaneously perform obfuscated transactions on the node output address information in the forward shards and the reverse shards. Finally, the established obfuscated transaction is issued by all the forward shard nodes and all the reverse shard nodes at the same time. The obfuscated transaction method reduces the running time of the obfuscated transaction, improves the efficiency of the obfuscated transaction method, ensures the confidentiality of the output addresses of the participants, can discover the illegal nodes, and reduces the risk of denial of service attacks. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 :A flow chart of a blockchain obfuscated transaction method based on sharding node mutual assistance of the present invention.
[0032] Figure 2 : Schematic diagram of forward sharding and reverse sharding allocation of the present invention.
[0033] Figure 3 : Node obfuscation diagram of the obfuscated transaction method of the present invention. DETAILED DESCRIPTION
[0034] The specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given here are only used to illustrate and explain the present invention, and cannot be used to limit the present invention.
[0035] It should be noted that many specific details are set forth in the following description to facilitate a full understanding of the present invention. However, the present invention may also have other implementations and variations thereof. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0036] like Figure 1As shown, according to an embodiment of the present invention, a blockchain obfuscated transaction method based on shard node mutual assistance, the obfuscated transaction method includes: step S100, first, sharding the blockchain node, dividing the blockchain into multiple forward shards and multiple reverse shards, and establishing a connection between the forward shards and the reverse shards through negotiation; step S101, encrypting the output address of the node in each shard, and sending the encrypted output address information to the nodes on the shards that have established a connection with the shard; step S102, each shard selects the node with the best performance, and sends all the output addresses received by the shard to the nodes on the shards that have established a connection with the shard; The address information is sent to the node with the best performance; step S103, numbering the nodes with the best performance in the forward shard and the reverse shard respectively, and transmitting the output address obtained by the node with the best performance through multi-layer encryption in the order of the numbers; step S104, after transmitting the output address obtained by the node with the best performance through multi-layer encryption, the last node with the best performance in the forward shard and the reverse shard respectively obtains the output address information list of all reverse shard nodes and all forward shard nodes; step S105, the last node with the best performance in the forward shard is numbered. The latter node broadcasts the obtained output address information list to all reverse shard nodes, and the last node with the best node number in the reverse shard broadcasts the obtained output address information list to all forward shard nodes; step S106, the nodes in each forward shard respectively verify whether their output addresses are in the output address information list broadcast by the last node with the best node number in the reverse shard, and the nodes in each reverse shard respectively verify whether their output addresses are in the output address information list broadcast by the last node with the best node number in the forward shard; if so, the node in the forward shard uses its own private key to sign the obtained output address information list and broadcast it to all other nodes in the forward shard, and the node in the reverse shard uses its own private key to sign the obtained output address information list and broadcast it to all other nodes in the reverse shard; step S107, until each node in the forward shard receives the output address information list signed by all other forward shard nodes, and each node in the reverse shard receives the output address information list signed by all other reverse shard nodes, after all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
[0037] In this embodiment, specifically, the present invention divides the blockchain nodes into different shards, and groups the shards in pairs, and the two shards in the same group are respectively called forward shards and reverse shards; in each shard, the nodes in the shard encrypt the output address through the public key information of all nodes in the shard, and send the encrypted output address information to the nodes of another shard in the same group with it; select the best performance node in each shard, and number the best performance nodes in the same direction shard, and transmit the output address information through multi-layer encryption technology in the order of numbering to generate an output address information list; broadcast the generated output address information list on all nodes of the opposite shard, and all nodes of the opposite shard search whether their output address information is contained in the received output address information list, and if so, sign it to generate a mixed transaction; if not, the mixed transaction cannot be generated.
[0038] Step S100, first, sharding is performed on the blockchain nodes, and the blockchain is divided into multiple forward shards and multiple reverse shards, and the connection between the forward shards and the reverse shards is established through negotiation.
[0039] Specifically, when sharding the blockchain nodes, the blockchain nodes are divided into different shards according to the blockchain sharding processing method; then all the shards of the blockchain are negotiated, and connections between each two shards are established. One of the two shards is called a forward shard, and the other shard is called a reverse shard.
[0040] Preferably, the nodes in the blockchain are sharded according to the Ethereum sharding method, or the nodes in the blockchain are sharded according to the regions where the blockchain nodes are located. It should be noted that no matter which method is used to shard the blockchain nodes, the number of shards formed is required to be an even number.
[0041] In the above embodiment, the number of shards obtained by sharding is Q, where Q is an even number. Subsequently, the nodes in the Q shards negotiate and group them in pairs, that is, the Q shards are divided into Groups, one shard in each group is called a forward shard, and the other shard is called a reverse shard; Figure 2 The schematic diagram of the forward sharding and reverse sharding allocation of the present invention is as follows; wherein, the nodes in the blockchain are sharded, and the number of shards finally obtained is 2n, where n is a positive integer; through negotiation, the 2n shards are divided into forward sharding and reverse sharding, wherein the forward sharding contains forward sharding 1, forward sharding 2, ..., forward sharding n, and the reverse sharding contains reverse sharding 1, reverse sharding 2, ..., reverse sharding n, forward sharding 1 and reverse sharding 1 form a group, forward sharding 2 and reverse sharding 2 form a group, and according to this rule, the forward sharding n and reverse sharding n form a group.
[0042] Step S101, encrypt the output address of the node in each shard, and send the encrypted output address information to the nodes on the shard that establish a connection with the shard.
[0043] Specifically, the encryption algorithm of the present invention uses the RSA encryption algorithm or the ECC (elliptic curve) encryption algorithm; specifically, the node in each shard obtains the public key information of all other nodes in the shard, and then encrypts the output address of the node in each shard. The specific encryption method is: the node X in each shard i Use the public keys of all nodes in the shard to get their output address d i Encrypt and sign with your own private key, and the encrypted output address information is: , where d i Node X in the shard i The output address of k j is the public key of each node in the shard to which the node belongs; the nodes in each shard will encrypt the output address information k (ad i ) is randomly sent to a node in another shard in the same group as the shard to which it belongs; that is, within the same group, the output address information k (ad i ) is sent to the node in the reverse shard, and the output address information k (ad i ) is sent to the nodes in the forward shard.
[0044] Preferably, node X in the shard i Use the public key information of all nodes in the shard to output address information d i Encrypt to obtain the output address information k (ad i ), obtain the public key address of any node of another shard in the same group as the shard through the light client technology, and according to the obtained public key address information of any node of the other shard, convert the encrypted output address information k (ad i ) is sent to the node corresponding to the public key address.
[0045] Step S102: Each shard selects a node with the best performance, and sends all output address information received by the shard to the node with the best performance.
[0046] Specifically, each shard selects the node with the best performance by: selecting the node with the best performance in the shard based on the time required for the nodes in each shard to verify the transaction information; then, the nodes in each shard send the obtained output address information to the node with the best performance in the shard to which it belongs.
[0047] Preferably, the node that takes the shortest time to verify transaction information in each shard is selected as the node with the best performance in the shard; then, the node in each shard sends the obtained output address information to the node with the best performance in the shard to which it belongs.
[0048] Each shard organizes the obtained output address information to form an output address information set, and packages the output address information of the set together into K (ad m ´) are sent together to the node Xd with the best performance in the shard to which they belong m , the node with the best performance in the shard obtains the output address list ad through decryption m in, .
[0049] Step S103, numbering the nodes with the best performance in the forward shard and the reverse shard respectively, and transmitting the output address obtained from the node with the best performance through multi-layer encryption in the order of the numbers.
[0050] Specifically, the output address obtained by the node with the best performance is transmitted through multi-layer encryption, including: respectively transmitting the best node Xd of each shard of the forward shard and the reverse shard m The nodes are numbered with Arabic numerals 1, 2, ..., and the output addresses obtained from the nodes with the best performance are transmitted through multi-layer encryption according to the numbering sequence; the output addresses obtained from the nodes with the best performance are transmitted through multi-layer encryption according to the numbering sequence, including: the node Xd1 with the best performance numbered 1 in the forward shard uses the public key of the node with the best performance in other forward shards to perform multi-layer encryption on the output address list ad1´ to obtain k (Xda1), and k (Xda1) is sent to the node Xd2 with the best performance numbered 2 in the forward shard after signing with the private key; wherein, ; Then, the best performing node Xd2 of the forward shard numbered 2 uses its own key to decrypt k(Xda1) to obtain de(k(Xda1)), and then performs multi-layer encryption on the output address list ad2´ and inserts it into the decrypted information to obtain k(Xda2) and signs it with the private key, and sends it to the best performing node Xd3 of the forward shard numbered 3; where the expressions of de(k(Xda1)) and k(Xda2) are:
[0051]
[0052]
[0053] Continue calculating according to this rule until you find the node Xd with the largest number and the best performance. m Receive the encrypted output address information k (Xda m-1 ), the node with the largest number and the best performance Xdm Use your own private key pair k (Xda m-1 ) to obtain the output address list of the first m-1 numbers, node Xd m Receive all output address lists in the reverse fragment address 反向 ;k(Xda m-1 ) and address 反向 The representation is as follows:
[0054]
[0055] .
[0056] The output address of the best performing node in the reverse shard is delivered in the same way as the output address of the best performing node in the forward shard. By delivering the output address of the best performing node in the reverse shard, the best performing node with the largest number in the reverse shard receives the list of all output addresses in the forward shard. 正向 .
[0057] Step S104, after transmitting the output address obtained by the node with the best performance through multi-layer encryption, the last node with the best performance node number in the forward shard and the reverse shard obtains the output address information list of all reverse shard nodes and all forward shard nodes respectively.
[0058] Specifically, the list of all output addresses obtained in the forward shard is address 正向 , the list of all output addresses obtained in the reverse shard is address 反向 , output address list address 正向 and address 反向 The list of all output addresses that make up the blockchain is address, that is, address:
[0059] .
[0060] Preferably, Arabic numerals are numbered, and the node with the largest number and the best performance is regarded as the last node of the node number with the best performance.
[0061] In the above embodiment, preferably, step S101 to step S104 are the obfuscation stage of the obfuscated transaction method of the present invention. Figure 3 As shown: is a schematic diagram of node obfuscation of the obfuscated transaction method of the present invention; the node obfuscation process of this schematic diagram is consistent with the embodiment described in steps S101 to S104.
[0062] Step S105, the last node with the best node performance in the forward shard broadcasts the obtained output address information list to all reverse shard nodes, and the last node with the best node performance in the reverse shard broadcasts the obtained output address information list to all forward shard nodes.
[0063] Specifically, the node with the largest number and best performance in the forward shard broadcasts the obtained output list information address to all nodes in the reverse shard. 反向 , the node with the largest number and best performance in the reverse shard broadcasts the obtained output list information address to all nodes in the forward shard 正向 .
[0064] Step S106, the nodes in each forward shard respectively verify whether their output addresses are in the output address information list broadcast by the last node with the best node number in the reverse shard, and the nodes in each reverse shard respectively verify whether their output addresses are in the output address information list broadcast by the last node with the best node number in the forward shard; if so, the nodes in the forward shard use their own private keys to sign the obtained output address information list and broadcast it to all other nodes in the forward shards, and the nodes in the reverse shard use their own private keys to sign the obtained output address information list and broadcast it to all other nodes in the reverse shards.
[0065] Specifically, the nodes in each forward shard verify whether their output address is in the output address list broadcast by the node with the largest number and best performance in the reverse shard. 正向 In the forward shard, the nodes in each reverse shard verify whether their output address is in the output address list broadcast by the node with the largest number and best performance in the forward shard. 反向 If it exists, the node in the forward shard uses its own private key to sign the obtained output address information list and broadcast it to all other nodes in the forward shard, and the node in the reverse shard uses its own private key to sign the obtained output address information list and broadcast it to all other nodes in the reverse shard.
[0066] In the above embodiment, if a node in a shard finds that its output address is not in the output address information list, it will refuse to sign and cannot generate a mixed transaction.
[0067] Step S107, until each node in the forward shard receives the output address information list signed by all other forward shard nodes, and each node in the reverse shard receives the output address information list signed by all other reverse shard nodes, after all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
[0068] Specifically, each node in the forward shard receives a list of output addresses signed by all other forward shard nodes. 正向 At the same time, each node in the reverse shard receives the output address list address signed by all other reverse shard nodes 反向 After all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
[0069] Preferably, each node in the forward shard receives a list of output addresses signed by all other forward shard nodes. 正向 After all are confirmed to be correct, the phase of establishing the forward shard obfuscated transaction is entered, and a message is sent to the reverse shard that the forward shard can establish the obfuscated transaction; each node in the reverse shard receives the output address list address signed by all other reverse shard nodes 反向 After all are confirmed to be correct, the phase of establishing the reverse shard obfuscated transaction is entered, and a message is sent to the forward shard that the reverse shard can establish the obfuscated transaction.
[0070] In the above embodiment, each node in the reverse shard receives an output address list address signed by all other reverse shard nodes. 反向 , and receives a message that the forward shard can establish a mixed transaction, then the reverse shard establishes a mixed transaction; each node in the forward shard receives the output address list address signed by all other forward shard nodes 正向 , and receives the message that the reverse shard can establish a mixed transaction, the forward shard establishes a mixed transaction; the mixed transaction established by the reverse shard and the forward shard is submitted to the blockchain network to complete the mixed transaction.
[0071] In the above embodiment, preferably, if the node in the forward shard cannot receive the output address list address signed by all other forward shard nodes 正向 , then the nodes in the forward shard cannot establish a mixed transaction, and send a message to the reverse shard that the forward shard cannot establish a mixed transaction. After the reverse shard receives the message, it prevents the reverse shard from establishing a mixed transaction; if the node in the reverse shard cannot receive the output address list address signed by all other reverse shard nodes 反向 , the nodes in the reverse shard cannot establish a confusing transaction, and send a message to the forward shard that the reverse shard cannot establish a confusing transaction. After the forward shard receives the message, it prevents the forward shard from establishing a confusing transaction. In this way, the results of the confusing transactions established by the entire network are consistent.
[0072] It should be understood that the above-mentioned embodiments are one or more embodiments of the present invention, and there are many other embodiments and variations thereof based on the present invention; the variations and modifications made by ordinary technicians in this industry through the present invention without making pioneering innovations all fall within the scope of protection of the present invention.
Claims
1. A blockchain obfuscated transaction method based on shard node mutual assistance, characterized in that: The method comprises the following steps: Sharding is performed on blockchain nodes, dividing the blockchain into multiple forward shards and multiple reverse shards, and establishing the connection between the forward shards and the reverse shards through negotiation; Encrypt the output address of the node in each shard, and send the encrypted output address information to the nodes on the shard that are connected to the shard; Each shard selects the node with the best performance, and the nodes in each shard send the obtained output address information to the node with the best performance in the shard to which it belongs; The method for selecting the best performing node in each shard: The best performing node in each shard is selected based on the time required for the nodes in each shard to verify the transaction information; Numbering the nodes with the best performance in the forward shard and the reverse shard respectively, and transmitting the output addresses obtained from the nodes with the best performance through multi-layer encryption in the order of the numbers; The last node with the best node number in the forward shard and the reverse shard obtains the output address information list of all reverse shard nodes and all forward shard nodes respectively; The last node with the best node number in the forward shard will broadcast the output address information list obtained to all the reverse shard nodes, and the last node with the best node number in the reverse shard will broadcast the output address information list obtained to all the forward shard nodes; The nodes in each forward shard verify whether their output address is in the output address information list broadcast by the last node with the best node number in the reverse shard. The nodes in each reverse shard verify whether their output address is in the output address information list broadcast by the last node with the best node number in the forward shard. If it exists, the node in the forward shard signs the obtained output address information list with its own private key and broadcasts it to all other nodes in the forward shard. The node in the reverse shard signs the obtained output address information list with its own private key and broadcasts it to all other nodes in the reverse shard. Until each node in the forward shard receives the output address information list signed by all other forward shard nodes, and each node in the reverse shard receives the output address information list signed by all other reverse shard nodes, after all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
2. According to claim 1, a blockchain obfuscated transaction method based on shard node mutual assistance is characterized in that: The sharding of the blockchain nodes includes: dividing the blockchain nodes into different shards according to the blockchain sharding method, wherein the number of different shards is n, and n is an even number; the nodes in the n shards negotiate to group two shards into a group, that is, to group the even number of shards into Groups, one shard in each group is called a forward shard, and the other shard is called a reverse shard.
3. According to claim 1, a blockchain obfuscated transaction method based on shard node mutual assistance is characterized in that: The step of encrypting the output address of the node in each shard includes: i Use the public keys of all nodes in the shard to output their own address d i Encrypt and sign with your own private key, and the encrypted output address information is: , where d i Node X in the shard i The output address, k j is the public key of each node in the shard to which the node belongs; the nodes in each shard will encrypt the output address information k (ad i ) is randomly sent to a node in another shard that is connected to the shard to which it belongs; that is, the output address information k (ad i ) is sent to the node in the reverse shard, and the output address information k (ad i ) is sent to the nodes in the forward shard.
4. According to claim 1, a blockchain obfuscated transaction method based on shard node mutual assistance is characterized in that: The nodes in each shard send the obtained output address information to the node with the best performance in the corresponding shard, including: each shard organizes the obtained output address information to form an output address information set, and packages the output address information of the set together into K (ad m ´) are sent together to the node Xd with the best performance in the shard to which they belong m , the node with the best performance in the shard obtains the output address information list ad through decryption m in, .
5. According to claim 1, a blockchain obfuscated transaction method based on shard node mutual assistance is characterized in that: The output address obtained by multi-layer encryption according to the numbering sequence of the node with the best performance is transmitted, including: respectively transmitting the best node Xd of each shard of the forward shard and the reverse shard m The nodes are numbered with Arabic numerals 1, 2, ..., and the output addresses obtained from the nodes with the best performance are transmitted through multi-layer encryption according to the numbering sequence; the output addresses obtained from the nodes with the best performance are transmitted through multi-layer encryption according to the numbering sequence, including: the node Xd1 with the best performance numbered 1 in the forward shard uses the public key of the node with the best performance in other forward shards to perform multi-layer encryption on the output address list ad1´ to obtain k (Xda1), and k (Xda1) is sent to the node Xd2 with the best performance numbered 2 in the forward shard after signing with the private key; wherein, ; Then, the best performing node Xd2 of the forward shard numbered 2 uses its own private key to decrypt k(Xda1) to obtain de(k(Xda1)), and then performs multi-layer encryption on the output address list ad2´ and inserts it into the decrypted information to obtain k(Xda2) and signs it with the private key, and sends it to the best performing node Xd3 of the forward shard numbered 3; where the expressions of de(k(Xda1)) and k(Xda2) are: Continue calculating according to this rule until you find the node Xd with the largest number and the best performance. m Receive the encrypted output address information k (Xda m-1 ), the node with the largest number and the best performance Xd m Use your own private key pair k (Xda m-1 ) to obtain the output address list of the first m-1 numbers, node Xd m Receive all output address lists in the reverse fragment address 反向 ;k(Xda m-1 ) and address 反向 The representation is as follows: .
6. A blockchain obfuscated transaction method based on shard node mutual assistance according to claim 5, characterized in that: The method of transmitting the output address obtained by the best performing node through multi-layer encryption according to the numbering sequence also includes: the output address obtained by the best performing node in the reverse shard is transmitted in the same manner as the output address obtained by the best performing node in the forward shard; by transmitting the output address obtained by the best performing node in the reverse shard, the best performing node with the largest number in the reverse shard receives the list of all output addresses in the forward shard. 正向 ; List of all output addresses in the forward shard address 正向 And the list of all output addresses in the reverse fragment address 反向 The list of all output addresses that make up the blockchain is address, that is, address: 。 7. According to claim 1, a blockchain obfuscated transaction method based on shard node mutual assistance is characterized in that: The last node of the node with the best performance number includes: numbering the node with the best performance with the largest Arabic numeral as the last node of the node with the best performance number.
8. According to claim 1, a blockchain obfuscated transaction method based on shard node mutual assistance is characterized in that: The nodes in each forward shard verify whether their output addresses are in the output address information list of the last node with the best performance node number in the reverse shard, including: the nodes in each forward shard verify whether their output addresses are in the output address list broadcast by the node with the largest number and the best performance in the reverse shard. 正向 In the forward shard, the nodes in each reverse shard verify whether their output address is in the output address list broadcast by the node with the largest number and best performance in the forward shard. 反向 In the process, if a node in a shard finds that its output address is not in the output address information list, it will refuse to sign and cannot generate a mixed transaction.
9. A blockchain obfuscated transaction method based on shard node mutual assistance according to claim 1 or 7, characterized in that: The process of generating a mixed transaction after confirming that each node in the forward shard receives the output address information list signed by all other forward shard nodes and each node in the reverse shard receives the output address information list signed by all other reverse shard nodes is correct includes: generating a mixed transaction after confirming that each node in the forward shard receives the output address information list signed by all other reverse shard nodes and submitting it to the blockchain network to complete the mixed transaction includes: generating a mixed transaction after confirming that each node in the forward shard receives the output address information list signed by all other forward shard nodes is correct and submitting it to the blockchain network to complete the mixed transaction ... 正向 At the same time, until each node in the reverse shard receives the output address list address signed by all other reverse shard nodes 反向 After all are confirmed to be correct, a mixed transaction is generated and submitted to the blockchain network to complete the mixed transaction.
