improve connection

This commit is contained in:
2023-11-25 17:56:45 +07:00
parent 24b21a9451
commit 9112c1c24a
9 changed files with 23 additions and 39 deletions

View File

@@ -44,7 +44,8 @@ export function ImportAccountScreen() {
try {
const pubkey = nip19.decode(npub.split('#')[0]).data as string;
const localSigner = NDKPrivateKeySigner.generate();
await db.secureSave(pubkey + '-bunker', localSigner.privateKey);
await db.createSetting('nsecbunker', '1');
await db.secureSave(pubkey + '-nsecbunker', localSigner.privateKey);
const remoteSigner = new NDKNip46Signer(ndk, npub, localSigner);
// await remoteSigner.blockUntilReady();