Skip to content
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

[NIP90] - replace NIP04 encryption with NIP44 encryption for encrypted jobs #1407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

believethehype
Copy link
Contributor

As there are considerations to fully replace nip04 with nip44 encryption and major libraries used for DVMs like rust-nostr and ndk already support nip44 en/decryption this PR suggests replacing nip04 encryption for "encrypted jobs" with nip44 encryption. This only concerns jobs that are encrypted aka use the "encrypted" tag.

@believethehype believethehype changed the title [NIP90 ] - replace NIP04 encryption with NIP44 encryption for encrypted jobs [NIP90] - replace NIP04 encryption with NIP44 encryption for encrypted jobs Aug 2, 2024
@believethehype
Copy link
Contributor Author

We're gonna do this or nah?

@vitorpamplona
Copy link
Collaborator

vitorpamplona commented Nov 22, 2024

Amethyst is following the change on NIP-46 #1248 (comment).

Right now we test if the encrypted payload is nip04 or nip44 and decrypt it either way. But we still encrypt in NIP-04 to wait for DVMs to catch up. Once DVMs are ready with NIP-44, we can encrypt to nip-44 and disable nip-04 decryption.

@staab
Copy link
Member

staab commented Nov 22, 2024

Coracle/welshman don't use encrypted jobs, so this doesn't affect me.

@believethehype
Copy link
Contributor Author

My DVMs could do Nip44 but I kept them on Nip04 because Nip90 says Nip04. Thats why I was adding this PR back then to move to Nip44. If clients support both, its good, but for future development, the question is what we want to move on with and the Nip should point both dvm and client devs to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants