Research Article
Smart Contract-Based Cross-Domain Authentication and Key Agreement System for Heterogeneous Wireless Networks
Table 5
Update the public key in the smart contract.
| Algorithm 3 update |
| function AP_Update (id, pk, t_begin, t_end, sig) | % CA node invokes the function to update public key. | if(sender.addr = = owner) % Guarantee only CA can invoke the function. | ap[id].PK = pk; | ap[id]. T_begin = t_begin; | ap[id]. T_end = t_end; | ap[id].sig = sig; | function user_update (hash1, hash2) | if(sender.addr = = owner) | Delete(user[hash1]) | user[hash2] = true; |
|
|