tal on Nostr: From my viewpoint, the relay doesn't need to implement signing or undergo any ...
From my viewpoint, the relay doesn't need to implement signing or undergo any changes. To put it into perspective with my current situation, user's browser is storing private node data, say, a CLN rune. Whenever a user switches a browser or clears the local storage, they're required to re-enter the data.
The workaround I've considered involves my app generating a "vault-store" event. The user's extension would then encrypt it, sign it, and broadcast it to the relays.
Following this, when the user logs back in via nostr, my app could request the extension to decrypt the value and re-store it in the browser's local storage.
What do you think?
Published at
2023-05-31 12:16:05Event JSON
{
"id": "4675c630b753e60dfa37654fc9566546cd7842894cdf7840c90413355d1bc2fa",
"pubkey": "738ea36ef74b2ac80bfb3887b40637c7dcdf74ea6eed73c718b7193313b90f9b",
"created_at": 1685535365,
"kind": 1,
"tags": [
[
"e",
"e1a66c02ed3148cbef99df96c2a7934ff3132e47d4bf3fe1de3ccc088a0617d5",
"",
"root"
],
[
"e",
"f5c5c8109316ef13ed54d4cecfc7798e8f3b723c44601d2b64b5eb05c691490d",
"",
"reply"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"p",
"e4a1d3500841adb6734875d65c45e17b94d4d35db4d128dd288ca381f9bdcc90"
],
[
"p",
"f8b7656588856e324914bcd91beb12f27f10775304cdd140bc6f431b0d0328c2"
]
],
"content": "From my viewpoint, the relay doesn't need to implement signing or undergo any changes. To put it into perspective with my current situation, user's browser is storing private node data, say, a CLN rune. Whenever a user switches a browser or clears the local storage, they're required to re-enter the data.\n\nThe workaround I've considered involves my app generating a \"vault-store\" event. The user's extension would then encrypt it, sign it, and broadcast it to the relays.\n\nFollowing this, when the user logs back in via nostr, my app could request the extension to decrypt the value and re-store it in the browser's local storage.\n\nWhat do you think?",
"sig": "47bed46ee283e3bdfb4f5fb4589c69d41d7a25edafaba03f11b114b10d9ed468d2071518924f424956ebf624a75fabf1ee6bf55614482d1d1554787be02600cc"
}