]> git.codecow.com Git - libnemo.git/log
libnemo.git
7 months agoStrict mode enabled by default for ESM.
Chris Duncan [Sun, 10 Aug 2025 00:38:37 +0000 (17:38 -0700)]
Strict mode enabled by default for ESM.

7 months agoRename wallet import to avoid confusion with JS keyword.
Chris Duncan [Sun, 10 Aug 2025 00:33:14 +0000 (17:33 -0700)]
Rename wallet import to avoid confusion with JS keyword.

7 months agoRemove unused imports.
Chris Duncan [Sat, 9 Aug 2025 22:56:54 +0000 (15:56 -0700)]
Remove unused imports.

7 months agoAdd wallet barrel.
Chris Duncan [Sat, 9 Aug 2025 09:05:05 +0000 (02:05 -0700)]
Add wallet barrel.

7 months agoAdd license header.
Chris Duncan [Sat, 9 Aug 2025 09:02:18 +0000 (02:02 -0700)]
Add license header.

7 months agoUpdate crypto module imports.
Chris Duncan [Sat, 9 Aug 2025 08:34:58 +0000 (01:34 -0700)]
Update crypto module imports.

7 months agoClear message data from worker when error is caught.
Chris Duncan [Sat, 9 Aug 2025 08:23:28 +0000 (01:23 -0700)]
Clear message data from worker when error is caught.

7 months agoZero out sensitive data in worker from input message as it is processed.
Chris Duncan [Sat, 9 Aug 2025 08:16:01 +0000 (01:16 -0700)]
Zero out sensitive data in worker from input message as it is processed.

7 months agoTypo.
Chris Duncan [Sat, 9 Aug 2025 07:49:17 +0000 (00:49 -0700)]
Typo.

7 months agoRemove byte reversing and just traverse backwards.
Chris Duncan [Sat, 9 Aug 2025 07:47:12 +0000 (00:47 -0700)]
Remove byte reversing and just traverse backwards.

7 months agoFix BIP-44 ckd using SLIP-0010 which only defines hardened addresses at all levels...
Chris Duncan [Sat, 9 Aug 2025 07:30:35 +0000 (00:30 -0700)]
Fix BIP-44 ckd using SLIP-0010 which only defines hardened addresses at all levels, deviating from BIP-44.

7 months agoMove an imported constant used in only one place.
Chris Duncan [Sat, 9 Aug 2025 07:24:35 +0000 (00:24 -0700)]
Move an imported constant used in only one place.

7 months agoSimplify BIP-39 seed gen by deriving bits directly.
Chris Duncan [Sat, 9 Aug 2025 07:22:55 +0000 (00:22 -0700)]
Simplify BIP-39 seed gen by deriving bits directly.

7 months agoReturn early from byte erasure instead of using control flow.
Chris Duncan [Sat, 9 Aug 2025 07:18:11 +0000 (00:18 -0700)]
Return early from byte erasure instead of using control flow.

7 months agoThrow on invalid base32 characters during conversion.
Chris Duncan [Sat, 9 Aug 2025 07:11:11 +0000 (00:11 -0700)]
Throw on invalid base32 characters during conversion.

7 months agoRemove redundant signature check.
Chris Duncan [Sat, 9 Aug 2025 07:02:34 +0000 (00:02 -0700)]
Remove redundant signature check.

7 months agoFix block processing JSON.
Chris Duncan [Sat, 9 Aug 2025 06:57:09 +0000 (23:57 -0700)]
Fix block processing JSON.

7 months agoFix change block link checking.
Chris Duncan [Sat, 9 Aug 2025 06:52:22 +0000 (23:52 -0700)]
Fix change block link checking.

7 months agoFix old BIP-39 nomenclature.
Chris Duncan [Sat, 9 Aug 2025 06:29:02 +0000 (23:29 -0700)]
Fix old BIP-39 nomenclature.

7 months agoCreate new directories to improve file organization.
Chris Duncan [Sat, 9 Aug 2025 06:27:47 +0000 (23:27 -0700)]
Create new directories to improve file organization.

