mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Supply local priv and pub key when upgrading to a secure transport
This commit is contained in:
@ -8,6 +8,6 @@ class BaseSecureTransport(ISecureTransport):
|
||||
is only meant to be used in clases that derive from it.
|
||||
"""
|
||||
|
||||
def __init__(self, local_private_key: bytes) -> None:
|
||||
def __init__(self, local_private_key: bytes, local_public_key: bytes) -> None:
|
||||
self.local_private_key = local_private_key
|
||||
self.local_peer = ID.from_privkey(local_private_key)
|
||||
self.local_peer = ID.from_pubkey(local_public_key)
|
||||
|
||||
Reference in New Issue
Block a user