]> zoso.dev Git - libnemo.git/commitdiff
Fix order of arguments.
authorChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 06:08:43 +0000 (22:08 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 25 Nov 2024 06:08:43 +0000 (22:08 -0800)
src/lib/block.ts

index cd4b5c2470065aec0ad8c88e3aebb957cdce3127..91ca288234616255432dedbc1005883232c7f2c3 100644 (file)
@@ -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)
                )
        }
 }