]> git.codecow.com Git - libnemo.git/log
libnemo.git
8 months agoRefactor safe retrieval to get multiple records.
Chris Duncan [Fri, 18 Jul 2025 16:06:21 +0000 (09:06 -0700)]
Refactor safe retrieval to get multiple records.

8 months agoUse this properly in static context.
Chris Duncan [Fri, 18 Jul 2025 15:03:02 +0000 (08:03 -0700)]
Use this properly in static context.

8 months agoMerge branch 'next/always-locked'
Chris Duncan [Fri, 18 Jul 2025 14:20:05 +0000 (07:20 -0700)]
Merge branch 'next/always-locked'

8 months agoShorten account private key export method and make primary implementation private...
Chris Duncan [Fri, 18 Jul 2025 14:17:59 +0000 (07:17 -0700)]
Shorten account private key export method and make primary implementation private. Pass buffer data directly to worker queue assignments instead of using intermediate variables. Update tests.

8 months agoUpdate tests.
Chris Duncan [Fri, 18 Jul 2025 13:44:39 +0000 (06:44 -0700)]
Update tests.

8 months agoProcess derived public keys from wallet in single call.
Chris Duncan [Fri, 18 Jul 2025 13:07:40 +0000 (06:07 -0700)]
Process derived public keys from wallet in single call.

8 months agoFix block private key account proxy.
Chris Duncan [Fri, 18 Jul 2025 07:07:16 +0000 (00:07 -0700)]
Fix block private key account proxy.

8 months agoRemove logging now that issues with account derivation are fixed.
Chris Duncan [Fri, 18 Jul 2025 07:04:55 +0000 (00:04 -0700)]
Remove logging now that issues with account derivation are fixed.

8 months agoFix public key bug in account constructor.
Chris Duncan [Fri, 18 Jul 2025 07:03:30 +0000 (00:03 -0700)]
Fix public key bug in account constructor.

8 months agoFix bugs in data transfer to workers.
Chris Duncan [Fri, 18 Jul 2025 06:31:44 +0000 (23:31 -0700)]
Fix bugs in data transfer to workers.

8 months agoBegin refactoring to allow Accounts to be encrypted en masse while retaining their...
Chris Duncan [Fri, 18 Jul 2025 06:05:03 +0000 (23:05 -0700)]
Begin refactoring to allow Accounts to be encrypted en masse while retaining their index for their Wallet.

8 months agoFormatting.
Chris Duncan [Fri, 18 Jul 2025 05:56:56 +0000 (22:56 -0700)]
Formatting.

8 months agoUse type alias to simplify definitions.
Chris Duncan [Fri, 18 Jul 2025 04:41:08 +0000 (21:41 -0700)]
Use type alias to simplify definitions.

8 months agoGenerate encryption key once per safe storage request.
Chris Duncan [Thu, 17 Jul 2025 21:43:59 +0000 (14:43 -0700)]
Generate encryption key once per safe storage request.

8 months agoAdd worker-related types to definition file.
Chris Duncan [Thu, 17 Jul 2025 19:32:51 +0000 (12:32 -0700)]
Add worker-related types to definition file.

8 months agoRename queue method for clarity.
Chris Duncan [Thu, 17 Jul 2025 17:01:46 +0000 (10:01 -0700)]
Rename queue method for clarity.

8 months agoCombine imports from public data into one method. Reorganize methods.
Chris Duncan [Thu, 17 Jul 2025 16:25:23 +0000 (09:25 -0700)]
Combine imports from public data into one method. Reorganize methods.

8 months agoEmit types to new ignored directory.
Chris Duncan [Thu, 17 Jul 2025 15:48:56 +0000 (08:48 -0700)]
Emit types to new ignored directory.

8 months agoStart migrating to bespoke type definition file.
Chris Duncan [Thu, 17 Jul 2025 15:46:08 +0000 (08:46 -0700)]
Start migrating to bespoke type definition file.

8 months agoMark restricted constructors as private to inform Typescript engine.
Chris Duncan [Thu, 17 Jul 2025 15:37:22 +0000 (08:37 -0700)]
Mark restricted constructors as private to inform Typescript engine.

8 months agoFix esbuild common options file type and type import.
Chris Duncan [Thu, 17 Jul 2025 15:30:55 +0000 (08:30 -0700)]
Fix esbuild common options file type and type import.

8 months agoFormatting.
Chris Duncan [Thu, 17 Jul 2025 15:22:16 +0000 (08:22 -0700)]
Formatting.

8 months agoAdd logging to Safe now that prod build removes logging statements. Leave retrieved...
Chris Duncan [Thu, 17 Jul 2025 13:13:41 +0000 (06:13 -0700)]
Add logging to Safe now that prod build removes logging statements. Leave retrieved records in the db until explicitly destroyed. Refactor key derivation and record data validation.

