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

Add encrypt / decrypt to NIP-07 feature set #9

Open
nostrdev-com opened this issue Nov 4, 2024 · 1 comment
Open

Add encrypt / decrypt to NIP-07 feature set #9

nostrdev-com opened this issue Nov 4, 2024 · 1 comment

Comments

@nostrdev-com
Copy link

Hi guys

Per our discussion the other day, we are really happy to see NIP-07 support for Fedi Mods - it is a real step forward for secure enablement of nostr apps on mobile, particularly on Apple phones.

However, the implementation is not actually sufficient for most nostr web apps - the majority of which need to be able to decrypt and encrypt, as well as to sign stuff.

We would really like to see NIP-07 support for these APIs:

async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext and iv as specified in nip-04 (deprecated)
async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04 (deprecated)
async window.nostr.nip44.encrypt(pubkey, plaintext): string // returns ciphertext as specified in nip-44
async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes ciphertext as specified in nip-44

Backlink: https://git.nostrdev.com/sigit/sigit.io/issues/180

@nostrdev-com
Copy link
Author

This tool might be helpful for testing: https://github.com/neilck/nip07-tester

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

No branches or pull requests

1 participant