imgtool: Fix ECDSA signatures

Earlier refactoring created a call for get_public_bytes() that was added
to the RSA class, but missed on the ECDSA class.  Add this call so that
ECDSA signatures will work again.

Signed-off-by: David Brown <david.brown@linaro.org>
diff --git a/scripts/imgtool/keys.py b/scripts/imgtool/keys.py
index 4f6e6be..33f221e 100644
--- a/scripts/imgtool/keys.py
+++ b/scripts/imgtool/keys.py
@@ -101,6 +101,10 @@
         with open(path, 'wb') as f:
             f.write(self.key.to_pem())
 
+    def get_public_bytes(self):
+        vk = self.key.get_verifying_key()
+        return bytes(vk.to_der())
+
     def emit_c(self):
         vk = self.key.get_verifying_key()
         print(AUTOGEN_MESSAGE)