]> git.codecow.com Git - nano25519.git/log
nano25519.git
2 days 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.

2 days 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.

2 days 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.

4 days 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.

4 days 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.

4 days 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.

4 days 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.

4 days 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.

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

4 days 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.

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

4 days 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.

4 days 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.

4 days 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.

4 days 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.

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

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

4 days 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.

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

4 days 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.

4 days 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.

4 days 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.

4 days 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.

4 days 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.

4 days 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.

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

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

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

5 days 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.

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

5 days 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.

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

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

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

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

5 days 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.

5 days 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.

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

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

5 days 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.

5 days 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.

5 days 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.

6 days 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.

6 days 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.

6 days 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.

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

7 days 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.

7 days 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.

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

7 days 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.

7 days 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.

7 days agoThrow on invalid output buffer immediately. Wrap signing to always zero key and buffer.
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.

7 days agoUse type guard to enable direct use of typechecked output 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.

8 days agoAdd output buffer support to sign function. Adjust variable names.
Chris Duncan [Wed, 12 Aug 2026 10:00:06 +0000 (03:00 -0700)]
Add output buffer support to sign function. Adjust variable names.

8 days agoUpdate and pin dependencies.
Chris Duncan [Wed, 12 Aug 2026 09:44:40 +0000 (02:44 -0700)]
Update and pin dependencies.

8 days agoMerge branch 'main' into next/out-buf
Chris Duncan [Wed, 12 Aug 2026 09:38:47 +0000 (02:38 -0700)]
Merge branch 'main' into next/out-buf

8 days agov1.0.8 main v1.0.8
Chris Duncan [Wed, 12 Aug 2026 09:31:47 +0000 (02:31 -0700)]
v1.0.8

8 days agoFix xfail tests.
Chris Duncan [Wed, 12 Aug 2026 09:28:58 +0000 (02:28 -0700)]
Fix xfail tests.

8 days agoRemove extraneous error logging,
Chris Duncan [Wed, 12 Aug 2026 09:21:29 +0000 (02:21 -0700)]
Remove extraneous error logging,

8 days agoStart writing test for signing to output buffer.
Chris Duncan [Wed, 12 Aug 2026 08:51:12 +0000 (01:51 -0700)]
Start writing test for signing to output buffer.

8 days agoAdd support for preallocated output buffer on sync derive calls.
Chris Duncan [Wed, 12 Aug 2026 08:42:58 +0000 (01:42 -0700)]
Add support for preallocated output buffer on sync derive calls.

6 weeks agov1.0.7 v1.0.7
Chris Duncan [Mon, 6 Jul 2026 07:34:15 +0000 (00:34 -0700)]
v1.0.7

6 weeks agoAdd negative tests for validation of bad byte inputs.
Chris Duncan [Mon, 6 Jul 2026 07:31:42 +0000 (00:31 -0700)]
Add negative tests for validation of bad byte inputs.

6 weeks agoAdd negative tests for validation of bad string inputs.
Chris Duncan [Mon, 6 Jul 2026 07:22:29 +0000 (00:22 -0700)]
Add negative tests for validation of bad string inputs.

6 weeks agoImprove regex matching.
Chris Duncan [Mon, 6 Jul 2026 07:20:21 +0000 (00:20 -0700)]
Improve regex matching.

7 weeks agov1.0.6 v1.0.6
Chris Duncan [Fri, 26 Jun 2026 21:52:14 +0000 (14:52 -0700)]
v1.0.6

7 weeks agoFix transaction ID validation.
Chris Duncan [Fri, 26 Jun 2026 21:50:27 +0000 (14:50 -0700)]
Fix transaction ID validation.

7 weeks agoMove async message data checks prior to execution.
Chris Duncan [Fri, 26 Jun 2026 21:50:13 +0000 (14:50 -0700)]
Move async message data checks prior to execution.

7 weeks agov1.0.5 v1.0.5
Chris Duncan [Fri, 26 Jun 2026 20:57:21 +0000 (13:57 -0700)]
v1.0.5

7 weeks agoMark specific package as external to avoid import attempt in browser.
Chris Duncan [Fri, 26 Jun 2026 20:55:36 +0000 (13:55 -0700)]
Mark specific package as external to avoid import attempt in browser.

7 weeks agoClear WASM buffers prior to returning from each call.
Chris Duncan [Fri, 26 Jun 2026 20:54:53 +0000 (13:54 -0700)]
Clear WASM buffers prior to returning from each call.

7 weeks agoLoad worker messaging for async module independently of sync module.
Chris Duncan [Fri, 26 Jun 2026 20:25:18 +0000 (13:25 -0700)]
Load worker messaging for async module independently of sync module.

2 months agov1.0.4 v1.0.4
Chris Duncan [Fri, 19 Jun 2026 06:53:48 +0000 (23:53 -0700)]
v1.0.4

2 months agoUpdate other libraries for speed comparison page.
Chris Duncan [Fri, 19 Jun 2026 06:41:01 +0000 (23:41 -0700)]
Update other libraries for speed comparison page.

2 months agoRevert type emission and copy with esbuild. Fix exports to make types available for...
Chris Duncan [Fri, 19 Jun 2026 06:34:31 +0000 (23:34 -0700)]
Revert type emission and copy with esbuild. Fix exports to make types available for test module.

