mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-13 23:39:08 -05:00
Update 95.md
fixed descriptions
This commit is contained in:
parent
75e23c7874
commit
7062bbc4ef
6
95.md
6
95.md
|
@ -8,7 +8,7 @@ The intention is to combine the ease of NOSTR, with many clients being developed
|
|||
|
||||
Nostr event
|
||||
------------------
|
||||
This NIP specifies the use of the `1064` event type (parameterized replaceable event), having in `content` the binary data that you want to be stored in Base64 format.
|
||||
This NIP specifies the use of the `1064` event type, having in `content` the binary data that you want to be stored in Base64 format.
|
||||
* `type` a string indicating the data type of the file. The MIME types format must be used (https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types)
|
||||
* `decrypt` (optional) If the file is encrypted, you must indicate in the first value the algorithm used to encrypt the file and in the second value the parameters that allow the decryption of the file
|
||||
|
||||
|
@ -55,7 +55,7 @@ The relay can allow access to this data via URL, having its own URL pattern for
|
|||
|
||||
Client Behavior
|
||||
---------------
|
||||
The client can use this event for any type of storage it wants. The functionality of uploading an image directly through the client's interface and including it in the note that is being created is a very useful facility for the end user. In this case, 3 events would be created. Kind 30064 with the file converted to base64, Kind 30063 which is the header of this file for dissemination and Kind 1 with the post and the image.
|
||||
The client can use this event for any type of storage it wants. The functionality of uploading an image directly through the client's interface and including it in the note that is being created is a very useful facility for the end user. In this case, 3 events would be created. Kind 1064 with the file converted to base64, Kind 1063 which is the header of this file for dissemination and Kind 1 with the post and the image.
|
||||
|
||||
Also, when used in conjunction with `NIP-94`, it allows the app to create image galleries (memes, animations) that can be reused countless times in different notes. As it exists in whatsapp, tegegran, etc.
|
||||
|
||||
|
@ -72,4 +72,4 @@ References
|
|||
---------------
|
||||
* https://www.mongodb.com/developer/products/mongodb/storing-large-objects-and-files/
|
||||
* https://www.mongodb.com/docs/manual/core/gridfs/
|
||||
* https://www.linkedin.com/pulse/do-store-files-your-database-mongodbs-gridfs-thinks-otherwise-gordon/
|
||||
* https://www.linkedin.com/pulse/do-store-files-your-database-mongodbs-gridfs-thinks-otherwise-gordon/
|
||||
|
|
Loading…
Reference in New Issue
Block a user