Research Article

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

Algorithm 5

Smart contract for reputation.
Output: (1) EBEV rated ESEV; (2) EV view reputation points;
1: function SubmitFeedback()
2: Positive or negative rating point is added;
3: returnTrue;
4: function ViewFeedback()
5: Returnaggregated feedback;