]> git.codecow.com Git - nano25519.git/commitdiff
Fix documentation of byte normalization.
authorChris Duncan <chris@codecow.com>
Fri, 9 Oct 2026 18:44:45 +0000 (11:44 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 9 Oct 2026 18:44:45 +0000 (11:44 -0700)
README.md
src/lib/primordials.ts

index fa0c75f8455560ba137b6f54e74278b28bdb7524..db48a0ae3b5a891c8f2c7b75ad9c1d0c7778b5e2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -64,11 +64,12 @@ import * as nano25519 from "nano25519";
 
 ## Usage
 
-Each primitive implementation is synchronous. Inputs can be passed as Uint8Array
-byte arrays, ArrayBuffers, or hexadecimal strings; `derive()` and `sign()`
-return a hexadecimal string. To receive bytes instead, pass a preallocated
-output buffer as an additional optional argument; the result bytes are written
-into it directly, and the return value is `undefined` instead of a string.
+Each primitive implementation is synchronous. Inputs can be passed as byte
+arrays using `Uint8Array<ArrayBuffer>` or as hexadecimal strings. `derive()` and
+`sign()` return the public key or signature respectively as a hexadecimal
+string. To receive bytes instead, pass a preallocated output buffer as an
+additional optional argument; the result bytes are written into it directly, and
+the return value is `undefined` instead of a string.
 
 ### Derive (bytes)
 
index bbfc930deb3d41e2a96fadfbd7ccbcf6982ccbdc..7cf991d9b897958a3d086e35e390e95db379ff34 100644 (file)
@@ -190,7 +190,7 @@ function hexToBytes (hex: string): Bytes {
 }
 /**
  * Accepts an unknown input; checks that it is a representation of bytes using a
- * hex string, ArrayBuffer, or Uint8Array; and validates that the byte length of
+ * hex string or Uint8Array<ArrayBuffer>; and validates that the byte length of
  * the value is within a specified range.
  *
  * @param {string} name Name of variable to be validated