From 0a201b0007f7b061612996c2afcb997e5e10b201 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 24 Nov 2024 22:08:43 -0800 Subject: [PATCH] Fix order of arguments. --- 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 cd4b5c2..91ca288 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -198,8 +198,8 @@ abstract class Block { const hash = await Tools.hash(data, 'hex') return Ed25519.verify( hex.toBytes(hash), - hex.toBytes(key), - hex.toBytes(this.signature ?? '') + hex.toBytes(this.signature ?? ''), + hex.toBytes(key) ) } } -- 2.34.1