A dual auction method for wireless blockchain transaction forwarding and verification in complex networks

By introducing the double auction mechanism and the no-regret algorithm into the wireless blockchain network, it solves the problem that the traditional incentive mechanism is not suitable for wireless devices, reduces energy and spectrum consumption, enhances network robustness and security, and realizes the control of forwarding nodes. and incentives for verification nodes.

CN117217879BActive Publication Date: 2024-09-10ARMY ENG UNIV OF PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311088969.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2024-09-10
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

In wireless blockchain networks, the traditional blockchain incentive mechanism is not suitable for wireless devices, resulting in a lack of incentives for forwarding nodes, increased consumption of node energy and spectrum resources, and security issues such as witch attacks.

Method used

Propose a double auction method for wireless blockchain transaction forwarding and verification in complex networks. Through the bidding information and auction mechanism of forwarding nodes and verification nodes, transaction fees are allocated to motivate nodes, and the gossip protocol and no-regret algorithm are used to adjust the forwarding probability. , resist witch attacks.

Benefits of technology

It effectively reduces the consumption of node energy and spectrum resources, improves the social welfare of the blockchain network, enhances the robustness and security of the network, and avoids witch attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117217879B
    Figure CN117217879B
Patent Text Reader

Abstract

The present invention discloses a dual auction method for forwarding and verifying wireless blockchain transactions in a complex network, which includes two auction models: forwarding auction and verification auction. In the forwarding auction, the forwarding node uses the GFP auction method to select transactions for forwarding. According to whether the forwarded transaction is successfully confirmed on the chain, the node uses a no-regret algorithm to adjust the forwarding probability and improve the forwarding efficiency; in the verification auction, the verification node selects transactions through the VCG mechanism to package and build blocks, and broadcasts the blocks, waiting for verification by other nodes. When the block proposed by the verification node is successfully verified and added to the main chain, the verification node and the relevant forwarding nodes receive corresponding rewards. In addition, by designing the distribution form of forwarding rewards and verification rewards, the proposed method can successfully resist witch attacks. The present invention effectively reduces the consumption of energy and spectrum resources and improves the social welfare of the blockchain network without sacrificing the throughput and security of the wireless blockchain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of wireless communication technology, and in particular to a dual auction method for forwarding and verifying wireless blockchain transactions in a complex network. Background Art

[0002] Blockchain has become a hot topic in the industry and academia with its distributed, decentralized, and real characteristics. At present, most blockchain applications rely on desktop terminals, which hinders the widespread adoption and implementation of blockchain technology. Fortunately, with the popularization of emerging communication network technologies such as 6G and the Internet of Things, blockchain can participate in the construction of wireless blockchain systems. Wireless blockchain systems further utilize the properties of distribution and autonomy, eliminate the limitations of time and space to provide services to users, and attract more users to participate in the construction of blockchain. Therefore, wireless blockchain lays the foundation for the mobile value Internet and is regarded as a key component of the 6G mobile network (T. Hewa, G. Gür, A. Kalla, M. Ylianttila, A. Bracken, and M. Liyanage, "The role of blockchain in 6g: Challenges, opportunities and research directions," 2020 2nd 6G Wireless Summit (6GSUMMIT), pp. 1–5, 2020.). The integration of blockchain and wireless networks further exerts the value and function of blockchain.

[0003] In the context of wireless networks, various mobile devices, such as Raspberry Pi, smartphones, and smart cameras, are connected through wireless links with limited energy and spectrum resources. For example, mobile ad hoc networks are autonomous distributed network systems that do not rely on fixed infrastructure and central management, and are more robust and flexible than centralized networks. However, the lack of trust between mobile devices poses a challenge to effective communication and sharing. The inherent distributed and decentralized properties of blockchain correspond to the characteristics of wireless networks. In addition, blockchain provides a real platform for wireless networks and can potentially promote the development of blockchain and wireless networks. Therefore, deploying a wireless blockchain system not only solves the trust problem of wireless networks, but also enriches blockchain applications.

[0004] However, there are some challenges in directly applying existing blockchain technology to wireless networks. One thorny issue is that the traditional incentive mechanism of blockchain is not suitable for wireless devices. Taking Proof-of-Work (PoW) consensus as an example (S. Nakamoto and A. Bitcoin, "A peer-to-peer electronic cash system," URL: https: / / bitcoin.org / bitcoin.pdf, 2008.), the consensus mechanism focuses on the computing power of the node, and the transaction fee is only paid to the verification node. This is unfair to the forwarding node because forwarding transactions consumes energy and spectrum resources. The lack of forwarding incentives reduces the motivation of nodes to help other nodes forward information. In addition, traditional blockchain networks use broadcast protocols to spread information. Continuous communication behavior consumes a lot of energy and spectrum resources, which is inconsistent with the limited energy and spectrum resources of wireless devices. Therefore, it is necessary to improve the incentive mechanism to adapt to wireless blockchain networks. Summary of the invention

