mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
A roughly skeleton of floodsub.publish
Still need to ensure when to deliver to ourselves
This commit is contained in:
@ -16,6 +16,9 @@ class ID:
|
||||
def __init__(self, id_str):
|
||||
self._id_str = id_str
|
||||
|
||||
def to_bytes(self) -> bytes:
|
||||
return self._id_str
|
||||
|
||||
def get_raw_id(self):
|
||||
return self._id_str
|
||||
|
||||
|
||||
Reference in New Issue
Block a user