2 months agoConsolidate labeled blocks used by esbuild.
Chris Duncan [Fri, 19 Jun 2026 06:25:30 +0000 (23:25 -0700)]
Consolidate labeled blocks used by esbuild.

2 months agoQueue async retry faster while waiting for Node host.
Chris Duncan [Fri, 19 Jun 2026 06:24:57 +0000 (23:24 -0700)]
Queue async retry faster while waiting for Node host.

2 months agoFix worker URL and ID assignments.
Chris Duncan [Fri, 19 Jun 2026 06:09:29 +0000 (23:09 -0700)]
Fix worker URL and ID assignments.

2 months agoUpdate dependencies and migrate to TypeScript 6. Fix Node built-in package references...
Chris Duncan [Thu, 18 Jun 2026 18:56:41 +0000 (11:56 -0700)]
Update dependencies and migrate to TypeScript 6. Fix Node built-in package references when building. Emit types directly to distribution directory.

2 months agoGet specific about Node host thread. Consolidate worker URL check in async implementa...
Chris Duncan [Thu, 18 Jun 2026 18:55:30 +0000 (11:55 -0700)]
Get specific about Node host thread. Consolidate worker URL check in async implementation.

2 months agoBundle in parallel, no need to await build steps.
Chris Duncan [Thu, 18 Jun 2026 14:12:30 +0000 (07:12 -0700)]
Bundle in parallel, no need to await build steps.

2 months agoRemove unused package from browser remapping.
Chris Duncan [Thu, 18 Jun 2026 14:11:08 +0000 (07:11 -0700)]
Remove unused package from browser remapping.

2 months agoUse URL and random UUID to uniquely identify each async call and prevent crosstalk...
Chris Duncan [Tue, 16 Jun 2026 22:53:11 +0000 (15:53 -0700)]
Use URL and random UUID to uniquely identify each async call and prevent crosstalk with other workers.

3 months agov1.0.3 v1.0.3
Chris Duncan [Thu, 14 May 2026 18:11:55 +0000 (11:11 -0700)]
v1.0.3

3 months agoAdd test to check invalid message lengths throw as expected.
Chris Duncan [Thu, 14 May 2026 18:08:30 +0000 (11:08 -0700)]
Add test to check invalid message lengths throw as expected.

3 months agoEnforce stronger type checks on async results. Rethrow errors encountered in async...
Chris Duncan [Thu, 14 May 2026 18:06:29 +0000 (11:06 -0700)]
Enforce stronger type checks on async results. Rethrow errors encountered in async worker.

3 months agoOverload async execution to narrow result typechecking more specifically based on...
Chris Duncan [Thu, 14 May 2026 18:03:34 +0000 (11:03 -0700)]
Overload async execution to narrow result typechecking more specifically based on function.

3 months agoThrow if hex input is an odd number of characters.
Chris Duncan [Thu, 14 May 2026 13:54:01 +0000 (06:54 -0700)]
Throw if hex input is an odd number of characters.

3 months agoRemove invalid error messaging.
Chris Duncan [Thu, 14 May 2026 13:42:47 +0000 (06:42 -0700)]
Remove invalid error messaging.

4 months agov1.0.2 v1.0.2
Chris Duncan [Wed, 15 Apr 2026 06:58:34 +0000 (23:58 -0700)]
v1.0.2

4 months agoUpdate changelog from prior releases and fix project homepage.
Chris Duncan [Wed, 15 Apr 2026 06:54:13 +0000 (23:54 -0700)]
Update changelog from prior releases and fix project homepage.

4 months agoFix regular expression anchoring.
Chris Duncan [Wed, 15 Apr 2026 06:50:36 +0000 (23:50 -0700)]
Fix regular expression anchoring.

4 months agoWhitespace.
Chris Duncan [Tue, 14 Apr 2026 07:23:58 +0000 (00:23 -0700)]
Whitespace.

4 months agoBasic styling.
Chris Duncan [Tue, 14 Apr 2026 07:22:49 +0000 (00:22 -0700)]
Basic styling.

4 months agoExplain how speed is calculated.
Chris Duncan [Tue, 14 Apr 2026 07:16:20 +0000 (00:16 -0700)]
Explain how speed is calculated.

4 months agoExtract test sequence into its own function and remove useless debug option.
Chris Duncan [Tue, 14 Apr 2026 06:38:49 +0000 (23:38 -0700)]
Extract test sequence into its own function and remove useless debug option.

4 months agoEnable testing only after successfully loading library and test vectors.
Chris Duncan [Mon, 23 Mar 2026 06:07:50 +0000 (23:07 -0700)]
Enable testing only after successfully loading library and test vectors.

4 months agoSimplify esbuild entry points for node build. Include source maps for typings.
Chris Duncan [Mon, 23 Mar 2026 05:46:51 +0000 (22:46 -0700)]
Simplify esbuild entry points for node build. Include source maps for typings.

4 months agov1.0.1 v1.0.1
Chris Duncan [Mon, 23 Mar 2026 05:32:33 +0000 (22:32 -0700)]
v1.0.1

4 months agoFix extra type emissions and exports.
Chris Duncan [Mon, 23 Mar 2026 05:29:56 +0000 (22:29 -0700)]
Fix extra type emissions and exports.

Update integration and input guidance in README.
Emit declarations to types directory. Use esbuild to copy specific type definitions. Move implementation file and delete duplicated exports. Expand on test vector authorship. Include unlicense for tweetnacl origins.