mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 14:40:53 +00:00
implement add get providers
This commit is contained in:
@ -55,3 +55,7 @@ def shared_prefix(args):
|
||||
def bytes_to_bit_string(bites):
|
||||
bits = [bin(bite)[2:].rjust(8, '0') for bite in bites]
|
||||
return "".join(bits)
|
||||
|
||||
|
||||
def validate_provider_id(sender_id, sender_peerinfo):
|
||||
return sender_id == sender_peerinfo.peer_id
|
||||
|
||||
Reference in New Issue
Block a user