From 7d1f3d6000ed5c91daf8da79bdd80bb5f3fe8e94 Mon Sep 17 00:00:00 2001 From: NIC619 Date: Fri, 15 Nov 2019 12:12:28 +0800 Subject: [PATCH] Remove outdated comment --- libp2p/crypto/rsa.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/libp2p/crypto/rsa.py b/libp2p/crypto/rsa.py index e40be45a..b059a187 100644 --- a/libp2p/crypto/rsa.py +++ b/libp2p/crypto/rsa.py @@ -24,7 +24,6 @@ class RSAPublicKey(PublicKey): def verify(self, data: bytes, signature: bytes) -> bool: h = SHA256.new(data) try: - # NOTE: the typing in ``pycryptodome`` is wrong on the arguments to ``verify``. pkcs1_15.new(self.impl).verify(h, signature) except (ValueError, TypeError): return False @@ -48,7 +47,6 @@ class RSAPrivateKey(PrivateKey): def sign(self, data: bytes) -> bytes: h = SHA256.new(data) - # NOTE: the typing in ``pycryptodome`` is wrong on the arguments to ``sign``. return pkcs1_15.new(self.impl).sign(h) def get_public_key(self) -> PublicKey: