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

3 months 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.

3 months 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.

3 months 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.

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

3 months 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

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

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

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

3 months 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.

3 months 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

8 months agoReattempt to fetch test vectors when online.
Chris Duncan [Sun, 22 Mar 2026 10:13:56 +0000 (03:13 -0700)]
Reattempt to fetch test vectors when online.

8 months agov1.0.0 v1.0.0
Chris Duncan [Sun, 22 Mar 2026 10:06:04 +0000 (03:06 -0700)]
v1.0.0

8 months agoUpdate description.
Chris Duncan [Sun, 22 Mar 2026 09:57:03 +0000 (02:57 -0700)]
Update description.

8 months agoFix tweetnacl comparison wrapper.
Chris Duncan [Sun, 22 Mar 2026 09:53:23 +0000 (02:53 -0700)]
Fix tweetnacl comparison wrapper.

8 months agoPolish for first release.
Chris Duncan [Sun, 22 Mar 2026 09:48:47 +0000 (02:48 -0700)]
Polish for first release.

Rename project for accuracy. Separate async/sync modules. Add tons of tests. Zero out memory when no longer needed. Reduce global static variables by using WASM linear memory directly.

8 months agoEnable variable-length messages up to 32 KiB.
Chris Duncan [Fri, 20 Mar 2026 22:11:04 +0000 (15:11 -0700)]
Enable variable-length messages up to 32 KiB.

Add dedicated buffer for sign/verify message data and refactor references to use length variables. Convert terminology from "block hash" to "message" to reflect new capabilities and document how Nano block hashes should be handled. Deprecate crypto_hash and instead use blake2b directly for streaming hash updates. Update test webpage and NodeJS test to use full set of test vectors from the Python ed25519-blake2b library. Update workers to transfer bytes instead of copying them, and always specify worker commands with the 'action' property.

8 months agoUpdate readme to reflect current API. Add node bundle to package definition. Document...
Chris Duncan [Thu, 19 Mar 2026 06:08:00 +0000 (23:08 -0700)]
Update readme to reflect current API. Add node bundle to package definition. Document libsodium authorship.

8 months agoAdd NodeJS support and update tests.
Chris Duncan [Wed, 18 Mar 2026 21:39:16 +0000 (14:39 -0700)]
Add NodeJS support and update tests.

Fix node worker construction, message handling, and parent port import.
Expand esbuild config functionality and build options.
Move test vectors to separate file, rename .env vector import, and add tests.