From a0dedba9a51ff83e6b49b3d43098af7fe344c25d Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 25 Nov 2024 13:53:55 -0800 Subject: [PATCH] Tabs. --- src/lib/block.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/block.ts b/src/lib/block.ts index 164b787..5c381b0 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -141,10 +141,10 @@ abstract class Block { } const account = await Account.fromPrivateKey(key) try { - const signature = Ed25519.sign( + const signature = Ed25519.sign( hex.toBytes(await this.hash()), hex.toBytes(`${account.privateKey}${account.publicKey}`) - ) + ) this.signature = bytes.toHex(signature.subarray(0, 64)) } catch (err) { throw new Error(`Failed to sign block with key ${key}: ${err}`) -- 2.34.1