|
Algorithm 2 Pseudocode showing steps to authenticate users |
-
1:
function user authentication request(Username, password, UserNeoAdr)
-
2:
if (received authentication request from user = True) then
-
3:
valid user data and NeoAdr–stored User data in blockchain through smart contract
-
4:
if (User data and NeoAdr is user data stored on the Blockchain = true) then
-
5:
Authentication successful
-
6:
Log (“authentication successful”)
-
7:
return true
-
8:
else
-
9:
Log (“Authentication failed”) return false
-
10:
end if
-
11:
end if
-
12:
end function
|