This repository has moved to https://github.com/AsaiToshiya/learn-nostr/tree/main/nip-49.
NIP-49 implemented in JavaScript.
$ npm test
> nip-49@1.0.0 test
> jest
PASS ./nip49.test.js
√ decrypt test data (646 ms)
√ encrypt and decrypt private key (1209 ms)
Test Suites: 1 passed, 1 total
Tests: 2 passed, 2 total
Snapshots: 0 total
Time: 2.481 s
Ran all test suites.CC0 1.0. See LICENSE.txt.