From 74acc9a14226593725cc4686d4b0650bbf295ac9 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 26 Sep 2026 01:37:19 -0700 Subject: [PATCH] Fix Uint32Array length. --- src/lib/primordials.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/primordials.ts b/src/lib/primordials.ts index 6c67d63..b85fe56 100644 --- a/src/lib/primordials.ts +++ b/src/lib/primordials.ts @@ -147,7 +147,7 @@ export function words (bytes: Bytes): Words { if (offset !== 0) { throw new Nano25519RangeError('Unexpected byte offset', { cause: offset }) } - return new Words(bytes.buffer, 0, getByteLength.call(bytes)) + return new Words(bytes.buffer, 0, getByteLength.call(bytes) >> 2) } const LOWER = '0123456789abcdef' -- 2.52.0