diff options
| author | Adam Soltys <[email protected]> | 2024-09-25 16:14:41 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-25 16:14:41 +0000 |
| commit | 9ef8f0eea743929207009d0f42b9ba44eec00641 (patch) | |
| tree | 01ae9cea4bd273b01f257bed08a233c4d72237ae /lib/nostr.ts | |
| parent | 62e28e2c944789011e9be112f95f5e9e05fde94b (diff) | |
| download | coinos-server-9ef8f0eea743929207009d0f42b9ba44eec00641.tar.gz coinos-server-9ef8f0eea743929207009d0f42b9ba44eec00641.zip | |
use hex encoded pubkey
Diffstat (limited to 'lib/nostr.ts')
| -rw-r--r-- | lib/nostr.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/nostr.ts b/lib/nostr.ts index f6e04b8c..49d4d342 100644 --- a/lib/nostr.ts +++ b/lib/nostr.ts @@ -217,8 +217,7 @@ function send(ev, url, opts) { export async function handleZap(invoice) { let { data: privkey } = nip19.decode(config.nostrKey); - let pubkey = getPublicKey(privkey); - let keypair = { privkey, pubkey }; + let pubkey = serverPubkey; let zapreq = JSON.parse(invoice.description); if (!zapreq.tags || zapreq.tags.length === 0) { |
