| Algorithm 1: Algorithm for Sign-Up/Registration Process |
Input: Ethereum Address and Password Initialization:
Function register(user_password):
account = web3.currentProvider.selectedAddress
promise = addAuth(user_password).send(from: account)
if (promise) then
print(“User Registered”)
result = true
else
result = false
return result
Function submitfunction(userpassword):
if(userpassword) then
c = character_count(userpassword)
registered = register(userpassword)
if registered then
store c in database mapped with Ethereum Address
else
print (“Enter Password”)
|