]> git.codecow.com Git - nano25519.git/log
nano25519.git
3 months agoUpdate doc comments.
Chris Duncan [Sat, 22 Aug 2026 06:40:19 +0000 (23:40 -0700)]
Update doc comments.

3 months agoUse constant for message length within wasm and clear it with the other buffers.
Chris Duncan [Sat, 22 Aug 2026 06:31:10 +0000 (23:31 -0700)]
Use constant for message length within wasm and clear it with the other buffers.

3 months agoRevert to retrieving message buffer directly in wasm since it is fully synchronous...
Chris Duncan [Sat, 22 Aug 2026 06:28:17 +0000 (23:28 -0700)]
Revert to retrieving message buffer directly in wasm since it is fully synchronous, has no re-entry points from host JS, and is never written but only read by Blake2b.

3 months agoClear buffers on message length error.
Chris Duncan [Sat, 22 Aug 2026 06:18:29 +0000 (23:18 -0700)]
Clear buffers on message length error.

3 months agoReuse constant for message size to avoid bugs.
Chris Duncan [Sat, 22 Aug 2026 06:16:41 +0000 (23:16 -0700)]
Reuse constant for message size to avoid bugs.

3 months agoFix input buffer size references.
Chris Duncan [Sat, 22 Aug 2026 06:15:16 +0000 (23:15 -0700)]
Fix input buffer size references.

3 months agoSimplify base point pointer increment.
Chris Duncan [Fri, 21 Aug 2026 22:06:06 +0000 (15:06 -0700)]
Simplify base point pointer increment.

3 months agoMove base pointer out of move function entirely.
Chris Duncan [Fri, 21 Aug 2026 22:04:44 +0000 (15:04 -0700)]
Move base pointer out of move function entirely.

3 months agoUnroll hot path again.
Chris Duncan [Fri, 21 Aug 2026 21:59:44 +0000 (14:59 -0700)]
Unroll hot path again.

3 months agoReformat for const usage.
Chris Duncan [Fri, 21 Aug 2026 21:50:54 +0000 (14:50 -0700)]
Reformat for const usage.

3 months agoOverload conditional move of FieldElements for cleaner memory access.
Chris Duncan [Fri, 21 Aug 2026 21:38:41 +0000 (14:38 -0700)]
Overload conditional move of FieldElements for cleaner memory access.

3 months agoRename scratchpad to be more relevant.
Chris Duncan [Fri, 21 Aug 2026 21:32:46 +0000 (14:32 -0700)]
Rename scratchpad to be more relevant.

3 months agoEliminate redundant memory copy calls.
Chris Duncan [Fri, 21 Aug 2026 21:27:04 +0000 (14:27 -0700)]
Eliminate redundant memory copy calls.

3 months agoSort imports.
Chris Duncan [Fri, 21 Aug 2026 21:20:44 +0000 (14:20 -0700)]
Sort imports.

3 months agoEliminate memcpy in loop.
Chris Duncan [Fri, 21 Aug 2026 20:46:44 +0000 (13:46 -0700)]
Eliminate memcpy in loop.

3 months agoCopy field elements by passing pointers instead of objects.
Chris Duncan [Fri, 21 Aug 2026 20:32:29 +0000 (13:32 -0700)]
Copy field elements by passing pointers instead of objects.

3 months agoReduce down to one scratch object for base point arithmetic.
Chris Duncan [Fri, 21 Aug 2026 20:25:47 +0000 (13:25 -0700)]
Reduce down to one scratch object for base point arithmetic.

3 months agoReuse one ge for base point arithmetic.
Chris Duncan [Fri, 21 Aug 2026 20:17:51 +0000 (13:17 -0700)]
Reuse one ge for base point arithmetic.

3 months agoEliminate intermediate base copy.
Chris Duncan [Fri, 21 Aug 2026 20:14:43 +0000 (13:14 -0700)]
Eliminate intermediate base copy.

3 months agoReduce initial module memory with base point changes.
Chris Duncan [Fri, 21 Aug 2026 20:12:01 +0000 (13:12 -0700)]
Reduce initial module memory with base point changes.

3 months agoReduce base point size further by allocating it directly instead of including StaticA...
Chris Duncan [Fri, 21 Aug 2026 20:07:30 +0000 (13:07 -0700)]
Reduce base point size further by allocating it directly instead of including StaticArray headers.

3 months agoEliminate base buffer pointer computation entirely and use loop counter to avoid...
Chris Duncan [Fri, 21 Aug 2026 19:29:01 +0000 (12:29 -0700)]
Eliminate base buffer pointer computation entirely and use loop counter to avoid multiplication.

3 months agoRemove pointer arithmetic from base point entirely and put it in ge function.
Chris Duncan [Fri, 21 Aug 2026 19:24:56 +0000 (12:24 -0700)]
Remove pointer arithmetic from base point entirely and put it in ge function.

3 months agoFix base copy destination buffer size, and cast to i8 only when necessary.
Chris Duncan [Fri, 21 Aug 2026 19:18:46 +0000 (12:18 -0700)]
Fix base copy destination buffer size, and cast to i8 only when necessary.

3 months agoReturn pointer into base buffer instead of constructing new objects, and use pointer...
Chris Duncan [Fri, 21 Aug 2026 19:06:35 +0000 (12:06 -0700)]
Return pointer into base buffer instead of constructing new objects, and use pointer to copy memory one ge_precomp at a time.

3 months agoLoop over cmov to simplify for upcoming base accessor pattern change.
Chris Duncan [Fri, 21 Aug 2026 18:27:19 +0000 (11:27 -0700)]
Loop over cmov to simplify for upcoming base accessor pattern change.

3 months agoNaming convention.
Chris Duncan [Fri, 21 Aug 2026 17:42:59 +0000 (10:42 -0700)]
Naming convention.

3 months agoMerge single-use function into caller.
Chris Duncan [Fri, 21 Aug 2026 17:32:29 +0000 (10:32 -0700)]
Merge single-use function into caller.

3 months agoFlatten base point completely and retrieve values with offsets alone.
Chris Duncan [Fri, 21 Aug 2026 17:20:41 +0000 (10:20 -0700)]
Flatten base point completely and retrieve values with offsets alone.

3 months agoCombine base point elements into single buffer per ge_precomp.
Chris Duncan [Fri, 21 Aug 2026 15:08:41 +0000 (08:08 -0700)]
Combine base point elements into single buffer per ge_precomp.

3 months agoFurther flatten base point by constructing ge_precomp elements on the fly.
Chris Duncan [Fri, 21 Aug 2026 14:59:38 +0000 (07:59 -0700)]
Further flatten base point by constructing ge_precomp elements on the fly.

3 months agoMove base2 out of base to avoid modifying it at this time since it is relatively...
Chris Duncan [Fri, 21 Aug 2026 14:42:15 +0000 (07:42 -0700)]
Move base2 out of base to avoid modifying it at this time since it is relatively small.

3 months agoDecouple precomputed group element from base point return value.
Chris Duncan [Fri, 21 Aug 2026 14:19:24 +0000 (07:19 -0700)]
Decouple precomputed group element from base point return value.

3 months agoFlatten base point nested arrays into one StaticArray.
Chris Duncan [Fri, 21 Aug 2026 14:17:34 +0000 (07:17 -0700)]
Flatten base point nested arrays into one StaticArray.

3 months agoStart migrating to flatter base point by decoupling access from data.
Chris Duncan [Fri, 21 Aug 2026 13:14:39 +0000 (06:14 -0700)]
Start migrating to flatter base point by decoupling access from data.

3 months agoPad base point to align with FieldElement as documented.
Chris Duncan [Thu, 20 Aug 2026 22:22:31 +0000 (15:22 -0700)]
Pad base point to align with FieldElement as documented.

3 months agoFlatten base point to allocate StaticArrays directly so the FieldElement constructor...
Chris Duncan [Thu, 20 Aug 2026 22:18:19 +0000 (15:18 -0700)]
Flatten base point to allocate StaticArrays directly so the FieldElement constructor Array leak can be fixed.

3 months agoUse real math symbols in comments for legibility.
Chris Duncan [Thu, 20 Aug 2026 06:52:59 +0000 (23:52 -0700)]
Use real math symbols in comments for legibility.

3 months agoDeclare I/O buffers as StaticArray for memory safety. Set memory with live value...
Chris Duncan [Thu, 20 Aug 2026 04:20:49 +0000 (21:20 -0700)]
Declare I/O buffers as StaticArray for memory safety. Set memory with live value instead of ignored export.

