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

feat: introduce libp2p-identity crate #3350

Merged
merged 50 commits into from
Mar 12, 2023
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e170582
Introduce `libp2p-identity`
thomaseizinger Jan 19, 2023
1c38271
Deprecate `PeerId::try_from_multiaddr`
thomaseizinger Jan 19, 2023
b04dae9
Add missing backtick
thomaseizinger Jan 19, 2023
b0ffd1b
Fix build errors
thomaseizinger Jan 19, 2023
05efe05
Add package keys
thomaseizinger Jan 20, 2023
4c65409
Move PeerId tests to `libp2p-identity`
thomaseizinger Jan 23, 2023
84caeb3
Move PeerId benches to `libp2p-identity`
thomaseizinger Jan 23, 2023
d8ae4ed
Migrate workspace to depend on libp2p-identity
thomaseizinger Jan 23, 2023
36848f6
Add dummy keypair implementation
thomaseizinger Jan 23, 2023
198b7e3
Add missing re-exports of other key types
thomaseizinger Jan 24, 2023
d85582c
Remove unnecessary docs
thomaseizinger Jan 24, 2023
b0ce75d
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Jan 24, 2023
94b1a30
Make `decoding_unsupported` unconditionally available
thomaseizinger Jan 25, 2023
457a694
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Jan 27, 2023
bdbee42
Introduce ed25519 feature flag
thomaseizinger Jan 27, 2023
bea9855
Sort stuff alphabetically
thomaseizinger Jan 27, 2023
591f002
Deprecate direct access to inner keypair and public key
thomaseizinger Jan 27, 2023
e4b758e
Use correct rsa feature flag
thomaseizinger Jan 31, 2023
5f91ec5
Fix deprecated imports in tests
thomaseizinger Jan 31, 2023
f00f1c1
Remove unused import
thomaseizinger Jan 31, 2023
e791ef1
Add deprecations for the feature-flags in libp2p-core
thomaseizinger Jan 31, 2023
6d04533
Remove unnecessary feature gates
thomaseizinger Jan 31, 2023
dee1008
More fixes
thomaseizinger Jan 31, 2023
7793c0f
Fix bad feature-gate
thomaseizinger Jan 31, 2023
cb60c3f
More bad feature gates
thomaseizinger Jan 31, 2023
ac044e9
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Feb 1, 2023
2a85688
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Feb 16, 2023
81a7b25
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Feb 17, 2023
6a85bfe
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Feb 21, 2023
e99b69a
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Feb 24, 2023
cd132c9
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 1, 2023
37ea12c
Don't feature flag ed25519 in libp2p-core
thomaseizinger Mar 1, 2023
6c67eef
Fix deprecated usages
thomaseizinger Mar 1, 2023
57e2327
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 2, 2023
7406c5f
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 3, 2023
b59b327
Properly generate proto bindings
thomaseizinger Mar 3, 2023
07ad795
Adapt libp2p-identity to new proto structure
thomaseizinger Mar 3, 2023
2035d1a
Remove deprecation warning
thomaseizinger Mar 3, 2023
016a96d
Generate proto files with correct compiler version
thomaseizinger Mar 3, 2023
975536f
Move changelog entry to correct version
thomaseizinger Mar 3, 2023
f6f0c24
Amend changelog entry
thomaseizinger Mar 3, 2023
5dc04dd
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 6, 2023
dd4b334
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 8, 2023
984ebe9
Fix bad merge
thomaseizinger Mar 8, 2023
36492df
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 8, 2023
c1de283
Fix deprecation warnings and compile errors
thomaseizinger Mar 8, 2023
8e7ba6f
Generate proto bindings correctly
thomaseizinger Mar 10, 2023
d03eb75
Merge branch 'master' into feat/libp2p-identity
thomaseizinger Mar 10, 2023
2dd936b
Merge branch 'master' into feat/libp2p-identity
mxinden Mar 10, 2023
17d8973
Merge branch 'master' into feat/libp2p-identity
mxinden Mar 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@

- Bump MSRV to 1.65.0.

- Introduce `ed25519` feature. See [PR 3350].

- Update individual crates.
- Update to [`libp2p-dcutr` `v0.9.0`](protocols/dcutr/CHANGELOG.md#090).

Expand Down Expand Up @@ -100,6 +102,7 @@
- Update to [`libp2p-core` `v0.39.0`](core/CHANGELOG.md#0390).

[PR 3191]: https://github.com/libp2p/rust-libp2p/pull/3191
[PR 3350]: https://github.com/libp2p/rust-libp2p/pull/3350

# 0.50.0

Expand Down
68 changes: 55 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ full = [
"deflate",
"dns",
"ecdsa",
"ed25519",
"floodsub",
"gossipsub",
"identify",
"kad",
"macros",
"mdns",
"metrics",
"mplex",
Expand All @@ -30,7 +32,6 @@ full = [
"plaintext",
"pnet",
"quic",
"macros",
"relay",
"rendezvous",
"request-response",
Expand All @@ -54,7 +55,8 @@ autonat = ["dep:libp2p-autonat"]
dcutr = ["dep:libp2p-dcutr", "libp2p-metrics?/dcutr"]
deflate = ["dep:libp2p-deflate"]
dns = ["dep:libp2p-dns"]
ecdsa = ["libp2p-core/ecdsa"]
ecdsa = ["libp2p-identity/ecdsa"]
ed25519 = ["libp2p-identity/ed25519"]
floodsub = ["dep:libp2p-floodsub"]
gossipsub = ["dep:libp2p-gossipsub", "libp2p-metrics?/gossipsub"]
identify = ["dep:libp2p-identify", "libp2p-metrics?/identify"]
Expand All @@ -71,8 +73,8 @@ quic = ["dep:libp2p-quic"]
relay = ["dep:libp2p-relay", "libp2p-metrics?/relay"]
rendezvous = ["dep:libp2p-rendezvous"]
request-response = ["dep:libp2p-request-response"]
rsa = ["libp2p-core/rsa"]
secp256k1 = ["libp2p-core/secp256k1"]
rsa = ["libp2p-identity/rsa"]
secp256k1 = ["libp2p-identity/secp256k1"]
serde = ["libp2p-core/serde", "libp2p-kad?/serde", "libp2p-gossipsub?/serde"]
tcp = ["dep:libp2p-tcp"]
tls = ["dep:libp2p-tls"]
Expand All @@ -97,6 +99,7 @@ libp2p-core = { version = "0.39.0", path = "core" }
libp2p-dcutr = { version = "0.9.0", path = "protocols/dcutr", optional = true }
libp2p-floodsub = { version = "0.42.0", path = "protocols/floodsub", optional = true }
libp2p-identify = { version = "0.42.0", path = "protocols/identify", optional = true }
libp2p-identity = { version = "0.1.0", path = "identity" }
libp2p-kad = { version = "0.43.0", path = "protocols/kad", optional = true }
libp2p-metrics = { version = "0.12.0", path = "misc/metrics", optional = true }
libp2p-mplex = { version = "0.39.0", path = "muxers/mplex", optional = true }
Expand Down Expand Up @@ -142,6 +145,7 @@ libp2p-tcp = { path = "transports/tcp", features = ["tokio"] }
[workspace]
members = [
"core",
"identity",
"misc/metrics",
"misc/multistream-select",
"misc/rw-stream-sink",
Expand Down
Loading