Open antonioconselheiro opened 5 months ago
Can you clarify what "extension support to read a encrypted qrcode" means?
Sure:
nsec field has a qrcode button (or in another place):
when click, camera open to scan a qrcode;
the qrcode content must be a nsec or a ncryptsec (encrypted nsec, NIP49, https://github.com/nostr-protocol/nips/blob/master/49.md);
If it's ncryptsec (encrypted nsec) you will need a pin to decrypt it, so, open a prompt with a textfield asking for the pin;
decrypt ncryptsec with the pin and get the nsec hex, fill the field with the value.
The nsec field can support receive a ncryptsec with no qrcode scanner too.
Other extensions are supporting load/scan qrcode with credentials, If you need help to implement it I'm available: https://github.com/fiatjaf/nos2x/pull/67
I would like to suggest to include into your extension support to read an encrypted qrcode. NIP49 (https://github.com/nostr-protocol/nips/blob/master/49.md) provides a way to encrypt our nsec, any tool that geneates a qrcode with NIP49 will be compatible.
This will help me to avoid typing my nsec or copy and paste it, this make sense?