]> zoso.dev Git - libnemo.git/log
libnemo.git
30 hours agoRewrite workers to be consolidated into one stringified file to ease Pool management...
Chris Duncan [Tue, 10 Dec 2024 22:08:35 +0000 (14:08 -0800)]
Rewrite workers to be consolidated into one stringified file to ease Pool management. Pow confirmed working, bip44-ckd and nano-nacl need to be tested, blake might be worth revisiting.

30 hours agoMove test function and reduce record count.
Chris Duncan [Tue, 10 Dec 2024 22:07:25 +0000 (14:07 -0800)]
Move test function and reduce record count.

30 hours agoFormat testing log.
Chris Duncan [Tue, 10 Dec 2024 22:06:58 +0000 (14:06 -0800)]
Format testing log.

2 days agoFix test name.
Chris Duncan [Mon, 9 Dec 2024 16:16:34 +0000 (08:16 -0800)]
Fix test name.

2 days agoFix import paths. Fix entropy usage. Ensure blake2b is always included in NanoNaCl...
Chris Duncan [Mon, 9 Dec 2024 16:04:41 +0000 (08:04 -0800)]
Fix import paths. Fix entropy usage. Ensure blake2b is always included in NanoNaCl worker string instead of relying on calling function.

2 days agoUpdate entropy references.
Chris Duncan [Mon, 9 Dec 2024 15:52:13 +0000 (07:52 -0800)]
Update entropy references.

2 days agoFix import path.
Chris Duncan [Mon, 9 Dec 2024 14:45:52 +0000 (06:45 -0800)]
Fix import path.

2 days agoCreate method to destroy entropy by randomizing its byte values.
Chris Duncan [Mon, 9 Dec 2024 13:48:30 +0000 (05:48 -0800)]
Create method to destroy entropy by randomizing its byte values.

2 days agoConvert synchronously-created Entropy to async factory class. Use bytes as underlying...
Chris Duncan [Mon, 9 Dec 2024 13:20:27 +0000 (05:20 -0800)]
Convert synchronously-created Entropy to async factory class. Use bytes as underlying data type, and only convert to other values when calling getters.

2 days agoSpecify byte multiple requirement in entropy documentation.
Chris Duncan [Mon, 9 Dec 2024 12:39:46 +0000 (04:39 -0800)]
Specify byte multiple requirement in entropy documentation.

2 days agoUpdate blake import.
Chris Duncan [Mon, 9 Dec 2024 12:11:35 +0000 (04:11 -0800)]
Update blake import.

2 days agoOrganize worker files into workers directory and update imports. Delete unused duplic...
Chris Duncan [Mon, 9 Dec 2024 12:09:24 +0000 (04:09 -0800)]
Organize worker files into workers directory and update imports. Delete unused duplicate BIP-32 ckd file.

3 days agoSplit test webpage into three based on usage.
Chris Duncan [Sun, 8 Dec 2024 11:22:21 +0000 (03:22 -0800)]
Split test webpage into three based on usage.

3 days agoAdd function to calculate different types of average times. Expand existing performan...
Chris Duncan [Sun, 8 Dec 2024 11:19:59 +0000 (03:19 -0800)]
Add function to calculate different types of average times. Expand existing performance testing and add block pow performance tests. Replace underperforming reduce function with for loop.

3 days agoSkip account refresh tests for now. Remove test with undocumented data.
Chris Duncan [Sun, 8 Dec 2024 07:29:07 +0000 (23:29 -0800)]
Skip account refresh tests for now. Remove test with undocumented data.

3 days agoRename and add account performance tests.
Chris Duncan [Sun, 8 Dec 2024 06:49:14 +0000 (22:49 -0800)]
Rename and add account performance tests.

4 days agoGroup up test runner tests.
Chris Duncan [Sun, 8 Dec 2024 03:29:58 +0000 (19:29 -0800)]
Group up test runner tests.

4 days agoExpand implementation of bespoke test suite.
Chris Duncan [Sun, 8 Dec 2024 03:27:42 +0000 (19:27 -0800)]
Expand implementation of bespoke test suite.

4 days agoReactivate regular tests on testing webpage. Tweak test result messaging. Create...
Chris Duncan [Sun, 8 Dec 2024 02:58:58 +0000 (18:58 -0800)]
Reactivate regular tests on testing webpage. Tweak test result messaging. Create suite function to group tests and implement in tools test.

