]> zoso.dev Git - libnemo.git/commitdiff
Tabs.
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 21:53:55 +0000 (13:53 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 21:53:55 +0000 (13:53 -0800)
src/lib/block.ts

index 164b787e33d4c01001c6b7b91c72635e4c88e5f0..5c381b0ba85177bfa46f626f7f048a8927b37faf 100644 (file)
@@ -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}`)