mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-13 23:39:08 -05:00
remove bson reference
This commit is contained in:
parent
08cc3c6f7d
commit
8cfc828bea
2
95.md
2
95.md
|
@ -12,7 +12,6 @@ This NIP specifies the use of the `30064` event type (parameterized replaceable
|
||||||
* `d` containing the name of the shared file to allow it to be overwritten in the future.
|
* `d` containing the name of the shared file to allow it to be overwritten in the future.
|
||||||
* `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)
|
* `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
|
* `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
|
||||||
* `format` ("Base64" or "BSON") Defines how the data is stored in the content. Having the option of being in base64 format or in BSON format.
|
|
||||||
|
|
||||||
This event must not be returned in generic searches. It should only be returned if specifically requested by your ID. This avoids bandwidth consumption and unnecessary overload on the relay and client.
|
This event must not be returned in generic searches. It should only be returned if specifically requested by your ID. This avoids bandwidth consumption and unnecessary overload on the relay and client.
|
||||||
|
|
||||||
|
@ -29,7 +28,6 @@ The `NIP-94` can be used to broadcast the ID of that event, with the ` and ` tag
|
||||||
["decrypt",<algorithm>,<Decryption Params>],
|
["decrypt",<algorithm>,<Decryption Params>],
|
||||||
["p", <32-bytes hex of a pubkey>, <recommended relay URL>],
|
["p", <32-bytes hex of a pubkey>, <recommended relay URL>],
|
||||||
["hash",< SHA256 hexencoded string of the raw data>],
|
["hash",< SHA256 hexencoded string of the raw data>],
|
||||||
["format",<"Base64" or "BSON">]
|
|
||||||
],
|
],
|
||||||
"content": <string with base64 data>,
|
"content": <string with base64 data>,
|
||||||
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user