Add NIP-44 encryption and decryption

This commit is contained in:
2025-05-31 09:49:35 -04:00
parent e46f1ba14b
commit e0125ca634
6 changed files with 54 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ window.addEventListener('message', async message => {
'getRelays',
'nip04.encrypt',
'nip04.decrypt',
'nip44.encrypt',
'nip44.decrypt',
];
let { kind, reqId, payload } = message.data;
if (!validEvents.includes(kind)) return;