[0005] The purpose of the present invention is to provide a dual auction method for forwarding and verifying wireless blockchain transactions in a complex network, while incentivizing forwarding nodes and verification nodes. In complex wireless blockchain scenarios, it can effectively reduce the consumption of node energy and spectrum resources and improve the social welfare of the blockchain network.

[0006] In order to achieve the purpose of the present invention, the present invention discloses a dual auction method for wireless blockchain transaction forwarding and verification in a complex network, comprising the following steps:

[0007] Step 1: A wireless blockchain network is composed of X forwarding nodes and Y verification nodes. The forwarding nodes are responsible for generating and forwarding transactions, and the verification nodes are responsible for generating blocks and selecting transactions to be packaged into blocks. All nodes will forward blocks. The gossip protocol is used for communication between nodes.

[0008] Step 2: When the forwarding node generates the transaction information Tx_msg, it attaches the bidding information <F,T c ,T s ,l t > and broadcast the message; the forwarding node divides the transaction fee into two parts: forwarding reward and verification reward, and can resist witch attacks; after the transaction is confirmed on the chain, the distribution of transaction fees is determined according to the forwarding and verification process of the transaction;

[0009] Step 3: The forwarding node that receives Tx_msg decides whether to forward Tx_msg through forwarding auction;

[0010] Step 4: When the verification node receives Tx_msg, it selects the transaction to build the block Block_msg through the verification auction, and then broadcasts Block_msg;

[0011] Step 5: When the forwarding node receives Block_msg, it determines whether the block is legal; if it is legal, it adds the block to the chain and adjusts the forwarding probability p according to the no-regret algorithm, and then broadcasts the block;

[0012] Step 6: When the verification node receives Block_msg, it determines whether the block is legal; if it is legal, it adds the block to the chain and broadcasts the block;

[0013] Step 7: After Block_msg is confirmed by the entire network and added to the main chain, the relevant forwarding nodes and verification nodes will receive corresponding forwarding rewards and verification rewards;

[0014] The entire process of transaction and block generation, propagation, verification and confirmation in the complex wireless blockchain network is completed by looping steps 1 to 7.

[0015] Furthermore, in step 1, the nodes in the wireless blockchain network use the gossip protocol to communicate, specifically: each message has <l t ,n f > form, where l t Indicates the remaining forwarding times of the information, n f Indicates the number of neighbors selected for forwarding; set L to l t Maximum value, the node randomly selects n f The neighbor forwards the information; each time it is forwarded, the remaining number of forwarding times will decrease by 1. t If it becomes 0, the information will not be forwarded.

[0016] Furthermore, in step 2, the forwarding node generates additional bidding information when the transaction is generated <F,T c ,T s ,l t >, specifically: F represents the upper limit of the transaction fee paid for this transaction, T c Indicates the time when the transaction information is expected to be confirmed, T s Indicates the time when this transaction was generated, l t Indicates the remaining forwarding times and is consistent with the gossip protocol l t Keep consistent.

[0017] Furthermore, in step 2, the transaction fee allocation formula is:

[0018]

[0019] Among them, 0≤α≤1 represents a constant coefficient, r represents the forwarding path length of the transaction information, and g represents the forwarding order. represents the forwarding incentive of the g-th forwarding node with a path length of r; the first term in the transaction fee allocation formula (1) represents the forwarding reward, and the second term represents the verification reward; when r=1, the node directly forwards the transaction to the verification node after generating it, so there is no forwarding reward, and all transaction fees are allocated to the verification node; according to the transaction fee allocation formula, the node with a higher forwarding order is more important, so it can get a higher reward.

[0020] Furthermore, in step 2, the transaction fee distribution method can resist Sybil attacks, specifically:

[0021] Sybil attack: Malicious nodes conduct Sybil attacks by forging forwarding records to earn extra transaction fees. Both forwarding nodes and validating nodes can launch Sybil attacks. The forwarding node signs multiple fake identities on Tx_msg when forwarding it. Although the validator has no motivation to forward Tx_msg, they can append fake identities to the forwarding list and then put Tx_msg into Block_msg. Due to Sybil attacks, malicious devices gain undue utility, undermining the security and fairness of the wireless blockchain system.

[0022] According to the transaction fee allocation formula (1), when the forwarding node forwards honestly, the forwarding node’s profit R f for

[0023]

[0024] When the forwarding node launches a Sybil attack, the reward R′ of the forwarding node f for

[0025]

[0026] In a wireless blockchain network, all nodes are rational and selfish. By comparing the benefits of honest forwarding by the forwarding node with the benefits of a Sybil attack,

[0027]

[0028] From the comparison results in formula (3), it can be concluded that the forwarding node cannot obtain higher profits by launching a Sybil attack; in addition, due to l t If the forwarding device launches a witch attack, the effective l t becomes l t -1, which reduces the probability of Tx_msg reaching the verification node. At the same time, the Sybil attack reduces the rewards of other forwarding nodes, reducing the probability of other devices forwarding Tx_msg. Therefore, the forwarding node has no motivation to launch a Sybil attack.