4 days agoExtend bip44ckd to listen for coin input.
Chris Duncan [Sat, 7 Dec 2024 21:35:16 +0000 (13:35 -0800)]
Extend bip44ckd to listen for coin input.

4 days agoExtend bip44ckd to support any specified coin as an argument. nanoCKD remains as...
Chris Duncan [Sat, 7 Dec 2024 21:32:48 +0000 (13:32 -0800)]
Extend bip44ckd to support any specified coin as an argument. nanoCKD remains as a dedicated function for this wallet library.

5 days agoAdd more info to test logging. Comment out some portions of the test webpage to check...
Chris Duncan [Sat, 7 Dec 2024 00:39:58 +0000 (16:39 -0800)]
Add more info to test logging. Comment out some portions of the test webpage to check performance. Add timers to performance tests. Initialize Pools when the wallet needs it instead of from the get-go.

5 days agoAwait tests so they actually finish.
Chris Duncan [Fri, 6 Dec 2024 22:21:34 +0000 (14:21 -0800)]
Await tests so they actually finish.

5 days agoTry printing test completion when they are done, not sure if this will work until...
Chris Duncan [Fri, 6 Dec 2024 22:20:20 +0000 (14:20 -0800)]
Try printing test completion when they are done, not sure if this will work until tests are worked out.

5 days agoRemove unnecessary type check used when polyfilling for node.
Chris Duncan [Fri, 6 Dec 2024 22:19:29 +0000 (14:19 -0800)]
Remove unnecessary type check used when polyfilling for node.

5 days agoPool is misbehaving, so go backwards a bit.
Chris Duncan [Fri, 6 Dec 2024 21:43:31 +0000 (13:43 -0800)]
Pool is misbehaving, so go backwards a bit.

5 days agoIsolate test data to avoid contaminating other tests.
Chris Duncan [Fri, 6 Dec 2024 21:10:56 +0000 (13:10 -0800)]
Isolate test data to avoid contaminating other tests.

5 days agoRemove extraneous parent test wrappers and just log the groupings to the console.
Chris Duncan [Fri, 6 Dec 2024 21:07:24 +0000 (13:07 -0800)]
Remove extraneous parent test wrappers and just log the groupings to the console.

5 days agoRemove extra parent level test causing problems with awaiting actual test results.
Chris Duncan [Fri, 6 Dec 2024 20:58:16 +0000 (12:58 -0800)]
Remove extra parent level test causing problems with awaiting actual test results.

5 days agoRemove extraneous try-catch and rely on test function. Check account index is correct.
Chris Duncan [Fri, 6 Dec 2024 20:49:11 +0000 (12:49 -0800)]
Remove extraneous try-catch and rely on test function. Check account index is correct.

5 days agoCheck strict equality to nullish values.
Chris Duncan [Fri, 6 Dec 2024 20:48:25 +0000 (12:48 -0800)]
Check strict equality to nullish values.

5 days agoCompare only real values with equals and notEqual. Use ok with strict equality compar...
Chris Duncan [Fri, 6 Dec 2024 20:48:02 +0000 (12:48 -0800)]
Compare only real values with equals and notEqual. Use ok with strict equality comparison instead.

5 days agoMove test runner into globals file so it is set up for every test.
Chris Duncan [Fri, 6 Dec 2024 20:26:48 +0000 (12:26 -0800)]
Move test runner into globals file so it is set up for every test.

5 days agoDraft a test of our test runner.
Chris Duncan [Fri, 6 Dec 2024 12:42:56 +0000 (04:42 -0800)]
Draft a test of our test runner.

5 days agoClarify failure message when testing existence.
Chris Duncan [Fri, 6 Dec 2024 12:42:39 +0000 (04:42 -0800)]
Clarify failure message when testing existence.

5 days agoInitialize wallet on each account derivation test to avoid race conditions from worke...
Chris Duncan [Fri, 6 Dec 2024 07:05:39 +0000 (23:05 -0800)]
Initialize wallet on each account derivation test to avoid race conditions from workers generating accounts and posting conflicting messages back to the main thread.

5 days agoRevert exists test value to allow zeros.
Chris Duncan [Fri, 6 Dec 2024 07:04:56 +0000 (23:04 -0800)]
Revert exists test value to allow zeros.

5 days agoDelete unused node polyfills.
Chris Duncan [Fri, 6 Dec 2024 07:04:37 +0000 (23:04 -0800)]
Delete unused node polyfills.

