multiformats / multicodec

Compact self-describing codecs. Save space by using predefined multicodec tables.
MIT License
340 stars 205 forks source link

Register IPFS and IPNS codecs #282

Closed ben221199 closed 2 years ago

ben221199 commented 2 years ago

Previously, peers where described by /ipfs/<peerId>. This was replaced by /p2p/<peerId>, because that was a better name. Now, content is described by /ipfs/<cid> and /ipns/<cid>, but those were not defined in the Multicodec table.

This pull request will add ipfs and ipns to the Multicodec table and will remove the old ipfs used for describing peers. Hopefully, we also can get this definitions permanent.

Stebalien commented 2 years ago

These are already registered as "namespaces".

Stebalien commented 2 years ago

See: ipfs-ns, ipld-ns, ipns-ns (0xe3, 0xe2, 0xe5).

ben221199 commented 2 years ago

There are raising multiple questions: