diff --git a/libp2p/crypto/rsa.py b/libp2p/crypto/rsa.py index a0f84397..ed8c215b 100644 --- a/libp2p/crypto/rsa.py +++ b/libp2p/crypto/rsa.py @@ -35,11 +35,6 @@ class RSAPrivateKey(PrivateKey): def to_bytes(self) -> bytes: return self.impl.export_key("DER") - @classmethod - def from_bytes(cls, key_bytes: bytes) -> "RSAPrivateKey": - rsakey = RSA.import_key(key_bytes) - return cls(rsakey) - def get_type(self) -> KeyType: return KeyType.RSA