8 months agoImplement esbuild common options. Add build target for prod that strips logging and...
Chris Duncan [Thu, 17 Jul 2025 13:12:31 +0000 (06:12 -0700)]
Implement esbuild common options. Add build target for prod that strips logging and debugging. Update package scripts.

8 months agoRename to assume browser target for esbuild dev work.
Chris Duncan [Thu, 17 Jul 2025 13:11:31 +0000 (06:11 -0700)]
Rename to assume browser target for esbuild dev work.

8 months agoExport esbuild options common to all build targets.
Chris Duncan [Thu, 17 Jul 2025 13:10:19 +0000 (06:10 -0700)]
Export esbuild options common to all build targets.

8 months agoFormatting.
Chris Duncan [Thu, 17 Jul 2025 12:55:55 +0000 (05:55 -0700)]
Formatting.

8 months agoRemove debugger statement.
Chris Duncan [Thu, 17 Jul 2025 00:23:05 +0000 (17:23 -0700)]
Remove debugger statement.

8 months agoFix block signing tests.
Chris Duncan [Thu, 17 Jul 2025 00:19:44 +0000 (17:19 -0700)]
Fix block signing tests.

8 months agoRefactor to support multiple stores at once.
Chris Duncan [Wed, 16 Jul 2025 21:58:18 +0000 (14:58 -0700)]
Refactor to support multiple stores at once.

8 months agoLock accounts using the wallet seed by default. Refactor account unlock method as...
Chris Duncan [Wed, 16 Jul 2025 14:58:45 +0000 (07:58 -0700)]
Lock accounts using the wallet seed by default. Refactor account unlock method as export method. Always overwrite records in Safe db. Update tests.

8 months agoLock accounts using wallet seed as password when locking wallet.
Chris Duncan [Wed, 16 Jul 2025 14:23:53 +0000 (07:23 -0700)]
Lock accounts using wallet seed as password when locking wallet.

8 months agoUse different salt and IV when storing in safe. Encode entire object of buffers as...
Chris Duncan [Wed, 16 Jul 2025 14:20:10 +0000 (07:20 -0700)]
Use different salt and IV when storing in safe. Encode entire object of buffers as base32 before stringifying and encrypting as single object.

8 months agoUse static codecs for convert functions. Formatting.
Chris Duncan [Wed, 16 Jul 2025 14:18:00 +0000 (07:18 -0700)]
Use static codecs for convert functions. Formatting.

8 months agoRefactor account class.
Chris Duncan [Wed, 16 Jul 2025 06:03:39 +0000 (23:03 -0700)]
Refactor account class.

8 months agoMerge branch 'next/bytes-to-workers'
Chris Duncan [Wed, 16 Jul 2025 04:08:47 +0000 (21:08 -0700)]
Merge branch 'next/bytes-to-workers'

8 months agoResume testing wallet import.
Chris Duncan [Wed, 16 Jul 2025 04:07:46 +0000 (21:07 -0700)]
Resume testing wallet import.

8 months agoAdd signing method to Account class and simplify Block sign method accordingly.
Chris Duncan [Wed, 16 Jul 2025 04:06:22 +0000 (21:06 -0700)]
Add signing method to Account class and simplify Block sign method accordingly.

8 months agoRemove unused import
Chris Duncan [Wed, 16 Jul 2025 03:46:55 +0000 (20:46 -0700)]
Remove unused import

8 months agoReturn results directly from workers instead of always putting in an array now that...
Chris Duncan [Wed, 16 Jul 2025 03:29:44 +0000 (20:29 -0700)]
Return results directly from workers instead of always putting in an array now that we use Data objects.

8 months agoRemove debugger statement.
Chris Duncan [Wed, 16 Jul 2025 03:05:46 +0000 (20:05 -0700)]
Remove debugger statement.

8 months agoCall single account from test and uncomment tests.
Chris Duncan [Wed, 16 Jul 2025 03:03:41 +0000 (20:03 -0700)]
Call single account from test and uncomment tests.

8 months agoFix signature verification.
Chris Duncan [Tue, 15 Jul 2025 21:39:00 +0000 (14:39 -0700)]
Fix signature verification.

8 months agoFix wallet import from libnemo ID.
Chris Duncan [Tue, 15 Jul 2025 21:14:56 +0000 (14:14 -0700)]
Fix wallet import from libnemo ID.

8 months agoFix issue with restoring from new wallet ID format with prefix.
Chris Duncan [Tue, 15 Jul 2025 20:58:36 +0000 (13:58 -0700)]
Fix issue with restoring from new wallet ID format with prefix.

