mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
18 lines
428 B
Python
18 lines
428 B
Python
from .config import Config
|
|
from ..peer.peerstore import PeerStore
|
|
|
|
class Libp2p(object):
|
|
|
|
def __init__(self, idOpt, \
|
|
transportOpt = ["/ip4/0.0.0.0/tcp/0"], \
|
|
muxerOpt = ["mplex/6.7.0"], \
|
|
secOpt = ["secio"], \
|
|
peerstoreOpt = new PeerStore()):
|
|
|
|
if idOpt:
|
|
self.idOpt = idOpt
|
|
else:
|
|
# TODO generate RSA public key pair
|
|
|
|
# TODO initialize
|