]> git.codecow.com Git - libnemo.git/log
libnemo.git
8 months agoUpdate wallet parent to support Ledger public-only keypairs, and deprecate Ledger...
Chris Duncan [Thu, 10 Jul 2025 16:04:09 +0000 (09:04 -0700)]
Update wallet parent to support Ledger public-only keypairs, and deprecate Ledger account method overrides.

8 months agoUpdate Ledger test.
Chris Duncan [Thu, 10 Jul 2025 15:30:33 +0000 (08:30 -0700)]
Update Ledger test.

8 months agoPut window scrolling back in test page. Log to console when waiting for Ledger to...
Chris Duncan [Thu, 10 Jul 2025 15:29:55 +0000 (08:29 -0700)]
Put window scrolling back in test page. Log to console when waiting for Ledger to sign. Use Ledger derivation path defined once.

8 months agoMove Ledger account derivation test into dedicated suite.
Chris Duncan [Thu, 10 Jul 2025 15:20:39 +0000 (08:20 -0700)]
Move Ledger account derivation test into dedicated suite.

8 months agoExpand initialization tests for Ledger.
Chris Duncan [Thu, 10 Jul 2025 14:45:28 +0000 (07:45 -0700)]
Expand initialization tests for Ledger.

8 months agoReorder and refactor Ledger device wallet functions. Update ledger device tests.
Chris Duncan [Thu, 10 Jul 2025 13:13:09 +0000 (06:13 -0700)]
Reorder and refactor Ledger device wallet functions. Update ledger device tests.

8 months agoSimply browser support check.
Chris Duncan [Wed, 9 Jul 2025 22:24:40 +0000 (15:24 -0700)]
Simply browser support check.

8 months agoSimplify unlock method.
Chris Duncan [Wed, 9 Jul 2025 22:24:00 +0000 (15:24 -0700)]
Simplify unlock method.

8 months agoUse new type and alphabetize getters.
Chris Duncan [Wed, 9 Jul 2025 22:23:43 +0000 (15:23 -0700)]
Use new type and alphabetize getters.

8 months agoCreate type for easier checking against device status values.
Chris Duncan [Wed, 9 Jul 2025 22:23:13 +0000 (15:23 -0700)]
Create type for easier checking against device status values.

8 months agoDisable ledger activation button between test commands.
Chris Duncan [Wed, 9 Jul 2025 20:32:08 +0000 (13:32 -0700)]
Disable ledger activation button between test commands.

8 months agoCheck data type of input to convert functions.
Chris Duncan [Wed, 9 Jul 2025 20:31:41 +0000 (13:31 -0700)]
Check data type of input to convert functions.

8 months agoAdd Ledger nano app version test.
Chris Duncan [Wed, 9 Jul 2025 18:01:45 +0000 (11:01 -0700)]
Add Ledger nano app version test.

8 months agoMove bugged nonce signing test toward end of file.
Chris Duncan [Wed, 9 Jul 2025 18:01:26 +0000 (11:01 -0700)]
Move bugged nonce signing test toward end of file.

8 months agoFix test description.
Chris Duncan [Wed, 9 Jul 2025 18:00:59 +0000 (11:00 -0700)]
Fix test description.

8 months agoMove Ledger block signing tests into dedicated file.
Chris Duncan [Wed, 9 Jul 2025 17:55:57 +0000 (10:55 -0700)]
Move Ledger block signing tests into dedicated file.

8 months agoUse instanceof instead of constructor name when validating.
Chris Duncan [Wed, 9 Jul 2025 17:39:56 +0000 (10:39 -0700)]
Use instanceof instead of constructor name when validating.

8 months agoImprove block validation.
Chris Duncan [Wed, 9 Jul 2025 17:34:30 +0000 (10:34 -0700)]
Improve block validation.

8 months agoExtract Ledger wallet tests to their own file.
Chris Duncan [Tue, 8 Jul 2025 21:48:54 +0000 (14:48 -0700)]
Extract Ledger wallet tests to their own file.

