arthurfranca on Nostr: An amend to NIP-96 could add a query string like `?ref=x` when downloading to only ...
An amend to NIP-96 could add a query string like `?ref=x` when downloading to only respond succesfully if server has a file with `x` value equal to the hash used to request the file.
For uploads, NIP-96 already has "no_transform" field, which would make `ox` equal to `x`.
Published at
2024-08-08 15:54:15Event JSON
{
"id": "d62c3b4349386f6112b327c33fc638256bfcbf56f4b0fc33138b24143ec68af4",
"pubkey": "fc7085c383ba71745704bdc1c6efcf7fab0197501de598c5e6c537ac0b32a4cb",
"created_at": 1723132455,
"kind": 1,
"tags": [
[
"e",
"c8f258beb301ed6474ddafeedd415f7a193699778031eae3fb4a15572089c813",
"wss://nos.lol/",
"root"
],
[
"e",
"44ec1e0bab1b845161ca7f4deb730cf0eb7cc6fe8aed4a111a4b45a231bc2ad5",
"wss://hodlbod.coracle.tools/",
"reply"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"",
"mention"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24",
"",
"mention"
]
],
"content": "An amend to NIP-96 could add a query string like `?ref=x` when downloading to only respond succesfully if server has a file with `x` value equal to the hash used to request the file.\n\nFor uploads, NIP-96 already has \"no_transform\" field, which would make `ox` equal to `x`.",
"sig": "14fc041092504aaadf2636bf8e049553f9bdea1ff6945a36b69efda553991a4149e08a22fed5691dc86c8a1870120541ecc7d9cd39dff49ccdc8f728bffe3e73"
}