From: Chris Duncan Date: Wed, 27 Nov 2024 13:54:20 +0000 (-0800) Subject: Remove debug statements. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=32a39c57088a01e499cb0ea9450e19a5a5d0ab8e;p=libnemo.git Remove debug statements. --- diff --git a/src/lib/blake2b.ts b/src/lib/blake2b.ts index bfcde1f..47a5637 100644 --- a/src/lib/blake2b.ts +++ b/src/lib/blake2b.ts @@ -206,8 +206,6 @@ function blake2b (outlen: number, key?: Uint8Array, salt?: Uint8Array, personal? } const update = function (input: Uint8Array) { - console.log(`this: ${this}`) - console.dir(this) if (!(input instanceof Uint8Array)) throw new TypeError(`input must be Uint8Array or Buffer`) blake2bUpdate(this, input) diff --git a/src/lib/workers/ckdBip44.ts b/src/lib/workers/ckdBip44.ts index 7eaf9c1..47f94c2 100644 --- a/src/lib/workers/ckdBip44.ts +++ b/src/lib/workers/ckdBip44.ts @@ -29,7 +29,6 @@ async function fn () { * @returns Private child key for the account */ async function nanoCKD (seed: string, index: number): Promise { - console.log(`seed: ${seed}; index: ${index}`) if (seed.length < 32 || seed.length > 128) { throw new RangeError(`Invalid seed length`) } diff --git a/src/lib/workers/ckdBlake2b.ts b/src/lib/workers/ckdBlake2b.ts index c8e277b..3453802 100644 --- a/src/lib/workers/ckdBlake2b.ts +++ b/src/lib/workers/ckdBlake2b.ts @@ -6,7 +6,6 @@ async function fn () { * Listens for messages from a calling function. */ addEventListener('message', (message) => { - console.log('message received') const { seed, index, blake2b } = message.data ?? message ckdBlake2b(seed, index, blake2b).then(key => postMessage({ index, key })) }) @@ -19,7 +18,6 @@ async function fn () { */ async function ckdBlake2b (seed: string, index: number, b2b: any): Promise { const blake2b = Function(`return ${b2b}`)() - console.log(blake2b) const indexHex = index.toString(16).padStart(8, '0').toUpperCase() const inputHex = `${seed}${indexHex}`.padStart(72, '0') const inputArray = (inputHex.match(/.{1,2}/g) ?? []).map(h => parseInt(h, 16))