Research Article
CL-BC: A Secure Data Storage Model for Social Networks
| Input: , ID, {,…, }∈C, {,…, }∈U, ACL | | Output: Genesis Block | (1) | def ← {,…, },{,…, }; | (2) | def ← ID; | (3) | def ACL ← (S, (βk, O)); | (4) | InitAuth ← Package( ||ACL|| ); | (5) | for u in range( ⟶ 2i) then | (6) | Response ← .GetValid(InitAuth); | (7) | if Response = = True then | (8) | ← + 1; | (9) | end if; | (10) | end for; | (11) | if < = ( ⟶ 2i) 2/3 + 1/3 then | (12) | return False; | (13) | else then | (14) | Generate GenesisBlock; | (15) | Broadcast event UpdateWorldState(GenesisBlock); | (16) | end if; |
|