8 months agoAdjust how Ledger status codes are parsed.
Chris Duncan [Tue, 8 Jul 2025 21:21:43 +0000 (14:21 -0700)]
Adjust how Ledger status codes are parsed.

8 months agoFix Ledger block hashing and caching.
Chris Duncan [Tue, 8 Jul 2025 17:27:21 +0000 (10:27 -0700)]
Fix Ledger block hashing and caching.
Ledger app requires open blocks to have zeroed frontier bytes instead of account public key, diverging from spec, so zero out "parent" block like Ledger expects if public key is the frontier.
Ensure block data is correct length before hashing.
Merge shared functionality of signing blocks and nonces, and document bug with Ledger nano app that is preventing nonces from being signed.
Skip online tests for now.

8 months agoMake Ledger properties readonly as getters.
Chris Duncan [Mon, 7 Jul 2025 19:13:53 +0000 (12:13 -0700)]
Make Ledger properties readonly as getters.

8 months agoMove class variables to top of class definition.
Chris Duncan [Mon, 7 Jul 2025 17:58:31 +0000 (10:58 -0700)]
Move class variables to top of class definition.

8 months agoAdd test for ledger close method.
Chris Duncan [Mon, 7 Jul 2025 17:57:06 +0000 (10:57 -0700)]
Add test for ledger close method.

8 months agoAdd error handling for RPC response that returns OK but includes error details in...
Chris Duncan [Mon, 7 Jul 2025 17:56:09 +0000 (10:56 -0700)]
Add error handling for RPC response that returns OK but includes error details in the body.

8 months agoMerge ledger listen call into only reference.
Chris Duncan [Mon, 7 Jul 2025 17:55:37 +0000 (10:55 -0700)]
Merge ledger listen call into only reference.

8 months agoAdd brief delay before test runner check to allow test page to complete loading its...
Chris Duncan [Mon, 7 Jul 2025 17:53:10 +0000 (10:53 -0700)]
Add brief delay before test runner check to allow test page to complete loading its own content.

8 months agoSkip Ledger connection in Node environments. Expand Ledger account derivation tests...
Chris Duncan [Mon, 7 Jul 2025 16:14:05 +0000 (09:14 -0700)]
Skip Ledger connection in Node environments. Expand Ledger account derivation tests. Refactor process polyfills for browser. Add sample environment files.

8 months agoExpand Ledger wallet creation test.
Chris Duncan [Mon, 7 Jul 2025 15:32:33 +0000 (08:32 -0700)]
Expand Ledger wallet creation test.

8 months agoUpdate account method overrides for Ledger wallet.
Chris Duncan [Mon, 7 Jul 2025 15:31:53 +0000 (08:31 -0700)]
Update account method overrides for Ledger wallet.

8 months agoScroll test results as they are printed to test page.
Chris Duncan [Mon, 7 Jul 2025 15:28:51 +0000 (08:28 -0700)]
Scroll test results as they are printed to test page.

8 months agoAlphabetize function order.
Chris Duncan [Mon, 7 Jul 2025 13:26:01 +0000 (06:26 -0700)]
Alphabetize function order.

8 months agoCompare with instanceof instead of constructor name.
Chris Duncan [Mon, 7 Jul 2025 13:20:50 +0000 (06:20 -0700)]
Compare with instanceof instead of constructor name.

8 months agoAdd license header for REUSE compliance.
Chris Duncan [Mon, 7 Jul 2025 13:17:34 +0000 (06:17 -0700)]
Add license header for REUSE compliance.

8 months agoAlphabetize function declaration order.
Chris Duncan [Mon, 7 Jul 2025 13:14:47 +0000 (06:14 -0700)]
Alphabetize function declaration order.

8 months agoRemove unused import.
Chris Duncan [Mon, 7 Jul 2025 13:14:07 +0000 (06:14 -0700)]
Remove unused import.

