Skip to content

Add NIP-44 v2 encryption #41

Description

@BenGWeeks

nwcprovider only advertises nip04 in its kind-13194 info event. Most clients (Alby SDK, Damus, Amethyst, Primal etc.) prefer nip44_v2 and fall back to nip04 with a deprecation warning.

Would be good to advertise nip44_v2 and implement the matching encrypt/decrypt paths. NIP-44 v2 needs HKDF-SHA-256 + ChaCha20 + HMAC-SHA-256, all available via the cryptography dep that LNbits already pulls in (same approach pynostr's existing encrypt_message takes for AES-CBC).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions