Security and privacy issues in the smart grid : a decentralized approach