7 months agoReset account internal flag.
Chris Duncan [Sat, 9 Aug 2025 06:24:02 +0000 (23:24 -0700)]
Reset account internal flag.

7 months agoErase encoded secrets after encrypting them.
Chris Duncan [Fri, 8 Aug 2025 21:36:00 +0000 (14:36 -0700)]
Erase encoded secrets after encrypting them.

7 months agoStore mnemonic as buffer and convert as needed.
Chris Duncan [Fri, 8 Aug 2025 21:34:30 +0000 (14:34 -0700)]
Store mnemonic as buffer and convert as needed.

7 months agoSet safe seed and mnemonic directly from decryption method instead of returning....
Chris Duncan [Fri, 8 Aug 2025 21:22:54 +0000 (14:22 -0700)]
Set safe seed and mnemonic directly from decryption method instead of returning. Encode and decode bytes explicitly to avoid string handling.

7 months agoRequire wallet type as additional metadata to decrypt.
Chris Duncan [Fri, 8 Aug 2025 20:53:20 +0000 (13:53 -0700)]
Require wallet type as additional metadata to decrypt.

7 months agoMerge branch 'next/refactor-blocks'
Chris Duncan [Fri, 8 Aug 2025 20:22:15 +0000 (13:22 -0700)]
Merge branch 'next/refactor-blocks'

7 months agoFix ledger tests.
Chris Duncan [Fri, 8 Aug 2025 20:03:28 +0000 (13:03 -0700)]
Fix ledger tests.

7 months agoFix Ledger signature from block returning bytes instead of hex.
Chris Duncan [Fri, 8 Aug 2025 20:03:09 +0000 (13:03 -0700)]
Fix Ledger signature from block returning bytes instead of hex.

7 months agoPrioritize USB for Ledger for now.
Chris Duncan [Fri, 8 Aug 2025 19:44:32 +0000 (12:44 -0700)]
Prioritize USB for Ledger for now.

7 months agoFix pow test.
Chris Duncan [Fri, 8 Aug 2025 19:41:37 +0000 (12:41 -0700)]
Fix pow test.

7 months agoVerify seed in constant time.
Chris Duncan [Fri, 8 Aug 2025 19:35:54 +0000 (12:35 -0700)]
Verify seed in constant time.

7 months agoCheck for error property in RPC response.
Chris Duncan [Fri, 8 Aug 2025 19:25:50 +0000 (12:25 -0700)]
Check for error property in RPC response.

7 months agoMatch Ledger interface priority with documentation.
Chris Duncan [Fri, 8 Aug 2025 19:23:54 +0000 (12:23 -0700)]
Match Ledger interface priority with documentation.

7 months agoFix ledger signature output.
Chris Duncan [Fri, 8 Aug 2025 19:23:29 +0000 (12:23 -0700)]
Fix ledger signature output.

7 months agoChange block previous property to bytes.
Chris Duncan [Fri, 8 Aug 2025 19:23:15 +0000 (12:23 -0700)]
Change block previous property to bytes.

7 months agoFix wallet accounts return.
Chris Duncan [Fri, 8 Aug 2025 19:22:18 +0000 (12:22 -0700)]
Fix wallet accounts return.

7 months agoFix missing safe action from whitelist.
Chris Duncan [Fri, 8 Aug 2025 19:22:06 +0000 (12:22 -0700)]
Fix missing safe action from whitelist.

7 months agoFix pow check when processing block.
Chris Duncan [Fri, 8 Aug 2025 19:08:13 +0000 (12:08 -0700)]
Fix pow check when processing block.

7 months agoReduce errors thrown by extracting addresses from account import data.
Chris Duncan [Fri, 8 Aug 2025 19:04:53 +0000 (12:04 -0700)]
Reduce errors thrown by extracting addresses from account import data.

7 months agoFix contact info sanitization.
Chris Duncan [Fri, 8 Aug 2025 18:48:05 +0000 (11:48 -0700)]
Fix contact info sanitization.