3 months agoRemove other unused WASM export.
Chris Duncan [Thu, 20 Aug 2026 00:12:52 +0000 (17:12 -0700)]
Remove other unused WASM export.

3 months agoRemove unused WASM export.
Chris Duncan [Thu, 20 Aug 2026 00:11:55 +0000 (17:11 -0700)]
Remove unused WASM export.

3 months agoFormatting.
Chris Duncan [Thu, 20 Aug 2026 00:10:51 +0000 (17:10 -0700)]
Formatting.

3 months agoPromote primitives to top-level module functions.
Chris Duncan [Thu, 20 Aug 2026 00:08:38 +0000 (17:08 -0700)]
Promote primitives to top-level module functions.

3 months agoSplit async host and worker into separate files and export worker as string with...
Chris Duncan [Thu, 20 Aug 2026 00:04:42 +0000 (17:04 -0700)]
Split async host and worker into separate files and export worker as string with esbuid.

3 months agoAdjust variable names now that primitives are module-scoped. Copy parameters locally...
Chris Duncan [Wed, 19 Aug 2026 23:40:04 +0000 (16:40 -0700)]
Adjust variable names now that primitives are module-scoped. Copy parameters locally in derive to free buffer. Fill output buffer in verify for consistency between calls.

3 months agoExtract crypto functions from API definition file.
Chris Duncan [Wed, 19 Aug 2026 23:24:38 +0000 (16:24 -0700)]
Extract crypto functions from API definition file.

3 months agoRemove unused array and update documentation.
Chris Duncan [Wed, 19 Aug 2026 23:16:58 +0000 (16:16 -0700)]
Remove unused array and update documentation.

3 months agoRefactor primitives to align with RFC 8032.
Chris Duncan [Tue, 18 Aug 2026 06:43:44 +0000 (23:43 -0700)]
Refactor primitives to align with RFC 8032.

3 months agoStart updating Blake usage
Chris Duncan [Mon, 17 Aug 2026 20:39:48 +0000 (13:39 -0700)]
Start updating Blake usage

3 months agoHash from arrays which are passed as pointers not objects.
Chris Duncan [Mon, 17 Aug 2026 20:35:32 +0000 (13:35 -0700)]
Hash from arrays which are passed as pointers not objects.

3 months agoSpecify buffer sizes for clarity in implementation.
Chris Duncan [Mon, 17 Aug 2026 15:55:07 +0000 (08:55 -0700)]
Specify buffer sizes for clarity in implementation.

3 months agoChange WASM buffer view to Uint8Array since we don't need endianness features of...
Chris Duncan [Mon, 17 Aug 2026 15:46:03 +0000 (08:46 -0700)]
Change WASM buffer view to Uint8Array since we don't need endianness features of DataView. Reduce input buffer size to maximum needed and minimum required for verify() signature and public key.

3 months agoTest offset buffers with exact matches against untouched ranges.
Chris Duncan [Sun, 16 Aug 2026 10:32:44 +0000 (03:32 -0700)]
Test offset buffers with exact matches against untouched ranges.

3 months agoFix offset buffer tests to correctly target offsets including 0.
Chris Duncan [Sun, 16 Aug 2026 10:08:30 +0000 (03:08 -0700)]
Fix offset buffer tests to correctly target offsets including 0.

3 months agoAdjust buffer offset tests and remove unused function.
Chris Duncan [Sun, 16 Aug 2026 09:44:07 +0000 (02:44 -0700)]
Adjust buffer offset tests and remove unused function.

3 months agoReturn straightforward 0 or -1 from verify instead of handling buffer output.
Chris Duncan [Sun, 16 Aug 2026 09:22:04 +0000 (02:22 -0700)]
Return straightforward 0 or -1 from verify instead of handling buffer output.

3 months agoFix transfer of full buffer instead of just array view.
Chris Duncan [Sun, 16 Aug 2026 08:56:20 +0000 (01:56 -0700)]
Fix transfer of full buffer instead of just array view.

3 months agoDocument expected output.
Chris Duncan [Sun, 16 Aug 2026 08:41:22 +0000 (01:41 -0700)]
Document expected output.

3 months agoExpand to signed int to return -1 as libsodium instead of 255.
Chris Duncan [Sun, 16 Aug 2026 07:09:49 +0000 (00:09 -0700)]
Expand to signed int to return -1 as libsodium instead of 255.

3 months agoFix truncation in bit shift.
Chris Duncan [Sun, 16 Aug 2026 07:09:11 +0000 (00:09 -0700)]
Fix truncation in bit shift.

3 months agoTransfer data to worker if passed as buffer instead of just byte array.
Chris Duncan [Sun, 16 Aug 2026 06:53:08 +0000 (23:53 -0700)]
Transfer data to worker if passed as buffer instead of just byte array.

3 months agoFix similar issue with asc bit shift operand masking when checking canonicity.
Chris Duncan [Sun, 16 Aug 2026 05:54:12 +0000 (22:54 -0700)]
Fix similar issue with asc bit shift operand masking when checking canonicity.

3 months agoFix constant time zero check that was incorrect due to AssemblyScript shift operand...
Chris Duncan [Sun, 16 Aug 2026 05:48:43 +0000 (22:48 -0700)]
Fix constant time zero check that was incorrect due to AssemblyScript shift operand masking.

3 months agoLog more helpful info on wasm error.
Chris Duncan [Sun, 16 Aug 2026 05:47:59 +0000 (22:47 -0700)]
Log more helpful info on wasm error.

3 months agoFix test label.
Chris Duncan [Sat, 15 Aug 2026 22:09:05 +0000 (15:09 -0700)]
Fix test label.

3 months agoFix wording on problem vector.
Chris Duncan [Sat, 15 Aug 2026 21:41:04 +0000 (14:41 -0700)]
Fix wording on problem vector.

3 months agoReduce form on division by shift.
Chris Duncan [Sat, 15 Aug 2026 20:56:36 +0000 (13:56 -0700)]
Reduce form on division by shift.

3 months agoDeprecate global pointless in WASM.
Chris Duncan [Sat, 15 Aug 2026 20:53:03 +0000 (13:53 -0700)]
Deprecate global pointless in WASM.

3 months agoAdd integrity hashes to imported packages and revert nanocurrency-web to its own...
Chris Duncan [Sat, 15 Aug 2026 20:49:47 +0000 (13:49 -0700)]
Add integrity hashes to imported packages and revert nanocurrency-web to its own script since it works by polluting the global namespace.

3 months agoLoad packages with import map instead of dynamic import.
Chris Duncan [Sat, 15 Aug 2026 20:16:11 +0000 (13:16 -0700)]
Load packages with import map instead of dynamic import.

3 months agoClear worker starting promise on failure path.
Chris Duncan [Sat, 15 Aug 2026 19:47:48 +0000 (12:47 -0700)]
Clear worker starting promise on failure path.

3 months agoReject all pending tasks when worker resets.
Chris Duncan [Sat, 15 Aug 2026 19:44:48 +0000 (12:44 -0700)]
Reject all pending tasks when worker resets.

3 months agoDiscard nonce prefix `z` as sensitive material unnecessary for public key derivation...
Chris Duncan [Sat, 15 Aug 2026 19:29:13 +0000 (12:29 -0700)]
Discard nonce prefix `z` as sensitive material unnecessary for public key derivation. Document reason for clamping scalar.

3 months agoAdd missing type import and document a bit of context.
Chris Duncan [Sat, 15 Aug 2026 18:32:01 +0000 (11:32 -0700)]
Add missing type import and document a bit of context.

3 months agoAdjust errors and logging.
Chris Duncan [Sat, 15 Aug 2026 10:08:10 +0000 (03:08 -0700)]
Adjust errors and logging.

3 months agoAdjust function name.
Chris Duncan [Sat, 15 Aug 2026 10:02:01 +0000 (03:02 -0700)]
Adjust function name.

3 months agoSimplify errors from worker listener.
Chris Duncan [Sat, 15 Aug 2026 10:01:14 +0000 (03:01 -0700)]
Simplify errors from worker listener.

3 months agoFix WASM error message that varies between browsers.
Chris Duncan [Sat, 15 Aug 2026 09:52:02 +0000 (02:52 -0700)]
Fix WASM error message that varies between browsers.

3 months agoType adjustment.
Chris Duncan [Sat, 15 Aug 2026 09:50:42 +0000 (02:50 -0700)]
Type adjustment.

3 months agoDeprecate complicated worker state management and just determine if it's listening...
Chris Duncan [Sat, 15 Aug 2026 09:47:47 +0000 (02:47 -0700)]
Deprecate complicated worker state management and just determine if it's listening. Restore test webpage checks.

