upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/94.md
diff options
context:
space:
mode:
authorarthurfranca <arthur.a.franca@gmail.com>2024-01-08 14:05:01 -0300
committerGitHub <noreply@github.com>2024-01-08 14:05:01 -0300
commitb0e6c01321633f5e0de6ebf6676f018a218459a9 (patch)
tree1457552431896855c7391be4dc18fd89fbfd8ecc /94.md
parente489ed468b528f8022f420395b49a7615722aa57 (diff)
NIP-96 - HTTP File Storage Integration (#547)
* Add NIP-95 - File Storage * Add missing response info * Make it clear that is is an HTTP file storage server integration * Add monetization suggestion * Use zap split tags for monetization suggestion * Add resize option * Add Zap Gates Integration * Replace /nip96 convention with /.well-known/nostr.json configuration * Relays can choose to also act as HTTP file storage server * Remove nip96 tag in favor of x tags third element * Fix typo * Remove redirect cooperation * Replaced 422 with 400 status code * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Update 96.md Co-authored-by: Jon Staab <jstaab@protonmail.com> * Make file expiration a range and add terms_of_service * Add optional content_type field * Add plans and tos * Remove monetization * Apply minor fixes * Update 96.md Co-authored-by: Semisol <45574030+Semisol@users.noreply.github.com> * Fix after review * Add kind 10096 * Apply suggestions * Add suggestions * Remove duplicate field * Add optional is_nip98_required plan config * Add suggestions * Replace x with ox tag for original file hash * Make minor changes * Remove nip96 namespace response field * Add note about alternative file processing flow * Simplify processing flow * Add nostrcheck to server list * Add audio/* example * Explain what metadata to show before processing is done * Add nostrage to list * Add eta * Add sove to list and replace eta with percentage * Fix status code * Add nostr.build to list * Add sovbit * Add optional extra http servers to ox tag * Add void.cat to list * Small fix * Remove ox third array element --------- Co-authored-by: Jon Staab <jstaab@protonmail.com> Co-authored-by: Semisol <45574030+Semisol@users.noreply.github.com>
Diffstat (limited to '94.md')
-rw-r--r--94.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/94.md b/94.md
index 84a3d12..eb8117a 100644
--- a/94.md
+++ b/94.md
@@ -15,6 +15,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
15* `url` the url to download the file 15* `url` the url to download the file
16* `m` a string indicating the data type of the file. The [MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) format must be used, and they should be lowercase. 16* `m` a string indicating the data type of the file. The [MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) format must be used, and they should be lowercase.
17* `x` containing the SHA-256 hexencoded string of the file. 17* `x` containing the SHA-256 hexencoded string of the file.
18* `ox` containing the SHA-256 hexencoded string of the original file, before any transformations done by the upload server
18* `size` (optional) size of file in bytes 19* `size` (optional) size of file in bytes
19* `dim` (optional) size of file in pixels in the form `<width>x<height>` 20* `dim` (optional) size of file in pixels in the form `<width>x<height>`
20* `magnet` (optional) URI to magnet file 21* `magnet` (optional) URI to magnet file
@@ -32,6 +33,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
32 ["url",<string with URI of file>], 33 ["url",<string with URI of file>],
33 ["m", <MIME type>], 34 ["m", <MIME type>],
34 ["x",<Hash SHA-256>], 35 ["x",<Hash SHA-256>],
36 ["ox",<Hash SHA-256>],
35 ["size", <size of file in bytes>], 37 ["size", <size of file in bytes>],
36 ["dim", <size of file in pixels>], 38 ["dim", <size of file in pixels>],
37 ["magnet",<magnet URI> ], 39 ["magnet",<magnet URI> ],