-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more examples of getting and putting records in the IPFS DHT #2263
Comments
With #2309 merged, do you want to take a shot at this one @pawelradtke-sage? |
I had a brief look at None of these primitives exist in Specifically, we would need (almost) all of I understand that not everyone might be interested in these primitives, but this can be easily solved by hiding them behind a feature flag. I am happy to give this a try, but I first wanted to ask if you agree that this is the right way to go. I may need some guidance in terms of where to place this new code, and how to make other crates (optionally) dependent on it. Right now I'm thinking we could either add more top-level crates (i.e. Let me know what you think @mxinden BTW fyi, @pawelradtke-sage is my work account, I forgot to switch accounts before opening this issue. Apologies for any confusion. |
Thus far the Rust Instead of including IPNS, IPLD etc. to In my eyes that would (1) enable a clean layer distinction and (2) does not increase the already very large maintenance surface of rust-libp2p. |
With #3509, all the examples are separate binary crates. Thus, they can have their own dependencies. We could thus add whatever dependencies we need, for example https://github.com/ipld/libipld to demonstrate how to interact with the IPFS network. |
Nice, I think I should be able to do it next week, or the week after. |
Great! Let me say this upfront though: Depending on how many dependencies we need, this might still have to be something that lives outside the repository. I'd suggest that you open a draft PR fairly early on so we can evaluate, whether or not such an example is something that we are able to maintain :) Hope that makes sense! |
I've just opened a PR for this: #4566 |
Hi,
The ipfs-kad.rs only demonstrates one operation (find closest peers) on the IPFS DHT. I think it would be useful to go a bit further and demonstrate how to read/write PK or IPNS records.
I'm willing to contribute an example file similar to these in the
./examples
folder, but I myself need to be shown how perform these operations first.The text was updated successfully, but these errors were encountered: