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

Update 94 add a d tag to event #1532

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 94.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
{
"kind": 1063,
"tags": [
["d",<identifier>],
["url",<string with URI of file>],
["m", <MIME type>],
["x",<Hash SHA-256>],
Expand All @@ -55,3 +56,9 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
* A relay for indexing shared files. For example, to promote torrents.
* A pinterest-like client where people can share their portfolio and inspire others.
* A simple way to distribute configurations and software updates.
* Use as a movable media for notes.
1. Clients upload a file to media service and get a file link and other file infomations.
2. Clients send a File Metadata event and this event must contain a ```d``` tag, it means that this event is addressable.
3. If a client want to sends notes with this file, it should imports this event with ```nostr:naddr``` style uri.
4. When other clients vist a note with kind 1063 naddr style uri, it should find this event and display it like a normal media file.
5. If this file's owner want to change the media service, he can upload this file to other media service and resend a File Metadata event with the same ```d``` tag.