bahner

bahner

How to get started with libp2p?

I am wanting to connect to the libp2p swarm, but I have no idea where to start. The erlang-libp2p documentation is virtually non-existing. In the docs there isnæt any start_node or connect commands I can make sense of.

Has anyone here any n00b accessible info on this library? The Helium erlang-libp2p is referenced from the libp2p website as yellow, meaning in progress/usable. But i can find absolutely no info on how to get started. It’s not in hex.pm, but some of the support libraries are.

Feel free to chip in and get a little discussion started. I’m completely at an impasse.

Most Liked

mtdk

mtdk

Hello - did you ever solve this ? I am basically at the same point in my current project. I need to find a suitable p2plib - and want to use erlang/elixir. One could revert to using Rust with Rustler, but then all the erlang-vm advantages will be gone.

bahner

bahner

I gave up on doing it with erlang/elixir, but I found that go has a pretty erlang node library. So I’ve created the libp2p functionality in go. https://github.com/bahner/go-space
Don’t use that, but do look at it. It works really well. I’m just changing it every other week at the moment. You could fork and use a skeleton.
This way I can easily call libp2p functions as a remote genserver from elixir.

If we can gather a group of people to develop the libp2p library, I’m game - but I can’t take responsibility for any more libraries at the present time.

If you just want IPFS/IPNS/IPLD functionality, then I maintain these libraries:

https://hex.pm/packages/ex_ipfs

I intend to keep them up2date.

Hope this helps a little bit.

Kind regards,
bahner

tor. 26. okt. 2023 kl. 14:20 skrev mtdk via Elixir Programming Language Forum <noreply@elixirforum.com>:

Where Next?

Popular in Questions Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
sacepums
Hey guys. I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
AstonJ
You’re a programmer, so you don’t need spoon feeding with the conventional drivel about “this is an integer.” No. You need to know what’s...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement