Algorithm 4: Data Transferring. |
Input: ; |
Step 1: request; |
A chooses a random number
; |
|
call function
, return ; |
|
send to HFB; |
Step 2: return; |
Upon receiving;
|
check whether ; |
call function , return result; |
ifthen
|
if result = “valid” then
|
B chooses a random number
; |
|
call function , return ; |
|
send , to A; |
end |
end |
Step 3: Descrypt data; |
; check whether ; |
call function , return result; |
ifthen
|
if result = “valid” then
|
store ; get encrypted data in IPFS; |
|
end
|
end |