5 days agoSimplify equality tests.
Chris Duncan [Fri, 6 Dec 2024 06:14:34 +0000 (22:14 -0800)]
Simplify equality tests.

5 days agoGet message from failure errors.
Chris Duncan [Fri, 6 Dec 2024 06:09:44 +0000 (22:09 -0800)]
Get message from failure errors.

5 days agoExtraneous logging.
Chris Duncan [Fri, 6 Dec 2024 06:07:54 +0000 (22:07 -0800)]
Extraneous logging.

5 days agoDelete unused config since we are not using jest.
Chris Duncan [Fri, 6 Dec 2024 06:04:33 +0000 (22:04 -0800)]
Delete unused config since we are not using jest.

5 days agoLimit Pool to one worker until the class can be refactored to manage threads on a...
Chris Duncan [Fri, 6 Dec 2024 06:03:45 +0000 (22:03 -0800)]
Limit Pool to one worker until the class can be refactored to manage threads on a static basis so we don't overload the browser with hundreds of workers during testing.

5 days agoFix assertions which would never fail due to how tests are called.
Chris Duncan [Fri, 6 Dec 2024 06:01:53 +0000 (22:01 -0800)]
Fix assertions which would never fail due to how tests are called.

5 days agoFix wrong assertion usage.
Chris Duncan [Fri, 6 Dec 2024 05:50:21 +0000 (21:50 -0800)]
Fix wrong assertion usage.

5 days agoMove test files around. Fix test runners for async functions.
Chris Duncan [Fri, 6 Dec 2024 05:33:09 +0000 (21:33 -0800)]
Move test files around. Fix test runners for async functions.

6 days agoUninstall unused testing frameworks.
Chris Duncan [Fri, 6 Dec 2024 02:30:34 +0000 (18:30 -0800)]
Uninstall unused testing frameworks.

6 days agoFix async testing.
Chris Duncan [Fri, 6 Dec 2024 02:30:17 +0000 (18:30 -0800)]
Fix async testing.

6 days agoCreate our own testing framework. Needs some double-checking on accuracy.
Chris Duncan [Thu, 5 Dec 2024 23:51:10 +0000 (15:51 -0800)]
Create our own testing framework. Needs some double-checking on accuracy.

6 days agoConvert from node to jest test execution.
Chris Duncan [Thu, 5 Dec 2024 18:34:00 +0000 (10:34 -0800)]
Convert from node to jest test execution.

6 days agoJest does not seem to recognize modules without mjs extension.
Chris Duncan [Thu, 5 Dec 2024 18:22:07 +0000 (10:22 -0800)]
Jest does not seem to recognize modules without mjs extension.

6 days agoRename performance test files.
Chris Duncan [Thu, 5 Dec 2024 16:20:52 +0000 (08:20 -0800)]
Rename performance test files.

6 days agoMissed an import. Adjust its assertions while we are here.
Chris Duncan [Thu, 5 Dec 2024 16:17:42 +0000 (08:17 -0800)]
Missed an import. Adjust its assertions while we are here.

6 days agoReplace node test runner 'skip' options with jest 'skip' function.
Chris Duncan [Thu, 5 Dec 2024 16:16:14 +0000 (08:16 -0800)]
Replace node test runner 'skip' options with jest 'skip' function.

6 days agoSwitch to jest 'test' syntax from node 'it' alias.
Chris Duncan [Thu, 5 Dec 2024 16:14:43 +0000 (08:14 -0800)]
Switch to jest 'test' syntax from node 'it' alias.

6 days ago In test files, replace node test runner module imports with jest.
Chris Duncan [Thu, 5 Dec 2024 16:13:27 +0000 (08:13 -0800)]
 In test files, replace node test runner module imports with jest.

6 days agoRename test files since they are treated as modules anyway with their import statements.
Chris Duncan [Thu, 5 Dec 2024 16:11:26 +0000 (08:11 -0800)]
Rename test files since they are treated as modules anyway with their import statements.

6 days agoInstall jest for testing.
Chris Duncan [Thu, 5 Dec 2024 16:10:22 +0000 (08:10 -0800)]
Install jest for testing.

6 days agoScrap this node polyfill idea and move on to a different testing tool.
Chris Duncan [Thu, 5 Dec 2024 14:48:15 +0000 (06:48 -0800)]
Scrap this node polyfill idea and move on to a different testing tool.

6 days agoFix sweep signing and document that Ledger is unsupported.
Chris Duncan [Wed, 4 Dec 2024 20:28:07 +0000 (12:28 -0800)]
Fix sweep signing and document that Ledger is unsupported.

