Next Article in Journal
Multi-Criteria Decision-Making for Machine Selection in Manufacturing and Construction: Recent Trends
Next Article in Special Issue
Achieving Anonymous and Covert Reporting on Public Blockchain Networks
Previous Article in Journal
A Weights Direct Determination Neural Network for International Standard Classification of Occupations
Previous Article in Special Issue
Privacy Preservation Authentication: Group Secret Handshake with Multiple Groups
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things

1
The 15th Research Institute of China Electronics Technology Group Corporation, Beijing 100083, China
2
Internet of Things Research Institute, Nanjing University of Posts and Telecommunications, Nanjing 210003, China
*
Authors to whom correspondence should be addressed.
Mathematics 2023, 11(3), 630; https://doi.org/10.3390/math11030630
Submission received: 27 December 2022 / Revised: 19 January 2023 / Accepted: 22 January 2023 / Published: 26 January 2023
(This article belongs to the Special Issue New Advances in Coding Theory and Cryptography)

Abstract

:
In order to promote the value circulation of energy resources and improve energy efficiency, credible energy sharing between Internet of Things Devices (IoTDs) came into being. However, sometimes IoTDs do not obtain the required energy in the required time period, resulting in less active participation in energy sharing. To address these challenges, this paper first proposes a credible energy transaction model based on the distributed ledger blockchain at the Edge of the Internet of Things, where the Edge Cloud Server (ECS) can collect a large number of surplus energy resources of IoTDs in a secure and credible energy sharing environment and share them with other IoTDs in urgent need of charging. Meanwhile, in order to attract IoTDs to participate in energy sharing for a long time and meet the energy demand of ECS to the maximum extent, a smart contract-based Expected Social Welfare Maximized double auction incentive mechanism of Single ECS to Multi-IoTDs (ESWM-StM) is proposed to enable dynamic and adaptive energy sharing from multiple IoTDs to a single ECS. In addition, this paper compares the proposed algorithm with the benchmark method in terms of energy-sharing cost and long-term utility. The simulation results show that the proposed incentive mechanism can enable IoTDs to provide more surplus energy per unit cost to meet the energy demand of ECSs, and can sustainably attract more energy trading participants to enhance the expected social welfare in the long term.

1. Introduction

The growing popularity of mobile devices, such as smartphones, tablets and wearables is accelerating the rapid growth of the Internet of Things (IoT) and sparking a revolution in mobile applications [1]. Cameras and embedded sensors on IoTD support and facilitate new applications with advanced features, such as virtual reality, facial recognition and interactive online gaming. The conflict between resource-constrained devices and compute-intensive applications, on the other hand, is a roadblock in offering a good quality of experience, which may postpone the creation of a mature mobile app market [2].
Mobile Edge Computing (MEC) provides cloud computing capabilities in wireless access networks (RAN), providing a new paradigm that can free mobile devices from heavy computing workloads [3]. MEC has the potential to significantly reduce latency, avoid congestion and extend the battery life of mobile devices by offloading computational tasks from mobile devices to physical proximity to MEC servers [4,5].
However, while the utilization of cloud server computing resources can be improved through compute offloading, for traditional battery-powered devices, compute performance may be compromised because there is not enough battery power for task offloading, i.e., mobile applications will be terminated and mobile devices will be terminated. This can be achieved by using a larger battery or recharging the battery regularly. However, using a larger battery in a mobile device means increasing hardware costs, which is not desirable. Energy harvesting (EH) is a promising technology to solve these problems. By harvesting idle energy resources in the IoTDs, we can provide energy resources to the terminal equipment in need [6].
However, energy-surplus IoTDs may be hesitant to join as energy suppliers in energy trading due to concerns about battery life or privacy. At the same time, IoTDs that fail to obtain the required energy in an emergency will refuse the next energy collection task associated with them, and the traditional trading mechanism will terminate the transaction if the buyer fails to obtain the required energy within the specified time, failing to take into account that the seller can still provide energy after the specified time, which will lead to increasingly inefficient energy trading. Furthermore, traditional centralized energy trading, which relies on trusted third parties, has flaws such as single points of failure and privacy breaches. It is therefore necessary to encourage more IoTDs to share their energy resources. In addition, it is important to design a secure and decentralized energy trading system in order to protect the privacy of both parties during the trading process [7].
Recently, blockchain technology has been introduced for resource trading (e.g., transactions involving energy, data and computing resources [7,8]). Smart contracts in blockchain contracts, in particular, can operate as autonomous agents to enforce preset rules (e.g., auction process) without the need for censorship or third-party interference. We use blockchain at the Edge of the Internet of Things in this paper to propose a secure and efficient framework for energy resource transactions that can perform transaction verification without relying on trusted third parties. It provides an efficient, secure and tamper-proof resource allocation environment. In a blockchain-based energy trading framework, an ESWM-StM mechanism is proposed to long-term attract IoTDs to participate in energy sharing and meet the required ECS energy as much as possible.
The main research work of this paper is summarized:
  • This paper proposes a blockchain-based energy trading framework at the Edge of the Internet of Things, enabling energy trading to be executed in a decentralized centralized, transparent and secure environment. Each ECS collects surplus energy from multiple IoTDs in order to provide it to the IoTDs that need it urgently at a given moment. Without a central authority, we adopt blockchain to enable automatic, efficient and verified transactions in the energy trading framework. More specifically, we propose smart contract-based trading mechanisms to enhance the system efficiency of automatic transactions.
  • The corresponding task valuation depreciation function is proposed based on the variation of the task valuation of energy collection of ECS with the degree of urgency of energy consumption.
  • We designed ESWM-StM based on smart contracts to automatically activate the transactions with the aim of enhancing the expected social welfare while maximizing the energy demand of ECS and attracting IoTDs to participate in energy sharing in the long term. We prove that the proposed The ESWM-StM mechanism is computationally efficient and is individually rational, budget balanced and truthful. Furthermore, ESWM-StM can improve the expected social welfare compared with the traditional double auction mechanism.
  • Simulation results show that the incentive mechanism proposed in this paper can distribute ECS’s energy collection tasks to multiple IoTDs to better meet energy demand, and compared to the baseline approach [9], the incentive mechanism in this paper can attract more users to participate and enhance the expected social welfare.
The remainder of this paper is organized as follows. Related research is presented in Section 2. The transaction framework of this paper is presented in Section 3. The system model and problem statement of this paper are presented in Section 4. The algorithm design is presented in Section 5. The performance analysis is presented in Section 6. The simulation analysis is presented in Section 7. Finally, the conclusion is summarized in Section 8.

