user 5 лет назад
Родитель
Сommit
e7339f47fb
3 измененных файлов с 7 добавлено и 1 удалено
  1. 3 0
      lib/index.js
  2. 1 1
      lib/index.js.map
  3. 3 0
      src/index.ts

+ 3 - 0
lib/index.js

@@ -425,7 +425,9 @@ class BankClient {
             if (!this.privateKey) {
                 throw new Error('missing privateKey');
             }
+            console.log('about to sign');
             const signatureBytes = yield this.privateKey.sign(messageHexString);
+            console.log('signed');
             const publicKey = yield this.privateKey.getPublicKey();
             const pubHash = yield this.privateKey.getPublicHash();
             const result = {
@@ -435,6 +437,7 @@ class BankClient {
                 pubHash,
                 sig: signatureBytes,
             };
+            console.log('returning', result);
             return result;
         });
     }

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
lib/index.js.map


+ 3 - 0
src/index.ts

@@ -425,7 +425,9 @@ export class BankClient {
     if (!this.privateKey) {
       throw new Error('missing privateKey');
     }
+    console.log('about to sign');
     const signatureBytes = await this.privateKey.sign(messageHexString);
+    console.log('signed');
     const publicKey = await this.privateKey.getPublicKey();
     const pubHash = await this.privateKey.getPublicHash();
 
@@ -436,6 +438,7 @@ export class BankClient {
       pubHash,
       sig: signatureBytes,
     };
+    console.log('returning', result);
     return result;
   }
 }