7 months agoAvoid trying to transfer buffers if unsupported.
Chris Duncan [Fri, 8 Aug 2025 18:43:33 +0000 (11:43 -0700)]
Avoid trying to transfer buffers if unsupported.

7 months agoRestrict iv to 96 bits per GCM best practice.
Chris Duncan [Fri, 8 Aug 2025 18:41:47 +0000 (11:41 -0700)]
Restrict iv to 96 bits per GCM best practice.

7 months agoFix safe sign method ignoring wallet type when deriving account and add test scenario.
Chris Duncan [Fri, 8 Aug 2025 18:38:29 +0000 (11:38 -0700)]
Fix safe sign method ignoring wallet type when deriving account and add test scenario.

7 months agoReorder methods.
Chris Duncan [Fri, 8 Aug 2025 18:30:13 +0000 (11:30 -0700)]
Reorder methods.

7 months agoExtract wallet import to private method called by both create and import API methods.
Chris Duncan [Fri, 8 Aug 2025 18:29:25 +0000 (11:29 -0700)]
Extract wallet import to private method called by both create and import API methods.

7 months agoRemove debugger statement.
Chris Duncan [Fri, 8 Aug 2025 18:28:54 +0000 (11:28 -0700)]
Remove debugger statement.

7 months agoFix convert tool tests to be synchronous. Add convert tests for additional scenarios.
Chris Duncan [Fri, 8 Aug 2025 18:11:46 +0000 (11:11 -0700)]
Fix convert tool tests to be synchronous. Add convert tests for additional scenarios.

7 months agoFix fractional raw handling and allow zero amounts.
Chris Duncan [Fri, 8 Aug 2025 18:11:17 +0000 (11:11 -0700)]
Fix fractional raw handling and allow zero amounts.

7 months agoUtilize convert function for block balance calculations.
Chris Duncan [Fri, 8 Aug 2025 15:24:46 +0000 (08:24 -0700)]
Utilize convert function for block balance calculations.

7 months agoAdd number primitive support for unit conversion.
Chris Duncan [Fri, 8 Aug 2025 15:24:31 +0000 (08:24 -0700)]
Add number primitive support for unit conversion.

7 months agoImprove unit conversion.
Chris Duncan [Fri, 8 Aug 2025 15:09:42 +0000 (08:09 -0700)]
Improve unit conversion.

7 months agoFix duplicated test.
Chris Duncan [Fri, 8 Aug 2025 15:09:22 +0000 (08:09 -0700)]
Fix duplicated test.

7 months agoUpdate protocol max values.
Chris Duncan [Fri, 8 Aug 2025 15:09:08 +0000 (08:09 -0700)]
Update protocol max values.

7 months agoFix block unit conversion.
Chris Duncan [Fri, 8 Aug 2025 12:44:26 +0000 (05:44 -0700)]
Fix block unit conversion.

7 months agoAdd test coverage for wallet balance conversion between units.
Chris Duncan [Fri, 8 Aug 2025 12:43:29 +0000 (05:43 -0700)]
Add test coverage for wallet balance conversion between units.

7 months agoRemove outdated documentation.
Chris Duncan [Fri, 8 Aug 2025 03:31:46 +0000 (20:31 -0700)]
Remove outdated documentation.

7 months agoDelete deprecated entropy class.
Chris Duncan [Fri, 8 Aug 2025 03:26:21 +0000 (20:26 -0700)]
Delete deprecated entropy class.

7 months agoReplace remaining usage of Entropy with plain crypto calls.
Chris Duncan [Fri, 8 Aug 2025 03:26:00 +0000 (20:26 -0700)]
Replace remaining usage of Entropy with plain crypto calls.

7 months agoSimplify BIP class names.
Chris Duncan [Fri, 8 Aug 2025 02:44:10 +0000 (19:44 -0700)]
Simplify BIP class names.

7 months agoRemove deprecated separate blake ckd file.
Chris Duncan [Fri, 8 Aug 2025 02:40:44 +0000 (19:40 -0700)]
Remove deprecated separate blake ckd file.