8 months agoCreate type guard from validate function. Compare lock and unlock password with insta...
Chris Duncan [Mon, 7 Jul 2025 13:13:58 +0000 (06:13 -0700)]
Create type guard from validate function. Compare lock and unlock password with instanceof instead of constructor name. Update JSdoc comment.

8 months agoUse pool for NanoNaCl conversion and verification.
Chris Duncan [Sun, 6 Jul 2025 20:47:23 +0000 (13:47 -0700)]
Use pool for NanoNaCl conversion and verification.

8 months agoValidate PoW before committing to block.
Chris Duncan [Sun, 6 Jul 2025 08:03:33 +0000 (01:03 -0700)]
Validate PoW before committing to block.

8 months agoFix retrieving private key from Safe worker objectified bytes. Report errors caught...
Chris Duncan [Sun, 6 Jul 2025 07:54:17 +0000 (00:54 -0700)]
Fix retrieving private key from Safe worker objectified bytes. Report errors caught by pool workers.

8 months agoCreate wallet IDs from full 256-bit entropy. Change name of public method for putting...
Chris Duncan [Sun, 6 Jul 2025 07:23:30 +0000 (00:23 -0700)]
Create wallet IDs from full 256-bit entropy. Change name of public method for putting items in Safe. Never overwrite Safe entries.

8 months agoUse bytes to store account private key instead of string. Rename private class proper...
Chris Duncan [Sun, 6 Jul 2025 07:04:22 +0000 (00:04 -0700)]
Use bytes to store account private key instead of string. Rename private class properties to be more descriptive.

8 months agoSimplify bigint handling in safe storage.
Chris Duncan [Sun, 6 Jul 2025 06:14:56 +0000 (23:14 -0700)]
Simplify bigint handling in safe storage.

8 months agoDefine separate constant for key byte lengths.
Chris Duncan [Sun, 6 Jul 2025 06:06:06 +0000 (23:06 -0700)]
Define separate constant for key byte lengths.

8 months agoMove Ledger wallet ckd implementation to end of class to be consistent with other...
Chris Duncan [Sun, 6 Jul 2025 05:07:48 +0000 (22:07 -0700)]
Move Ledger wallet ckd implementation to end of class to be consistent with other wallet classes.

8 months agoRename getNextNewAccount and alphabetize wallet methods.
Chris Duncan [Sun, 6 Jul 2025 05:06:15 +0000 (22:06 -0700)]
Rename getNextNewAccount and alphabetize wallet methods.

8 months agoRename private members and shorten getters.
Chris Duncan [Sun, 6 Jul 2025 05:00:59 +0000 (22:00 -0700)]
Rename private members and shorten getters.

8 months agoInitialize all workers as static members.
Chris Duncan [Sun, 6 Jul 2025 04:46:19 +0000 (21:46 -0700)]
Initialize all workers as static members.

8 months agoRemove ts directives.
Chris Duncan [Sat, 5 Jul 2025 10:24:58 +0000 (03:24 -0700)]
Remove ts directives.

8 months agoUpdate to modern exports format.
Chris Duncan [Sat, 5 Jul 2025 10:23:26 +0000 (03:23 -0700)]
Update to modern exports format.

8 months agoFIx exports path. Emit types directly to dist directory.
Chris Duncan [Sat, 5 Jul 2025 10:08:53 +0000 (03:08 -0700)]
FIx exports path. Emit types directly to dist directory.

8 months agoMerge branch 'next/merge-ledger'
Chris Duncan [Sat, 5 Jul 2025 09:24:36 +0000 (02:24 -0700)]
Merge branch 'next/merge-ledger'

8 months agoMerge separate ledger classes into single class.
Chris Duncan [Sat, 5 Jul 2025 09:21:58 +0000 (02:21 -0700)]
Merge separate ledger classes into single class.

8 months agoMove Ledger class into ledger wallet file and update import in block 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.

8 months agoOptionally install browserfied Node buffer to enable LedgerJS libraries and update...
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.

8 months agoDeprecate unnecessary and redundant ArrayBuffer convert functions.
Chris Duncan [Sat, 5 Jul 2025 08:36:09 +0000 (01:36 -0700)]
Deprecate unnecessary and redundant ArrayBuffer convert functions.

8 months agoCopy Ledger imports to relevant wallet.
Chris Duncan [Sat, 5 Jul 2025 07:22:18 +0000 (00:22 -0700)]
Copy Ledger imports to relevant wallet.

8 months agoUpdate dependencies.
Chris Duncan [Sat, 5 Jul 2025 07:02:30 +0000 (00:02 -0700)]
Update dependencies.

8 months agoImprove error handling while constructing wallets and terminate workers on failure.
Chris Duncan [Fri, 4 Jul 2025 08:46:52 +0000 (01:46 -0700)]
Improve error handling while constructing wallets and terminate workers on failure.

8 months agoRemove references to CryptoKey which is no longer accepted as a parameter for creatin...
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.

8 months agoRename block pool for clarity.
Chris Duncan [Fri, 4 Jul 2025 08:11:53 +0000 (01:11 -0700)]
Rename block pool for clarity.

8 months agoRemove favicon since Nano Foundation can't get their licensing straight. Delete unuse...
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.

8 months agoUpdate all "secret key" references to "private key" for consistency.
Chris Duncan [Fri, 4 Jul 2025 08:02:35 +0000 (01:02 -0700)]
Update all "secret key" references to "private key" for consistency.

8 months agoMove ADPU codes into constants file.
Chris Duncan [Fri, 4 Jul 2025 07:53:53 +0000 (00:53 -0700)]
Move ADPU codes into constants file.

8 months agoDelete ancient benchmarks.
Chris Duncan [Fri, 4 Jul 2025 07:48:13 +0000 (00:48 -0700)]
Delete ancient benchmarks.

8 months agoFormatting.
Chris Duncan [Fri, 4 Jul 2025 01:00:53 +0000 (18:00 -0700)]
Formatting.

8 months agoFix test assertions.
Chris Duncan [Fri, 4 Jul 2025 01:00:10 +0000 (18:00 -0700)]
Fix test assertions.

8 months agoAbort long-running RPC calls after 10 seconds. Throw if any BIP-44 keys are invalid...
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.

8 months agoHandle BIP-44 errors and remove keys that failed.
Chris Duncan [Fri, 4 Jul 2025 00:45:36 +0000 (17:45 -0700)]
Handle BIP-44 errors and remove keys that failed.

8 months agoUse Node, then browser, then null for process envars.
Chris Duncan [Fri, 4 Jul 2025 00:00:38 +0000 (17:00 -0700)]
Use Node, then browser, then null for process envars.

8 months agoIgnore JS dotenv file and import it to enable envars in the browser.
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.

8 months agoRemove logging from account lock and unlock now that tests are correct.
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.

8 months agoFix Blake2b account lock test.
Chris Duncan [Thu, 3 Jul 2025 23:30:14 +0000 (16:30 -0700)]
Fix Blake2b account lock test.

8 months agoRename test file.
Chris Duncan [Thu, 3 Jul 2025 23:27:49 +0000 (16:27 -0700)]
Rename test file.

8 months agoTest account lock and unlock.
Chris Duncan [Thu, 3 Jul 2025 23:26:14 +0000 (16:26 -0700)]
Test account lock and unlock.

8 months agoFix test assert definitions.
Chris Duncan [Thu, 3 Jul 2025 23:25:30 +0000 (16:25 -0700)]
Fix test assert definitions.

8 months agoTweak wallet lock and unlock response handling.
Chris Duncan [Thu, 3 Jul 2025 23:14:44 +0000 (16:14 -0700)]
Tweak wallet lock and unlock response handling.

8 months agoMerge branch 'next/safe-worker'
Chris Duncan [Thu, 3 Jul 2025 22:14:33 +0000 (15:14 -0700)]
Merge branch 'next/safe-worker'

