Research Article
Lightweight Mutual Authentication Scheme Enabled by Stateless Blockchain for UAV Networks
Algorithm 2
Second subvector commitment build/update.
| Input: Identity vector commitment, , related UAV ID, aggregation flag. | | Output: Aggregation of the uncontacted UAVs’ proof. | (1) | # assign committee members, monitoring all UAVs’ fly status. | (2) | ; = 5 s; | (3) | #counter: detect if UAV is online. | (4) | = 0; | (5) | = 0; | (6) | # mission executing phase, are hardcode; | (7) | #monitoring start. | (8) | while 1 do | (9) | #activating leaving UAV request | (10) | | (11) | #calculating uncontacted times | (12) | | (13) | if Aggregation Flag then | (14) | | (15) | else | (16) | | (17) | end if | (18) | end while | (19) | while aggregation flag is true do | (20) | if++ then | (21) | | (22) | = 0; | (23) | end if | (24) | end while | (25) | #current turn expired, | (26) | In the header of committee: | (27) | | (28) | | (29) | | (30) | In UAV nodes: | (31) | for uav_i in length of do | (32) | #when receiving new block from authority committee | (33) | if new_block is constructed correctly then | (34) | | (35) | else | (36) | abort new block | (37) | end if | (38) | end for |
|