From: Chris Duncan Date: Mon, 25 Nov 2024 21:53:55 +0000 (-0800) Subject: Tabs. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=a0dedba9a51ff83e6b49b3d43098af7fe344c25d;p=libnemo.git Tabs. --- 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}`)