Remove some debugging statements

This commit is contained in:
SondreB 2023-02-17 01:41:11 +01:00
parent a9755c4fb5
commit 9a122d4ad9
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
2 changed files with 1 additions and 8 deletions

View File

@ -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);

View File

@ -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');
}