[0029] According to the transaction fee allocation formula (1), the honest reward R of the verification node is v for

[0030]

[0031] When a verification node launches a witch attack, the reward R v 'for

[0032]

[0033] Comparing the rewards for being honest with a validator and the rewards for launching a Sybil attack

[0034]

[0035] For verification nodes, launching a Sybil attack does not provide additional rewards, so verification nodes have no incentive to conduct a Sybil attack.

[0036] Therefore, when the transaction fee allocation formula (1) is used, all nodes in the wireless blockchain network have no motivation to carry out a Sybil attack, and the designed transaction fee allocation method is resistant to Sybil attacks.

[0037] Furthermore, in step 3, whether to forward Tx_msg is determined based on the forwarding auction, specifically:

[0038] When the forwarding node receives Tx_msg, it first t The value of and forwarding probability p determine whether to receive the information. t When ≥1, the node has a probability of p receiving Tx_msg;

[0039] By linking the forwarding reward with the time of transaction confirmation, the time weight w is introduced t , speed up the forwarding of Tx_msg

[0040]

[0041]

[0042] Where T represents the current time, T c Indicates the expected confirmation time, T s Indicates the time when the transaction was generated. Represents the estimated reward received by the forwarding node; since the final path length cannot be determined during the forwarding process, the forwarding node uses L+2-l t To estimate the final path length;

[0043] Because the forwarding node will receive the same transaction information forwarded to it by different nodes, it determines whether it has received the same transaction before; if it has received the same transaction, it selects the reward value The highest Tx_msg is retained and the rest is discarded; the process is given by the following formula

[0044]

[0045] Ψ=Ψ∪j (11)

[0046] Where j represents the transaction with the highest reward value, and Ψ represents the transaction pool of the node. When the number of Tx_msgs in the transaction pool Ψ exceeds the maximum forwarding window N, the forwarding node uses the GFP method to select the first N Tx_msgs with the highest reward value for forwarding. When forwarding, the node signs on the Tx_msg<I,g> , where I is the identity; in addition, the node uses a digital signature to ensure that the signed forwarding list will not change.

[0047] Furthermore, in step 4, the verification auction is used to select the transaction to construct the building block Block_msg, specifically:

[0048] When the verification node receives Tx_msg, it first calculates the verification reward obtained

[0049]

[0050] Unlike forwarding nodes, verification nodes are the destination nodes of transaction information, so verification nodes can obtain the exact forwarding path length and calculate verification rewards based on it;

[0051] The verification node only retains the Tx_msg with the highest verification reward for the same transaction; when the number of Tx_msg in the verification node's transaction pool Ψ exceeds the maximum number of transactions in the block M, the node uses the VCG mechanism to determine the winning transaction and calculate the corresponding payment fee;

[0052] Afterwards, the verification node constructs Block_msg <H,I,Nonce,ζ,T B ,v>, where H represents the block height, I represents the identity, Nonce represents a 4-bit random number, ζ represents the transactions contained in the block, and T B Represents the timestamp of block generation, and v represents the verification reward; the verification node tries different Nonce values ​​to solve the hash puzzle, and when a Nonce value that meets the conditions is successfully found, the node broadcasts Block_msg.

[0053] Furthermore, in step 5, the no-regret algorithm is used to adjust the forwarding probability, specifically:

[0054] When the forwarding node receives Block_msg, it determines whether there is a transaction in the transaction list contained in the block that it has forwarded but has not been confirmed on the chain by the verification node, and adjusts the probability of each action in the action set a according to the judgment result; because for the received Tx_msg, the forwarding node has only two actions: forwarding and not forwarding, so a={a0,a1}, where a0 means not forwarding and a1 means forwarding;

[0055] First, the forwarding node calculates the cost function of each action. The cost of the node not forwarding is

[0056] c(a0)=0 (15) The cost of node forwarding is

[0057]

[0058] Among them, c f Indicates the cost of forwarding a transaction. The first term in formula (16) means that the transaction information forwarded by the node is packaged and put on the chain, and the second term means that the transaction forwarded by the node is not packaged and put on the chain, but the same transaction forwarded by other nodes is packaged and put on the chain.

[0059] According to each calculated cost function, the forwarding node adjusts the forwarding probability. The specific process is as follows:

[0060]

[0061]

[0062]

[0063] Among them, t represents the number of adjustment rounds, and γ represents the learning rate, which is used to adjust the balance between exploration and application; represents the weight of the action in round t; c t (a) The cost of action a in round t, Γ t+1 represents the sum of the weights of the t+1th action; p t+1 (a) represents the probability of action a in round t+1.

[0064] Compared with the prior art, the significant progress of the present invention lies in: 1) focusing on the cutting-edge application background of complex wireless blockchain networks, the transaction fee allocation problem in the process of transaction forwarding and verification is studied, and a double auction mechanism is proposed to effectively incentivize forwarding nodes and verification nodes, thereby improving the robustness of the blockchain network; 2) in the designed double auction mechanism, by introducing a no-regret learning algorithm, the forwarding node can dynamically adjust the forwarding probability, thereby improving the forwarding efficiency and effectively reducing the energy and spectrum resource consumption caused by node forwarding.