2. Related Research

Single-level auctions for allocating resources among IoTDs have received a lot of attention [10,11]. For example, Li et al. [12] proposed an algorithm based on an iterative double auction algorithm to solve the “cold start” and “long return” problems of computational resource allocation between ECSs and IoTDs. Sun et al. [13] proposed two double auction algorithms with dynamic pricing to determine matching pairs between IoTDs and ECSs. In order to effectively allocate small clouds to meet the service demand of mobile devices and set pricing, Jin et al. [14] proposed an incentive-compatible auction mechanism for resource transactions between mobile devices (buyers) and small clouds (sellers).
However, the reality is that IoTDs may not be able to deliver the required resources within the specified time, and the task valuation may change over time. Additionally, the majority of existing research has concentrated on developing offline bilateral auction mechanisms and supporting a single type of task and fixed auction service models. Accordingly, the literature [15] proposes an expected social welfare maximized mechanism (ESWM), which aims to enhance expected social welfare by attracting and retaining more participants over a long time. The literature [16] takes into account an actual crowdsourcing application with an on-demand service strategy. In particular, the online single-tender single-task, online single-tender multi-task, and online multi-tender multi-task models are made to accommodate various task and bidding requirements.
None of the above efforts consider the security of resource allocation and lack a fully reliable ledger for transactions. To address trust and security challenges, blockchain technology is combined with various single-level resource allocation protocols. He et al. [17] designed a blockchain-based real incentive mechanism to meet the various needs of users in a dynamic distributed P2P environment. Kang et al. [18] proposed a localized P2P energy distribution model for the local purchase and sale of energy among plug-in hybrid electric vehicles. Yao et al. [19] used blockchain to create a decentralized self-organizing transaction platform for industrial IoTDs and modeled the interaction as a Stackelberg game. The literature [20] proposed a consortium blockchain-based secure energy trading scheme for demand response management between EVs and the SPs in a V2G environment. In this scheme, a double auction mechanism has been used between EVs and the SPs to maximize social welfare. In order to solve the problem that the cumbersome issuing process of renewable energy certificate (REC) and inflexible pricing mechanisms consume a lot of manpower and material resources, Gao et al. [21] propose a hybrid REC trading system based on Consortium Blockchain. The literature [22] proposes the use of blockchain technology to create a decentralized transactive energy platform for peer-to-peer energy trading without authorized third-party agents. The literature [23] employs a McAfee-priced double auction mechanism and assigns the scores based on the preference of factors such as price, locality, and the type of energy generation, in addition to the quantity of energy being traded. Yang et al. [24] prove that blockchain technology is also effective in securing distributed control systems against the false data injection attack. With the aim of improving participants’ profits and reducing the impacts on the grid, the literature [25] study a peer-to-peer (P2P) energy trading system among prosumers using a double auction-based game theoretic approach, where the buyer adjusts the amount of energy to buy according to varying electricity price in order to maximize benefit, the auctioneer controls the game, and the seller does not participate in the game but finally achieves the maximum social welfare. Hou et al. [26] design a privacy-preserving energy trading mechanism by using blockchain and zero-knowledge proofs. The literature [27] develops a platform—VirtElect based on a double auction market to support the matching interaction between prosumers.
However, few papers have focused on the security and efficiency of continuous energy collection at the Edge of the Internet of Things enabled by blockchain. It is the focus of this paper due to the complex relationship between the supply and demand of different ECSs and IoTDs energy and the difficulty of design. The comparison of the proposed scheme with the existing proposals is as shown in Table 1.

3. Transaction Framework

Figure 1 shows the framework for trading energy resources between IoTDs and ECSs based on smart contract blockchain. Transaction information is stored in a blockchain network in ECSs located in a base station or edge cloud. We will describe the entities and the key operations for the framework in the following subsections.

3.1. The Entities for the Framework

  • ECS: There are two types of ECS: energy collectors and blockchain nodes. As shown in Figure 1, the energy collector is the ECS that conducts energy transactions with the IoTDs. It is in charge of collecting idle energy resources and utilizing a mechanism to ensure that the entire energy trading framework operates properly and efficiently. The blockchain node is responsible for providing a secure and trusted environment for energy transactions between the ECS and the IoTDs through smart contracts that record the detailed auction process. Furthermore, in our framework, only the blockchain node can be a trusted authority, which generates keys for each gaming player by using asymmetric encryption algorithms.
  • IoTD: Different IoTDs provide idle energy resources to ECS that are closer to them. Depending on the amount of energy required by ECS, IoTDs dynamically share energy with ECS on a one-to-one or multi-to-one basis.

3.2. The Key Operations for the Framework

According to [28], We used blockchain technology to ensure the security of the transaction framework. The operation of the blockchian enabled energy trading system can be summarized as follows:
  • System initialization: Each player joins the framework and receives their own dedicated address and public and private key in the blockchain system. Then, they will be given a set number of resource coins, which are the virtual digital currency used in the blockchain system.
  • Resource allocation and payment: Each transaction has its own smart contract for automatically recording player allocations and payments, thus ensuring player security. Details of the smart contract design can be found in Section 5.
  • Detail transaction and block generation: Any operations in the smart contract will be broadcast to the blockchain network as transactions. After that, each blockchain node adds transactions to its transaction pool. A blockchain node may have the opportunity to construct some transactions into a new block over time using a consensus mechanism such as Proof-of-Work or Proof-of-Stake.
  • Public auditing: After a successful block construction, it is broadcasted to the blockchain network and audited by all blockchain nodes to determine whether the transactions in the block are correct or not. A correct block will be added to the blockchain’s tail.

4. System Model and Problem Statement

The energy collection system model proposed in this paper assumes that there are M ECSs and N IoTDs, ECSs as the buyer of the auction, is denoted by G = { g 1 , g 2 , g M } and IoTDs as the seller, is denoted by V = { v 1 , v 2 , v N } . ECSs collect shared energy from the IoTDs with the goal of minimizing communication overhead and latency during the auction with the IoTDs. The system model implements auctions and handles some other conflicts based on smart contracts, and determines the subset of winning buyers and sellers that will eventually trade. The communication between ECSs and IoTDs is either a 4G or 5G network. The model can derive which energy providers will benefit from the auction, in which the IoTDs participate in the auction process and receive a reward if they have excess battery energy. Although each IoTD has a certain amount of surplus energy for trading, the energy sharing of a single IoTD usually cannot meet the requirements of ECS, and this model solves the problem by multiple IoTDs participating in energy sharing together.
The model denotes the energy collection time period by T = [ W S , W E ] and divides it into discrete time periods t i T of equal size, such that the energy collection time period is denoted as T = { t 1 , t 2 , t n } , and the model focuses on one of these time periods for inference verification. It considers the decrease in the task valuation of energy collection of ECS over time and the punctuality of the IoTDs to complete the ECS’s energy collection task. The symbols used in this paper and their corresponding meanings are listed in Table 2.
The process of establishing utility functions for ECS, IoTD and virtual smart contract-based crowdsourcing platforms will be described next, respectively.
(1)
ECS:
In a crowdsourcing platform, ECSs act as buyers in a double auction, with each ECS g j submitting its own bidding information θ j g = ( T j , t j d , t j e x , w j max , α j ) to the platform, Here, T j , t j d , and t j e x represent the tasks issued by ECS, the moment when the task valuation starts to depreciate after the energy collection time period, and the moment when the task valuation is zero, respectively. The maximum task valuation is w j max and α j is the depreciation rate of the task valuation after the energy collection time period is exceeded. Every ECS is rational and selfish, and will only engage in the auction process if the value of T j is higher than the value of q j charged for it.
Considering the charging schedule of all IoTDs in a given time period, the Euclidean distance between ECS g j and IoTD v i is denoted as d i j . Xie et al. [29] argued that the wireless energy transfer efficiency μ i j decreases as the distance d i j increases, μ i j = 0.0958 d i j 2 0.0377 d i j + 1 , where 0 μ i j 1 . If we assume that the output power of the seller v i is P o , the buyer g j receives power denoted as:
P i j = μ i j P o
In this paper, using the binary variable x i j to indicate whether a buyer and seller transaction has occurred and t as the length of a given time period, the total amount of energy received by ECS g j from IoTDs can be expressed as:
e j = i V s P i j · t · x i j , 1 j N
where V s denotes the set of winning IoTDs.
According to [15], the time-varying function of the ECS’s task valuation is proposed with the degree of urgency of energy consumption:
w j ( t ) = w j max , if 0 t t j d max 0 , w j max τ T j e j t t j d 2 , otherwise .
The quadratic function of time t is used to represent a depreciation method, where the task valuation w j ( t ) remains constant until the deadline t j d . After the energy collection time period, w j ( t ) starts to decrease as shown in the above equation, and the rate of decrease depends on τ T j e j , τ is a constant, and | T j | is the energy required by ECS g j .
For convenience, τ T j e j is denoted by α j . When the ECS collects close to the required energy in the specified charging time period, α j is larger and the task valuation decreases faster, and if the energy collected in the specified charging time period is small, α j is smaller and the task valuation decreases slower.
In this paper, we use q j to denote the price that the auction platform should charge ECS g j after the task devaluation, then the utility of ECS g j can be expressed as the following equation:
u j g = w j t * s u b q j , if g j G s 0 otherwise
where t * s u b represents the moment when the IoTD completes its energy collection task and G s represents the set of winning ECSs.
(2)
IoTD:
The IoTD acts as a seller in the auction process, and each ECS matches multiple winning IoTDs to provide the required amount of energy. Similarly, the IoTD submits its own bidding information θ i v = ( c i ) to the platform, which indicates the minimum payoff that IoTD v i wishes to receive for providing a unit of energy. v i is also rationally selfish and decides to provide the corresponding amount of energy only when the following equation is satisfied:
p i g j G s c i T i j
where p i is the price paid adjusted to take into account the punctuality of the IoTD supply, and T i j is the amount of energy received by ECS g j from IoTD v i .
According to [15], consider the problem of whether the IoTD can provide the energy required by the edge server within a specified time, modeling this stochastic behavior as a probability density function, using the following truncated normal distribution:
f i t ; μ i , σ i , t * d , t * e x = 1 σ i ϕ t μ i t * d σ i Φ t * e x μ i t * d σ i Φ μ i t * d σ i , 0 t t * e x 0 , otherwise
ϕ ( ζ ) = 1 2 π exp 1 2 ζ 2
where t * d and t * e x represent the task deadline and the time when the task valuation is zero, respectively, (7) and Φ ( · ) are the probability density function and cumulative density function of the standard normal distribution, respectively, and μ i t * d is the mean value of the truncated normal distribution, indicating that the probability of v i submitting a task at this moment is higher. In order to quantify the punctuality of the IoTD’s completion of the energy collection task, the punctuality coefficient λ i , which is equal to 1 / μ i , is introduced, in which case the IoTD submits the bidding information becomes θ i v = ( c i , λ i ) .
We express the utility of IoTD v i as follows:
u i v = p i g j G s c i T i j , if v i V s 0 otherwise
(3)
Crowdsourcing Platform:
Since this paper uses smart contracts to automatically execute the auction mechanism, there is no need for a third party to perform the auction process, but for the sake of analysis, the existence of a virtual smart contract-based crowdsourcing platform is assumed. The crowdsourcing platform acts as the auctioneer, which is responsible for selecting the winners of both sides of the auction and matching each winning ECS with multiple IoTDs to satisfy their required energy as much as possible. Define the platform utility as follows:
u 0 = g j G s q j v i V s p i
In order to express the degree of excellence of crowdsourcing services, social welfare is generally used to quantify it and is applied to the present model by the following formula:
g j G s w j max v i V s g j G s c i T i j
However, when the IoTD provides the promised energy during the time period beyond the specified peak, the task valuation is zero in the binary task model, but in the model proposed in this paper, it is still possible to provide energy to the ECS without this time period, but with a devaluation. Considering the stochastic nature of the energy provided by the IoTD, combined with [15], an expected social welfare (ESW) is used to judge the excellence of the crowdsourcing service, defined as follows:
E S W = g j G s v i V s E i w j ( t ) v i V s l j i v i V s g j G s c i T i j
where v i V s l j i is the number of IoTDs matched with ECS g j and E i w j ( t ) v i V s l j i is the expected valuation when task T j is assigned to IoTD v i .
Assuming that the cost per unit of energy is constant, the function E i ( x ( t ) ) is defined as follows:
E i ( x ( t ) ) = 0 t j d w j max f ( t ; μ i ; σ i ; t j d ; t j e x ) d t + t j d t j e x w j ( t ) f ( t ; μ i ; σ i ; t j d ; t j e x ) d t
The above equation is divided into two parts, the first part is the expected value before the cut-off date and the second part is the expected value after the cut-off date.
In the energy trading system of this paper, the objective is to find the optimal ECS-IoTD matching pair that enhances the expected social welfare, and the matching matrix is shown below:
L = l 11 l 12 l 1 | V | l 21 l 22 l 2 | V | l | G | 1 l | G | 2 l | G | | V |
The ECS and IoTD are matched only when the value in the matrix is 1, otherwise, it is 0. The expected social welfare maximization problem formulated in this paper is as follows:
L * = argmax L g j G s v i V s E i w j ( t ) g j G s l j i c i T j i l j i
Subject to
l j i { 0 , 1 } , l j i L
g j G s v i V s l j i K
v i V s l j i T j i T j , g j G s
g j G l j i T j i E i , v i V
The above objective function (14) is a combinatorial optimization problem, and Equations (15) to (18) are constraints on the optimization problem. Equation (15) is used to indicate whether the two sides of the auction are paired. Equation (16) shows the upper limit of the number of task requests, and K indicates the maximum number of task requests. Equation (17) indicates that the sum of all IoTDs energy supplies matched by an ECS is as close as possible to the energy it needs. Equation (18) indicates that the sum of the energy supplied by the IoTDs to the ECS cannot exceed its remaining energy, and E i indicates the remaining energy of the IoTD v i .

