]>
git.codecow.com Git - nano25519.git/log
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.
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.
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.
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.
Chris Duncan [Fri, 21 Aug 2026 18:27:19 +0000 (11:27 -0700)]
Loop over cmov to simplify for upcoming base accessor pattern change.
Chris Duncan [Fri, 21 Aug 2026 17:42:59 +0000 (10:42 -0700)]
Naming convention.
Chris Duncan [Fri, 21 Aug 2026 17:32:29 +0000 (10:32 -0700)]
Merge single-use function into caller.
Chris Duncan [Fri, 21 Aug 2026 17:20:41 +0000 (10:20 -0700)]
Flatten base point completely and retrieve values with offsets alone.
Chris Duncan [Fri, 21 Aug 2026 15:08:41 +0000 (08:08 -0700)]
Combine base point elements into single buffer per ge_precomp.
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.
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.
Chris Duncan [Fri, 21 Aug 2026 14:19:24 +0000 (07:19 -0700)]
Decouple precomputed group element from base point return value.
Chris Duncan [Fri, 21 Aug 2026 14:17:34 +0000 (07:17 -0700)]
Flatten base point nested arrays into one StaticArray.
Chris Duncan [Fri, 21 Aug 2026 13:14:39 +0000 (06:14 -0700)]
Start migrating to flatter base point by decoupling access from data.
Chris Duncan [Thu, 20 Aug 2026 22:22:31 +0000 (15:22 -0700)]
Pad base point to align with FieldElement as documented.
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.
Chris Duncan [Thu, 20 Aug 2026 06:52:59 +0000 (23:52 -0700)]
Use real math symbols in comments for legibility.
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.
Chris Duncan [Thu, 20 Aug 2026 00:12:52 +0000 (17:12 -0700)]
Remove other unused WASM export.
Chris Duncan [Thu, 20 Aug 2026 00:11:55 +0000 (17:11 -0700)]
Remove unused WASM export.
Chris Duncan [Thu, 20 Aug 2026 00:10:51 +0000 (17:10 -0700)]
Formatting.
Chris Duncan [Thu, 20 Aug 2026 00:08:38 +0000 (17:08 -0700)]
Promote primitives to top-level module functions.
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.
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.
Chris Duncan [Wed, 19 Aug 2026 23:24:38 +0000 (16:24 -0700)]
Extract crypto functions from API definition file.
Chris Duncan [Wed, 19 Aug 2026 23:16:58 +0000 (16:16 -0700)]
Remove unused array and update documentation.
Chris Duncan [Tue, 18 Aug 2026 06:43:44 +0000 (23:43 -0700)]
Refactor primitives to align with RFC 8032.
Chris Duncan [Mon, 17 Aug 2026 20:39:48 +0000 (13:39 -0700)]
Start updating Blake usage
Chris Duncan [Mon, 17 Aug 2026 20:35:32 +0000 (13:35 -0700)]
Hash from arrays which are passed as pointers not objects.
Chris Duncan [Mon, 17 Aug 2026 15:55:07 +0000 (08:55 -0700)]
Specify buffer sizes for clarity in implementation.
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.
Chris Duncan [Sun, 16 Aug 2026 10:32:44 +0000 (03:32 -0700)]
Test offset buffers with exact matches against untouched ranges.
Chris Duncan [Sun, 16 Aug 2026 10:08:30 +0000 (03:08 -0700)]
Fix offset buffer tests to correctly target offsets including 0.
Chris Duncan [Sun, 16 Aug 2026 09:44:07 +0000 (02:44 -0700)]
Adjust buffer offset tests and remove unused function.
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.
Chris Duncan [Sun, 16 Aug 2026 08:56:20 +0000 (01:56 -0700)]
Fix transfer of full buffer instead of just array view.
Chris Duncan [Sun, 16 Aug 2026 08:41:22 +0000 (01:41 -0700)]
Document expected output.
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.
Chris Duncan [Sun, 16 Aug 2026 07:09:11 +0000 (00:09 -0700)]
Fix truncation in bit shift.
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.
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.
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.
Chris Duncan [Sun, 16 Aug 2026 05:47:59 +0000 (22:47 -0700)]
Log more helpful info on wasm error.
Chris Duncan [Sat, 15 Aug 2026 22:09:05 +0000 (15:09 -0700)]
Fix test label.
Chris Duncan [Sat, 15 Aug 2026 21:41:04 +0000 (14:41 -0700)]
Fix wording on problem vector.
Chris Duncan [Sat, 15 Aug 2026 20:56:36 +0000 (13:56 -0700)]
Reduce form on division by shift.
Chris Duncan [Sat, 15 Aug 2026 20:53:03 +0000 (13:53 -0700)]
Deprecate global pointless in WASM.
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.
Chris Duncan [Sat, 15 Aug 2026 20:16:11 +0000 (13:16 -0700)]
Load packages with import map instead of dynamic import.
Chris Duncan [Sat, 15 Aug 2026 19:47:48 +0000 (12:47 -0700)]
Clear worker starting promise on failure path.
Chris Duncan [Sat, 15 Aug 2026 19:44:48 +0000 (12:44 -0700)]
Reject all pending tasks when worker resets.
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.
Chris Duncan [Sat, 15 Aug 2026 18:32:01 +0000 (11:32 -0700)]
Add missing type import and document a bit of context.
Chris Duncan [Sat, 15 Aug 2026 10:08:10 +0000 (03:08 -0700)]
Adjust errors and logging.
Chris Duncan [Sat, 15 Aug 2026 10:02:01 +0000 (03:02 -0700)]
Adjust function name.
Chris Duncan [Sat, 15 Aug 2026 10:01:14 +0000 (03:01 -0700)]
Simplify errors from worker listener.
Chris Duncan [Sat, 15 Aug 2026 09:52:02 +0000 (02:52 -0700)]
Fix WASM error message that varies between browsers.
Chris Duncan [Sat, 15 Aug 2026 09:50:42 +0000 (02:50 -0700)]
Type adjustment.
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.
Chris Duncan [Sat, 15 Aug 2026 07:57:59 +0000 (00:57 -0700)]
Remove extraneous tests.
Chris Duncan [Sat, 15 Aug 2026 07:57:46 +0000 (00:57 -0700)]
Fix output buffer copy.
Chris Duncan [Sat, 15 Aug 2026 07:38:09 +0000 (00:38 -0700)]
Fix output buffer population.
Chris Duncan [Sat, 15 Aug 2026 07:08:13 +0000 (00:08 -0700)]
Eliminate redundant buffer clearing.
Chris Duncan [Sat, 15 Aug 2026 07:06:26 +0000 (00:06 -0700)]
Update overloads and README examples with output buffer functionality.
Chris Duncan [Sat, 15 Aug 2026 00:39:06 +0000 (17:39 -0700)]
Start refactoring worker to simplify setup and teardown.
Chris Duncan [Fri, 14 Aug 2026 23:41:14 +0000 (16:41 -0700)]
Fix result listener.
Chris Duncan [Fri, 14 Aug 2026 23:38:03 +0000 (16:38 -0700)]
Move constant into constants file.
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.
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.
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.
Chris Duncan [Fri, 14 Aug 2026 05:26:46 +0000 (22:26 -0700)]
Fix buffer clearing way beyond its range.
Chris Duncan [Fri, 14 Aug 2026 05:01:58 +0000 (22:01 -0700)]
Pin package version in example code.
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.
Chris Duncan [Fri, 14 Aug 2026 04:58:33 +0000 (21:58 -0700)]
Fix buffer clearing overlapping bytes.
Chris Duncan [Thu, 13 Aug 2026 07:41:28 +0000 (00:41 -0700)]
Print error strings from WASM data.
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.
Chris Duncan [Thu, 13 Aug 2026 06:06:43 +0000 (23:06 -0700)]
Extract worker to separate file.
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.
Chris Duncan [Thu, 13 Aug 2026 04:45:34 +0000 (21:45 -0700)]
Add success and failure tests for output buffer arguments.
Chris Duncan [Thu, 13 Aug 2026 04:44:49 +0000 (21:44 -0700)]
Throw on invalid output buffer immediately. Wrap signing to always zero key and buffer.
Chris Duncan [Thu, 13 Aug 2026 04:27:52 +0000 (21:27 -0700)]
Use type guard to enable direct use of typechecked output buffer.
Chris Duncan [Wed, 12 Aug 2026 10:00:06 +0000 (03:00 -0700)]
Add output buffer support to sign function. Adjust variable names.
Chris Duncan [Wed, 12 Aug 2026 09:44:40 +0000 (02:44 -0700)]
Update and pin dependencies.
Chris Duncan [Wed, 12 Aug 2026 09:38:47 +0000 (02:38 -0700)]
Merge branch 'main' into next/out-buf
Chris Duncan [Wed, 12 Aug 2026 09:31:47 +0000 (02:31 -0700)]
v1.0.8
Chris Duncan [Wed, 12 Aug 2026 09:28:58 +0000 (02:28 -0700)]
Fix xfail tests.
Chris Duncan [Wed, 12 Aug 2026 09:21:29 +0000 (02:21 -0700)]
Remove extraneous error logging,
Chris Duncan [Wed, 12 Aug 2026 08:51:12 +0000 (01:51 -0700)]
Start writing test for signing to output buffer.
Chris Duncan [Wed, 12 Aug 2026 08:42:58 +0000 (01:42 -0700)]
Add support for preallocated output buffer on sync derive calls.
Chris Duncan [Mon, 6 Jul 2026 07:34:15 +0000 (00:34 -0700)]
v1.0.7
Chris Duncan [Mon, 6 Jul 2026 07:31:42 +0000 (00:31 -0700)]
Add negative tests for validation of bad byte inputs.
Chris Duncan [Mon, 6 Jul 2026 07:22:29 +0000 (00:22 -0700)]
Add negative tests for validation of bad string inputs.
Chris Duncan [Mon, 6 Jul 2026 07:20:21 +0000 (00:20 -0700)]
Improve regex matching.
Chris Duncan [Fri, 26 Jun 2026 21:52:14 +0000 (14:52 -0700)]
v1.0.6
Chris Duncan [Fri, 26 Jun 2026 21:50:27 +0000 (14:50 -0700)]
Fix transaction ID validation.
Chris Duncan [Fri, 26 Jun 2026 21:50:13 +0000 (14:50 -0700)]
Move async message data checks prior to execution.
Chris Duncan [Fri, 26 Jun 2026 20:57:21 +0000 (13:57 -0700)]
v1.0.5
Chris Duncan [Fri, 26 Jun 2026 20:55:36 +0000 (13:55 -0700)]
Mark specific package as external to avoid import attempt in browser.
Chris Duncan [Fri, 26 Jun 2026 20:54:53 +0000 (13:54 -0700)]
Clear WASM buffers prior to returning from each call.
Chris Duncan [Fri, 26 Jun 2026 20:25:18 +0000 (13:25 -0700)]
Load worker messaging for async module independently of sync module.