mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Adjust inheritance so that the MRO is clear for the chain of keys
This commit is contained in:
@ -33,7 +33,7 @@ class Key(ABC):
|
|||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
class PublicKey(ABC, Key):
|
class PublicKey(Key):
|
||||||
"""
|
"""
|
||||||
A ``PublicKey`` represents a cryptographic public key.
|
A ``PublicKey`` represents a cryptographic public key.
|
||||||
"""
|
"""
|
||||||
@ -54,7 +54,7 @@ class PublicKey(ABC, Key):
|
|||||||
return protobuf_key
|
return protobuf_key
|
||||||
|
|
||||||
|
|
||||||
class PrivateKey(ABC, Key):
|
class PrivateKey(Key):
|
||||||
"""
|
"""
|
||||||
A ``PrivateKey`` represents a cryptographic private key.
|
A ``PrivateKey`` represents a cryptographic private key.
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user