Comments (6)
We tend to be very conservative in what functionality we add to
libp2p-identity
because it is a dependency of the entirelibp2p
ecosystem.
Given thatPeerId
offers,from_bytes,
am I right to assume that you can implement this on top of the APIs that are currently offered and it doesn't necessarily have to live inlibp2p-identity
?
Before we add an API like this, I'd like to first see it pulling its weight in where we use it.Yes, it doesn't need to reside in
libp2p-identity
. This is mostly useful inside Kademlia.
Cool, thanks for the confirmation! Optimising DHT queries is definitely something we are very open to :)
from rust-libp2p.
I have been able to successfully generate peer ids from the existing APIs provided using to_bytes() and from_multihash(). I will reach out with a separate pull request on an added method to optimize DHT queries in a while. Would like to close this for now as my issue has been resolved. Thanks!!
from rust-libp2p.
@vbhattaccmu the two snippets below might give some additional inspiration:
rust-libp2p/protocols/kad/src/behaviour.rs
Lines 1349 to 1372 in bb2b798
rust-libp2p/misc/keygen/src/main.rs
Lines 71 to 111 in bb2b798
from rust-libp2p.
We tend to be very conservative in what functionality we add to libp2p-identity
because it is a dependency of the entire libp2p
ecosystem.
Given that PeerId
offers, from_bytes,
am I right to assume that you can implement this on top of the APIs that are currently offered and it doesn't necessarily have to live in libp2p-identity
?
Before we add an API like this, I'd like to first see it pulling its weight in where we use it.
from rust-libp2p.
Before we add an API like this, I'd like to first see it pulling its weight in where we use it.
For example, it appears that this is mostly useful for Kademlia so it could also just be a private function in kademlia somewhere and doesn't have to go into the public API of PeerId
.
from rust-libp2p.
We tend to be very conservative in what functionality we add to
libp2p-identity
because it is a dependency of the entirelibp2p
ecosystem.Given that
PeerId
offers,from_bytes,
am I right to assume that you can implement this on top of the APIs that are currently offered and it doesn't necessarily have to live inlibp2p-identity
?Before we add an API like this, I'd like to first see it pulling its weight in where we use it.
Yes, it doesn't need to reside in libp2p-identity
. This is mostly useful inside Kademlia.
from rust-libp2p.
Related Issues (20)
- Refactor file-sharing example to use tokio instead of async-std
- `Gossipsub`'s substreams keep all connections alive after `idle_connection_timeout`
- mergify continously approving approved pull requests HOT 6
- WebRTC connection doesn't close after timeout HOT 2
- Promote common dependencies to workspace level
- file-sharing works only on local interface HOT 1
- kad: FIND_NODE not conform to specs HOT 9
- Improve request/response documentation HOT 4
- Compilation on docs.rs is failing
- mdns tokio timer panics HOT 2
- Signature verification fails on handshake if 1024 bit RSA key is used HOT 2
- relay: panics due to unimplemented time in wasm HOT 2
- kad: consume `FromSwarm::NewExternalAddrOfPeer` HOT 14
- Reduce `NewExternalAddrCandidate` reports from `identify`
- kad: make `automatic_bootstrap_interval` publicly configurable
- request-response: Inconsistent documentation.
- request-response: Document request/response max sizes HOT 4
- Active streams affect `yamux::connection::rtt` HOT 10
- rendezvous: Example "discovering with identify" doesn't work HOT 4
- kad: make bucket size configurable HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-libp2p.