]> git.codecow.com Git - nano25519.git/commitdiff
Update doc comment.
authorChris Duncan <chris@zoso.dev>
Sat, 29 Aug 2026 07:29:04 +0000 (00:29 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 29 Aug 2026 07:29:04 +0000 (00:29 -0700)
src/assembly/crypto_verify.ts

index b10df30d7419cc13ee0a49ec44ddb404d346258d..f02b589d2c9842734f423153abd63438d0029c53 100644 (file)
@@ -38,8 +38,8 @@ export function crypto_verify_decodepubkey (pub: StaticArray<u8>): ge_p3 | null
  * - Skip canonical and small-order checks on public key
  * - Byte-for-byte comparison of `r` to `s`
  *
- * IMPORTANT: Callers MUST call `crypto_verify_decodepubkey` first in order to
- * set `A` for the scalar multiplication step before checking `sB = R + hA`.
+ * Call `crypto_verify_decodepubkey` first in order to get decode the public key
+ * to `A` for the scalar multiplication step before checking `sB = R + hA`.
  * @returns -1 if signature fails to verify, else return 0 if signature is good
  */
 export function crypto_verify_relaxed (s: StaticArray<u8>, M: StaticArray<u8>, A: ge_p3, pub: StaticArray<u8>): i32 {