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

nip05 #2692

Closed
3 of 4 tasks
guaka opened this issue May 26, 2024 · 4 comments
Closed
3 of 4 tasks

nip05 #2692

guaka opened this issue May 26, 2024 · 4 comments
Assignees

Comments

@guaka
Copy link
Contributor

guaka commented May 26, 2024

implement NIP-05, now that we have an npub profile field

  • convert npub to hex, using nostr-tools
  • put code in the right place, added to core.server.routes.js now but should be elsewhere?
  • look up nostrNpub in mongo
  • implement /.well-known/nostr.json?name=bob returning
{
  "names": {
    "bob": "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9"
  }
}
@guaka guaka self-assigned this May 26, 2024
guaka pushed a commit that referenced this issue May 26, 2024
guaka pushed a commit that referenced this issue May 29, 2024
@guaka
Copy link
Contributor Author

guaka commented Jul 23, 2024

note I have been struggling with adding a proper library to the code, to convert between bech32 and hex

great if someone with more advanced js wizard skills can tackle this

@chmac
Copy link
Member

chmac commented Jul 26, 2024

@guaka which package do you want added? In which branch?

@guaka
Copy link
Contributor Author

guaka commented Jul 30, 2024

I don't really care about the specific package (or branch).

nostr-tools could be best, since we're also using that for nostr-map and may help with other nostr stuff later, but the nodejs version for this code base could be too old for that.

@guaka
Copy link
Contributor Author

guaka commented Aug 9, 2024

it works now, and is on production

@guaka guaka closed this as completed Aug 9, 2024
@guaka guaka mentioned this issue Aug 9, 2024
1 task
guaka pushed a commit that referenced this issue Aug 10, 2024
guaka added a commit that referenced this issue Aug 10, 2024
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

2 participants