From 8801548dc0a00867d9fb882da92622154de5f134 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 30 Apr 2026 23:02:01 -0700 Subject: [PATCH] Combine redundant overloads. --- src/lib/block.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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 -- 2.47.3