diff options
chore: a debug log for init ks
Diffstat (limited to 'src/routes/canaries')
-rw-r--r-- | src/routes/canaries/keystore.ts | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/routes/canaries/keystore.ts b/src/routes/canaries/keystore.ts index ca8cb22..5da55a4 100644 --- a/src/routes/canaries/keystore.ts +++ b/src/routes/canaries/keystore.ts @@ -6,14 +6,14 @@ const will_debug = true; const debug = dev && will_debug ? (z: any, ...a: any[]) => - console.debug( - ...[ - ...(typeof z === 'string' - ? [`[keystore] ${z}`] - : ['[keystore]', z]), - ...a, - ], - ) + console.debug( + ...[ + ...(typeof z === 'string' + ? [`[keystore] ${z}`] + : ['[keystore]', z]), + ...a, + ], + ) : () => void 0; const _validateSignature = async (message: string, id: string) => { id = id.toUpperCase(); @@ -110,7 +110,7 @@ const pushKey = async ({ if ( expect_fingerprint && parsedKey.getFingerprint().toUpperCase() !== - expect_fingerprint.toUpperCase() + expect_fingerprint.toUpperCase() ) throw new Error( `Key ${parsedKey.getFingerprint()} is not ${expect_fingerprint}`, @@ -133,6 +133,7 @@ const pushKey = async ({ }); }; export const initKeystore = (async () => { + debug('initializing keystore') await pushKey({ key: 'B546778F06BBCC8EC167DB3CD919706487B8B6DE', ids: ['memdmp'], |