]> git.codecow.com Git - nano25519.git/commitdiff
Remove noop cast.
authorChris Duncan <chris@codecow.com>
Sat, 5 Sep 2026 17:51:15 +0000 (10:51 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 5 Sep 2026 17:51:15 +0000 (10:51 -0700)
src/assembly/crypto_verify.ts

index cf31a16019c5790e6ecb20a854d1dd3ce09e5a6b..9c98c97b3663ae212e541e4533bb12d2bbd1c554 100644 (file)
@@ -56,7 +56,7 @@ export function crypto_verify_donna (sig: StaticArray<u8>, M: StaticArray<u8>, A
        blake2b.init().update(sig, 32).update(pub, KEY_BYTELENGTH).update(M, BLOCKHASH_BYTELENGTH).digest(h)
        sc_reduce(h)
 
-       ge_double_scalarmult_vartime_to_p3(sb_ah, h, changetype<ge_p3>(A), S)
+       ge_double_scalarmult_vartime_to_p3(sb_ah, h, A, S)
        ge_p3_tobytes(check_r, sb_ah)
 
        return equalbytes(sig, check_r, KEY_BYTELENGTH) - 1