Support NIP-19 nprofile #116
Labels
No labels
Blocked
Bug
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Idea
In progress
Invalid
Major feature set
Packaging
Question
Soon
UI/UX
Upstream
You're dreamin'
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/gossip#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
nprofileidentifier contains a list of relays, so it would probably fit easily into Gossip's people-adding flow. It's essentially what NIP-35 was for NIP-05 but for standalone key identifiers.https://github.com/nostr-protocol/nips/blob/master/19.md
An example:
nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpyfmhxue69uhkummnw3ez6an9wf5kv6t9vsh8wetvd3hhyer9wghxuet5fmsq8jCool, I hadn't understood that.
Do these just show up in contents of text notes, or do people cut-n-paste them from somewhere?
That is just for copypasting, as in: "follow me, I am nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpyfmhxue69uhkummnw3ez6an9wf5kv6t9vsh8wetvd3hhyer9wghxuet5fmsq8j on nostr!".
They would also work well as QR codes and links (
nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpyfmhxue69uhkummnw3ez6an9wf5kv6t9vsh8wetvd3hhyer9wghxuet5fmsq8jornostr:name@domain.comwould work nice, what do you think?). But I think no one has implemented these things yet.Yeah I like it.
I will implement the translation in nostr-types, which is the library crate that just deals with the data types. Then I guess on the "follow someone" page make it so you can paste an nprofile. And on the "you" page it should show your nprofile with a copy button. Does that sound right?
Yes, to me it sounds right.
nostr-types now supports a Profile type like this:
As well as
...with working test cases, including the example in NIP-19 tried in both directions.
Gossip doesn't have any changes in this regard yet.
Done. Can follow an nprofile. Shows your own nprofile string.