From 55b44041817118d19db2d95adc2f9dcc7c8ef996 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 6 Sep 2026 02:33:02 -0700 Subject: [PATCH] Fix README examples. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.52.0