From: Chris Duncan Date: Mon, 25 Nov 2024 06:08:43 +0000 (-0800) Subject: Fix order of arguments. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=0a201b0007f7b061612996c2afcb997e5e10b201;p=libnemo.git Fix order of arguments. --- 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) ) } }