8 months agoFix tests using random bytes since password gets zeroed out when used.
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.

8 months agoFix test descriptions. Add tsc ignore directives for lock and unlock parameter type...
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.

8 months agoAwait wallet destruction in tests.
Chris Duncan [Thu, 3 Jul 2025 21:13:11 +0000 (14:13 -0700)]
Await wallet destruction in tests.

8 months agoRemove redundant success variable. Always zero out password bytes regardless of lock...
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.

8 months agoEnsure password bytes exist when locking or unlocking.
Chris Duncan [Thu, 3 Jul 2025 21:02:45 +0000 (14:02 -0700)]
Ensure password bytes exist when locking or unlocking.

8 months agoRemove logging from safe.
Chris Duncan [Thu, 3 Jul 2025 20:29:33 +0000 (13:29 -0700)]
Remove logging from safe.

8 months agoFix async destroy call not being awaited.
Chris Duncan [Thu, 3 Jul 2025 20:29:26 +0000 (13:29 -0700)]
Fix async destroy call not being awaited.

8 months agoInclude statements in try-catch.
Chris Duncan [Thu, 3 Jul 2025 20:29:12 +0000 (13:29 -0700)]
Include statements in try-catch.

8 months agoFix deletion not waiting for DML to complete.
Chris Duncan [Thu, 3 Jul 2025 20:28:54 +0000 (13:28 -0700)]
Fix deletion not waiting for DML to complete.

8 months agoSpecify scope for crypto module.
Chris Duncan [Thu, 3 Jul 2025 20:28:21 +0000 (13:28 -0700)]
Specify scope for crypto module.

8 months agoDestroy accounts in safe asynchronously too.
Chris Duncan [Thu, 3 Jul 2025 20:27:17 +0000 (13:27 -0700)]
Destroy accounts in safe asynchronously too.

8 months agoDestroy wallet safe asynchronously.
Chris Duncan [Thu, 3 Jul 2025 19:51:54 +0000 (12:51 -0700)]
Destroy wallet safe asynchronously.

8 months agoRemove crypto module destructuring. Move constants into class to fix usage in workers.
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.

8 months agoRevert utf8 encoders for use in workers. Fix buffer convert export.
Chris Duncan [Thu, 3 Jul 2025 19:33:07 +0000 (12:33 -0700)]
Revert utf8 encoders for use in workers. Fix buffer convert export.

8 months agoConvert Safe storage from `sessionStorage` to `IndexedDB`.
Chris Duncan [Thu, 3 Jul 2025 19:24:17 +0000 (12:24 -0700)]
Convert Safe storage from `sessionStorage` to `IndexedDB`.

8 months agoDelete logging of stringified Safe class.
Chris Duncan [Thu, 3 Jul 2025 19:23:53 +0000 (12:23 -0700)]
Delete logging of stringified Safe class.

8 months agoDelete extraneous pool logging.
Chris Duncan [Thu, 3 Jul 2025 19:23:32 +0000 (12:23 -0700)]
Delete extraneous pool logging.

8 months agoRemove crypto destructuring and reference the full object property path.
Chris Duncan [Thu, 3 Jul 2025 17:15:54 +0000 (10:15 -0700)]
Remove crypto destructuring and reference the full object property path.

8 months agoCall own method to destroy item for consistency.
Chris Duncan [Thu, 3 Jul 2025 17:07:05 +0000 (10:07 -0700)]
Call own method to destroy item for consistency.

8 months agoWrap storage retrieval in try-catch.
Chris Duncan [Thu, 3 Jul 2025 17:02:08 +0000 (10:02 -0700)]
Wrap storage retrieval in try-catch.

8 months agoZero out password if put throws.
Chris Duncan [Thu, 3 Jul 2025 16:57:25 +0000 (09:57 -0700)]
Zero out password if put throws.

8 months agoFix comment.
Chris Duncan [Thu, 3 Jul 2025 16:56:33 +0000 (09:56 -0700)]
Fix comment.