]> zoso.dev Git - libnemo.git/log
libnemo.git
3 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.

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

3 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.

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

3 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.

3 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.

3 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.

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

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

3 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.

3 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.

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

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

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

3 weeks 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.

3 weeks 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.

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

3 weeks 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.

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

4 weeks 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.

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

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

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

4 weeks 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.

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

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

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

4 weeks 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.

4 weeks 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.

4 weeks agoGet pending transactions and vote weight from account_info RPC when refreshing an...
Chris Duncan [Mon, 7 Oct 2024 19:19:11 +0000 (12:19 -0700)]
Get pending transactions and vote weight from account_info RPC when refreshing an Account.

4 weeks agoFix repo link. v0.0.1
Chris Duncan [Thu, 3 Oct 2024 20:41:53 +0000 (13:41 -0700)]
Fix repo link.

4 weeks agoExport Safe class for external usage.
Chris Duncan [Thu, 3 Oct 2024 19:58:52 +0000 (12:58 -0700)]
Export Safe class for external usage.

4 weeks agoFix optional parameter typing in overloaded functions. Fix dependency in package...
Chris Duncan [Thu, 3 Oct 2024 09:18:38 +0000 (02:18 -0700)]
Fix optional parameter typing in overloaded functions. Fix dependency in package lockfile.

4 weeks agolibname: A reimagining of the nanocurrency-web package.
Chris Duncan [Thu, 3 Oct 2024 09:10:17 +0000 (02:10 -0700)]
libname: A reimagining of the nanocurrency-web package.

Greater Changes
* Completely replace crypto-js dependency with the browser native Web Crypto API.
* Overhaul wallet system to align more with object-oriented design and to consolidate related but separated functionality.
* Add support for Ledger hardware wallets.
* Encrypt wallet secrets by default on initialization, and add lock/unlock feature to encrypt/decrypt on-demand.
* Add rolodex feature to enable contact management including signature verification using contact name associated with a public key in your rolodex.
* Add online functions to interact with nodes like fetching account info, generating PoW, and sending blocks for processing.
* Add sweep feature similar to the offering from Nault which sends all funds in a specified range of accounts in a wallet to a specific address.
* Refactor key derivation functions to align closer with spec as designed in the relevant BIPs.
* Adopt GPLv3 license and achieve REUSE compliance.

Lesser Changes
* Refactor as ESM instead of CJS and build for ESMNext target to enable more modern browser features.
* Utilize browser native features like bigint instead of bignumber.js dependency.
* Deprecate 'box' feature and with it the dependency on byte-base64.
* Replace chai/mocha test framework with built-in Node.js test runner, and add tons of tests.
* Replace webpack (and dependency ts-loader) with esbuild which offers faster builds and minification.
* Add online function to get the next unopened account of a wallet with the idea that a business could distribute addresses to customers in a custodial manner.
* Add tons of type checking to validate inputs and outputs.
* Deprecate lots of unused code or replace with native features.

2 months agoTest legacy account derivation. Test hardened indices. Increase derivation count... deps-only
Chris Duncan [Sat, 31 Aug 2024 20:25:32 +0000 (13:25 -0700)]
Test legacy account derivation. Test hardened indices. Increase derivation count to stress test.

2 months agoFix module imports. Replace arrow functions on 'describe' calls since they mess up...
Chris Duncan [Sat, 31 Aug 2024 20:13:26 +0000 (13:13 -0700)]
Fix module imports. Replace arrow functions on 'describe' calls since they mess up 'this' and prevent test data setup. Set mocha 'slow' to zero in order to report all test durations.

2 months agoRename test file to enable module features.
Chris Duncan [Sat, 31 Aug 2024 19:51:11 +0000 (12:51 -0700)]
Rename test file to enable module features.

3 months agoUpdate dependencies.
Zosoled [Tue, 30 Jul 2024 06:33:29 +0000 (23:33 -0700)]
Update dependencies.

4 months agoUpdate package lockfile.
Zosoled [Sun, 16 Jun 2024 22:39:14 +0000 (15:39 -0700)]
Update package lockfile.

4 months agoUpdate all dependency versions.
Zosoled [Sun, 16 Jun 2024 22:38:47 +0000 (15:38 -0700)]
Update all dependency versions.

4 months agoFix CVE-2023-28154.
Zosoled [Sun, 16 Jun 2024 22:35:30 +0000 (15:35 -0700)]
Fix CVE-2023-28154.

4 months agoFix CVE-2023-46233.
Zosoled [Sun, 16 Jun 2024 22:34:22 +0000 (15:34 -0700)]
Fix CVE-2023-46233.

2 years agoVersion 1.4.3
Miro Metsänheimo [Wed, 27 Apr 2022 19:13:08 +0000 (22:13 +0300)]
Version 1.4.3

* Revert back a change regarding entropy length