[0065] In order to more clearly illustrate the functional characteristics and structural parameters of the present invention, further description is given below in conjunction with the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0067] Figure 1 It is a system model diagram of the dual auction method for transaction forwarding and verification in a complex wireless blockchain network of the present invention;

[0068] Figure 2 It is a framework diagram of the forwarding auction of the present invention;

[0069] Figure 3 It is a framework diagram of the verification auction of the present invention;

[0070] Figure 4 is a performance diagram of the method proposed in Example 1 of the present invention and a comparative algorithm;

[0071] Figure 5 is a performance diagram of the method proposed in Example 1 of the present invention and a comparative algorithm;

[0072] Figure 6 It is a performance diagram of the method proposed in Example 2 of the present invention and the comparison algorithm. DETAILED DESCRIPTION

[0073] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0074] Since PoW consensus has been widely used in classic wireless blockchain systems and supports a fully decentralized network structure, this application mainly studies the wireless blockchain system based on PoW and improves the incentive mechanism. In order to apply blockchain to wireless networks, the incentive mechanism not only rewards the verification nodes, but also incentivizes the forwarding nodes. Due to the introduction of forwarding incentives, the mechanism must resist Sybil attacks, which means that nodes cannot forge false forwarding behaviors to obtain profits. In addition, the devices are guided to forward transactions under the incentive mechanism, avoiding the waste of energy and spectrum. Considering the complex wireless environment and heterogeneous devices in the wireless blockchain network, the mechanism is also robust and can adapt to the scenarios where faulty nodes and Byzantine nodes exist. In summary, the designed incentive mechanism should have the following properties: 1) Transaction fees are allocated to forwarding devices and verification devices; 2) The incentive mechanism can guide devices to adaptively adjust the propagation strategy and forward transactions honestly; 3) The incentive mechanism should not reduce the throughput performance and security of the wireless blockchain system.

[0075] The present invention proposes a dual auction method for wireless blockchain transaction forwarding and verification in a complex network, which incentivizes forwarding nodes and verification nodes at the same time. It can effectively reduce the consumption of node energy and spectrum resources in complex wireless blockchain scenarios and improve the social welfare of the blockchain network.

[0076] like Figure 1 to Figure 3 As shown, Figure 1 This is a system model diagram. During the propagation of transactions, the forwarding node forwards the transaction to the verification node, and then the verification node selects the transaction to build a block. After verifying and confirming the new block, the relevant forwarding node and verification node will receive forwarding and verification rewards respectively. Figure 2 This is a forwarding auction framework diagram. The forwarding node uses GFP auction to select transactions for forwarding. Figure 3 This is a diagram of the verification auction framework. The verification node uses the VCG auction to select transactions for block construction.

[0077] The present invention aims to maximize the social welfare of the wireless blockchain network and optimizes the process of forwarding nodes selecting transaction forwarding and verification nodes selecting transaction verification by using an auction algorithm. The dual auction method for transaction forwarding and verification in a complex wireless blockchain network proposed by the present invention includes the following steps:

[0078] Step 1: A wireless blockchain network consisting of X forwarding nodes and Y verification nodes; the forwarding nodes are responsible for generating and forwarding transactions; the verification nodes are responsible for generating blocks and selecting transactions to be packaged into blocks, and all nodes will forward blocks; the gossip protocol is used for communication between nodes;

[0079] Step 2: When the forwarding node generates the transaction Tx_msg, it attaches the bidding information <F,Tc ,T s ,l t > and broadcast the message; the forwarding node divides the transaction fee into two parts: forwarding reward and verification reward, and can resist witch attacks; after the transaction is confirmed on the chain, the distribution of transaction fees is determined according to the forwarding and verification process of the transaction;

[0080] Step 3: The forwarding node that receives Tx_msg decides whether to forward Tx_msg through forwarding auction;

[0081] Step 4: When the verification node receives Tx_msg, it selects the transaction to build the block Block_msg through the verification auction, and then broadcasts Block_msg;

[0082] Step 5: When the forwarding node receives Block_msg, it determines whether the block is legal; if it is legal, it adds the block to the chain and adjusts the forwarding probability p according to the no-regret algorithm, and then broadcasts the block;

[0083] Step 6: When the verification node receives Block_msg, it determines whether the block is legal; if it is legal, it adds the block to the chain and broadcasts the block;

[0084] Step 7: After Block_msg is confirmed by the entire network and added to the main chain, the relevant forwarding nodes and verification nodes will receive corresponding forwarding rewards and verification rewards;

[0085] The entire process of transaction and block generation, propagation, verification and confirmation in the complex wireless blockchain network is completed by looping steps 1 to 7.

[0086] The specific implementation of the present invention is as follows:

[0087] 1. The nodes in the wireless blockchain network described in step 1 use the gossip protocol to communicate, specifically:

