From: Chris Duncan Date: Thu, 4 Sep 2025 00:14:56 +0000 (-0700) Subject: Merge branch 'releases/v0.4' X-Git-Tag: v0.10.5~28 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=feac043196581f20b24846c978f6b91301dd49a2;p=libnemo.git Merge branch 'releases/v0.4' --- feac043196581f20b24846c978f6b91301dd49a2 diff --cc CHANGELOG.md index 0c1a08c,4a1fde6..f20db2b --- a/CHANGELOG.md +++ b/CHANGELOG.md @@@ -3,60 -3,14 +3,68 @@@ SPDX-FileCopyrightText: 2025 Chris Dunc SPDX-License-Identifier: GPL-3.0-or-later --> +## v0.5.2 + +### Notable Changes + +Remove async-await from new Vault functionality in favor of Promise chaining +(see [v0.4.0](#v040) for details). + + + +## v0.5.1 + +### Notable Changes + +Fix type definitions for unit denomination `convert()` function overloads. + + + +## 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.2 + + ### Notable Changes + + Fix type comparison to undefined when restoring Wallets from database. + + + ## v0.4.1 ### Notable Changes