2 years agoVersion 1.4.2
Miro Metsänheimo [Sun, 24 Apr 2022 19:59:00 +0000 (22:59 +0300)]
Version 1.4.2

* Fix encrypting and decrypting emojis

2 years agoVersion 1.4.1
Miro Metsänheimo [Sun, 24 Apr 2022 18:51:45 +0000 (21:51 +0300)]
Version 1.4.1

* Fix for legacy wallet creation presented in 1.4.0

2 years agoMerge pull request #13 from numsu/encryption
Miro Metsänheimo [Sun, 24 Apr 2022 18:29:56 +0000 (21:29 +0300)]
Merge pull request #13 from numsu/encryption

Version 1.4.0

2 years agoVersion 1.4.0
Miro Metsänheimo [Fri, 22 Apr 2022 20:54:27 +0000 (23:54 +0300)]
Version 1.4.0

* Added new functionality to encrypt/decrypt strings with Diffie-Hellman
key exchange with Nano addresses and private keys by converting the keys
to Curve25519 keys suitable for encryption and using Box functionality
from NaCl. The library will generate a random nonce to each encryption
and pass the nonce along with the encrypted message encoded in Base64
* Some code refactoring (use static classes and make sure ed25519 and
curve classes are always freshly created)

2 years agoVersion 1.3.6
Miro Metsänheimo [Fri, 4 Feb 2022 22:06:04 +0000 (00:06 +0200)]
Version 1.3.6

* Upgraded dependencies

3 years agoVersion 1.3.5
Miro Metsänheimo [Sat, 18 Sep 2021 20:00:42 +0000 (23:00 +0300)]
Version 1.3.5

* Expose the blake2b hashing function
* Expose the public key to address function

3 years agoVersion 1.3.4
Miro Metsänheimo [Tue, 8 Jun 2021 15:09:10 +0000 (18:09 +0300)]
Version 1.3.4

* Updated dependencies
* Improved documentation, JSDoc and typings

3 years agoVersion 1.3.3
Miro Metsänheimo [Thu, 3 Jun 2021 20:19:08 +0000 (23:19 +0300)]
Version 1.3.3

* New feature: verify signatures with the public key
* New feature: convert nano address to a public key
* Add documentation about how to verify ownership of user's Nano address
  by doing a signature challenge
* npm audit fix

3 years agoVersion 1.3.2
Miro Metsänheimo [Tue, 30 Mar 2021 19:08:42 +0000 (22:08 +0300)]
Version 1.3.2

* Allow work to be omitted since it's not required for the signature
* npm audit fix

3 years agoVersion 1.3.1
Miro Metsänheimo [Sun, 7 Mar 2021 14:13:24 +0000 (16:13 +0200)]
Version 1.3.1

* generateLegacy seed is now optional

3 years agoMerge pull request #8 from aspic/support-optional-seed
Miro Metsänheimo [Sun, 7 Mar 2021 14:11:17 +0000 (16:11 +0200)]
Merge pull request #8 from aspic/support-optional-seed

Let seed be optional since this is supported in the library

3 years agoMakes seed be optional since this is supported in the library
Kjetil Mehl [Sun, 7 Mar 2021 12:53:51 +0000 (13:53 +0100)]
Makes seed be optional since this is supported in the library

3 years agoUpdate README.md
Miro Metsänheimo [Fri, 22 Jan 2021 21:31:42 +0000 (23:31 +0200)]
Update README.md

3 years agoUpdate README.md
Miro Metsänheimo [Thu, 14 Jan 2021 06:55:23 +0000 (08:55 +0200)]
Update README.md

3 years agoVersion 1.3.0
Miro Metsänheimo [Tue, 12 Jan 2021 20:30:58 +0000 (22:30 +0200)]
Version 1.3.0

* Add the possibility to generate legacy seeds and mnemonics
* Add the possibility to import legacy mnemonic phrases
* Stop throwing errors if given an upper case hex as input
* Return mnemonic also when creating wallet with a legacy seed
* npm audit fix
* Small refactoring

4 years agoVersion 1.2.2
Miro Metsänheimo [Fri, 21 Aug 2020 18:10:32 +0000 (21:10 +0300)]
Version 1.2.2

* Fixed an issue where the unit converter wasn't able to convert high
precision numbers correctly, generating invalid blocks

4 years agoVersion 1.2.1
Miro Metsänheimo [Wed, 27 May 2020 20:03:12 +0000 (23:03 +0300)]
Version 1.2.1

* Fixed an issue where address importer threw an error on mnemonic words
that had a checksum hex value with a leading zero
* Added the possibility to validate mnemonic words and nano addresses

4 years agoVersion 1.2.0
Miro Metsänheimo [Sat, 2 May 2020 20:06:01 +0000 (23:06 +0300)]
Version 1.2.0

* Import wallets with legacy Nano hex seeds

4 years agoupdate readme
Miro Metsänheimo [Fri, 10 Apr 2020 14:09:13 +0000 (17:09 +0300)]
update readme

4 years agoVersion 1.1.1
Miro Metsänheimo [Fri, 10 Apr 2020 14:06:56 +0000 (17:06 +0300)]
Version 1.1.1

* Downgrade crypto-js back for the package to work properly with older
browsers and react native

4 years agoVersion 1.1.0
Miro Metsänheimo [Sat, 7 Mar 2020 11:43:11 +0000 (13:43 +0200)]
Version 1.1.0

* Separate block signer to it's own class
* Add JSDOC to some functions
* Renamed converter to tools
* Added the ability to sign any strings with the private key

5 years agoremove a space
Miro Metsänheimo [Sat, 19 Oct 2019 11:08:21 +0000 (14:08 +0300)]
remove a space

5 years agoupdate npmignore to make the module smaller, update readme
Miro Metsänheimo [Sat, 19 Oct 2019 11:06:47 +0000 (14:06 +0300)]
update npmignore to make the module smaller, update readme

5 years agoupdate readme
Miro Metsänheimo [Fri, 18 Oct 2019 19:49:52 +0000 (22:49 +0300)]
update readme

5 years agoFix and add validations to block signing etc
Miro Metsänheimo [Fri, 18 Oct 2019 17:57:23 +0000 (20:57 +0300)]
Fix and add validations to block signing etc

5 years agoadd default exports, clear dist before compile
Miro Metsänheimo [Fri, 18 Oct 2019 16:03:17 +0000 (19:03 +0300)]
add default exports, clear dist before compile

5 years agoMerge pull request #2 from numsu/feature/webpack-build
Miro Metsänheimo [Mon, 14 Oct 2019 20:22:02 +0000 (23:22 +0300)]
Merge pull request #2 from numsu/feature/webpack-build

fix unpkg build

5 years agofix unpkg build
Miro Metsänheimo [Mon, 14 Oct 2019 20:20:01 +0000 (23:20 +0300)]
fix unpkg build

5 years agoMerge pull request #1 from numsu/feature/webpack-build
Miro Metsänheimo [Mon, 14 Oct 2019 19:51:56 +0000 (22:51 +0300)]
Merge pull request #1 from numsu/feature/webpack-build

webpack bundle and changed requires to imports

5 years agowebpack bundle and changed requires to imports
Miro Metsänheimo [Mon, 14 Oct 2019 19:17:38 +0000 (22:17 +0300)]
webpack bundle and changed requires to imports

5 years agoupdate readme
Miro Metsänheimo [Sun, 13 Oct 2019 14:42:36 +0000 (17:42 +0300)]
update readme

5 years agowrong package
Miro Metsänheimo [Sun, 13 Oct 2019 14:37:59 +0000 (17:37 +0300)]
wrong package

5 years agoprepare for publish
Miro Metsänheimo [Sun, 13 Oct 2019 08:43:06 +0000 (11:43 +0300)]
prepare for publish

5 years agoadd build badge
Miro Metsänheimo [Sun, 13 Oct 2019 08:30:05 +0000 (11:30 +0300)]
add build badge

5 years agofix test
Miro Metsänheimo [Sun, 13 Oct 2019 08:12:32 +0000 (11:12 +0300)]
fix test

5 years agofix travis build
Miro Metsänheimo [Sun, 13 Oct 2019 08:10:33 +0000 (11:10 +0300)]
fix travis build

5 years agoAdd travis yml
Miro Metsänheimo [Sun, 13 Oct 2019 08:06:16 +0000 (11:06 +0300)]
Add travis yml

5 years agoUpdate readme and add conversion
Miro Metsänheimo [Sun, 13 Oct 2019 07:58:27 +0000 (10:58 +0300)]
Update readme and add conversion

5 years agoFinalize implementation
Miro Metsänheimo [Sat, 12 Oct 2019 22:58:40 +0000 (01:58 +0300)]
Finalize implementation

* Add change block signing
* Add tests and changes based on the results
* Add some missing types

5 years agoworking tsc build
Miro Metsänheimo [Wed, 9 Oct 2019 18:31:40 +0000 (21:31 +0300)]
working tsc build

5 years agoImplemented most features (commit overdue)
Miro Metsänheimo [Wed, 9 Oct 2019 17:23:07 +0000 (20:23 +0300)]
Implemented most features (commit overdue)

* Generate random entropy
* BIP39 mnemonic phrase and seed from entropy
* Mnemonic phrase importing and validation
* BIP32 key derivation from seed
* Nano address encoding and validation
* Nano unit converter
* Modified ed25519 curve for Nano
* Block signing for receive and send blocks

5 years agoInitial commit
Miro Metsänheimo [Wed, 9 Oct 2019 14:48:57 +0000 (17:48 +0300)]
Initial commit