diff --git a/src/app/connect/key/key.ts b/src/app/connect/key/key.ts index c25c045..4f9f624 100644 --- a/src/app/connect/key/key.ts +++ b/src/app/connect/key/key.ts @@ -30,8 +30,6 @@ export class ConnectKeyComponent { return; } - debugger; - // First attempt to get public key from the private key to see if it's possible: const encrypted = await this.security.encryptData(this.privateKeyHex, this.password); const decrypted = await this.security.decryptData(encrypted, this.password); diff --git a/src/app/services/nostr.ts b/src/app/services/nostr.ts index c3295cd..a9a2b52 100644 --- a/src/app/services/nostr.ts +++ b/src/app/services/nostr.ts @@ -28,7 +28,6 @@ export class NostrService { constructor(public dialog: MatDialog, private snackBar: MatSnackBar, private security: SecurityService) {} async sign(event: any) { - debugger; let prvkeyEncrypted = localStorage.getItem('blockcore:notes:nostr:prvkey'); if (!prvkeyEncrypted) { @@ -39,7 +38,7 @@ export class NostrService { } else { return new Promise((resolve, reject) => { const dialogRef = this.dialog.open(PasswordDialog, { - data: { action: 'Sign' }, + data: { action: 'Sign', password: '' }, maxWidth: '100vw', panelClass: 'full-width-dialog', }); @@ -50,8 +49,6 @@ export class NostrService { return; } - debugger; - const prvkey = await this.security.decryptData(prvkeyEncrypted!, result.password); if (!prvkey) { @@ -66,8 +63,6 @@ export class NostrService { const pubkey = getPublicKey(prvkey); - debugger; - if (event.pubkey != pubkey) { reject('The event public key is not correct for this private key'); }