mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Remove some debugging statements
This commit is contained in:
parent
a9755c4fb5
commit
9a122d4ad9
@ -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);
|
||||
|
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user