Research Article

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

Algorithm 6

getPolicy.
(1)Input: devID
(2)output: string
(3)% obtain the device’s access policy.
(4) policy = Stub.GetState (devID);
(5)if (policy ! = null) then
(6)  return policy;
(7)else
(8)  return ‘9002’;