]> git.codecow.com Git - nano25519.git/log
nano25519.git
10 days agoEnable testing only after successfully loading library and test vectors. main
Chris Duncan [Mon, 23 Mar 2026 06:07:50 +0000 (23:07 -0700)]
Enable testing only after successfully loading library and test vectors.

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

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

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

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

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

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

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

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

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

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

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

2 weeks agoRefactor API.
Chris Duncan [Tue, 17 Mar 2026 20:47:27 +0000 (13:47 -0700)]
Refactor API.

Refactor host code to compile synchronously, return both sync and async functions, merge trace logging function into wasm env, refactor worker listening process, add type checks to worker message parsing, and emit type definitions.
Update testing page to add NanoNaCl to global context in test page to enable testing ad hoc commands, add tests for sync functions using byte arrays, add pause when starting each test run to allow DOM to repaint status text, and always run self-check.
Rename main assembly file.
Improve documentation and reorganize functions.
Update dependencies.

2 weeks agoRefactor field element multiplication hot paths.
Chris Duncan [Mon, 16 Mar 2026 20:57:59 +0000 (13:57 -0700)]
Refactor field element multiplication hot paths.

3 weeks agoReaquire WASM memory buffer before reading results, and investigate why memory is...
Chris Duncan [Sat, 7 Mar 2026 07:44:58 +0000 (23:44 -0800)]
Reaquire WASM memory buffer before reading results, and investigate why memory is growing in the first place.

3 weeks agoRefactor from tweetnacl 16x16 radix limbs to libsodium 10x25.5-bit radix limb impleme...
Chris Duncan [Sat, 7 Mar 2026 07:37:59 +0000 (23:37 -0800)]
Refactor from tweetnacl 16x16 radix limbs to libsodium 10x25.5-bit radix limb implementation to gain massive speed boost with precomputed base point table.

4 weeks agodebug
Chris Duncan [Thu, 5 Mar 2026 14:56:51 +0000 (06:56 -0800)]
debug

4 weeks agoFix input type generics.
Chris Duncan [Thu, 5 Mar 2026 14:52:37 +0000 (06:52 -0800)]
Fix input type generics.

4 weeks agoFinal preradix-25 refactor.
Chris Duncan [Wed, 4 Mar 2026 22:40:44 +0000 (14:40 -0800)]
Final preradix-25 refactor.

Reorder verify parameters to align with libsodium. Refactor point classes. Add field element functions, group element functions, and scalar functions to support radix 25 migration. Replace tweetnacl modL function with libsodium scalar functions. Clean up variable names and documentation comments.

4 weeks agoRename some host code variables to reduce esbuild collision detection.
Chris Duncan [Tue, 3 Mar 2026 14:56:02 +0000 (06:56 -0800)]
Rename some host code variables to reduce esbuild collision detection.

4 weeks agoSet up for migration to 10x25 radix implementation.
Chris Duncan [Tue, 3 Mar 2026 07:53:32 +0000 (23:53 -0800)]
Set up for migration to 10x25 radix implementation.

Split Blake2b hashing, field element arithmetic, and group element functions into separate files and import to main. Add precomputed base point products and other constants from libsodium. Rename public key derivation internal function for consistency.

4 weeks agoPointers, vectors, and doubling.
Chris Duncan [Fri, 27 Feb 2026 08:03:35 +0000 (00:03 -0800)]
Pointers, vectors, and doubling.

Use pointers for field element constants and simplify scalarbase copy setup. Implement point doubling function. Vectorize selection logic and use built-in for swapping bits. Tweak error handling, maybe fix liftString at some point. Use immediate offsets instead of pointer arithmetic where possible. Pass pointers directly to scalarmult, add, and cswap.

5 weeks agoAdd libsodium to test comparisons.
Chris Duncan [Thu, 26 Feb 2026 03:31:25 +0000 (19:31 -0800)]
Add libsodium to test comparisons.

5 weeks agoRemove debug logging.
Chris Duncan [Wed, 25 Feb 2026 23:17:23 +0000 (15:17 -0800)]
Remove debug logging.

5 weeks agoAdd check for canonical scalar S from signature.
Chris Duncan [Wed, 25 Feb 2026 23:16:19 +0000 (15:16 -0800)]
Add check for canonical scalar S from signature.

5 weeks agoOverhaul module to use static buffers to prevent memory leaks, 32-bit limbs to accele...
Chris Duncan [Wed, 25 Feb 2026 22:31:34 +0000 (14:31 -0800)]
Overhaul module to use static buffers to prevent memory leaks, 32-bit limbs to accelerate multiplication with SIMD vectors, copy I/O directly to and from buffers, simplify entry point functions in host code, and fix calculation bugs.

5 weeks agoAvoid committing sensitive environment variables. Optimize WASM build for speed and...
Chris Duncan [Wed, 25 Feb 2026 22:28:26 +0000 (14:28 -0800)]
Avoid committing sensitive environment variables. Optimize WASM build for speed and product text file for analysis.

6 weeks agoFix verify return.
Chris Duncan [Sun, 15 Feb 2026 23:52:52 +0000 (15:52 -0800)]
Fix verify return.

6 weeks agoAdd layer of abstraction to wasm functions.
Chris Duncan [Sun, 15 Feb 2026 23:50:27 +0000 (15:50 -0800)]
Add layer of abstraction to wasm functions.

6 weeks agoAdd tests for derive and verify to test webpage.
Chris Duncan [Sun, 15 Feb 2026 22:44:00 +0000 (14:44 -0800)]
Add tests for derive and verify to test webpage.

6 weeks agoFix verify function signature in host code. Simplify typed array read from memory.
Chris Duncan [Sun, 15 Feb 2026 22:42:56 +0000 (14:42 -0800)]
Fix verify function signature in host code. Simplify typed array read from memory.

6 weeks agoRename NaCl input constants. Fix parameters and argument parsing for derive and verif...
Chris Duncan [Sun, 15 Feb 2026 22:41:57 +0000 (14:41 -0800)]
Rename NaCl input constants. Fix parameters and argument parsing for derive and verify functions.

6 weeks agoFix package file and disable asc debugging.
Chris Duncan [Sun, 15 Feb 2026 08:48:38 +0000 (00:48 -0800)]
Fix package file and disable asc debugging.

6 weeks agoInitial commit.
Chris Duncan [Sun, 15 Feb 2026 08:39:13 +0000 (00:39 -0800)]
Initial commit.