Privacy-friendly tasking and trading of energy in smart grids | Synapse