diff options
| author | arthurfranca <arthur.a.franca@gmail.com> | 2024-01-08 14:05:01 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-08 14:05:01 -0300 |
| commit | b0e6c01321633f5e0de6ebf6676f018a218459a9 (patch) | |
| tree | 1457552431896855c7391be4dc18fd89fbfd8ecc /94.md | |
| parent | e489ed468b528f8022f420395b49a7615722aa57 (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.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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> ], |