diba-io / bitmask-core

Core functionality for the BitMask wallet
https://bitmask.app
Other
95 stars 21 forks source link

Validate nostr keys #311

Closed cryptoquick closed 1 year ago

cryptoquick commented 1 year ago

Validate nostr keys and trim them if slightly too long (33 byte x-only pk).

This way the key from vault.public.nostr_pub can be provided directly, otherwise, the way we generate it, it's just a little too long. We generate it this way because the extra byte is helpful for Carbonado encryption.

cryptoquick commented 1 year ago

ty!