From: Chris Duncan Date: Fri, 1 May 2026 06:02:01 +0000 (-0700) Subject: Combine redundant overloads. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=8801548dc0a00867d9fb882da92622154de5f134;p=libnemo.git Combine redundant overloads. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index 83194a4..653d6a9 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -369,21 +369,12 @@ export class Block { } /** - * Sign the block with a 32-byte private key by deriving the matching public - * key, concatenating to create the full 64-byte secret key, and signing. + * Sign the block with either a full 64-byte secret key or 32-byte private key + * which is used to rebuild the secret key. * * Saves the result to the `signature` property of the block. * - * @param {string} [key] - 32-byte hexadecimal private key to use for signing - * @returns {Block} this with `signature` value set - */ - sign (key: string): Block - /** - * Sign the block using a 64-byte secret key. - * - * Saves the result to the `signature` property of the block. - * - * @param {string} [key] - 64-byte hexadecimal secret key to use for signing + * @param {string} [key] - 64- or 32-byte hexadecimal key to use for signing * @returns {Block} this with `signature` value set */ sign (key: string): Block