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

Package registrars and name resolution #6

Closed
pipermerriam opened this issue Oct 5, 2016 · 0 comments
Closed

Package registrars and name resolution #6

pipermerriam opened this issue Oct 5, 2016 · 0 comments

Comments

@pipermerriam
Copy link
Member

We need to determine what this specification will have to say about:

  • Package Registrars
    • "How does a package developer register a package."
  • Resolution of package names to package data.
    • "How does a developer resolve a package name to the released package itself"

I propose that we use EIP137 for this. The benefits that I see are in it's simplicity as well as it already having a degree of community consensus.

For the question of how developers register packages, I suggest that we mark that as being out of scope and not covered in this specification. That doesn't mean we can't come out of the gate with a Registrar that people can use, but I would suggest that the spec should not cover the actual registration process because that is something that each registrar will inherently implement differently.

For the question of how package names are resolved I suggest one or all of the following options.

  1. Use the addr record type that would be expected to resolve to the address of a Package contract. This Package contract would expose some portion of the actual package manifest data via functions, or possible just very basic metadata like released versions and URI's to the actual manifests for those releases.
  2. Define a new uri record type that would allow resolution to arbitrary URI's. This would then allow pointing to an IPFS/SWARM/HTTP uri which would contain the package manifest.
  3. Define a new package record type. (it is unclear to me what data this should return).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant