multiformats / multicodec

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

Add IPNS Record code #312

Closed lidel closed 1 year ago

lidel commented 1 year ago

This PR proposes adding ipns-record, like we already have one for libp2p-peer-record. https://github.com/ipfs/specs/issues/369

Rationale / potential uses:

rvagg commented 1 year ago

Sorry for my ignorance on some of this, but is this intended to be used in CIDs, and is the block format the IPNS protobuf format?

lidel commented 1 year ago

@rvagg correct.

Block identified by CID with this codec can be parsed by following the protobuf from the IPNS spec: https://github.com/ipfs/specs/blob/main/ipns/IPNS.md#record-serialization-format