5. Algorithm Design

5.1. Ideal Economic Properties

In designing an incentive mechanism, the following four desirable economic attributes need to be satisfied: (1) individual rationality, (2) budget balance, (3) computational efficiency, and (4) truthfulness. It is assumed that the auction algorithm does not satisfy individual rationality, which leads to a negative utility for both sides of the auction; does not satisfy budget balance, which leads to a negative utility for the auction platform; does not satisfy truthfulness, which leads to both sides of the auction submitting untrue bidding information to gain greater profit; and does not satisfy computational efficiency, which leads to poor real-time transactions and additional overhead. We describe them as follows:
  • Personal rationality: incentives are personally rational if the auction parties have non-negative utility in reporting their true valuations and costs.
  • Budget balanced: The incentive is said to be budget balanced if the fee charged by the platform to ECSs at the end of the auction process is not less than the fee paid to IoTDs.
  • Computational efficiency: An incentive is said to be computationally efficient if it runs in polynomial time and is computationally effective.
  • Truthfulness: An incentive is said to be truthful if neither party to the auction can obtain a higher utility by altering their bidding information.

5.2. Specific Steps of Algorithm Design

In order to apply the proposed double auction model to the blockchain framework in Section 3, we implemented it in the form of a smart contract, the details of which are given in the following algorithm.
The expected social welfare maximized mechanism proposed in this paper consists of three specific parts: winner selection, matching algorithm, and price allocation strategy.

5.2.1. Winner Selection

Winner selection: After ECSs and IoTDs have submitted their bidding information, the auction platform determines the winning subset of both parties and sets the subset capacity of both parties as K and 3 K , respectively, considering the relative relationship between the number of ECS and IoTD in the real situation. The selection process includes Algorithms 1 and 2.
In Algorithm 1, the winner selection is based on selecting those ECSs with high initial task valuations and slow task valuations decrease after the deadline. The quantification process is embodied in the third row, where the larger one is selected as the winner in order according to the defined selection criterion 1 α j β w j 0 T j . β is an adjustable parameter to determine the priority between the task valuation and depreciation rate of the task valuation in the winner selection process, and the loop ends when the number of members of the winner subset reaches K + 1 . The ratio 1 α K + 1 β w K + 1 0 T K + 1 of the K + 1 th ECS is set as a threshold and it is excluded from the ECS winner subset.
Algorithm 1 ECS Winner Algorithm
Input: G , K, β
Output: G s , g t h
1:
G s ;
2:
while  G s K + 1 do
3:
    g * arg max g j G 1 α j β w j 0 T j ;
4:
    G s G s { g * } , G G \ { g * } ;
5:
   if  G = 0  then
6:
     break;
7:
   end if
8:
end while
Similarly, in Algorithm 2, unlike Algorithms 1 and 2 sequentially selects the winner with the smaller ratio c i λ i β and sets the ratio c 3 K + 1 λ 3 K + 1 β of the 3 K + 1 th IoTD as a threshold value to exclude it from the subset of IoTDs winners.
Algorithm 2 IoTD Winner Algorithm
Input: V , K, β
Output: V s , v t h
1:
V s ;
2:
while  V s 3 K + 1 do
3:
    v * arg min v i V c i λ i β ;
4:
    V s V s { v * } , V V \ { v * } ;
5:
   if  V = 0  then
6:
     break;
7:
   end if
8:
end while

5.2.2. Matching Algorithm

The matching process is mainly embodied in Algorithm 3, which aims to satisfy the ECS demand energy to the maximum extent. Firstly, ECSs are sorted in descending order according to 1 α j β w j 0 T j size and IoTDs are sorted in ascending order according to c i λ i β . The thresholds obtained in Algorithms 1 and 2 are set to their respective revenue and expense prices and stored in Q and P . Then, each ECS is sequentially matched with multiple IoTD agents in order until its required energy is satisfied, while the matched pairs are added to the Match tuple and the corresponding ECSs and IoTDs in the winning subset of both sides of the auction are removed.
Algorithm 3 Dynamic Matching Algorithms to meet electricity demand
Input: V s , G s , v t h , g t h , β
Output: Match , Q , P
1:
Sort ECS by 1 α j β w j 0 T j size in descending order;
2:
Sort IoTD by c i λ i β size in ascending order;
3:
Initialize the values in Q , P with the thresholds obtained from the winning subsets of both sides of the auction;
4:
Match ;
5:
if p i P p i > q j Q q j   then
6:
    G s , V s , Q , P ;
7:
   return Match , Q , P ;
8:
end if
9:
while v i V s E i 0 & & g j G s T j > g j G s v i V s T i j do
10:
   for  g j G s  do
11:
     if  T j < = v i V s T i j  then
12:
         G s G s \ g j ;
13:
     end if
14:
     while  v i V s E i 0  do
15:
        for  v i V s  do
16:
          if  E i > = 0  then
17:
              m a t c h j { g j , v i } , V s V s \ v i ;
18:
              E i = E i T i j ;
19:
          end if
20:
        end for
21:
     end while
22:
   end for
23:
end while

5.2.3. Price Allocation Strategy

