]> zoso.dev Git - libnemo.git/log
libnemo.git
3 weeks agoAdditional tests for wallet properties.
Chris Duncan [Wed, 20 Nov 2024 01:07:16 +0000 (17:07 -0800)]
Additional tests for wallet properties.

3 weeks agoUse arrow notation for tests.
Chris Duncan [Wed, 20 Nov 2024 00:44:14 +0000 (16:44 -0800)]
Use arrow notation for tests.

3 weeks agoUpdate version. v0.0.20
Chris Duncan [Tue, 19 Nov 2024 07:18:04 +0000 (23:18 -0800)]
Update version.

3 weeks agoFix typo.
Chris Duncan [Tue, 19 Nov 2024 07:16:32 +0000 (23:16 -0800)]
Fix typo.

3 weeks agoIgnore test coverage file.
Chris Duncan [Tue, 19 Nov 2024 07:15:50 +0000 (23:15 -0800)]
Ignore test coverage file.

3 weeks agoLock and unlock is pretty solid, so remove flag for skipping relevant tests.
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.

3 weeks agoIndicate to esbuild when browser bundle is being built versus when Node tests are...
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.

3 weeks agoDocument test vector sources in TEST_VECTORS file, and remove repetitive warning...
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.

3 weeks agoNewline for legibility.
Chris Duncan [Tue, 19 Nov 2024 07:04:53 +0000 (23:04 -0800)]
Newline for legibility.

3 weeks agoIn Wallet class, greatly expand on accounts method documentation.
Chris Duncan [Tue, 19 Nov 2024 07:03:21 +0000 (23:03 -0800)]
In Wallet class, greatly expand on accounts method documentation.

3 weeks agoAssign private property in Safe constructor.
Chris Duncan [Tue, 19 Nov 2024 07:01:57 +0000 (23:01 -0800)]
Assign private property in Safe constructor.

3 weeks agoNewlines for legibility.
Chris Duncan [Tue, 19 Nov 2024 06:58:25 +0000 (22:58 -0800)]
Newlines for legibility.

3 weeks agoIntegrate blake2b package, replacing blakejs and blake2b-wasm. Restore arrow notation...
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.

3 weeks agoWeb Worker showed no performance benefit, so revert it.
Chris Duncan [Sun, 17 Nov 2024 08:36:41 +0000 (00:36 -0800)]
Web Worker showed no performance benefit, so revert it.

3 weeks agoUpdate dependencies.
Chris Duncan [Sun, 17 Nov 2024 07:24:48 +0000 (23:24 -0800)]
Update dependencies.

3 weeks agoUse new WASM blake hashing module. Eliminate an import within worker file by performi...
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.

3 weeks agoWorker global override for node testing was moved to wallet, so remove it from custom...
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.

3 weeks agoReintroduce former Pool as Thread so that ckd tasks can be managed in a queue.
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.

3 weeks agoFix test import references.
Chris Duncan [Sun, 17 Nov 2024 07:19:53 +0000 (23:19 -0800)]
Fix test import references.

3 weeks agoStart substitution of blakejs with blake2b package.
Chris Duncan [Sun, 17 Nov 2024 01:16:39 +0000 (17:16 -0800)]
Start substitution of blakejs with blake2b package.

3 weeks agoReorganize wallet tests to remove unknown vectors, simplify messaging, and ignore...
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.

3 weeks agoScrap worker pool in favor of one worker per wallet.
Chris Duncan [Sat, 16 Nov 2024 21:12:31 +0000 (13:12 -0800)]
Scrap worker pool in favor of one worker per wallet.

4 weeks agoWeb worker doesn't pass complex objects like Account, so return private key instead...
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.

4 weeks agoStart testing ckd pool.
Chris Duncan [Mon, 11 Nov 2024 10:02:06 +0000 (02:02 -0800)]
Start testing ckd pool.

