Research Article

Analysis and Improvement of Blockchain-Based Multilevel Privacy-Preserving Location Sharing Scheme for Telecare Medical Information Systems

Algorithm 9

Location extraction.
Input:
Response from LDO ; Record in the blockchain ; LDR’s private key
Output:
Location or rectangular border , or
(1);
(2)if then
(3)if. then
(4)  ;
(5)end if
(6)else ifthen
(7)
(8); ;
(9); ;
(10);
(11);
(12)if then
(13)  if
    
    then
(14)  ; ;
(15)  ; ;
(16)  ;
(17)  end if
(18)end if
(19)end if
(20)return.