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

Provide a way to use delegatedHTTPRouting only for IPNS resolution #558

Open
2color opened this issue Jun 13, 2024 · 1 comment
Open

Provide a way to use delegatedHTTPRouting only for IPNS resolution #558

2color opened this issue Jun 13, 2024 · 1 comment

Comments

@2color
Copy link
Member

2color commented Jun 13, 2024

Currently

Using delegatedHTTPRouting with a delegated routing endpoint is all or nothing: either used for both resolving ipns names and finding providers, or neither.

Suggestion

As suggested in ipfs/service-worker-gateway#288, it'd be nice if there was a way to use delegatedHTTPRouting only for verified IPNS resolution.

In theory, this could also be implemented by adding IPNS resolution to https://github.com/ipfs/helia/blob/main/packages/routers/src/http-gateway-routing.ts since it's also part of the trustless gateway spec.

@achingbrain
Copy link
Member

I guess you could have a Routing implementation that just does IPNS-over-HTTP things and configure that instead of delegatedHTTPRouting?

Basically just the put/get methods from DelegatedHTTPRouter.

Alternatively you could create an IPNS Routing that just does HTTP things and use it directly with the @helia/ipns module, no helia or @helia/http instance needed?

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

No branches or pull requests

2 participants