8 months agoFix account lock and unlock.
Chris Duncan [Tue, 15 Jul 2025 20:54:28 +0000 (13:54 -0700)]
Fix account lock and unlock.

8 months agoFix conversion of detached buffers to hexadecimal.
Chris Duncan [Tue, 15 Jul 2025 20:42:07 +0000 (13:42 -0700)]
Fix conversion of detached buffers to hexadecimal.

8 months agoFix account derivation. Start extracting types to bespoke type definition file.
Chris Duncan [Tue, 15 Jul 2025 19:36:05 +0000 (12:36 -0700)]
Fix account derivation. Start extracting types to bespoke type definition file.

8 months agoFix null coin and use Nano as default for BIP-44 ckd.
Chris Duncan [Tue, 15 Jul 2025 18:50:47 +0000 (11:50 -0700)]
Fix null coin and use Nano as default for BIP-44 ckd.

8 months agoDo not store mnemonic if it does not exist.
Chris Duncan [Tue, 15 Jul 2025 18:43:14 +0000 (11:43 -0700)]
Do not store mnemonic if it does not exist.

8 months agoLots of refactoring to support bytes for workers and to simplify how workers work.
Chris Duncan [Tue, 15 Jul 2025 18:36:48 +0000 (11:36 -0700)]
Lots of refactoring to support bytes for workers and to simplify how workers work.

8 months agoFormatting.
Chris Duncan [Tue, 15 Jul 2025 12:36:48 +0000 (05:36 -0700)]
Formatting.

8 months agoFormatting.
Chris Duncan [Tue, 15 Jul 2025 12:36:03 +0000 (05:36 -0700)]
Formatting.

8 months agoMerge pool into workers barrel module.
Chris Duncan [Tue, 15 Jul 2025 12:33:37 +0000 (05:33 -0700)]
Merge pool into workers barrel module.

8 months agoFormatting.
Chris Duncan [Tue, 15 Jul 2025 12:33:11 +0000 (05:33 -0700)]
Formatting.

8 months agoMerge base wallet with barrel module.
Chris Duncan [Tue, 15 Jul 2025 12:25:52 +0000 (05:25 -0700)]
Merge base wallet with barrel module.

8 months agoBig refactoring, need to fix Safe set and get, how the data is structured.
Chris Duncan [Mon, 14 Jul 2025 21:35:37 +0000 (14:35 -0700)]
Big refactoring, need to fix Safe set and get, how the data is structured.

8 months agoUse for loop instead of map function for performance.
Chris Duncan [Mon, 14 Jul 2025 16:44:27 +0000 (09:44 -0700)]
Use for loop instead of map function for performance.

8 months agoAllow data containing bigints to be stored in safe.
Chris Duncan [Mon, 14 Jul 2025 16:44:13 +0000 (09:44 -0700)]
Allow data containing bigints to be stored in safe.

8 months agoFix buffer typings.
Chris Duncan [Sat, 12 Jul 2025 07:58:05 +0000 (00:58 -0700)]
Fix buffer typings.

8 months agoUpdate pools to assign using string metadata as headers and actual data as bytes...
Chris Duncan [Sat, 12 Jul 2025 07:33:09 +0000 (00:33 -0700)]
Update pools to assign using string metadata as headers and actual data as bytes so they can be transferred to the worker.

8 months agoFlatten condition check.
Chris Duncan [Fri, 11 Jul 2025 15:02:21 +0000 (08:02 -0700)]
Flatten condition check.

8 months agoSkip Ledger tests to save time now that they are all passing.
Chris Duncan [Fri, 11 Jul 2025 06:03:09 +0000 (23:03 -0700)]
Skip Ledger tests to save time now that they are all passing.

8 months agoRemove unused imports.
Chris Duncan [Fri, 11 Jul 2025 06:02:53 +0000 (23:02 -0700)]
Remove unused imports.

8 months agoRemove redundant condition.
Chris Duncan [Fri, 11 Jul 2025 06:02:27 +0000 (23:02 -0700)]
Remove redundant condition.

8 months agoAlphabetize methods.
Chris Duncan [Fri, 11 Jul 2025 06:02:06 +0000 (23:02 -0700)]
Alphabetize methods.

8 months agoQuit app ADPU is not working, so sever the connection by losing browser privileges...
Chris Duncan [Thu, 10 Jul 2025 20:39:25 +0000 (13:39 -0700)]
Quit app ADPU is not working, so sever the connection by losing browser privileges instead.

8 months agoRemove unused imports.
Chris Duncan [Thu, 10 Jul 2025 19:17:42 +0000 (12:17 -0700)]
Remove unused imports.

8 months agoAdd refresh account test to Ledger.
Chris Duncan [Thu, 10 Jul 2025 18:47:13 +0000 (11:47 -0700)]
Add refresh account test to Ledger.

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.