Carlos on Nostr: Definitely possible to do. For example, the storage provider could listen on Nostr ...
Definitely possible to do.
For example, the storage provider could listen on Nostr for "proof of storage" requests.
The client (who originally sent the file) could send a challenge every 24h using the scheme above. When answering the challenge, the provider can also sent a BOLT11 invoice, covering the cost for the next 24h. If the client pays it, the provider keep storing it. If the client fails to pay, the provider can delete the file after some grace period.
In a sense, the client is "paying by the day".
Published at
2023-06-20 07:49:27Event JSON
{
"id": "0000d239e8707827ec0f647c59b61b1c49ee153806dcfe26135ff884e15eadc3",
"pubkey": "123456785ee7815751c28004e6cef4398e1256f94a93bf51f90018e28accbfb4",
"created_at": 1687247367,
"kind": 1,
"tags": [
[
"p",
"0c24e3235228f3ee5369d4a8a46ea92f28f1a83936de61ac6b4003d40344d422"
],
[
"p",
"6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5"
],
[
"e",
"da7eb9b38f8ff3075fc918002e30f12411eff798f8a8f3ef3a5b59e57b2cab71",
"wss://nos.lol/",
"root"
],
[
"e",
"07cb1d2f7a6ab00df8e492825b9ed013fc47de910246ce5f1a5cf00cd087c8aa",
"wss://nos.lol/",
"reply"
],
[
"nonce",
"59718",
"16"
]
],
"content": "Definitely possible to do.\n\nFor example, the storage provider could listen on Nostr for \"proof of storage\" requests.\n\nThe client (who originally sent the file) could send a challenge every 24h using the scheme above. When answering the challenge, the provider can also sent a BOLT11 invoice, covering the cost for the next 24h. If the client pays it, the provider keep storing it. If the client fails to pay, the provider can delete the file after some grace period.\n\nIn a sense, the client is \"paying by the day\".",
"sig": "c34ea4802dfe5a7a10eb27569f481c879537013bf7e3fe76dfdbe7d7691bba933ae01aed25debbaa90eb574c7141caa0cdd3b45ef55f07a2629bb38868e2f2d3"
}