[0088] Each message has <l t ,n f >Similar in shape, where l t Indicates the remaining forwarding times of the information, n f Indicates the number of neighbors selected for forwarding; set L to l t Maximum value, the node randomly selects n f The neighbor forwards the information; each time it is forwarded, the remaining number of forwarding times will decrease by 1. t If it becomes 0, the information will not be forwarded.

[0089] 2. The bidding information attached when the forwarding node generates the transaction in step 2 <F,T c ,T s ,lt >, specifically:

[0090] F represents the upper limit of the transaction fee paid for this transaction, T c Indicates the time when the transaction information is expected to be confirmed, T s Indicates the time when this transaction was generated, l t Indicates the remaining forwarding times and is consistent with the gossip protocol l t Keep consistent.

[0091] 3. The distribution of the transaction fee described in step 2 is as follows:

[0092]

[0093] Among them, 0≤α≤1 represents a constant coefficient, r represents the forwarding path length of the transaction information, and g represents the forwarding order, so F r g It represents the forwarding incentive of the g-th forwarding node with a path length of r. The first term in formula (1) represents the forwarding reward, and the second term represents the verification reward. When r = 1, the node directly forwards the transaction to the verification node after generating it, so there is no forwarding reward, and all transaction fees are allocated to the verification node.

[0094] According to formula (1), it can be concluded that nodes with a higher forwarding order are more important and can therefore receive higher rewards.

[0095] 4. The distribution method of transaction fees described in step 2 can resist Sybil attacks, specifically:

[0096] Sybil attack: Malicious nodes conduct Sybil attacks by forging forwarding records to earn extra transaction fees. Both forwarding nodes and validating nodes can launch Sybil attacks. The forwarding node signs multiple fake identities on Tx_msg when forwarding it. Although the validator has no motivation to forward Tx_msg, they can append fake identities to the forwarding list and then put Tx_msg into Block_msg. Due to Sybil attacks, malicious devices gain undue utility, undermining the security and fairness of the wireless blockchain system.

[0097] To resist Sybil attacks, the rewards must be distributed in a way that:

[0098]

[0099] Theorem 1: To satisfy formula (2), we only need to satisfy That's it.

[0100] Proof: According to We can get:

[0101]

[0102] According to the reward distribution method of formula (1), when the forwarding node forwards honestly, its income is:

[0103]

[0104] When a forwarding node launches a Sybil attack, the reward it receives is:

[0105]

[0106] Subtracting formula (4) from formula (5) yields:

[0107]

[0108] In addition, due to the t If the forwarding device launches a witch attack, the effective l t becomes l t -1, which reduces the probability of Tx_msg reaching the verification node. At the same time, the Sybil attack leads to a reduction in the rewards of other forwarding nodes, reducing the probability of other devices forwarding Tx_msg. Therefore, the forwarding node has no motivation to launch a Sybil attack.

[0109] According to formula (1), the reward for the verification node is:

[0110]

[0111] When a verification node launches a Sybil attack, the reward is:

[0112]

[0113] It can be deduced that:

[0114]

[0115] For verification nodes, launching a Sybil attack does not provide additional rewards, so verification nodes have no incentive to conduct a Sybil attack.

[0116] Therefore, according to Theorem 1, under the distribution method of formula (1), all nodes in the wireless blockchain network have no motivation to carry out Sybil attacks, and the designed transaction fee distribution method is resistant to Sybil attacks.

[0117] 5. The decision of whether to forward Tx_msg according to the forwarding auction described in step 3 is as follows:

[0118] When the forwarding node receives Tx_msg, it first t The value of and forwarding probability p determine whether to receive the information. tWhen ≥1, the node has a probability of p to receive Tx_msg.

[0119] By linking the forwarding reward with the time of transaction confirmation, the forwarding of Tx_msg is accelerated:

[0120]

[0121]

[0122] Where T represents the current time, Represents the estimated reward received by the forwarding node. Since the final path length cannot be determined during the forwarding process, the forwarding node uses L+2-l t To estimate the final path length.

[0123] Because the forwarding node will receive the same transaction information forwarded to it by different nodes, define the operator To determine whether the same transaction has been received before. If the same transaction has been received, select the reward value The highest Tx_msg is retained and the other messages are discarded. The process is given by the following formula:

[0124]

[0125] Ψ=Ψ∪j, (13)

[0126] Among them, Ψ represents the transaction pool of the node.

[0127] When the number of Tx_msg in the transaction pool Ψ exceeds the maximum forwarding window N, the forwarding node uses the GFP method to select the first N Tx_msg with the highest reward value for forwarding. When forwarding, the node signs on the Tx_msg<I,g> , where I is the identity. In addition, the node uses a digital signature to ensure that the signed forwarding list will not change.

[0128] 6. The use of verification auction selection transaction to construct the building block Block_msg described in step 4 is specifically:

[0129] When the verification node receives Tx_msg, it first calculates the verification reward obtained:

[0130]

[0131] Unlike forwarding nodes, verification nodes are the destination nodes of transaction information, so verification nodes can obtain the exact forwarding path length and calculate the verification reward based on it.

[0132] The verification node only retains the Tx_msg with the highest verification reward for the same transaction. When the number of Tx_msg in the transaction pool Ψ of the verification node exceeds the maximum number of transactions M in the block, the node uses the VCG mechanism to determine the winning transaction and calculate the corresponding payment fee.

[0133] Afterwards, the verification node constructs Block_msg <H,I,Nonce,ζ,T B ,v>, where H represents the block height, I represents the identity, Nonce represents a 4-bit random number, ζ represents the transactions contained in the block, and T B Indicates the timestamp of block generation, and v indicates the verification reward. The verification node tries different Nonce values ​​to solve the hash puzzle, and when a Nonce value that meets the conditions is successfully found, the node broadcasts Block_msg.

[0134] VII. The use of the no-regret algorithm to adjust the forwarding probability in step 5 is as follows:

[0135] When the forwarding node receives Block_msg, it determines whether there is a transaction in the transaction list contained in the block that it has forwarded but has not been confirmed on the chain by the verification node, and adjusts the probability of each action in the action set a according to the judgment result. Because for the received Tx_msg, the forwarding node has only two actions: forwarding and not forwarding, so a={a0,a1}, where a0 means not forwarding and a1 means forwarding.

[0136] First, the forwarding node calculates the cost function of each action. The cost of the node not forwarding is:

[0137] c(a0)=0, (15) The cost of node forwarding is:

[0138]

[0139] Among them, c f Represents the forwarding cost. Formula (15) represents the cost of the node when not forwarding transaction information, and formula (16) represents the cost of the node when forwarding transaction information. The first item represents that the transaction information forwarded by the node is packaged and uploaded to the chain, and the second item represents that the transaction forwarded by the node is not packaged and uploaded to the chain, but the same transaction forwarded by other nodes is packaged and uploaded to the chain.

[0140] According to each calculated cost function, the forwarding node adjusts the forwarding probability. The specific process is as follows:

[0141]

[0142]

[0143]

[0144] Among them, γ represents the learning rate, which is used to adjust the balance between exploration and application, and w a represents the weight of the action, and Γ represents the sum of the weights of all actions.

[0145] Example 1

[0146] The first embodiment of the present invention is described in detail as follows. The system simulation adopts Python language, and the parameter setting does not affect the generality. This embodiment verifies the effectiveness of the proposed method. The parameters are set as follows: 20% of the entire wireless blockchain are verification nodes and 80% are forwarding nodes. The transaction generation rate is 2 / s, the average block interval is 1s, the number of auction rounds is 50, L is 6, and n is 1. f is 3, α is 0.5, γ is 0.001, M is 40, and N is 10.

[0147] like Figure 4 As shown, Figure 4 : is a performance diagram of the method proposed in Example 1 of the present invention and the comparison algorithm. The comparison algorithms are the classic PoW incentive mechanism and the selfish forwarding mechanism. The performance is measured and compared using indicators such as throughput, transaction confirmation probability, spectrum resource consumption, and incentive allocation. In the classic PoW incentive mechanism, nodes voluntarily forward transactions of other nodes, but the system only rewards the verification nodes; in the selfish forwarding mechanism, nodes do not forward transactions of other nodes because they do not receive incentives. Figure 4 It can be concluded that the throughput and transaction confirmation probability of the proposed mechanism are almost the same as those of the classic PoW incentive mechanism, but the spectrum consumption is much less than that of the classic PoW incentive mechanism. In the selfish forwarding mechanism, because the node only forwards its own transactions, the network throughput and transaction confirmation probability are the lowest. In addition, by observing the distribution of incentives, both the forwarding node and the verification node in the proposed method have obtained positive benefits. Therefore, without affecting the performance of the blockchain system, the proposed method greatly reduces the resource consumption of the node and is suitable for complex wireless blockchain networks.

[0148] like Figure 5 As shown, Figure 5 1 is a performance diagram of the method and the comparison algorithm in Example 1 of the present invention. The comparison algorithms are the classic PoW incentive mechanism and the selfish forwarding mechanism, and the performance indicators are measured and compared using social welfare. Social welfare is defined as the sum of the utilities of all nodes in the entire wireless blockchain network. Figure 5It is shown that among the three algorithms, the proposed double auction mechanism achieves the maximum social welfare of the wireless blockchain system. The classic PoW incentive mechanism obtains negative social welfare because the forwarding nodes contribute a lot of energy and communication resources to forward transactions but do not receive rewards. Although the selfish forwarding mechanism obtains positive social welfare, only a few forwarding devices profit from it, which eventually endangers the long-term operation of the wireless blockchain network. Therefore, the double auction mechanism is suitable for the wireless blockchain system to encourage nodes to forward information and reduce communication consumption in the wireless blockchain network.

[0149] Example 2

[0150] The second embodiment of the present invention is described in detail as follows. The system simulation adopts Python language, and the parameter setting does not affect the generality. This embodiment verifies the effectiveness of the proposed method. The parameters are set as follows: considering that there are 4 verification nodes and 16 forwarding nodes in the entire wireless blockchain. The transaction generation rate is 2 / s, the average block interval is 1s, the number of auction rounds is 50, L is 6, and n f is 3, α is 0.5, γ is 0.001, M is 40, and N is 10.

[0151] like Figure 6 As shown, Figure 6 : is a performance diagram of the method proposed in Example 2 of the present invention and the comparison algorithm. The maximum cumulative return utility of the comparison algorithm, the performance index is measured and compared by the utility value of the forwarding node. The maximum cumulative return utility is the return obtained by the optimal action fixed by the forwarding node in 50 rounds of auctions, so the maximum cumulative return utility is defined as the optimal utility. Figure 6 It means that the utility obtained by the node using the designed method is very close to the optimal utility. In addition, there is an upper bound on the difference between the proposed method and the optimal utility. Figure 5 It is observed that the difference between the utility obtained by each node using the proposed method and the optimal utility does not exceed the upper bound, which proves the effectiveness of the proposed method.

[0152] Through comparison, it is found that the dual auction method for transaction forwarding and verification in a complex wireless blockchain network proposed in the present invention can effectively incentivize forwarding nodes and verification nodes, reduce the consumption of node energy and spectrum resources, and improve the social welfare of the blockchain network.

[0153] In summary, the dual auction method for transaction forwarding and verification in complex wireless blockchain networks proposed in the present invention can realize adaptive adjustment of the forwarding probability of nodes and optimization of the transaction forwarding and verification process, effectively improve the transaction forwarding, verification and chain-up efficiency in complex wireless blockchain scenarios, and improve the social welfare of wireless blockchain networks.

[0154] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0155] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A dual auction method for wireless blockchain transaction forwarding and verification in a complex network, characterized in that: The following steps are involved: Step 1: A wireless blockchain network is composed of X forwarding nodes and Y verification nodes. The forwarding nodes are responsible for generating and forwarding transactions, and the verification nodes are responsible for generating blocks and selecting transactions to be packaged into blocks. All nodes will forward blocks. The gossip protocol is used for communication between nodes. Step 2: When the forwarding node generates the transaction information Tx_msg, it attaches the bidding information 〈F,T c ,T s ,l t 〉, and broadcast the message; the forwarding node divides the transaction fee into two parts: forwarding reward and verification reward, and can resist witch attacks; after the transaction is confirmed on the chain, the distribution of transaction fees is determined according to the forwarding and verification process of the transaction; Step 3: The forwarding node that receives Tx_msg decides whether to forward Tx_msg through forwarding auction; Step 4: When the verification node receives Tx_msg, it selects the transaction to build the block Block_msg through the verification auction, and then broadcasts Block_msg; Step 5: When the forwarding node receives Block_msg, it determines whether the block is legal; if it is legal, it adds the block to the chain and adjusts the forwarding probability p according to the no-regret algorithm, and then broadcasts the block; Step 6: When the verification node receives Block_msg, it determines whether the block is legal; if it is legal, it adds the block to the chain and broadcasts the block; Step 7: After Block_msg is confirmed by the entire network and added to the main chain, the relevant forwarding nodes and verification nodes will receive corresponding forwarding rewards and verification rewards; Cycle steps 1 to 7 to complete the entire process of transaction and block generation, propagation, verification and confirmation in the complex wireless blockchain network; In step 3, whether to forward Tx_msg is determined based on the forwarding auction, specifically: When the forwarding node receives Tx_msg, it first t The value of and forwarding probability p determine whether to receive the information. t When ≥1, the node has a probability of p receiving Tx_msg; By linking the forwarding reward with the time of transaction confirmation, the time weight w is introduced t , speed up the forwarding of Tx_msg Where T represents the current time, T c Indicates the expected confirmation time, T s Indicates the time when the transaction was generated. Represents the estimated reward received by the forwarding node; since the final path length cannot be determined during the forwarding process, the forwarding node uses L+2-l t To estimate the final path length; Because the forwarding node will receive the same transaction information forwarded to it by different nodes, it determines whether it has received the same transaction before; if it has received the same transaction, it selects the reward value The highest Tx_msg is retained and the rest is discarded; the process is given by the following formula Ψ=Ψ∪j (11) Where j represents the transaction with the highest reward value, and Ψ represents the transaction pool of the node. When the number of Tx_msgs in the transaction pool Ψ exceeds the maximum forwarding window N, the forwarding node uses the GFP method to select the first N Tx_msgs with the highest reward value for forwarding. When forwarding, the node signs on the Tx_msg<I,g> , where I is the identity; in addition, the node uses a digital signature to ensure that the signed forwarding list will not change; In step 4, the verification auction is used to select transactions to build the building block Block_msg, specifically: When the verification node receives Tx_msg, it first calculates the verification reward obtained Unlike forwarding nodes, verification nodes are the destination nodes of transaction information, so verification nodes can obtain the exact forwarding path length and calculate verification rewards based on it; The verification node only retains the Tx_msg with the highest verification reward for the same transaction; when the number of Tx_msg in the verification node's transaction pool Ψ exceeds the maximum number of transactions in the block M, the node uses the VCG mechanism to determine the winning transaction and calculate the corresponding payment fee; Afterwards, the verification node constructs Block_msg <H,I,Nonce,ζ,T B ,v>, where H represents the block height, I represents the identity, Nonce represents a 4-bit random number, ζ represents the transactions contained in the block, and T B Indicates the timestamp of block generation, and v indicates the verification reward. The verification node tries different Nonce values ​​to solve the hash puzzle. When a Nonce value that meets the conditions is successfully found, the node broadcasts Block_msg. In step 5, the no-regret algorithm is used to adjust the forwarding probability, specifically: When the forwarding node receives Block_msg, it determines whether there is a transaction in the transaction list contained in the block that it has forwarded but has not been confirmed on the chain by the verification node, and adjusts the probability of each action in the action set a according to the judgment result; because for the received Tx_msg, the forwarding node has only two actions: forwarding and not forwarding, so a={a0,a1}, where a0 means not forwarding and a1 means forwarding; First, the forwarding node calculates the cost function of each action. The cost of the node not forwarding is c(a0)=0 (15) The cost of node forwarding is Among them, c f Indicates the cost of forwarding a transaction. The first term in formula (16) means that the transaction information forwarded by the node is packaged and put on the chain, and the second term means that the transaction forwarded by the node is not packaged and put on the chain, but the same transaction forwarded by other nodes is packaged and put on the chain. According to each calculated cost function, the forwarding node adjusts the forwarding probability. The specific process is as follows: Among them, t represents the number of adjustment rounds, and γ represents the learning rate, which is used to adjust the balance between exploration and application; represents the weight of the action in round t; c t (a) The cost of action a in round t, Γ t+1 represents the sum of the weights of the t+1th action; p t+1 (a) represents the probability of action a in round t+1.

2. According to claim 1, a dual auction method for wireless blockchain transaction forwarding and verification in a complex network is characterized in that: In step 1, nodes in the wireless blockchain network use the gossip protocol to communicate, specifically: each message has <l t ,n f > form, where l t Indicates the remaining number of forwarding times of the information, n f Indicates the number of neighbors that choose to forward; Set L to l t Maximum value, the node randomly selects n f The neighbor forwards the information; each time it is forwarded, the remaining number of forwarding times will decrease by 1. t If it becomes 0, the information will not be forwarded.

3. According to claim 2, a dual auction method for wireless blockchain transaction forwarding and verification in a complex network is characterized in that: In step 2, the forwarding node generates additional bidding information when the transaction is generated <F,T c ,T s ,l t >, specifically: F represents the upper limit of the transaction fee paid for this transaction, T c Indicates the time when the transaction information is expected to be confirmed, T s Indicates the time when this transaction was generated, l t Indicates the remaining forwarding times and is consistent with the gossip protocol l t Keep consistent.

4. According to claim 3, a dual auction method for wireless blockchain transaction forwarding and verification in a complex network is characterized in that: In step 2, the transaction fee allocation formula is: Among them, 0≤α≤1 represents a constant coefficient, r represents the forwarding path length of the transaction information, and g represents the forwarding order. represents the forwarding incentive of the g-th forwarding node with a path length of r; the first term in the transaction fee allocation formula (1) represents the forwarding reward, and the second term represents the verification reward; when r=1, the node directly forwards the transaction to the verification node after generating it, so there is no forwarding reward, and all transaction fees are allocated to the verification node; according to the transaction fee allocation formula, the node with a higher forwarding order is more important, so it can get a higher reward.

5. According to claim 4, a dual auction method for wireless blockchain transaction forwarding and verification in a complex network is characterized in that: In step 2, the transaction fee is distributed in a way that can resist Sybil attacks, specifically: According to the transaction fee allocation formula (1), when the forwarding node forwards honestly, the revenue of the forwarding node is R f for When the forwarding node launches a Sybil attack, the reward R′ of the forwarding node f for By comparing the benefits of honest forwarding by the forwarding node with the benefits of a Sybil attack From the comparison results in formula (4), it can be concluded that the forwarding node cannot obtain higher profits by launching a Sybil attack; In addition, due to the t If the forwarding device launches a witch attack, the effective l t becomes l t -1, which reduces the probability of Tx_msg reaching the verification node. At the same time, the Sybil attack reduces the rewards of other forwarding nodes, reducing the probability of other devices forwarding Tx_msg. Therefore, the forwarding node has no motivation to launch a Sybil attack. According to the transaction fee allocation formula (1), the honest reward R of the verification node is v for When a verification node launches a witch attack, the reward R v 'for Comparing the rewards for being honest with a validator and the rewards for launching a Sybil attack For verification nodes, launching a Sybil attack does not provide additional rewards, so verification nodes have no incentive to conduct a Sybil attack.