vendor sc-network-types v0.20.3#573
Conversation
Inline sc-network-types crate from polkadot-sdk to prepare for post-quantum modifications. This is a direct copy of upstream sc-network-types v0.20.3 with Cargo.toml updated to use workspace dependencies where applicable. This prepares for replacing Ed25519 identity with Dilithium ML-DSA-87 in a follow-up PR.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 026972d. Configure here.
Inline sc-network-types crate from polkadot-sdk to prepare for post-quantum modifications. This is a direct copy of upstream sc-network-types v0.20.3 with Cargo.toml updated to use workspace dependencies where applicable. This prepares for replacing Ed25519 identity with Dilithium ML-DSA-87 in a follow-up PR.
…Quantus-Network/chain into illuzen/vendor-sc-network-types
Review: PR #573 — vendor
|

Inline sc-network-types crate from polkadot-sdk to prepare for post-quantum modifications. This is a direct copy of upstream sc-network-types v0.20.3 with Cargo.toml updated to use workspace dependencies where applicable.
This prepares for replacing Ed25519 identity with Dilithium ML-DSA-87 in a follow-up PR.
Note
Medium Risk
Touches core P2P identity and address types used across the node; changes are upstream-equivalent today but expand the surface for future crypto/peer-id edits.
Overview
This PR vendors upstream
sc-network-typesv0.20.3 as an in-tree crate underclient/network-types, instead of pulling it only from crates.io.Workspace wiring:
client/network-typesis added to workspace members;sc-network-typesis bumped to 0.20.3 and[patch.crates-io]points the dependency at the local path (alongside existing patches forsc-network,sc-network-sync, etc.).What the new crate provides: Shared P2P types with conversions between libp2p, litep2p, and Substrate—
PeerId,Multiaddr/Protocol,Multihash, KademliaRecord/Key, and Ed25519 key material (including zeroizing secret parsing and interoperability tests). Behavior matches upstream; the intent is a forkable copy before post-quantum identity work.Lockfile: Transitive updates (e.g.
bytes1.11.1,litep2p0.13.3,yamux0.13.10) align the graph with the vendored crate’s dependencies.Reviewed by Cursor Bugbot for commit cbe51d4. Bugbot is set up for automated code reviews on this repo. Configure here.