run mypy locally, bump mypy to 1.10.0, fix new errors

This commit is contained in:
pacrob
2024-07-03 11:55:44 -06:00
committed by Paul Robinson
parent 0326e34870
commit c5cc0ee969
6 changed files with 41 additions and 36 deletions

View File

@ -69,7 +69,7 @@ class Ed25519PrivateKey(PrivateKey):
def sign(self, data: bytes) -> bytes:
h = SHA256.new(data)
signing_key = SigningKey(self.to_bytes())
return signing_key.sign(h)
return signing_key.sign(h.digest())
def get_public_key(self) -> PublicKey:
return Ed25519PublicKey(self.impl.public_key)