Since the task valuation decreases after the energy collection time period, the previous pricing strategy will be unrealistic. The respective revenue and expense prices are adjusted accordingly according to the ratio between the task valuation and the original task valuation at the moment when the IoTDs complete the energy collection task, and the revenue and expense price matrices Q , P are updated. As shown in Algorithm 4:
Algorithm 4 Pricing Optimization Algorithm
Input: Match , Q , P
Output: Q , P
1:
Initialize Q , P to ∅;
2:
while The matching tuple has not yet been updated with the prices of income and expenses of both agents do
3:
   Calculate the task submission time of v i , denoted by the variable t i s u b ;
4:
    q j w j ( t i s u b ) w j 0 q j , Q Q { q j } ;
5:
    p i w j ( t i s u b ) w j 0 p i , P P { p i } ;
6:
end while
7:
return Q , P ;
The overall algorithm flow of the ESWM-StM proposed in this paper is organized as Algorithm 5. follows:
Algorithm 5 ESWM-StM
1:
Obtain the winning subsets G s , V s with thresholds g t h , v t h according to Algorithms 1 and 2;
2:
According to Algorithm 3 to obtain the matching tuple Match with the initial income and expenditure price matrix Q , P ;
3:
The final optimized revenue and expense price matrix Q , P is obtained according to Algorithm 4.

6. Performance Analysis

6.1. Individual Rationality

The first thing to prove is that the ESWM-StM incentive mechanism proposed in this paper is individually rational for both ECS and IoTD parties, i.e., to show that the utility of each agent is non-negative at the end of the auction.
For the ECS to be analyzed, for g j G s , its temporary payment cost is calculated as g j = α j β w t h max T j / α t h β T t h w j max . Bringing it into Equation (4), the utility of the winning ECS can be obtained, which can be seen to be non-negative. For the task submission after, i.e., in the price pricing step, the auction platform uses the task valuation w j ( t i s u b ) at the moment of completion based on the shared completion time of each IoTD energy to determine the final price q j paid by each ECS. Then, the utility of each ECS is shown in Equation (19).
u j g = w j t i s u b q j = w j t i s u b 1 q j w j max
Because w j t i s u b is non-negative and q j w j max , the utility of ECS is non-negative, ensuring the individual rationality of all ECSs.
For each IoTD v i V s to be analyzed, assuming that an IoTD submits its true cost value, the initial price paid to it is calculated as p i = g j G s ( c t h T i j λ i β ) / λ t h β c i , brought into Equation (8), and the utility of each IoTD is non-negative until the task is submitted, the utility after the pricing optimization algorithm can be expressed by the following equation:
u i v = g j G s w j t i sub w j max p i w j max w j t i sub c i T i j
The above equation shows that the utility of the IoTD is non-negative only before the task deadline when t i s u b t j d , p i g j G s c i T i j 0 , but there is no guarantee that p i w j max w j t i sub c i T i j in the above equation is non-negative if the task deadline is exceeded, so there is an additional incentive for the IoTDs to provide the appropriate amount of energy at the specified time.

6.2. Budget Balance

In the proposed Algorithm 3, before performing the matching step, it first determines whether the budget balance condition p i P p i q j Q q j is satisfied, and if this condition is not satisfied, it terminates the auction and returns with the winning subset and the initial revenue and expense price allocation matrix set to null, so that the platform utility is always non-negative in the proposed ESWM-StM algorithm.

6.3. Computational Efficiency

In the ESWM-StM algorithm proposed in this paper, the worst-case time complexity of the winner selection process, matching process, and pricing process are O ( max ( M , N ) K ) , O ( M N ) , and O ( K ) , respectively. Therefore, the time complexity upper bound of the ESWM-StM algorithm proposed in this paper is O ( M N ) , which can be computed within polynomial time with high computational efficiency.

6.4. Truthfulness

In proving the authenticity of the incentive mechanism in this paper, Myerson’s theorem [9] is used. As long as the two conditions of monotonicity and critical value are satisfied, the incentive mechanism designed in this paper has truthfulness. For ECS (IoTD), if bid c i ( w j max ) is the winner of the auction, bid c i c i ( w j max w j max ) will also win the auction so that the monotonicity of the incentive is satisfied. In the scenario of this paper, the critical value is the maximum and minimum value required by both the seller and the buyer, and the bids c i , w j max are the critical values. Given that this paper uses a double auction format, the veracity of the mechanism is verified by proving the veracity of both sides of the auction separately.
For ECS g j , which wins the auction by bidding w j max , there must be a threshold ECS g t h that satisfies the relation w j max / ( α j β T j ) w t h max / ( α t h β T t h ) . Suppose an ECS bid w j max is higher than w j max , then w j max / ( α j β T j ) w j max / ( α j β T j ) w t h max / ( α t h β T t h ) , and thus satisfies monotonicity; for the threshold, if g j bids less than w t h max , then w j max / ( α j β T j ) < w t h max / ( α t h β T t h ) , it will be eliminated from the winning subset G s , and thus the ECS has a threshold value.
For IoTD v i to win the auction, there must be a threshold IoTD c t h that satisfies the relation c i / λ i β c t h / λ t h β . Assuming an IoTD c i c i , then c i / λ i β c i / λ i β c t h / λ t h β , thus satisfying monotonicity; similarly for the threshold, if c i of v i is greater than c t h , then c i / λ i β > c t h / λ t h β , thus the IoTD has a threshold value.
In summary, the incentive mechanism designed in this paper possesses authenticity.

7. Simulation Analysis

In this section, we first provide the simulation model and description of the model. Next, a description of all algorithms and their complexity is provided. Then the experimental parameters required to perform the simulation experiments are briefly described. Finally, we provide the evaluation results and the necessary explanations.

7.1. Simulation Model

In this subsection, we show the simulation model and a detailed description of the proposed trading mechanism. First, we design two main functions of the smart contract in this phase as follows:
(1)
An “upload” function that enables ECSs and IoTDs to upload messages to smart contracts.
(2)
A “double auction” function that enables the ECSs to purchase the IoTDs’ energy.
We now introduce the smart contract-based double auction design in detail. As shown in Figure 2, the IoTDs and ECSs are sellers and buyers, respectively, and the smart contract can work as an auctioneer to establish the automatic transactions between the IoTDs and ECSs via the proposed double auction mechanism.
First, as shown in Figure 2a, Each ECS g j and IoTD v i sends its bidding information θ j g and θ i v to the smart contract separately to call the "upload" function.
Second, the smart contract validates the bidding information from both sides of the transaction and broadcasts them to the blockchain network.
Last, as shown in Figure 2b, the smart contract calls the “double auction” function to determine the set of winning parties and the correspondence between the ECS and the multiple IoTDs that provide the energy needed for the ECS, and finally determine the payments and rewards for the parties.

