Skip to content

nwc: support nip44_v2 - #1393

Merged
yukibtc merged 7 commits into
nostrdevkit:masterfrom
TheAwiteb:nwc-nip44v2
Jul 26, 2026
Merged

nwc: support nip44_v2#1393
yukibtc merged 7 commits into
nostrdevkit:masterfrom
TheAwiteb:nwc-nip44v2

Conversation

@TheAwiteb

@TheAwiteb TheAwiteb commented Jul 15, 2026

Copy link
Copy Markdown
Member

Resolve #1392

Description

Support NIP44 in nwc, the user should fetch the wallet service info event and enable nip44_v2 if it supports it.

Checklist

@TheAwiteb TheAwiteb changed the title nwc: Support NIP44 nwc: support nip44_v2 Jul 16, 2026
@TheAwiteb
TheAwiteb force-pushed the nwc-nip44v2 branch 2 times, most recently from 7b33a07 to 3446dc1 Compare July 16, 2026 09:34
@TheAwiteb
TheAwiteb marked this pull request as ready for review July 16, 2026 09:43
@TheAwiteb
TheAwiteb requested a review from yukibtc as a code owner July 16, 2026 09:43
@TheAwiteb

Copy link
Copy Markdown
Member Author

Hello @yukibtc and @MegalithicBTC, I don't have a wallet service to test this code with, but I believe it's correct. Could you please review it?

@TheAwiteb
TheAwiteb marked this pull request as draft July 18, 2026 14:32
@TheAwiteb

Copy link
Copy Markdown
Member Author

I'll add the tests soon

@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@TheAwiteb
TheAwiteb force-pushed the nwc-nip44v2 branch 2 times, most recently from 118324b to 5016486 Compare July 20, 2026 11:55
@TheAwiteb
TheAwiteb marked this pull request as ready for review July 20, 2026 11:56
Comment thread crates/nwc/src/lib.rs Outdated
Signed-off-by: Awiteb <a@4rs.nl>
Signed-off-by: Awiteb <a@4rs.nl>
Signed-off-by: Awiteb <a@4rs.nl>
```
test nips::nip47::tests::test_encryption_tag_parsing ... ok
test nips::nip47::tests::test_encryption_tag_display ... ok
test nips::nip47::tests::test_request_encryption ... ok
test nips::nip47::tests::test_response_decryption ... ok
test nips::nip47::tests::test_notification_decryption ... ok
```

Signed-off-by: Awiteb <a@4rs.nl>
```
test tests::test_send_request_no_cipher ... ok
test tests::test_send_request_nip04_cipher_no_info ... ok
test tests::test_send_request_nip04_cipher_with_info ... ok
test tests::test_send_request_nip44_cipher_no_info ... ok
test tests::test_send_request_no_cipher_but_info_single_old_cipher ... ok
test tests::test_send_request_no_cipher_but_info_latest_cipher ... ok
test tests::test_send_request_no_cipher_but_info_single_cipher ... ok
```

Signed-off-by: Awiteb <a@4rs.nl>
Signed-off-by: Awiteb <a@4rs.nl>

@yukibtc yukibtc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 3932552

@yukibtc
yukibtc merged commit 77df10e into nostrdevkit:master Jul 26, 2026
45 checks passed
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.

nwc: cannot receive notifications from NIP-44-only wallet services (missing kind 23197 / NIP-44 support)

2 participants