Research Article
Distributed Blockchain-Based Authentication and Authorization Protocol for Smart Grid
OutputTrue or False | 1: String data = UserResource + AccountId + PublicKey; | 2: Get ECDSA signature result sigdata = SignWithSecp256k1(data); | 3: rect = register(AccountId, PublicKey,UserResource, sigdata); | 4: response = auth.getRegisterEventEvents(receipt); | 5: ifresponse.get(0) ==0 then | 6: returnTrue | 7: else | 8: returnFalse | 9: end if |
|