mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 08:38:50 +00:00
bring back @noble/secp256k1 along with micro-bip32.
This commit is contained in:
2
pool.js
2
pool.js
@@ -118,7 +118,7 @@ export function relayPool() {
|
||||
event.tags = event.tags || []
|
||||
|
||||
if (globalPrivateKey) {
|
||||
event.sig = signEvent(event, globalPrivateKey)
|
||||
event.sig = await signEvent(event, globalPrivateKey)
|
||||
} else {
|
||||
throw new Error(
|
||||
"can't publish unsigned event. either sign this event beforehand or pass a private key while initializing this relay pool so it can be signed automatically."
|
||||
|
||||
Reference in New Issue
Block a user