Research Article

A Secure and Efficient Energy Trading Model Using Blockchain for a 5G-Deployed Smart Community

Algorithm 7

RSFEAP algorithm.
Input:, ,
Output:
1:
2:whiletime-slotsdo
3: 
4: 
5: 
6: Computefor each consumer using Equation ((16));
7: ifthen
8: fortonumber of consumersdo
9: 
10: else
11: 
12: 
13:
14: ,
15:
16: ,
17:
18: ,
19:
20: 
21: