ejlindgren on Nostr: right, I think relying on signatures could eliminate the need to store *anything* ...
right, I think relying on signatures could eliminate the need to store *anything* client-side. the server can store all the stuff usually contained in cookies along with signatures from the nsec. then when the user visits the site again the server that info can be authenticated with the signatures before they are used - no need to store anything on the client and no risk that one user's cookies are applied to another
I dunno honestly I'm spitballing and haven't thought it through but I really think cryptography can replace a lot of the hacky stuff like cookies that have developed over the years.
Published at
2025-01-28 14:39:49Event JSON
{
"id": "fd3db6c0c5354111a585da6cb257e1c0be1cbec1952252fdfabc28e5e49bb98e",
"pubkey": "34b1051e56a2503c30133b9c2536ae9fe2b5624924655c2d05145073b53d63b7",
"created_at": 1738075189,
"kind": 1,
"tags": [
[
"e",
"a2c1fd254efb565b18a1193c648075b422dad9fb7d9838612c4ae7b9dd473cb5",
"wss://relay.primal.net",
"root",
"b0803f9ce4cf9c051c9263c46869fe6edb1b67af71d80048a6ee26aaaa1e2dfb"
],
[
"e",
"6097a2b9163675faa3c0ef19b523e3f2b175aa59a355746e842a1b4aff2eec29",
"wss://relay.primal.net",
"reply"
],
[
"p",
"34b1051e56a2503c30133b9c2536ae9fe2b5624924655c2d05145073b53d63b7"
],
[
"p",
"b0803f9ce4cf9c051c9263c46869fe6edb1b67af71d80048a6ee26aaaa1e2dfb"
]
],
"content": "right, I think relying on signatures could eliminate the need to store *anything* client-side. the server can store all the stuff usually contained in cookies along with signatures from the nsec. then when the user visits the site again the server that info can be authenticated with the signatures before they are used - no need to store anything on the client and no risk that one user's cookies are applied to another\n\nI dunno honestly I'm spitballing and haven't thought it through but I really think cryptography can replace a lot of the hacky stuff like cookies that have developed over the years.",
"sig": "af6ec2f361fba03da7f5d854461dc52c15fcc2c4b0db792f5f74d91518a4c86d128d298cd833b944d992a55f8ab5484dbaacc5532e60f99d1de6e7d5361eed8c"
}