6 days agoFix public key aspect of signing function, specific to Nano.
Chris Duncan [Wed, 4 Dec 2024 20:24:01 +0000 (12:24 -0800)]
Fix public key aspect of signing function, specific to Nano.

6 days agoUse scoped declarations instead of var.
Chris Duncan [Wed, 4 Dec 2024 19:57:33 +0000 (11:57 -0800)]
Use scoped declarations instead of var.

6 days agoFix call to wrong function for getting a signature rather than the signed message...
Chris Duncan [Wed, 4 Dec 2024 14:30:04 +0000 (06:30 -0800)]
Fix call to wrong function for getting a signature rather than the signed message itself.

6 days agoReturn empty byte array instead of null if there are issues opening a signed message...
Chris Duncan [Wed, 4 Dec 2024 14:27:17 +0000 (06:27 -0800)]
Return empty byte array instead of null if there are issues opening a signed message. Return detached signature as uppercase hex so calling function can ingest it more easily.

6 days agoTesting fixes to worker polyfill.
Chris Duncan [Thu, 5 Dec 2024 13:24:11 +0000 (05:24 -0800)]
Testing fixes to worker polyfill.

7 days agoRemove test logging.
Chris Duncan [Wed, 4 Dec 2024 07:24:58 +0000 (23:24 -0800)]
Remove test logging.

7 days agoImprove environment detection.
Chris Duncan [Wed, 4 Dec 2024 07:23:25 +0000 (23:23 -0800)]
Improve environment detection.

7 days agoWorker imports using strings does not work with an async function, so revert that...
Chris Duncan [Wed, 4 Dec 2024 07:12:38 +0000 (23:12 -0800)]
Worker imports using strings does not work with an async function, so revert that addition and use thenable instead. Also improve environment checking to detect Node.js vs browser.

7 days agoBe greedy with system resources.
Chris Duncan [Wed, 4 Dec 2024 07:09:53 +0000 (23:09 -0800)]
Be greedy with system resources.

7 days agoFix dynamic import.
Chris Duncan [Wed, 4 Dec 2024 07:09:07 +0000 (23:09 -0800)]
Fix dynamic import.

7 days agoIf signature verification fails due to an error, log the error and return false to...
Chris Duncan [Wed, 4 Dec 2024 07:08:55 +0000 (23:08 -0800)]
If signature verification fails due to an error, log the error and return false to the calling function.

7 days agoUpdate JSDoc.
Chris Duncan [Wed, 4 Dec 2024 07:08:04 +0000 (23:08 -0800)]
Update JSDoc.

7 days agoFix typescript errors in test files.
Chris Duncan [Wed, 4 Dec 2024 05:09:17 +0000 (21:09 -0800)]
Fix typescript errors in test files.

7 days agoRestore Node.js polyfills for worker support.
Chris Duncan [Wed, 4 Dec 2024 05:02:08 +0000 (21:02 -0800)]
Restore Node.js polyfills for worker support.

8 days agoLog total accounts generated.
Chris Duncan [Wed, 4 Dec 2024 00:32:28 +0000 (16:32 -0800)]
Log total accounts generated.

8 days agoIncrease default GPU usage for pow.
Chris Duncan [Wed, 4 Dec 2024 00:27:20 +0000 (16:27 -0800)]
Increase default GPU usage for pow.

8 days agoAdd typings to resolve remaining typescript issues.
Chris Duncan [Wed, 4 Dec 2024 00:24:33 +0000 (16:24 -0800)]
Add typings to resolve remaining typescript issues.

8 days agoAdd block pow to test webpage.
Chris Duncan [Wed, 4 Dec 2024 00:06:59 +0000 (16:06 -0800)]
Add block pow to test webpage.

8 days agoRemove performance logging and test logging. Add typings to NanoNaCl.
Chris Duncan [Wed, 4 Dec 2024 00:06:09 +0000 (16:06 -0800)]
Remove performance logging and test logging. Add typings to NanoNaCl.

8 days agoLots more typings for NanoNaCl.
Chris Duncan [Tue, 3 Dec 2024 23:58:27 +0000 (15:58 -0800)]
Lots more typings for NanoNaCl.

8 days agoAdd and fix typings. Throw if any shader issues arise.
Chris Duncan [Tue, 3 Dec 2024 23:36:22 +0000 (15:36 -0800)]
Add and fix typings. Throw if any shader issues arise.

