store-sigits and update working flow #116
No reviewers
Labels
No Label
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sigit/sigit.io#116
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "store-sigits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updated create flow
The uploaded files are zipped, and this files.zip file is then encrypted and uploaded to Blossom.
The Creator prepares an Agreement by creating and signing (but NOT publishing) a Kind 938 event. The content field contains an object with the following information:
Once the creator has signed, the meta.json file will contain the createObject (above) and a keys object that contains the decryption key for the zip file, NIP-44 encrypted to each counterparty.
This meta.json file is now sealed (using unsigned Kind 938 to differentiate from DMs and speed up decryptions) and gift wrapped (with some PoW) per NIP-59, for each recipient, and the gift wrap is broadcast to each recipients relays.
Storing App Data
App data (list of all sigits) is stored as an encrypted file on Blossom. The file also contains a list of 'processed' id's from Kind 1059 events (to avoid having to continually decrypt when logging in, as well as enabling notifications).
A Kind 30078 is also created, which contains a link to the blossom server, and an ephemeral key pair that can be used to sign the blossom requests.
NIP-78 (event kind 30078) requires a d-tag to provide some application context. To avoid revealing metadata, the d tag will be the sha256 hash of the string "938" plus the users npub.
WIP: store-sigitsto WIP: store-sigits and update working flowWIP: store-sigits and update working flowto store-sigits and update working flow