7 months agoIntegrate blake ckd into wallet safe.
Chris Duncan [Fri, 8 Aug 2025 02:40:10 +0000 (19:40 -0700)]
Integrate blake ckd into wallet safe.

7 months agoRename BIP files.
Chris Duncan [Fri, 8 Aug 2025 02:36:12 +0000 (19:36 -0700)]
Rename BIP files.

7 months agoRemove deprecated separate wordlist file.
Chris Duncan [Fri, 8 Aug 2025 02:35:07 +0000 (19:35 -0700)]
Remove deprecated separate wordlist file.

7 months agoRename and move wordlist.
Chris Duncan [Fri, 8 Aug 2025 02:34:04 +0000 (19:34 -0700)]
Rename and move wordlist.

7 months agoMove BIP-39 wordlist into mnemonic class file.
Chris Duncan [Fri, 8 Aug 2025 02:32:44 +0000 (19:32 -0700)]
Move BIP-39 wordlist into mnemonic class file.

7 months agoImport fixes.
Chris Duncan [Fri, 8 Aug 2025 02:26:23 +0000 (19:26 -0700)]
Import fixes.

7 months agoType definition file fixes.
Chris Duncan [Fri, 8 Aug 2025 02:20:13 +0000 (19:20 -0700)]
Type definition file fixes.

7 months agoDeprecate unnecessary unknown union types.
Chris Duncan [Fri, 8 Aug 2025 02:15:46 +0000 (19:15 -0700)]
Deprecate unnecessary unknown union types.

7 months agoRebuild dependencies.
Chris Duncan [Fri, 8 Aug 2025 02:06:01 +0000 (19:06 -0700)]
Rebuild dependencies.

7 months agoFix pow and tool tests.
Chris Duncan [Fri, 8 Aug 2025 01:23:16 +0000 (18:23 -0700)]
Fix pow and tool tests.

7 months agoFinish fixing block tests.
Chris Duncan [Fri, 8 Aug 2025 01:16:47 +0000 (18:16 -0700)]
Finish fixing block tests.

7 months agoFix link part of block hash.
Chris Duncan [Fri, 8 Aug 2025 01:16:40 +0000 (18:16 -0700)]
Fix link part of block hash.

7 months agoUse public key for open block pow per spec.
Chris Duncan [Fri, 8 Aug 2025 01:05:04 +0000 (18:05 -0700)]
Use public key for open block pow per spec.

7 months agoFix block signing test parameters.
Chris Duncan [Fri, 8 Aug 2025 00:53:59 +0000 (17:53 -0700)]
Fix block signing test parameters.

7 months agoFix block tests.
Chris Duncan [Thu, 7 Aug 2025 21:40:41 +0000 (14:40 -0700)]
Fix block tests.

7 months agoNarrow type checking in blake digest.
Chris Duncan [Thu, 7 Aug 2025 20:45:11 +0000 (13:45 -0700)]
Narrow type checking in blake digest.

7 months agoFix wallet signature output.
Chris Duncan [Thu, 7 Aug 2025 20:21:45 +0000 (13:21 -0700)]
Fix wallet signature output.

7 months agoFix default amount units.
Chris Duncan [Thu, 7 Aug 2025 19:49:17 +0000 (12:49 -0700)]
Fix default amount units.

7 months agoStart fixing block tests.
Chris Duncan [Thu, 7 Aug 2025 19:43:32 +0000 (12:43 -0700)]
Start fixing block tests.

7 months agoRevert block hash output but implement it as a wrapper for private hash byte method.
Chris Duncan [Thu, 7 Aug 2025 19:42:55 +0000 (12:42 -0700)]
Revert block hash output but implement it as a wrapper for private hash byte method.

7 months agoAllow block signing to return block immediately instead of a promise if a precalculat...
Chris Duncan [Thu, 7 Aug 2025 19:14:17 +0000 (12:14 -0700)]
Allow block signing to return block immediately instead of a promise if a precalculated signature is provided. Update type definitions.

