Research Article

Trusted and Efficient Cross-Domain Access Control System Based on Blockchain

Algorithm 8

AHLaccessDecision.
(1)Input: request, sig
(2)output: string
(3)% invoke by users to make an AHL based access control.
(4)% sig = 
(5)% request=01|| uID || devID || op, op is an access control order.
(6)if verify (uID, sig) = true then
(7) ahList = getAHL();
(8) if ahList.isNoexist (uID||devID||op) then
(9)  recordAudit (request, ‘9004’);
(10)  return ‘9004’;
(11) else
(12)  recordAudit (request, permit);
(13)else
(14) return ‘sign_error’;