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@forum.elixirforum.com>:

Where Next?

Popular in Questions Top

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
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
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
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
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

We're in Beta

About us Mission Statement