a method for generating a public key for an electronic device is provided , wherein the method comprises generating a public key 103 based on a private key and a unique identifier associated with the electronic device 200 .