7 months agoScrap overcomplicated block methods to and from.
Chris Duncan [Thu, 7 Aug 2025 18:39:44 +0000 (11:39 -0700)]
Scrap overcomplicated block methods to and from.

7 months agoAdd documentation for block constructor. Remove signature from constructor and allow...
Chris Duncan [Thu, 7 Aug 2025 18:38:34 +0000 (11:38 -0700)]
Add documentation for block constructor. Remove signature from constructor and allow literal signature string to be passed to sign method.

7 months agoAllow number type for balance.
Chris Duncan [Thu, 7 Aug 2025 18:36:45 +0000 (11:36 -0700)]
Allow number type for balance.

7 months agoUse zero public key instead of importing an entire account.
Chris Duncan [Thu, 7 Aug 2025 16:50:31 +0000 (09:50 -0700)]
Use zero public key instead of importing an entire account.

7 months agoSave burn address public key as its own constant.
Chris Duncan [Thu, 7 Aug 2025 16:48:31 +0000 (09:48 -0700)]
Save burn address public key as its own constant.

7 months agoStart updating block calls in tests.
Chris Duncan [Wed, 6 Aug 2025 21:46:20 +0000 (14:46 -0700)]
Start updating block calls in tests.

7 months agoAccept work as pow parameter. Fix Ledger verification. Fix sweep tool. Update type...
Chris Duncan [Wed, 6 Aug 2025 21:46:12 +0000 (14:46 -0700)]
Accept work as pow parameter. Fix Ledger verification. Fix sweep tool. Update type definitions.

7 months agoRepresentative may be unknown when creating block intended for change request.
Chris Duncan [Wed, 6 Aug 2025 19:46:14 +0000 (12:46 -0700)]
Representative may be unknown when creating block intended for change request.

7 months agoUpdate wallet type definitions.
Chris Duncan [Wed, 6 Aug 2025 19:37:45 +0000 (12:37 -0700)]
Update wallet type definitions.

7 months agoUpdate block type definition.
Chris Duncan [Wed, 6 Aug 2025 19:36:02 +0000 (12:36 -0700)]
Update block type definition.

7 months agoFix Ledger sign implementation and block tests.
Chris Duncan [Wed, 6 Aug 2025 19:34:30 +0000 (12:34 -0700)]
Fix Ledger sign implementation and block tests.

7 months agoFix wallet block usage. Add hex format option to wallet signature output.
Chris Duncan [Wed, 6 Aug 2025 19:25:22 +0000 (12:25 -0700)]
Fix wallet block usage. Add hex format option to wallet signature output.

7 months agoEliminate redundant DataViews from BIP-44 ckd.
Chris Duncan [Wed, 6 Aug 2025 18:52:35 +0000 (11:52 -0700)]
Eliminate redundant DataViews from BIP-44 ckd.

7 months agoExport updated block class.
Chris Duncan [Wed, 6 Aug 2025 17:56:06 +0000 (10:56 -0700)]
Export updated block class.

7 months agoReenable signature and work as block constructor args. Adjust error handling.
Chris Duncan [Wed, 6 Aug 2025 17:55:15 +0000 (10:55 -0700)]
Reenable signature and work as block constructor args. Adjust error handling.

7 months agoExpand options for block constructor arguments, using block account as fallback.
Chris Duncan [Wed, 6 Aug 2025 17:52:40 +0000 (10:52 -0700)]
Expand options for block constructor arguments, using block account as fallback.

7 months agoAdjust error handling for block signature verification.
Chris Duncan [Wed, 6 Aug 2025 17:35:30 +0000 (10:35 -0700)]
Adjust error handling for block signature verification.

7 months agoMove block validation.
Chris Duncan [Wed, 6 Aug 2025 17:31:01 +0000 (10:31 -0700)]
Move block validation.

7 months agoRefactor block hash and link to be stored as bytes and converted as needed.
Chris Duncan [Wed, 6 Aug 2025 05:00:37 +0000 (22:00 -0700)]
Refactor block hash and link to be stored as bytes and converted as needed.