]>
git.codecow.com Git - libnemo.git/log
Chris Duncan [Sat, 5 Jul 2025 10:08:53 +0000 (03:08 -0700)]
FIx exports path. Emit types directly to dist directory.
Chris Duncan [Sat, 5 Jul 2025 09:24:36 +0000 (02:24 -0700)]
Merge branch 'next/merge-ledger'
Chris Duncan [Sat, 5 Jul 2025 09:21:58 +0000 (02:21 -0700)]
Merge separate ledger classes into single class.
Chris Duncan [Sat, 5 Jul 2025 08:41:27 +0000 (01:41 -0700)]
Move Ledger class into ledger wallet file and update import in block class.
Chris Duncan [Sat, 5 Jul 2025 08:40:00 +0000 (01:40 -0700)]
Optionally install browserfied Node buffer to enable LedgerJS libraries and update esbuild to inject it at build time.
Chris Duncan [Sat, 5 Jul 2025 08:36:09 +0000 (01:36 -0700)]
Deprecate unnecessary and redundant ArrayBuffer convert functions.
Chris Duncan [Sat, 5 Jul 2025 07:22:18 +0000 (00:22 -0700)]
Copy Ledger imports to relevant wallet.
Chris Duncan [Sat, 5 Jul 2025 07:02:30 +0000 (00:02 -0700)]
Update dependencies.
Chris Duncan [Fri, 4 Jul 2025 08:46:52 +0000 (01:46 -0700)]
Improve error handling while constructing wallets and terminate workers on failure.
Chris Duncan [Fri, 4 Jul 2025 08:32:07 +0000 (01:32 -0700)]
Remove references to CryptoKey which is no longer accepted as a parameter for creating wallets.
Chris Duncan [Fri, 4 Jul 2025 08:11:53 +0000 (01:11 -0700)]
Rename block pool for clarity.
Chris Duncan [Fri, 4 Jul 2025 08:09:30 +0000 (01:09 -0700)]
Remove favicon since Nano Foundation can't get their licensing straight. Delete unused block in test page script.
Chris Duncan [Fri, 4 Jul 2025 08:02:35 +0000 (01:02 -0700)]
Update all "secret key" references to "private key" for consistency.
Chris Duncan [Fri, 4 Jul 2025 07:53:53 +0000 (00:53 -0700)]
Move ADPU codes into constants file.
Chris Duncan [Fri, 4 Jul 2025 07:48:13 +0000 (00:48 -0700)]
Delete ancient benchmarks.
Chris Duncan [Fri, 4 Jul 2025 01:00:53 +0000 (18:00 -0700)]
Formatting.
Chris Duncan [Fri, 4 Jul 2025 01:00:10 +0000 (18:00 -0700)]
Fix test assertions.
Chris Duncan [Fri, 4 Jul 2025 00:56:09 +0000 (17:56 -0700)]
Abort long-running RPC calls after 10 seconds. Throw if any BIP-44 keys are invalid instead of continuing. Fix refresh account tests.
Chris Duncan [Fri, 4 Jul 2025 00:45:36 +0000 (17:45 -0700)]
Handle BIP-44 errors and remove keys that failed.
Chris Duncan [Fri, 4 Jul 2025 00:00:38 +0000 (17:00 -0700)]
Use Node, then browser, then null for process envars.
Chris Duncan [Thu, 3 Jul 2025 23:58:55 +0000 (16:58 -0700)]
Ignore JS dotenv file and import it to enable envars in the browser.
Chris Duncan [Thu, 3 Jul 2025 23:31:09 +0000 (16:31 -0700)]
Remove logging from account lock and unlock now that tests are correct.
Chris Duncan [Thu, 3 Jul 2025 23:30:14 +0000 (16:30 -0700)]
Fix Blake2b account lock test.
Chris Duncan [Thu, 3 Jul 2025 23:27:49 +0000 (16:27 -0700)]
Rename test file.
Chris Duncan [Thu, 3 Jul 2025 23:26:14 +0000 (16:26 -0700)]
Test account lock and unlock.
Chris Duncan [Thu, 3 Jul 2025 23:25:30 +0000 (16:25 -0700)]
Fix test assert definitions.
Chris Duncan [Thu, 3 Jul 2025 23:14:44 +0000 (16:14 -0700)]
Tweak wallet lock and unlock response handling.
Chris Duncan [Thu, 3 Jul 2025 22:14:33 +0000 (15:14 -0700)]
Merge branch 'next/safe-worker'
Chris Duncan [Thu, 3 Jul 2025 21:15:08 +0000 (14:15 -0700)]
Fix tests using random bytes since password gets zeroed out when used.
Chris Duncan [Thu, 3 Jul 2025 21:14:27 +0000 (14:14 -0700)]
Fix test descriptions. Add tsc ignore directives for lock and unlock parameter type testing.
Chris Duncan [Thu, 3 Jul 2025 21:13:11 +0000 (14:13 -0700)]
Await wallet destruction in tests.
Chris Duncan [Thu, 3 Jul 2025 21:11:20 +0000 (14:11 -0700)]
Remove redundant success variable. Always zero out password bytes regardless of lock or unlock result.
Chris Duncan [Thu, 3 Jul 2025 21:02:45 +0000 (14:02 -0700)]
Ensure password bytes exist when locking or unlocking.
Chris Duncan [Thu, 3 Jul 2025 20:29:33 +0000 (13:29 -0700)]
Remove logging from safe.
Chris Duncan [Thu, 3 Jul 2025 20:29:26 +0000 (13:29 -0700)]
Fix async destroy call not being awaited.
Chris Duncan [Thu, 3 Jul 2025 20:29:12 +0000 (13:29 -0700)]
Include statements in try-catch.
Chris Duncan [Thu, 3 Jul 2025 20:28:54 +0000 (13:28 -0700)]
Fix deletion not waiting for DML to complete.
Chris Duncan [Thu, 3 Jul 2025 20:28:21 +0000 (13:28 -0700)]
Specify scope for crypto module.
Chris Duncan [Thu, 3 Jul 2025 20:27:17 +0000 (13:27 -0700)]
Destroy accounts in safe asynchronously too.
Chris Duncan [Thu, 3 Jul 2025 19:51:54 +0000 (12:51 -0700)]
Destroy wallet safe asynchronously.
Chris Duncan [Thu, 3 Jul 2025 19:34:31 +0000 (12:34 -0700)]
Remove crypto module destructuring. Move constants into class to fix usage in workers.
Chris Duncan [Thu, 3 Jul 2025 19:33:07 +0000 (12:33 -0700)]
Revert utf8 encoders for use in workers. Fix buffer convert export.
Chris Duncan [Thu, 3 Jul 2025 19:24:17 +0000 (12:24 -0700)]
Convert Safe storage from `sessionStorage` to `IndexedDB`.
Chris Duncan [Thu, 3 Jul 2025 19:23:53 +0000 (12:23 -0700)]
Delete logging of stringified Safe class.
Chris Duncan [Thu, 3 Jul 2025 19:23:32 +0000 (12:23 -0700)]
Delete extraneous pool logging.
Chris Duncan [Thu, 3 Jul 2025 17:15:54 +0000 (10:15 -0700)]
Remove crypto destructuring and reference the full object property path.
Chris Duncan [Thu, 3 Jul 2025 17:07:05 +0000 (10:07 -0700)]
Call own method to destroy item for consistency.
Chris Duncan [Thu, 3 Jul 2025 17:02:08 +0000 (10:02 -0700)]
Wrap storage retrieval in try-catch.
Chris Duncan [Thu, 3 Jul 2025 16:57:25 +0000 (09:57 -0700)]
Zero out password if put throws.
Chris Duncan [Thu, 3 Jul 2025 16:56:33 +0000 (09:56 -0700)]
Fix comment.
Chris Duncan [Thu, 3 Jul 2025 16:54:38 +0000 (09:54 -0700)]
Add class description.
Chris Duncan [Thu, 3 Jul 2025 16:53:33 +0000 (09:53 -0700)]
Type passkeys.
Chris Duncan [Thu, 3 Jul 2025 16:30:49 +0000 (09:30 -0700)]
Remove backup that will soon be irrelevant.
Chris Duncan [Thu, 3 Jul 2025 16:28:14 +0000 (09:28 -0700)]
Remove redundant Promise wrapper.
Chris Duncan [Thu, 3 Jul 2025 16:12:43 +0000 (09:12 -0700)]
Refactor Safe to run as a worker. Since `sessionStorage` is unavailable in this context, next focus should be refactoring to use `IndexedDB` instead.
Chris Duncan [Thu, 3 Jul 2025 15:39:17 +0000 (08:39 -0700)]
Add function to convert stringified bytes back to parsed Uint8Array.
Chris Duncan [Thu, 3 Jul 2025 12:28:04 +0000 (05:28 -0700)]
Update license headers.
Chris Duncan [Thu, 3 Jul 2025 04:08:28 +0000 (21:08 -0700)]
Extract wallets into their own files.
Chris Duncan [Thu, 3 Jul 2025 03:13:00 +0000 (20:13 -0700)]
Move wallets into their own directory.
Chris Duncan [Thu, 3 Jul 2025 02:46:06 +0000 (19:46 -0700)]
Merge branch 'threads' into main
Chris Duncan [Sun, 29 Dec 2024 10:30:38 +0000 (02:30 -0800)]
Update authors and licenses. Add testing globals and webpages. Add original nano-webgl-pow module for performance comparisons. Add performance tests. Implement Blake2b class customized from original npm module. Add pool for web workers and implement workers for BIP-44, new NanoNaCl, and faster PoW. Various bugfixes and documentation expansion.
Chris Duncan [Wed, 20 Nov 2024 08:18:25 +0000 (00:18 -0800)]
Update version.
Chris Duncan [Wed, 20 Nov 2024 08:11:24 +0000 (00:11 -0800)]
In Tools, deprecate blake2b function in favor of simpler hash function already exported to reduce confusion with package of the same name, and add an encoding flag to allow strings already encoded to hexadecimal like nano blocks.
Chris Duncan [Wed, 20 Nov 2024 01:13:16 +0000 (17:13 -0800)]
Tabs.
Chris Duncan [Wed, 20 Nov 2024 01:09:16 +0000 (17:09 -0800)]
Tabs.
Chris Duncan [Wed, 20 Nov 2024 01:07:16 +0000 (17:07 -0800)]
Additional tests for wallet properties.
Chris Duncan [Wed, 20 Nov 2024 00:44:14 +0000 (16:44 -0800)]
Use arrow notation for tests.
Chris Duncan [Tue, 19 Nov 2024 07:18:04 +0000 (23:18 -0800)]
Update version.
Chris Duncan [Tue, 19 Nov 2024 07:16:32 +0000 (23:16 -0800)]
Fix typo.
Chris Duncan [Tue, 19 Nov 2024 07:15:50 +0000 (23:15 -0800)]
Ignore test coverage file.
Chris Duncan [Tue, 19 Nov 2024 07:13:02 +0000 (23:13 -0800)]
Lock and unlock is pretty solid, so remove flag for skipping relevant tests.
Chris Duncan [Tue, 19 Nov 2024 07:10:57 +0000 (23:10 -0800)]
Indicate to esbuild when browser bundle is being built versus when Node tests are running.
Chris Duncan [Tue, 19 Nov 2024 07:08:31 +0000 (23:08 -0800)]
Document test vector sources in TEST_VECTORS file, and remove repetitive warning from individual test files in favor of one very clear warning above test vector values.
Chris Duncan [Tue, 19 Nov 2024 07:04:53 +0000 (23:04 -0800)]
Newline for legibility.
Chris Duncan [Tue, 19 Nov 2024 07:03:21 +0000 (23:03 -0800)]
In Wallet class, greatly expand on accounts method documentation.
Chris Duncan [Tue, 19 Nov 2024 07:01:57 +0000 (23:01 -0800)]
Assign private property in Safe constructor.
Chris Duncan [Tue, 19 Nov 2024 06:58:25 +0000 (22:58 -0800)]
Newlines for legibility.
Chris Duncan [Tue, 19 Nov 2024 06:55:55 +0000 (22:55 -0800)]
Integrate blake2b package, replacing blakejs and blake2b-wasm. Restore arrow notation to test methods. Remove ckd and thread class files for now, perhaps to be implemented later.
Chris Duncan [Sun, 17 Nov 2024 08:36:41 +0000 (00:36 -0800)]
Web Worker showed no performance benefit, so revert it.
Chris Duncan [Sun, 17 Nov 2024 07:24:48 +0000 (23:24 -0800)]
Update dependencies.
Chris Duncan [Sun, 17 Nov 2024 07:24:38 +0000 (23:24 -0800)]
Use new WASM blake hashing module. Eliminate an import within worker file by performing calculations explicitly.
Chris Duncan [Sun, 17 Nov 2024 07:21:51 +0000 (23:21 -0800)]
Worker global override for node testing was moved to wallet, so remove it from custom polyfill.
Chris Duncan [Sun, 17 Nov 2024 07:21:04 +0000 (23:21 -0800)]
Reintroduce former Pool as Thread so that ckd tasks can be managed in a queue.
Chris Duncan [Sun, 17 Nov 2024 07:19:53 +0000 (23:19 -0800)]
Fix test import references.
Chris Duncan [Sun, 17 Nov 2024 01:16:39 +0000 (17:16 -0800)]
Start substitution of blakejs with blake2b package.
Chris Duncan [Sun, 17 Nov 2024 01:16:12 +0000 (17:16 -0800)]
Reorganize wallet tests to remove unknown vectors, simplify messaging, and ignore account derivation since that is tested in another file.
Chris Duncan [Sat, 16 Nov 2024 21:12:31 +0000 (13:12 -0800)]
Scrap worker pool in favor of one worker per wallet.
Chris Duncan [Tue, 12 Nov 2024 21:51:14 +0000 (13:51 -0800)]
Web worker doesn't pass complex objects like Account, so return private key instead and construct the account in the wallet.
Chris Duncan [Mon, 11 Nov 2024 10:02:06 +0000 (02:02 -0800)]
Start testing ckd pool.
Chris Duncan [Mon, 11 Nov 2024 10:01:03 +0000 (02:01 -0800)]
Pass postMessage as handler instead of calling it after ckd.
Chris Duncan [Mon, 11 Nov 2024 09:59:56 +0000 (01:59 -0800)]
Move function and make it private.
Chris Duncan [Mon, 11 Nov 2024 09:59:26 +0000 (01:59 -0800)]
Throw on invalid Ledger accounts.
Chris Duncan [Mon, 11 Nov 2024 09:58:23 +0000 (01:58 -0800)]
Fix invalid index size.
Chris Duncan [Mon, 11 Nov 2024 09:27:33 +0000 (01:27 -0800)]
Move polyfills into separate file from test vectors, and redesign them as side effect imports.
Chris Duncan [Mon, 11 Nov 2024 05:35:13 +0000 (21:35 -0800)]
Performance test does not show a huge improvement (half a second over a million records) using Promise.all so revert to simpler implementation.
Chris Duncan [Sun, 10 Nov 2024 22:12:12 +0000 (14:12 -0800)]
Throw if Ledger account derivation fails so that null result can be removed. Derive accounts in parallel with Promise.all.
Chris Duncan [Sun, 10 Nov 2024 21:25:59 +0000 (13:25 -0800)]
Fix BLAKE2b ckd using 16-bit index instead of 32-bit.
Chris Duncan [Sun, 10 Nov 2024 21:25:03 +0000 (13:25 -0800)]
Test additional accounts when deriving from BLAKE2b wallet. Test more BLAKE2b wallet seeds. Use Trezor wallet password instead of Nano password for consistency with Trezor test vectors.
Chris Duncan [Sun, 10 Nov 2024 21:23:14 +0000 (13:23 -0800)]
Adjust test vector names to accomodate broader data set.
Chris Duncan [Sun, 10 Nov 2024 21:06:41 +0000 (13:06 -0800)]
Document test vector sources.