Research Article

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

Algorithm 6

VMT algorithm.
Input, , ;
Outputand;
1: function FindMaliciousTransaction(, , )
2: if(malicious transaction)then
3: ;
4: ;
5: ;
6: Updatewith new;
7: else
8: Update;
9: Updatewith new;
10: returnand;