Skip to content

omnilingo/libp2p

 
 

Repository files navigation

c-libp2p

Implementation of libp2p in C.

Bundles:

  • Mbedtls
  • Protobuf
  • Multiaddr
  • Multihash

Compile

$ make

Library

  • libp2p.so
  • libp2p.a

Python

$ LD_LIBRARY_PATH=../ python3.8
Python 3.8.7 (default, Dec 22 2020, 10:37:26) 
[GCC 10.2.1 20201207] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import p2p
>>> p2p.libp2p_net_server_start("127.0.0.1", 1234, None);
1
>>> p2p.libp2p_net_server_stop()
1
>>> ma = p2p.multiaddress_new_from_string("/ip4/127.0.0.1/tcp/1234");
>>> ma.string
'/ip4/127.0.0.1/tcp/1234'

About

Implementation of libp2p in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.4%
  • Other 0.6%