7.2. Algorithm Complexity Analysis

In the ESWM-StM algorithm proposed in this paper, the worst-case time complexity of the winner selection process, matching process, and pricing process are O ( max ( M , N ) K ) , O ( M N ) , and O ( K ) , respectively. Because K M & & K N , the time complexity of the proposed algorithm is upper bounded as O ( M N ) . Therefore, the complexity of the algorithm grows at a square rate as the number of trading parties increases; however, overall, the proposed trading mechanism seems to be computationally efficient.

7.3. Experiment Setting

To verify the effectiveness of the incentive mechanism in this paper, it is compared with a baseline approach [9] that does not consider the β parameter in selecting the winning subset of both sides of the auction and an ESWM mechanism [15] with a single ECS and a single IoTD. In the model parameter settings in this paper, w j max , T j , t j d and t j e x of ECS are uniformly distributed over (0, 100] and [1, 10], (0, 100] and [ t j d , 1.5 t j d ], respectively. For IoTD, c i and μ i are uniformly distributed on (0, 10] and (0, 1.5], respectively. All simulation results for the following performance metrics are averaged over 200 runs. α j is uniformly distributed on (0, 100], the number of ECS and IoTD is set to 1000 and 2000, and the β factor is set to 0.5. The system runs on a PC with AMD Ryzen 7 6800H with Radeon Graphics of 3.20 GHz and 32 GB RAM (Lenovo, China).

7.4. Results and Discussion

Figure 3 gives a comparison of the total cost of the baseline method and the ESWM mechanism for the four matching methods of one-to-one (OTO) and one-to-many (OTM), respectively. OTO represents an IoTD providing energy to an ECS, and OTM represents multiple IoTDs providing energy to an ECS. It can be seen from Figure 3 that their total costs increase as the number of ECSs increases. For the same baseline method or ESWM mechanism, the total cost of OTM is larger compared to OTM. This is because the OTM matching approach also causes an increase in the number of IoTD participating in energy sharing, resulting in an increase in the total cost. For the OTO matching method, the total cost of the ESWM mechanism is higher than that of the baseline method, but for the OTM matching method, the total cost of the ESWM mechanism is lower than that of the baseline method. Because the coefficients are introduced in the ESWM mechanism to control the weight size of task valuation and task valuation depreciation rate as well as the IoTD cost and quorum coefficients, it has a significant optimization effect on the winner selection process and cost reduction, and as the number of matched to IoTDs increases, the IoTDs with smaller cost per unit of energy can be selected to co-energy the ECS, and the total cost is smaller.
Figure 4 gives the amount of energy that can be supplied per unit cost of IoTD for the same incentive mechanism OTO and OTM matching approach. It can be seen from the figure that the energy generated per unit cost is higher in the OTM matching method than in the OTO matching method. This is because in the OTO matching method, if the energy demanded by ECS is much higher than that of IoTD, one IoTD is not enough to provide the energy required during the peak period. For the OTM matching method, more IoTDs can be matched to provide energy at the same cost, so more energy can be provided per unit cost than the OTO method, which promotes energy sharing.
Figure 5 gives the comparison between the total energy required by ECS and the energy provided by all IoTDs under the OTO and OTM matching methods of the ESWM mechanism. It can be seen from the figure that the total energy provided under the OTO matching approach is less for a certain amount of energy demanded by the ECS, and the ESWM-StM mechanism proposed in this paper can better meet the total energy demanded. Because compared to the OTO matching method, the energy provided by one IoTD is always lower than the energy demanded by the ECS, in the OTM matching method, multiple IoTDs provide energy to one ECS, and the required energy is guaranteed to be provided during the energy collection time period, so the OTM matching method can better meet the energy demand of the ECSs.
Figure 6 gives the comparison between basic social welfare and expected social welfare under different incentive mechanisms. As the number of ECSs increases, social welfare tends to increase. For the analysis of the basic social welfare, the basic social welfare of the ESWM-StM incentive mechanism proposed in this paper is lower than the baseline method, but for the expected social welfare, the ESWM-StM incentive mechanism proposed in this paper is better than the baseline method. Because the ESWM-StM incentive mechanism proposed in this paper aims to better consider the decline of the task valuation of ECS over time in realistic situations and the punctuality of IoTDs to complete the energy collection task, the basic social welfare is lower than that of the baseline method if only the energy collection time period is considered, but in terms of expected social welfare, the expected social welfare in this paper is higher and can achieve long-term attraction of IoTDs participation in energy collection.
Figure 7 gives a comparison between the fees charged by the platform to the ECS and the fees paid to the IoTD under different incentive mechanisms. It can be seen from the figure that before the maximum number of task requests is 700, the fees paid to the platform by the two incentive mechanisms are similar, but for the fees paid to the IoTD it is obvious that the ESWM incentive mechanism in this paper is higher, which leads to a decrease in the utility of the platform but the IoTD receives more fees and is able to attract the IoTDs to participate in the energy collection task in the long term; for the maximum number of task requests, the sharp decrease in revenue and expense due to exceeding 700 is due to the fact that the platform does not execute the winner selection algorithm when the break-even condition of the auction mechanism is not satisfied, thus canceling the auction process, which is reflected in Algorithms 1 and 2.

8. Conclusions

In this paper, we propose a trading mechanism in a blockchain-assisted energy harvesting marketplace designed to enable automated, efficient and verified transactions between decentralized network entities.Considering the unrealistic nature of dichotomous task valuation and the punctuality of IoTDs’ energy supply, a double auction mechanism named ESWM-StM for IoTDs and ECSs in blockchain-enabled IoT is proposed, where multiple IoTDs dynamically and adaptively energy the edge ECSs. We proved that the proposed ESWM-StM mechanism is individually rational and budget balanced. Meanwhile, ESWM-StM is truthful for the ECSs and IoTDs. Most importantly, we showed that ESWM-StM has high computational efficiency. It is shown that the proposed ESWM-StM mechanism can provide more energy per unit cost during the energy collection period, effectively relieving the energy consumption pressure, and attracting more participants to enhance the expected social welfare compared with the Benchmark mechanisms. In future work, we will extend the design of the smart contract-based double auction algorithm to the case where multiple ECSs compete for single or multiple IoTD energies, and will consider the use of artificial intelligence-based heuristic algorithms to solve the complex problem of matching two sides of a transaction presented in the algorithm.