8 days agoPer typescript, navigator.hardwareConcurrency is never null, so lose the fallback...
Chris Duncan [Tue, 3 Dec 2024 23:23:36 +0000 (15:23 -0800)]
Per typescript, navigator.hardwareConcurrency is never null, so lose the fallback to 1. Also limit to 80% cpu instead of almost maxing out.

8 days agoRemove unused blake2b import. Remove typescript no-check flags and start adding typings.
Chris Duncan [Tue, 3 Dec 2024 23:00:30 +0000 (15:00 -0800)]
Remove unused blake2b import. Remove typescript no-check flags and start adding typings.

8 days agoFix hexification.
Chris Duncan [Tue, 3 Dec 2024 22:55:09 +0000 (14:55 -0800)]
Fix hexification.

8 days agoMore typings.
Chris Duncan [Tue, 3 Dec 2024 22:51:07 +0000 (14:51 -0800)]
More typings.

8 days agoUse faster for loop instead of reduce function. Add typings to NanoNaCl.
Chris Duncan [Tue, 3 Dec 2024 22:47:46 +0000 (14:47 -0800)]
Use faster for loop instead of reduce function. Add typings to NanoNaCl.

8 days agoReturn public key as hex string from NanoNaCl.
Chris Duncan [Tue, 3 Dec 2024 22:38:23 +0000 (14:38 -0800)]
Return public key as hex string from NanoNaCl.

8 days agoRename function since we are no longer returning a pair of keys.
Chris Duncan [Tue, 3 Dec 2024 22:36:53 +0000 (14:36 -0800)]
Rename function since we are no longer returning a pair of keys.

8 days agoRemove secret key derivation from NanoNaCl since it's not applicable to Nano.
Chris Duncan [Tue, 3 Dec 2024 22:34:26 +0000 (14:34 -0800)]
Remove secret key derivation from NanoNaCl since it's not applicable to Nano.

8 days agoFix public key derivation.
Chris Duncan [Tue, 3 Dec 2024 22:33:11 +0000 (14:33 -0800)]
Fix public key derivation.

8 days agoMove threshold constants into CONSTANTS and use them in block pow.
Chris Duncan [Tue, 3 Dec 2024 21:21:59 +0000 (13:21 -0800)]
Move threshold constants into CONSTANTS and use them in block pow.

8 days agoSince pow is already so expensive, the overhead of creating workers is negligible...
Chris Duncan [Tue, 3 Dec 2024 21:01:59 +0000 (13:01 -0800)]
Since pow is already so expensive, the overhead of creating workers is negligible, so spin up a new pool when calculating and dismiss it when finished.

8 days agoCreate pool method to clear workers from memory.
Chris Duncan [Tue, 3 Dec 2024 21:01:04 +0000 (13:01 -0800)]
Create pool method to clear workers from memory.

8 days agoSave pool object URL so it can be revoked later.
Chris Duncan [Tue, 3 Dec 2024 20:57:40 +0000 (12:57 -0800)]
Save pool object URL so it can be revoked later.

8 days agoExplicitly define pool cores.
Chris Duncan [Tue, 3 Dec 2024 20:51:24 +0000 (12:51 -0800)]
Explicitly define pool cores.

8 days agoRemove RPC references from pow now that it's done locally.
Chris Duncan [Tue, 3 Dec 2024 20:48:28 +0000 (12:48 -0800)]
Remove RPC references from pow now that it's done locally.

8 days agoRemove console logging. Remove deprecated CPU-based pow code.
Chris Duncan [Tue, 3 Dec 2024 20:47:58 +0000 (12:47 -0800)]
Remove console logging. Remove deprecated CPU-based pow code.

8 days agoConvert IIFE to regular set of functions called from worker implementation. Use worke...
Chris Duncan [Tue, 3 Dec 2024 20:25:23 +0000 (12:25 -0800)]
Convert IIFE to regular set of functions called from worker implementation. Use worker-usable OffscreenCanvas for WebGL. Reorganize order of functions. Add typings and tabs.

8 days agoEnsure worker results are stored only if they exist.
Chris Duncan [Tue, 3 Dec 2024 20:20:01 +0000 (12:20 -0800)]
Ensure worker results are stored only if they exist.

8 days agoDo not mark worker as available until it has reported from a stop command.
Chris Duncan [Tue, 3 Dec 2024 20:18:32 +0000 (12:18 -0800)]
Do not mark worker as available until it has reported from a stop command.