Adds public spreadsheet with permission to edit.

This commit is contained in:
Vitor Pamplona 2024-05-02 13:43:15 -04:00
parent 973cd23540
commit 751283f3c9

6
73.md
View File

@ -105,7 +105,7 @@ To decrypt, receivers SHOULD find the ciphertext for their key, decrypt that to
Clients SHOULD include the author as a `p` tag to save the secret that will allow the author to decrypt and modify the event further. Clients SHOULD include the author as a `p` tag to save the secret that will allow the author to decrypt and modify the event further.
## Sharing Encrypted Spreadsheets with Editor permission. ## Sharing Encrypted or Public Spreadsheets with Edit permission.
This method allows anyone listed as the `p` tag to edit the Spreadsheet. It follows a similar process to read-only spreadsheets, but instead of signing the event with the author's main key, the event is signed by the shared secret as well. This method allows anyone listed as the `p` tag to edit the Spreadsheet. It follows a similar process to read-only spreadsheets, but instead of signing the event with the author's main key, the event is signed by the shared secret as well.
@ -135,6 +135,6 @@ val keyPair = nostr.generateKeyPair()
To edit, receivers SHOULD find the ciphertext for their key, decrypt that to get the shared private key and use the shared private key to encrypt the `.content` and sign the event. To edit, receivers SHOULD find the ciphertext for their key, decrypt that to get the shared private key and use the shared private key to encrypt the `.content` and sign the event.
The Client knows when it's user has the permission to edit when the pubkey of the secret matches the pubkey of the event.
Spreadsheets MAY have private and public parts at the same time.