From b0e6c01321633f5e0de6ebf6676f018a218459a9 Mon Sep 17 00:00:00 2001 From: arthurfranca Date: Mon, 8 Jan 2024 14:05:01 -0300 Subject: 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 * Update 96.md Co-authored-by: Jon Staab * Update 96.md Co-authored-by: Jon Staab * Update 96.md Co-authored-by: Jon Staab * Update 96.md Co-authored-by: Jon Staab * Update 96.md Co-authored-by: Jon Staab * Update 96.md Co-authored-by: Jon Staab * 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 Co-authored-by: Semisol <45574030+Semisol@users.noreply.github.com> --- 94.md | 2 ++ 1 file changed, 2 insertions(+) (limited to '94.md') 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 * `url` the url to download the file * `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. * `x` containing the SHA-256 hexencoded string of the file. +* `ox` containing the SHA-256 hexencoded string of the original file, before any transformations done by the upload server * `size` (optional) size of file in bytes * `dim` (optional) size of file in pixels in the form `x` * `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 ["url",], ["m", ], ["x",], + ["ox",], ["size", ], ["dim", ], ["magnet", ], -- cgit v1.2.3