4 weeks agoPass postMessage as handler instead of calling it after ckd.
Chris Duncan [Mon, 11 Nov 2024 10:01:03 +0000 (02:01 -0800)]
Pass postMessage as handler instead of calling it after ckd.

4 weeks agoMove function and make it private.
Chris Duncan [Mon, 11 Nov 2024 09:59:56 +0000 (01:59 -0800)]
Move function and make it private.

4 weeks agoThrow on invalid Ledger accounts.
Chris Duncan [Mon, 11 Nov 2024 09:59:26 +0000 (01:59 -0800)]
Throw on invalid Ledger accounts.

4 weeks agoFix invalid index size.
Chris Duncan [Mon, 11 Nov 2024 09:58:23 +0000 (01:58 -0800)]
Fix invalid index size.

4 weeks agoMove polyfills into separate file from test vectors, and redesign them as side effect...
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.

4 weeks agoPerformance test does not show a huge improvement (half a second over a million recor...
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.

4 weeks agoThrow if Ledger account derivation fails so that null result can be removed. Derive...
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.

4 weeks agoFix BLAKE2b ckd using 16-bit index instead of 32-bit.
Chris Duncan [Sun, 10 Nov 2024 21:25:59 +0000 (13:25 -0800)]
Fix BLAKE2b ckd using 16-bit index instead of 32-bit.

4 weeks agoTest additional accounts when deriving from BLAKE2b wallet. Test more BLAKE2b wallet...
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.

4 weeks agoAdjust test vector names to accomodate broader data set.
Chris Duncan [Sun, 10 Nov 2024 21:23:14 +0000 (13:23 -0800)]
Adjust test vector names to accomodate broader data set.

4 weeks agoDocument test vector sources.
Chris Duncan [Sun, 10 Nov 2024 21:06:41 +0000 (13:06 -0800)]
Document test vector sources.

4 weeks agoIndicate algorithm for test vectors instead of source.
Chris Duncan [Sun, 10 Nov 2024 21:04:02 +0000 (13:04 -0800)]
Indicate algorithm for test vectors instead of source.

4 weeks agoRefactor pool and ckd.
Chris Duncan [Sun, 10 Nov 2024 10:42:30 +0000 (02:42 -0800)]
Refactor pool and ckd.

4 weeks agow
Chris Duncan [Sat, 9 Nov 2024 09:27:34 +0000 (01:27 -0800)]
w

4 weeks agow
Chris Duncan [Sat, 9 Nov 2024 08:53:33 +0000 (00:53 -0800)]
w

4 weeks agot
Chris Duncan [Sat, 9 Nov 2024 02:26:36 +0000 (18:26 -0800)]
t

4 weeks agoSkip sweep test until it can be debugged better.
Chris Duncan [Fri, 8 Nov 2024 20:03:58 +0000 (12:03 -0800)]
Skip sweep test until it can be debugged better.

4 weeks agoRevert promisification of serialize functions in BIP-32 ckd algorithm. Add type guard...
Chris Duncan [Fri, 8 Nov 2024 18:48:00 +0000 (10:48 -0800)]
Revert promisification of serialize functions in BIP-32 ckd algorithm. Add type guards to serialization functions and log actual value instead of binary representation on errors. Simplify byte array construction and return now that convert methods accept padding values.

4 weeks agoBreak up sweep statements for legibility.
Chris Duncan [Fri, 8 Nov 2024 18:43:39 +0000 (10:43 -0800)]
Break up sweep statements for legibility.

4 weeks agoPromisify BIP-44 serialization methods.
Chris Duncan [Fri, 8 Nov 2024 17:06:16 +0000 (09:06 -0800)]
Promisify BIP-44 serialization methods.

4 weeks agoAdd stress test for deriving 2^15 accounts which is skipped by default.
Chris Duncan [Fri, 8 Nov 2024 17:03:59 +0000 (09:03 -0800)]
Add stress test for deriving 2^15 accounts which is skipped by default.

5 weeks agoUpdate version. v0.0.19
Chris Duncan [Wed, 6 Nov 2024 07:09:30 +0000 (23:09 -0800)]
Update version.

5 weeks agoNano spec indicates account derivation should use index in unsigned 32-bit big endian...
Chris Duncan [Wed, 6 Nov 2024 07:08:21 +0000 (23:08 -0800)]
Nano spec indicates account derivation should use index in unsigned 32-bit big endian format. This is opposite of many processor architectures, so add a check for endianness for BLAKE2b wallet accounts. Also move function to be in alphabetical order.

5 weeks agoFix test vector constant references.
Chris Duncan [Wed, 6 Nov 2024 07:05:43 +0000 (23:05 -0800)]
Fix test vector constant references.

5 weeks agoRemove unnecessary argument.
Chris Duncan [Wed, 6 Nov 2024 06:01:46 +0000 (22:01 -0800)]
Remove unnecessary argument.

5 weeks agoFix test vectors.
Chris Duncan [Wed, 6 Nov 2024 06:01:12 +0000 (22:01 -0800)]
Fix test vectors.

5 weeks agoTabs not spaces.
Chris Duncan [Wed, 6 Nov 2024 05:31:15 +0000 (21:31 -0800)]
Tabs not spaces.

5 weeks agoAdd test vector data from publicly available tool at https://tools.nanos.cc/?tool...
Chris Duncan [Wed, 6 Nov 2024 04:48:12 +0000 (20:48 -0800)]
Add test vector data from publicly available tool at https://tools.nanos.cc/?tool=seed

5 weeks agoUpdate version. v0.0.18
Chris Duncan [Sat, 2 Nov 2024 08:36:58 +0000 (01:36 -0700)]
Update version.

5 weeks agoAdd option to restore LedgerWallet from a wallet ID.
Chris Duncan [Sat, 2 Nov 2024 08:36:02 +0000 (01:36 -0700)]
Add option to restore LedgerWallet from a wallet ID.

5 weeks agoUpdate version. v0.0.17
Chris Duncan [Sat, 2 Nov 2024 06:03:08 +0000 (23:03 -0700)]
Update version.

5 weeks agoUsing 'Node" as class name interferes with browser Node class, so revert it to 'Rpc'.
Chris Duncan [Sat, 2 Nov 2024 05:59:29 +0000 (22:59 -0700)]
Using 'Node" as class name interferes with browser Node class, so revert it to 'Rpc'.

5 weeks agoUpdate Node types.
Chris Duncan [Sat, 2 Nov 2024 05:52:22 +0000 (22:52 -0700)]
Update Node types.

5 weeks agoUpdate version. v0.0.16
Chris Duncan [Fri, 1 Nov 2024 05:18:33 +0000 (22:18 -0700)]
Update version.

5 weeks agoFix global assignment.
Chris Duncan [Fri, 1 Nov 2024 05:18:04 +0000 (22:18 -0700)]
Fix global assignment.

5 weeks agoUpdate version. v0.0.15
Chris Duncan [Fri, 1 Nov 2024 04:40:09 +0000 (21:40 -0700)]
Update version.

5 weeks agoAdd separate file option to allow importing to the global namespace.
Chris Duncan [Fri, 1 Nov 2024 04:38:58 +0000 (21:38 -0700)]
Add separate file option to allow importing to the global namespace.

6 weeks agoUpdate version. v0.0.14
Chris Duncan [Sat, 26 Oct 2024 03:37:31 +0000 (20:37 -0700)]
Update version.

6 weeks agoFix lock and unlock when account indices are skipped and update relevant test.
Chris Duncan [Sat, 26 Oct 2024 03:35:42 +0000 (20:35 -0700)]
Fix lock and unlock when account indices are skipped and update relevant test.

6 weeks agoUpdate version. v0.0.13
Chris Duncan [Fri, 25 Oct 2024 23:13:42 +0000 (16:13 -0700)]
Update version.

6 weeks agoShip source map for debugging.
Chris Duncan [Fri, 25 Oct 2024 23:11:10 +0000 (16:11 -0700)]
Ship source map for debugging.

7 weeks agoUpdate version. v0.0.12
Chris Duncan [Mon, 21 Oct 2024 13:20:21 +0000 (06:20 -0700)]
Update version.

7 weeks agoUpdate esbuild script to target browsers.
Chris Duncan [Mon, 21 Oct 2024 13:07:57 +0000 (06:07 -0700)]
Update esbuild script to target browsers.

8 weeks agoUpdate version. v0.0.11
Chris Duncan [Mon, 14 Oct 2024 10:55:24 +0000 (03:55 -0700)]
Update version.

8 weeks agoAdd wallet properties to get locked or unlocked status.
Chris Duncan [Mon, 14 Oct 2024 10:51:49 +0000 (03:51 -0700)]
Add wallet properties to get locked or unlocked status.

8 weeks agoUpdate version. v0.0.10
Chris Duncan [Mon, 14 Oct 2024 09:55:16 +0000 (02:55 -0700)]
Update version.

8 weeks agoSession storage operations are synchronous, so wrap them in Promises to at least...
Chris Duncan [Mon, 14 Oct 2024 09:43:05 +0000 (02:43 -0700)]
Session storage operations are synchronous, so wrap them in Promises to at least try and not block other processes.

8 weeks agoRename wallet import to restore which better reflects that it is being retrieved...
Chris Duncan [Mon, 14 Oct 2024 09:25:13 +0000 (02:25 -0700)]
Rename wallet import to restore which better reflects that it is being retrieved from existing storage. Add tests for wallet restore.

8 weeks agoFix parameter name for consistency.
Chris Duncan [Mon, 14 Oct 2024 09:24:08 +0000 (02:24 -0700)]
Fix parameter name for consistency.

8 weeks agoCheck for existing global session storage prior to mocking in tests.
Chris Duncan [Mon, 14 Oct 2024 09:23:07 +0000 (02:23 -0700)]
Check for existing global session storage prior to mocking in tests.

8 weeks agoUpdate version. v0.0.9
Chris Duncan [Sun, 13 Oct 2024 09:26:23 +0000 (02:26 -0700)]
Update version.

8 weeks agoFix typo removing argument from sessionStorage length mock.
Chris Duncan [Sun, 13 Oct 2024 09:18:08 +0000 (02:18 -0700)]
Fix typo removing argument from sessionStorage length mock.

8 weeks agoFix length and add clear properties to sessionStorage mock.
Chris Duncan [Sun, 13 Oct 2024 09:15:55 +0000 (02:15 -0700)]
Fix length and add clear properties to sessionStorage mock.

8 weeks agoUpdate Safe to use browser session storage. Mock global sessionStorage in tests....
Chris Duncan [Sun, 13 Oct 2024 09:11:46 +0000 (02:11 -0700)]
Update Safe to use browser session storage. Mock global sessionStorage in tests. Update wallet to pack ID and both secrets in one JSON object when locking and unpack it all when unlocking.

8 weeks agoUpdate version. v0.0.8
Chris Duncan [Sun, 13 Oct 2024 03:37:11 +0000 (20:37 -0700)]
Update version.

8 weeks agoTest new wallet ID getter.
Chris Duncan [Sun, 13 Oct 2024 03:36:37 +0000 (20:36 -0700)]
Test new wallet ID getter.

8 weeks agoFix reference to account balance type in test.
Chris Duncan [Sun, 13 Oct 2024 03:33:50 +0000 (20:33 -0700)]
Fix reference to account balance type in test.

8 weeks agoExpose internal wallet hexadecimal ID through getter.
Chris Duncan [Sun, 13 Oct 2024 03:21:18 +0000 (20:21 -0700)]
Expose internal wallet hexadecimal ID through getter.

2 months agoUpdate version. v0.0.7
Chris Duncan [Thu, 10 Oct 2024 23:46:16 +0000 (16:46 -0700)]
Update version.

2 months agoUpdate dependencies.
Chris Duncan [Thu, 10 Oct 2024 23:45:05 +0000 (16:45 -0700)]
Update dependencies.

2 months agoAdd package keyword.
Chris Duncan [Thu, 10 Oct 2024 23:40:27 +0000 (16:40 -0700)]
Add package keyword.

2 months agoRevert accidental change to documentation. Add tests for new getAllNames method.
Chris Duncan [Thu, 10 Oct 2024 23:37:48 +0000 (16:37 -0700)]
Revert accidental change to documentation. Add tests for new getAllNames method.

2 months agoSanitize rolodex entry names and validate it and address as strings.
Chris Duncan [Thu, 10 Oct 2024 22:10:12 +0000 (15:10 -0700)]
Sanitize rolodex entry names and validate it and address as strings.

2 months agoUpdate version. v0.0.6
Chris Duncan [Tue, 8 Oct 2024 16:40:29 +0000 (09:40 -0700)]
Update version.

2 months agoAdd test for converting small amounts of raw to fractional nano. Fix issue found...
Chris Duncan [Tue, 8 Oct 2024 16:40:03 +0000 (09:40 -0700)]
Add test for converting small amounts of raw to fractional nano. Fix issue found with said test.

2 months agoUpdate version. v0.0.5
Chris Duncan [Tue, 8 Oct 2024 09:05:57 +0000 (02:05 -0700)]
Update version.

2 months agoReturn bigint directly from account properties to let consumers do math on the raw...
Chris Duncan [Tue, 8 Oct 2024 09:02:56 +0000 (02:02 -0700)]
Return bigint directly from account properties to let consumers do math on the raw amounts since they can call toString() if necessary. Allow bigint to be passed to denomination converter and explicitly check its amount type.

2 months agoUpdate version. v0.0.4
Chris Duncan [Tue, 8 Oct 2024 07:15:41 +0000 (00:15 -0700)]
Update version.

2 months agoUpdate remaining pending nomenclature.
Chris Duncan [Tue, 8 Oct 2024 07:13:00 +0000 (00:13 -0700)]
Update remaining pending nomenclature.

2 months agoUpdate version. v0.0.3
Chris Duncan [Tue, 8 Oct 2024 06:43:44 +0000 (23:43 -0700)]
Update version.

2 months agoRename Account properties to current Nano terminology, that is, pending is now receiv...
Chris Duncan [Tue, 8 Oct 2024 06:37:13 +0000 (23:37 -0700)]
Rename Account properties to current Nano terminology, that is, pending is now receivable.

2 months agoRevert fix for repo URL.
Chris Duncan [Mon, 7 Oct 2024 20:06:07 +0000 (13:06 -0700)]
Revert fix for repo URL.

2 months agoUpdate version. v0.0.2
Chris Duncan [Mon, 7 Oct 2024 19:53:54 +0000 (12:53 -0700)]
Update version.

2 months agoUpdate bug reporting.
Chris Duncan [Mon, 7 Oct 2024 19:53:11 +0000 (12:53 -0700)]
Update bug reporting.

2 months agoFix failing test due to locked test wallet.
Chris Duncan [Mon, 7 Oct 2024 19:44:53 +0000 (12:44 -0700)]
Fix failing test due to locked test wallet.

2 months agoFix wallet CKD documentation. Add documentation to Ledger lock and unlock methods...
Chris Duncan [Mon, 7 Oct 2024 19:44:31 +0000 (12:44 -0700)]
Fix wallet CKD documentation. Add documentation to Ledger lock and unlock methods to indicate that the default behavior is overridden.