bump nostr-tools

This commit is contained in:
tiero
2023-12-17 03:16:43 +01:00
parent cc43ada5e7
commit 2ddc6a2f9f
5 changed files with 46 additions and 49 deletions

View File

@@ -1,4 +1,4 @@
import { getPublicKey, signEvent, Event, nip26 } from 'nostr-tools';
import { getPublicKey, getSignature, Event, nip26 } from 'nostr-tools';
import { Connect, ConnectURI, NostrSigner, TimeRanges } from '../src';
import { sleep } from './utils';
@@ -21,7 +21,7 @@ class MobileHandler extends NostrSigner {
return getPublicKey(this.self.secret);
}
async sign_event(event: any): Promise<string> {
const sigEvt = signEvent(event, this.self.secret);
const sigEvt = getSignature(event, this.self.secret);
return Promise.resolve(sigEvt);
}
async delegate(