Research Article

Blockchain-Based Privacy-Preserving Sensor Data Sharing with Fine-Grained Authorization in Microgrid

Algorithm 1

Register and uploadReginfo.
Require: a user’s attribute set and real identity .
Ensure: the pseudonym of users .
(1)if ABS.verify(b = 1) then
(2) register successful;
(3) uploadReginfo ;
(4)else
(5) return false;
(6)end if