]> git.codecow.com Git - nano25519.git/commitdiff
Fix exit code treated as Boolean.
authorChris Duncan <chris@codecow.com>
Thu, 27 Aug 2026 07:01:08 +0000 (00:01 -0700)
committerChris Duncan <chris@codecow.com>
Thu, 27 Aug 2026 07:01:08 +0000 (00:01 -0700)
src/assembly/index.ts

index fcf62adf9d7e56fe910b3431b16a13efa0dba6a3..c3c9c2bf4608bbe521535039eba0965186511e41 100644 (file)
@@ -199,7 +199,7 @@ export function verify_blocks (count: i32): void {
        OUTPUT_BUFFER.fill(255)
 
        // Verify public key before proceeding with signature verification
-       if (crypto_verify_pubkey(verify_blocks_pub)) {
+       if (crypto_verify_pubkey(verify_blocks_pub) == 0) {
        
                // Iterate over block hash/signature pairs
                for (let i = 0; i < count; i++) {