Send dm on sigit sign/complete #230
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "92-send-completion-dm"
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?
Closes #92
The PR implements the initial private DM sending (nip17) as discussed in the issue #92, makes the changes to
addRelay
function by skipping duplicate relays while adding, andcreateWrap
function by having a wrap'screated_at
date set randomly in the past (up to 2 days) per recommendations to avoid time-analysis attacks (https://github.com/nostr-protocol/nips/blob/master/59.md#other-considerations).We send the dms on sigit:
/sign
/sign
/verify
Each dm does the following:
Postponed:
Check the updatedcreateWrap
for side effects. The updated function now setscreated_at
randomly up to two days in the past. How will this affect the sorting we do infetchEvents
(when limit is setfilter.limit
)?Edit: Not relevant.
Blocked:
callbackPath
navigation -handleRootRedirect
when users are not logged in (#229)Improvement possible:
Edit: Opened as a separate issue as a "nice to have"
wip: Send dm on sigit sign/completeto Send dm on sigit sign/completeThere is no privacy issue with using the actual sender key to seal (kind-13) the information, as it is encrypted into the content of the gift wrap
The intention behind the use of random sender keys was to avoid metadata linkage for kind-4 DMs
Checkout
From your project repository, check out a new branch and test the changes.