diff options
| author | Adam Soltys <[email protected]> | 2022-12-21 21:50:06 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-21 21:50:06 -0800 |
| commit | 316039601e5170d6f753cf09eac92a94176b4756 (patch) | |
| tree | 35ebb19bae1857b919b2e51d11817c8bb432b012 /lib | |
| parent | a574285fe3b1de4fdfda342ed287bbc53a57400a (diff) | |
| download | coinos-server-316039601e5170d6f753cf09eac92a94176b4756.tar.gz coinos-server-316039601e5170d6f753cf09eac92a94176b4756.zip | |
store nostr keys
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/nostr.js | 2 | ||||
| -rw-r--r-- | lib/whitelist.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/nostr.js b/lib/nostr.js index 677f14e5..c75955bd 100644 --- a/lib/nostr.js +++ b/lib/nostr.js @@ -7,12 +7,12 @@ import redis from "$lib/redis"; const { relays } = await got("https://nostr.watch/relays.json").json(); export const pool = RelayPool(relays); -let coinos; pool.on("open", relay => { if (relay.url.includes("coinos")) coinos = relay; relay.subscribe("live", { limit: 1 }); }); +let coinos; let seen = []; let timeout; pool.on("event", async (relay, sub, ev) => { diff --git a/lib/whitelist.js b/lib/whitelist.js index 93e601c7..5a9c0ba3 100644 --- a/lib/whitelist.js +++ b/lib/whitelist.js @@ -5,6 +5,7 @@ export default [ "address", "admin", "banner", + "cipher", "currencies", "currency", "email", @@ -14,7 +15,9 @@ export default [ "index", "keys", "payments", + "pubkey", "profile", + "salt", "seed", "symbol", "theme", |
