mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 23:20:55 +00:00
added RoutedHost and updated new_node to support it
This commit is contained in:
@ -15,6 +15,9 @@ class ID:
|
||||
def __init__(self, id_str):
|
||||
self._id_str = id_str
|
||||
|
||||
def get_raw_id(self):
|
||||
return self._id_str
|
||||
|
||||
def pretty(self):
|
||||
return base58.b58encode(self._id_str).decode()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user