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

handle connectionstrings with authority #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Egge21M
Copy link
Contributor

@Egge21M Egge21M commented Jan 5, 2024

This is a tiny change in the NIP-47 utilities to handle the very real case of a NWC provider using connection URIs that don't comply with the spec and instead use "schema://pubkey". This change ensure compatibility with both.

Examples of NWC providers that use Authority are:

  • Alby
  • Current
  • Mutiny

@alexgleason
Copy link
Collaborator

If everybody is using the // in the URI and the spec doesn't match, maybe we should update the spec? And do it one way. Is there an MR to update the spec?

@fiatjaf
Copy link
Collaborator

fiatjaf commented Apr 13, 2024

Am I stupid? I had never seen this PR here ever.

@Egge21M
Copy link
Contributor Author

Egge21M commented Apr 14, 2024

If everybody is using the // in the URI and the spec doesn't match, maybe we should update the spec? And do it one way. Is there an MR to update the spec?

While that does sound practical, I am not a fan of doing things wrong knowingly, just because the majority does it that way.

These implementations are in the wrong and should update. However I am also not going to die on this hill.

@fiatjaf
Copy link
Collaborator

fiatjaf commented Apr 15, 2024

Is this PR still valid? I don't know anything about NWC, so please decide.

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.

3 participants