AFK-AlignedFamKernel / afk_monorepo

AFK: Aligned Fam Kernel - Monorepo
https://portal.afk-community.xyz
MIT License
9 stars 21 forks source link

NIP-4 private message hooks #134

Open MSghais opened 1 day ago

MSghais commented 1 day ago

Description

Nostr NIP-4 messages hooks and integrate too the UI already existing.

NIP-4 docs: https://github.com/nostr-protocol/nips/blob/master/04.md

ShantelPeters commented 1 day ago

Hi @MSghais can I work on this issue please?

onlydustapp[bot] commented 1 day ago

Hi @ShantelPeters! Maintainers during the ODHack # 8.0 will be tracking applications via OnlyDust. Therefore, in order for you to have a chance at being assigned to this issue, please apply directly here, or else your application may not be considered.

od-hunter commented 1 day ago

Hi @MSghais , please can I be assigned this when od hack starts?

onlydustapp[bot] commented 1 day ago

Hi @od-hunter! Maintainers during the ODHack # 8.0 will be tracking applications via OnlyDust. Therefore, in order for you to have a chance at being assigned to this issue, please apply directly here, or else your application may not be considered.

NueloSE commented 20 hours ago

@MSghais can i work on this issue

onlydustapp[bot] commented 20 hours ago

Hi @NueloSE! Maintainers during the ODHack # 8.0 will be tracking applications via OnlyDust. Therefore, in order for you to have a chance at being assigned to this issue, please apply directly here, or else your application may not be considered.

addegbenga commented 13 hours ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

A frontend engineer with over 5 years experience.

How I plan on tackling this issue

I will tackle this issue by:

ETA: 72hrs

od-hunter commented 13 hours ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Please can I be assigned this issue? This would be my first time contributing to this ecosystem and I’d love to be given the opportunity. I am a blockchain Developer, and my experience includes html, css, react, JavaScript,TypeScript and solidity and Cairo.

How I plan on tackling this issue

To solve this issue, I’d take the following steps: 1.⁠ ⁠I’ll understand NIP-4 for encrypted messages to guide hook development. 2.⁠ ⁠I’ll develop useQuery and useMutation hooks in afk_nostr_sdk for sending and fetching messages. 3.⁠ ⁠Replace existing message handling logic with the new hooks in the UI components. 4.⁠ ⁠I’ll refactor the UI for compatibility with the new hooks and update state and error handling as needed. 5.⁠ ⁠⁠Lastly, I’ll verify message sending/receiving works correctly in the UI across scenarios.

Please assign this issue to me.

ShantelPeters commented 13 hours ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

HI i am Shantel a frontend and blockchain developer with vast knowledge with languages like Typescript,javascript,Cario just to name a few . i will love to work on this issue . please kindly assign i am avaliable to work

How I plan on tackling this issue

To approach the problem i will follow an iterative approach and test the hooks

  1. **Create NIP-4 Hooks: Use `tanstack query to create the necessary hooks for NIP-4 messages in /packages/afk_nostr_sdk Follow the NIP-4 specs from the provided docs.
  2. Integrate Hooks: Ensure these hooks are connected to your existing UI components by modifying the UI to be compatible with the new hook structure.
  3. Test Compatibility: Verify that the hooks interact correctly with the UI by testing message send/receive flows and edge cases based on NIP-4.
onlydustapp[bot] commented 13 hours ago

The maintainer MSghais has assigned addegbenga to this issue via OnlyDust Platform. Good luck!