Closed lidel closed 5 years ago
I rebased this PR to remove template and make RFC-0001 easier to audit. Will add it in a separate PR after this one is finalized and merged.
@raulk thoughts? :)
@raulk CIDv0 is the same as current text representation (Peer ID being multihash in base58btc), making this a relatively safe change.
Existing CID libraries provide conversion methods and support old representation out of the box, but I've added explicit requirement to the spec in https://github.com/libp2p/specs/pull/209/commits/b621ac506aaa36df5980f843dd429f56715dc862.
Let me know if there is anything else blocking this.
@raulk can we :ship: this?
@Stebalien so we've locked in consensus for making the change. I'm not sure how to deal with change management across implementations, though. We haven't worked out the procedural details of how to coordinate the implementation of an RFC across libraries, and how to signal varying support in a matrix-like format :-(
In a nutshell, I want to avoid getting in a situation where go-libp2p spits out string representations of multiaddrs with CIDv1 peer IDs by default to stdout, and when users copy-paste those multiaddrs to an application powered by py-libp2p, it blows up.
I could be paranoid, though.
@raulk the first step is https://github.com/libp2p/go-libp2p-core/pull/41/files. That will add support for parsing cid-peer-ids but it won't spit them out by default.
I've created a tracking issue: https://github.com/libp2p/specs/issues/216.
The RFC 0001 aims to modify Peer ID spec to alter the default string representation from Multihash to CIDv1 in Base32 and to support encoding/decoding text peerids as CIDs.
Changes
AddedRFC/0000-RFC-TEMPLATE.md
the TEMPLATE every future RFC should followRFC/0001-text-peerid-cid.md
the first RFC to test the processpeer-ids/peer-ids.md
to reflect changes from the RFCFeedback needed
cc https://github.com/ipfs/go-ipfs/issues/5287, https://github.com/multiformats/multicodec/issues/130, https://github.com/libp2p/go-libp2p-core/pull/41, https://github.com/ipfs/ipfs/issues/337