This commit is contained in:
2023-11-28 09:00:46 +07:00
parent d989d6ffad
commit 3c6c9c86d1
7 changed files with 12 additions and 5 deletions

View File

@@ -69,12 +69,14 @@ export const NDKInstance = () => {
if (nsecbunker) {
const localSignerPrivkey = await db.secureLoad(db.account.pubkey + '-nsecbunker');
const localSigner = new NDKPrivateKeySigner(localSignerPrivkey);
if (!localSigner) return null;
// await remoteSigner.blockUntilReady();
return new NDKNip46Signer(ndk, db.account.id, localSigner);
}
// Private key Signer
const userPrivkey = await db.secureLoad(db.account.pubkey);
if (!userPrivkey) return null;
return new NDKPrivateKeySigner(userPrivkey);
}