3 months agoRemove extraneous tests.
Chris Duncan [Sat, 15 Aug 2026 07:57:59 +0000 (00:57 -0700)]
Remove extraneous tests.

3 months agoFix output buffer copy.
Chris Duncan [Sat, 15 Aug 2026 07:57:46 +0000 (00:57 -0700)]
Fix output buffer copy.

3 months agoFix output buffer population.
Chris Duncan [Sat, 15 Aug 2026 07:38:09 +0000 (00:38 -0700)]
Fix output buffer population.

3 months agoEliminate redundant buffer clearing.
Chris Duncan [Sat, 15 Aug 2026 07:08:13 +0000 (00:08 -0700)]
Eliminate redundant buffer clearing.

3 months agoUpdate overloads and README examples with output buffer functionality.
Chris Duncan [Sat, 15 Aug 2026 07:06:26 +0000 (00:06 -0700)]
Update overloads and README examples with output buffer functionality.

3 months agoStart refactoring worker to simplify setup and teardown.
Chris Duncan [Sat, 15 Aug 2026 00:39:06 +0000 (17:39 -0700)]
Start refactoring worker to simplify setup and teardown.

3 months agoFix result listener.
Chris Duncan [Fri, 14 Aug 2026 23:41:14 +0000 (16:41 -0700)]
Fix result listener.

3 months agoMove constant into constants file.
Chris Duncan [Fri, 14 Aug 2026 23:38:03 +0000 (16:38 -0700)]
Move constant into constants file.

3 months agoAvoid writing seed to output buffer of derive since the private key bytes are discard...
Chris Duncan [Fri, 14 Aug 2026 23:29:17 +0000 (16:29 -0700)]
Avoid writing seed to output buffer of derive since the private key bytes are discarded by JS caller anyway.

3 months agoAdd tests for output buffers larger than necessary but still offset by 0.
Chris Duncan [Fri, 14 Aug 2026 23:21:06 +0000 (16:21 -0700)]
Add tests for output buffers larger than necessary but still offset by 0.

3 months agoAdd confirmed block from problematic account to check verification aligns with Nano...
Chris Duncan [Fri, 14 Aug 2026 21:26:08 +0000 (14:26 -0700)]
Add confirmed block from problematic account to check verification aligns with Nano node implementation, which it currently does not.

3 months agoFix buffer clearing way beyond its range.
Chris Duncan [Fri, 14 Aug 2026 05:26:46 +0000 (22:26 -0700)]
Fix buffer clearing way beyond its range.

3 months agoPin package version in example code.
Chris Duncan [Fri, 14 Aug 2026 05:01:58 +0000 (22:01 -0700)]
Pin package version in example code.

3 months agoClean up existing worker blob if it already exists before creating anew.
Chris Duncan [Fri, 14 Aug 2026 05:01:14 +0000 (22:01 -0700)]
Clean up existing worker blob if it already exists before creating anew.

3 months agoFix buffer clearing overlapping bytes.
Chris Duncan [Fri, 14 Aug 2026 04:58:33 +0000 (21:58 -0700)]
Fix buffer clearing overlapping bytes.

3 months agoPrint error strings from WASM data.
Chris Duncan [Thu, 13 Aug 2026 07:41:28 +0000 (00:41 -0700)]
Print error strings from WASM data.

3 months agoDo not fill sk which does not belong to this function, it's filled by caller.
Chris Duncan [Thu, 13 Aug 2026 07:04:27 +0000 (00:04 -0700)]
Do not fill sk which does not belong to this function, it's filled by caller.

3 months agoExtract worker to separate file.
Chris Duncan [Thu, 13 Aug 2026 06:06:43 +0000 (23:06 -0700)]
Extract worker to separate file.

3 months agoRefactor async worker to avoid overwriting message handler, simplify dispatch, and...
Chris Duncan [Thu, 13 Aug 2026 06:02:22 +0000 (23:02 -0700)]
Refactor async worker to avoid overwriting message handler, simplify dispatch, and narrow return cases.

3 months agoAdd success and failure tests for output buffer arguments.
Chris Duncan [Thu, 13 Aug 2026 04:45:34 +0000 (21:45 -0700)]
Add success and failure tests for output buffer arguments.