From: Chris Duncan Date: Sun, 6 Sep 2026 09:33:02 +0000 (-0700) Subject: Fix README examples. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=55b44041817118d19db2d95adc2f9dcc7c8ef996;p=nano25519.git Fix README examples. --- diff --git a/README.md b/README.md index 87b86a2..a0a43af 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ const pub = new Uint8Array(publicKeyBuffer); // `sig` is a signature for the message as a 128-character hexadecimal string const sig = nano25519.sign(msg, prv, pub); // clean up -sk.fill(0); +prv.fill(0); ``` ### Sign (strings) @@ -149,9 +149,9 @@ const pub = new Uint8Array(publicKeyBuffer); const sig = new Uint8Array(64); // return value is discarded, 64-byte signature is written to `sig` -nano25519.sign(msg, prv, pub); +nano25519.sign(msg, prv, pub, sig); // clean up -sk.fill(0); +prv.fill(0); ``` ### Verify (bytes)