Research Article

A Lightweight Authentication Scheme Based on Consortium Blockchain for Cross-Domain IoT

Algorithm 2

Outgoing authentication.
Input: and
Output: or
(1)Get ’s certificate in the blockchain
(2)Extract ’s public key from
(3)if is valid by using then
(4)
(5)if && then
(6)ifthen
(7)   return
(8)  end if
(9)end if
(10)end if
(11)return