Research Article

Smart Contract-Based Cross-Domain Authentication and Key Agreement System for Heterogeneous Wireless Networks

Table 6

Revoke the public key in the smart contract.

Algorithm 4 revoke

function AP_Revoke (id)
% only CA can invoke the function to revoke public key of some node.
 if(sender.pk = = owner)
  Delete(ap[id]);
function user_Revoke (hash)
 if(sender.pk = = owner)
  Delete(user[hash]);