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

Add IPNS Record code #312

Merged
merged 1 commit into from
Feb 8, 2023
Merged

Add IPNS Record code #312

merged 1 commit into from
Feb 8, 2023

Conversation

lidel
Copy link
Member

@lidel lidel commented Feb 3, 2023

This PR proposes adding ipns-record, like we already have one for libp2p-peer-record. ipfs/specs#369

Rationale / potential uses:

  • Main one: we should add a dedicated codec for IPNS Record, otherwise people will use ipns(0xe5) code which would be invalid, as it indicates IPNS "namespace".
  • IPIP-351 will ship in Kubo 0.19 and will allow fetching signed (verifiable) IPNS Record.
    • In the future /ipns/{id}?format=car could return a CAR with ipns-record as an additional block.
  • IPNI wants to support IPNS Records, but need codec (Propose Naam as naming system powered by IPNI ipni/specs#4)

@rvagg
Copy link
Member

rvagg commented Feb 3, 2023

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
Copy link
Member Author

lidel commented Feb 6, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants