The Blockchain in Microgrids for Transacting Energy and Attributing Losses | IEEE Conference Publication | IEEE Xplore