mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 07:30:55 +00:00
run mypy locally, bump mypy to 1.10.0, fix new errors
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user