-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIP 17 - Private Direct Messages / NIP 42 - Relay Auth #38
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Implement Chat.ui.qml with dummy data for testing - Update FollowList to load Chat UI on item click - Adjust layout and styling for better user experience
- Update chat UI colors to ensure visibility in both light and dark modes. - Add equality test to the follow list model for better item comparison. - Improve profile button styling for consistency with Material Design.
- Add GiftWrap and Seal event kinds - Implement encryption/decryption for direct messages - Update event handling to process encrypted messages - Add chat UI elements and message display - Refactor filters for more flexibility
- Move effects into their respective modules - Rename Nostr.Effects.* to Nostr.* - Combine IDGen and CurrentTime into Util effect
- Add Nostr.GiftWrap module - Update chat handling to support group chats - Refactor event processing in Futr.hs - Remove unused Nostr.Subscription module - Update AppState to use [PubKeyXO] for chat keys
- Add Nostr.Subscription module with new Subscription effect - Move subscription-related functions from Futr to Subscription
- Add Nostr module with effect definitions and handlers - Update cabal file to include new Nostr module - Refactor KeyMgmt and GiftWrap to use Nostr effect
prolic
changed the title
NIP 17 - Private Direct Messages
NIP 17 - Private Direct Messages / Nostr Effects Monad
Oct 19, 2024
prolic
commented
Oct 19, 2024
src/Futr.hs
Outdated
now <- getCurrentTime | ||
let pubKeyXO = keyPairToPubKeyXO kp | ||
rumor = createRumor pubKeyXO now ShortTextNote (map (\xo -> PTag xo Nothing Nothing) xos) input | ||
giftWraps <- catMaybes <$> forM xos (\xo -> do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this creates wrong giftwraps, they need to be specific for each receiver
- Add support for canonical authentication (Kind 22242) - Handle AUTH challenges from relays - Update createGiftWrap to return KeyPair - Refactor message handling and error reporting - Update default relay list
prolic
changed the title
NIP 17 - Private Direct Messages / Nostr Effects Monad
NIP 17 - Private Direct Messages / NIP 42 - Relay Auth
Oct 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement NIP-17 and NIP-42
This PR introduces support for NIP-17 (Private Direct Messages), NIP-42 (Authentication of clients to relays) and significantly refactors our Nostr-related effects for improved modularity and maintainability.
Key changes: