Skip to content

Support NIP-44 encryption for NWC #1699

@ekzyis

Description

@ekzyis

Describe the problem you're trying to solve

NWC wallets will add versioning and switch to NIP-44 encryption at some point, see nostr-protocol/nips#1531.

We are about to switch to NDK (#1590), but it doesn't seem to support NIP-44 for NWC specifically yet. However, the NDKPrivateSigner has NIP-44 encryption support.

Describe the solution you'd like

What's needed is to detect which encryption scheme the wallet supports (nip04 or nip44) as specified in nostr-protocol/nips#1531 and then encrypt requests with the corresponding scheme.

Describe alternatives you've considered

n/a

Additional context

There is some work currently being done in NDK regarding migration to NIP-44 for other NIPs (nostr-dev-kit/ndk#279) but not for NWC afaict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew product features that weren't there beforequestionfurther information is requiredwallets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions