]> git.codecow.com Git - libnemo.git/commitdiff
v0.5.0
authorChris Duncan <chris@zoso.dev>
Wed, 3 Sep 2025 19:30:30 +0000 (12:30 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 3 Sep 2025 19:30:30 +0000 (12:30 -0700)
CHANGELOG.md
package-lock.json
package.json

index 1250928757f1079434e4b2ac1247db2db9b1cd8e..fbd67359184e116221081d0bc0e842ba17a04b74 100644 (file)
@@ -3,6 +3,43 @@ SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 SPDX-License-Identifier: GPL-3.0-or-later
 -->
 
+## v0.5.0
+
+### Notable Changes
+
+#### Sign arbitrary data with Wallet
+
+The ability to "log in with Nano" is gaining traction, and while the `sign()`
+function from `Tools` allows signing arbitrary string data using a private key,
+there was no way to sign with a `libnemo` wallet which does not expose private
+keys. Now, the `sign()` instance method of the `Wallet` class has been updated
+to accept one or more strings of data, hash them to a 32-byte value using
+BLAKE2b, sign with a given account index, and return the signature. Note that
+the data is first hashed only to maintain compatibility with other Nano tools; a
+future update could enable signing full-length messages without hashing them.
+Also note that the Nano app for Ledger wallets still have a bug which prevents
+them from signing nonces.
+
+#### Implement missing password update method
+
+The `Vault` class for wallet secrets supports an `update` action to re-encrypt
+them using a new password if the wallet is unlocked. However, the `Wallet` class
+itself did not have a method to make this request to its vault. This has now
+been implemented.
+
+### Other Changes
+
+The `convert()` tool now supports denomination output as a float in addition to
+string and bigint.
+
+Some functions extracted to separate files to improve organization.
+
+Type definitions updated.
+
+Tests added or updated to accomodate new features.
+
+
+
 ## v0.4.1
 
 ### Notable Changes
index bfe88090b5d5bf9ac6b1ff2788512e97343f8378..256977d1110b098ad7d6b5e9917ef33acb88c015 100644 (file)
@@ -1,12 +1,12 @@
 {
        "name": "libnemo",
-       "version": "0.4.1",
+       "version": "0.5.0",
        "lockfileVersion": 3,
        "requires": true,
        "packages": {
                "": {
                        "name": "libnemo",
-                       "version": "0.4.1",
+                       "version": "0.5.0",
                        "license": "(GPL-3.0-or-later AND MIT AND ISC)",
                        "dependencies": {
                                "nano-pow": "^5.1.4"
index a44675c9870b2aca55773305c3951b18d2b305b4..fd9bbdf6ca60c6f963b2872177a7248f303b13fa 100644 (file)
@@ -1,6 +1,6 @@
 {
        "name": "libnemo",
-       "version": "0.4.1",
+       "version": "0.5.0",
        "description": "Asynchronous, non-blocking Nano cryptocurrency integration toolkit.",
        "keywords": [
                "nemo",