Skip to content
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

reduce libp2p dependencies #253

Closed
mattsse opened this issue Apr 29, 2024 · 1 comment · Fixed by #255
Closed

reduce libp2p dependencies #253

mattsse opened this issue Apr 29, 2024 · 1 comment · Fixed by #255

Comments

@mattsse
Copy link
Contributor

mattsse commented Apr 29, 2024

the libp2p feature pulls in libp2p entirely:

libp2p = { version = "0.53", features = ["ed25519", "secp256k1"], optional = true }

but only identity and MultiAddr are used

discv5/src/node_info.rs

Lines 7 to 11 in 44051ef

use libp2p::{
identity::{KeyType, PublicKey},
multiaddr::Protocol,
Multiaddr,
};

which are available as standalone crates:

multiaddr and libp2p-identity

@AgeManning
Copy link
Member

Resolved in #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants