Research Article

Distributed Blockchain-Based Authentication and Authorization Protocol for Smart Grid

Algorithm 1

QueryData.
Input
OutputRecord or None
1: Table table = openTable(“Identity”);
2: Entries entries = table.select(accountId);
3: ifthen
4:  returnNone
5: else
6:  returnRecord
7: end if