Author Contributions

Conceptualization D.W., X.D., H.Z. and Q.W.; methodology D.W., X.D. and Q.W.; visualization and writing—original draft X.D.; project administration H.Z. and Q.W.; supervision H.Z.; writing–review and editing X.D. and Q.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (No. 62071252), the Major Natural Science Foundation of the Higher Education Institutions of Jiangsu Province (No. 21KJA510005), the Jiangsu Provincial Key Research and Development Program under Grant BE2022068-2 and NJUPT Scientific Research start-up Foundation (No. NY220121).

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Things (IoT): A vision, architectural elements, and future directions. Future Gener. Comput. Syst. 2013, 29, 1645–1660. [Google Scholar] [CrossRef] [Green Version]
  2. Kumar, K.; Liu, J.; Lu, Y.H.; Bhargava, B. A survey of computation offloading for mobile systems. Mob. Netw. Appl. 2013, 18, 129–140. [Google Scholar] [CrossRef]
  3. Patel, M.; Naughton, B.; Chan, C.; Sprecher, N.; Abeta, S.; Neal, A. Mobile-edge computing introductory technical white paper. White Pap. Mob.-edge Comput. MEC Ind. Initiat. 2014, 29, 854–864. [Google Scholar]
  4. Satyanarayanan, M.; Bahl, P.; Caceres, R.; Davies, N. The case for vm-based cloudlets in mobile computing. IEEE Pervasive Comput. 2009, 8, 14–23. [Google Scholar] [CrossRef]
  5. Kumar, K.; Lu, Y.H. Cloud computing for mobile users: Can offloading computation save energy? Computer 2010, 43, 51–56. [Google Scholar] [CrossRef]
  6. Sudevalayam, S.; Kulkarni, P. Energy harvesting sensor nodes: Survey and implications. IEEE Commun. Surv. Tutorials 2010, 13, 443–461. [Google Scholar] [CrossRef] [Green Version]
  7. Aitzhan, N.Z.; Svetinovic, D. Security and privacy in decentralized energy trading through multi-signatures, blockchain and anonymous messaging streams. IEEE Trans. Dependable Secur. Comput. 2016, 15, 840–852. [Google Scholar] [CrossRef]
  8. Wu, S.; Chen, Y.; Wang, Q.; Li, M.; Wang, C.; Luo, X. CReam: A smart contract enabled collusion-resistant e-auction. IEEE Trans. Inf. Forensics Secur. 2018, 14, 1687–1701. [Google Scholar] [CrossRef]
  9. Zhang, X.; Xue, G.; Yu, R.; Yang, D.; Tang, J. Truthful incentive mechanisms for crowdsourcing. In Proceedings of the 2015 IEEE Conference on Computer Communications (INFOCOM), Kowloon, Hong Kong, 26 April–1 May 2015; pp. 2830–2838. [Google Scholar]
  10. Liang, C.W.; Hsu, J.Y.J.; Lin, K.J. Auction-based resource access protocols in IoT service systems. In Proceedings of the 2014 IEEE 7th International Conference on Service-Oriented Computing and Applications, Matsue, Japan, 17–19 November 2014; pp. 49–56. [Google Scholar]
  11. Choi, Y.; Lim, Y. Optimization approach for resource allocation on cloud computing for iot. Int. J. Distrib. Sens. Netw. 2016, 12, 3479247. [Google Scholar] [CrossRef] [Green Version]
  12. Li, Z.; Yang, Z.; Xie, S.; Chen, W.; Liu, K. Credit-based payments for fast computing resource trading in edge-assisted Internet of Things. IEEE Internet Things J. 2019, 6, 6606–6617. [Google Scholar] [CrossRef]
  13. Sun, W.; Liu, J.; Yue, Y.; Zhang, H. Double auction-based resource allocation for mobile edge computing in industrial internet of things. IEEE Trans. Ind. Inform. 2018, 14, 4692–4701. [Google Scholar] [CrossRef]
  14. Jin, A.L.; Song, W.; Zhuang, W. Auction-based resource allocation for sharing cloudlets in mobile cloud computing. IEEE Trans. Emerg. Top. Comput. 2015, 6, 45–57. [Google Scholar] [CrossRef]
  15. Baek, D.; Chen, J.; Choi, B.J. Small profits and quick returns: An incentive mechanism design for crowdsourcing under continuous platform competition. IEEE Internet Things J. 2019, 7, 349–362. [Google Scholar] [CrossRef]
  16. Liu, S.; Yu, Y.; Guo, L.; Yeoh, P.L.; Ni, Q.; Vucetic, B.; Li, Y. Truthful Online Double Auctions for Mobile Crowdsourcing: An On-demand Service Strategy. IEEE Internet Things J. 2022, 9, 16096–16112. [Google Scholar] [CrossRef]
  17. He, Y.; Li, H.; Cheng, X.; Liu, Y.; Yang, C.; Sun, L. A blockchain based truthful incentive mechanism for distributed P2P applications. IEEE Access 2018, 6, 27324–27335. [Google Scholar] [CrossRef]
  18. Kang, J.; Yu, R.; Huang, X.; Maharjan, S.; Zhang, Y.; Hossain, E. Enabling localized peer-to-peer electricity trading among plug-in hybrid electric vehicles using consortium blockchains. IEEE Trans. Ind. Inform. 2017, 13, 3154–3164. [Google Scholar] [CrossRef]
  19. Yao, H.; Mai, T.; Wang, J.; Ji, Z.; Jiang, C.; Qian, Y. Resource trading in blockchain-based industrial Internet of Things. IEEE Trans. Ind. Inform. 2019, 15, 3602–3609. [Google Scholar] [CrossRef]
  20. Aggarwal, S.; Kumar, N. A consortium blockchain-based energy trading for demand response management in vehicle-to-grid. IEEE Trans. Veh. Technol. 2021, 70, 9480–9494. [Google Scholar] [CrossRef]
  21. Gao, M.; Yu, X.; Ren, L.; Cai, H.; Wang, Z.; Zhou, Y. A Renewable Energy Certificate Trading System Based on Blockchain. In Proceedings of the 2021 IEEE 20th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Shenyang, China, 20–22 October 2021; pp. 1514–1518. [Google Scholar]
  22. Kalakova, A.; Zhanatbekov, A.; Surash, A.; Nunna, H.K.; Doolla, S. Blockchain-based decentralized transactive energy auction model with demand response. In Proceedings of the 2021 IEEE Texas Power and Energy Conference (TPEC), College Station, TX, USA, 2–5 February 2021; pp. 1–6. [Google Scholar]
  23. Thompson, M.J.; Sun, H.; Jiang, J. Blockchain-based peer-to-peer energy trading method. CSEE J. Power Energy Syst. 2021, 8, 1318–1326. [Google Scholar]
  24. Yang, J.; Dai, J.; Gooi, H.B.; Nguyen, H.D.; Wang, P. Hierarchical Blockchain Design for Distributed Control and Energy Trading within Microgrids. IEEE Trans. Smart Grid 2022, 13, 3133–3144. [Google Scholar] [CrossRef]
  25. Doan, H.T.; Cho, J.; Kim, D. Peer-to-peer energy trading in smart grid through blockchain: A double auction-based game theoretic approach. IEEE Access 2021, 9, 49206–49218. [Google Scholar] [CrossRef]
  26. Hou, D.; Zhang, J.; Huang, S.; Peng, Z.; Ma, J.; Zhu, X. Privacy-Preserving Energy Trading Using Blockchain and Zero Knowledge Proof. In Proceedings of the 2022 IEEE International Conference on Blockchain (Blockchain), Espoo, Finland, 22–25 August 2022; pp. 412–418. [Google Scholar]
  27. Jogunola, O.; Tsado, Y.; Adebisi, B.; Hammoudeh, M. VirtElect: A peer-to-peer trading platform for local energy transactions. IEEE Internet Things J. 2021, 9, 6121–6133. [Google Scholar] [CrossRef]
  28. Lin, H.; Yang, Z.; Hong, Z.; Li, S.; Chen, W. Smart contract-based hierarchical auction mechanism for edge computing in blockchain-empowered IoT. In Proceedings of the 2020 IEEE 21st International Symposium on “A World of Wireless, Mobile and Multimedia Networks” (WoWMoM), Cork, Ireland, 31 August–3 September 2020; pp. 147–156. [Google Scholar]
  29. Friedman, D.; Friedman, D.P.; Rust, J. The Double Auction Market: Institutions, Theories, and Evidence; Westview Press: Boulder, CO, USA, 1993; Volume 14. [Google Scholar]
Figure 1. Blockchain-based energy trading framework at the Edge of the Internet of Things.
Figure 1. Blockchain-based energy trading framework at the Edge of the Internet of Things.
Mathematics 11 00630 g001
Figure 2. Double auction mechanism based on smart contract.
Figure 2. Double auction mechanism based on smart contract.
Mathematics 11 00630 g002
Figure 3. Comparison of total costs under different incentive mechanisms.
Figure 3. Comparison of total costs under different incentive mechanisms.
Mathematics 11 00630 g003
Figure 4. Energy produced per unit cost with different incentives.
Figure 4. Energy produced per unit cost with different incentives.
Mathematics 11 00630 g004
Figure 5. Differences in energy supply and demand under different incentive mechanisms.
Figure 5. Differences in energy supply and demand under different incentive mechanisms.
Mathematics 11 00630 g005
Figure 6. Comparison of expected social welfare under different incentive mechanisms.
Figure 6. Comparison of expected social welfare under different incentive mechanisms.
Mathematics 11 00630 g006
Figure 7. Comparison of income and expenses under different incentive mechanisms.
Figure 7. Comparison of income and expenses under different incentive mechanisms.
Mathematics 11 00630 g007
Table 1. Comparison of our scheme with the existing proposals.
Table 1. Comparison of our scheme with the existing proposals.
PapersArchitecturesGame or AuctionTrading ResourcesSecurity of TransactionsQuantitative Relationship between Trading PartiesUtilities for MaximizationConsidered QoS
[12]ECAIterative double auctionComputing resourceYesone to moreSocial welfareEfficiency of computing, Participants’ privacies
[15]NoneDouble auctionNoneNoneone to oneExpected social welfareLong-term attraction
[18]ECAIterative double auctionElectricityYesone to moreSocial welfareSecurity and privacy
[19]CBAStackelberg gameComputing resourceYesmore to moreIndividual utilityThe power and computation
[20]ECADouble auctionEnergyYesone to moreSocial welfareSecurity and privacy
[22]CBADouble auctionEnergyYesone to oneSocial welfarePreferences and needs of the peers, Efficiency of the system
[23]CBADouble auctionEnergyYesone to oneSocial welfareEnergy costs, Empowers consumers
[25]CBADouble auction, Stackelberg gameEnergyYesone to oneSocial welfareSecurity and privacy
[26]CBADouble auctionEnergyYesone to oneSocial welfareSecurity and privacy
This paperECADouble auctionEnergyYesone to moreExpected social welfareLong-term attraction, Variation of the task valuation, Energy costs
ECA = edge-cloud-based architecture, CBA = collaboration-based architecture.
Table 2. System Parameters.
Table 2. System Parameters.
ParametersMeaning
g j A j-th ECS
G A set of ECSs
θ j g A bidding information submitted by g j
| T j | The energy required for g j
| T i j | The amount of energy g j gets from v i
w j max The variation of the task valuation of energy collection of g j
t j d The moment when the task valuation starts to depreciate
t j e x The moment when the task valuation is zero
α j Depreciation rate of the task valuation after the deadline
v i A i-th IoTD
V A set of IoTDs
c i cost per unit of energy provided by v i
λ i The punctuality level of v i in providing the required energy
KMaximum number of task requests
G s The winning ECSs
V s The winning IoTDs
q j The temporary fee for g j
p i The temporary payment for v i
μ i j The efficiency of the energy transfer between g j and v i
d i j The transmission distance between g j and v i
P o Output power of v i
P i j Receiving power of g j
e j Total energy received by g j
t s u b The moment v i completed the energy collection task
E i Remaining energy of v i
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, D.; Du, X.; Zhang, H.; Wang, Q. Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things. Mathematics 2023, 11, 630. https://doi.org/10.3390/math11030630

AMA Style

Wang D, Du X, Zhang H, Wang Q. Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things. Mathematics. 2023; 11(3):630. https://doi.org/10.3390/math11030630

Chicago/Turabian Style

Wang, Dongdong, Xinyu Du, Hui Zhang, and Qin Wang. 2023. "Blockchain Enabled Credible Energy Trading at the Edge of the Internet of Things" Mathematics 11, no. 3: 630. https://doi.org/10.3390/math11030630

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop