]> git.codecow.com Git - nano25519.git/commitdiff
Fix doc comment.
authorChris Duncan <chris@codecow.com>
Fri, 30 Oct 2026 21:51:07 +0000 (14:51 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 30 Oct 2026 21:51:07 +0000 (14:51 -0700)
src/assembly/crypto_verify.ts

index d57fe8b8958191965c2d1235b48730e0a8aea02b..25ed7dd732fa00e8bbff2d90657fdee249f64f4c 100644 (file)
@@ -35,8 +35,9 @@ const t_p3 = new p3()
 const t_u8x32 = new StaticArray<u8>(32)
 
 /**
- * Verify public key `pub` can be decoded.
- * @returns null if public key fails to decode, else return pointer to A
+ * Verify public key `pub` can be decoded to point `A`. If so, builds a cache
+ * table of odd multiples of `A` and stores it to an array of points `Ai`.
+ * @returns null if public key fails to decode, else return pointer to Ai
  */
 export function crypto_verify_decodepubkey (pub: StaticArray<u8>): StaticArray<p_cached> | null {
        const b = ge_frombytes_negate(A, pub, t_fe_0, t_fe_1, t_fe_2, t_u8x32)