| Algorithm 1 Procedure of registering a node. |
|
1: Mapping : →; 2: Mapping : →0 1; 3: while do /* The contract is waiting for a contract caller to trigger */ Input: Contract Caller’s Blockchain Address ; Contract Caller’s Physical Address ; Output: Registration Result r; 4: ; 5: if = 1 then 6: ; 7: else 8: = ; 9: = 1; 10: ; 11: end if 12: end while |