From: Chris Duncan Date: Fri, 27 Jun 2025 07:00:40 +0000 (-0700) Subject: Update version. X-Git-Tag: v5.1.0^0 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=ec35d73f8be391160d24044ab99c7e6c608d64b6;p=nano-pow.git Update version. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index cecb391..55af4a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,39 @@ SPDX-FileCopyrightText: 2025 Chris Duncan SPDX-License-Identifier: GPL-3.0-or-later --> +## v5.1.0 + +### Notable Changes + +#### Work caching + +Generating proof-of-work is not necessarily cheap for older or smaller systems. +To save computation time and resources if a work value is not used immediately, +the most recent `work` values are cached locally based on the combination of +`hash` and `difficulty`, and existing PoW will be retrieved if possible instead +of recomputed. The values are cached in local storage when in the browser or in +a process variable when running as a work server, and only the most recent 1000 +values will be stored to ensure the cache does not become slower than compute. + +#### Code generating code + +Since the BLAKE2b algorithm used for computing PoW does not change but the APIs +implemented by NanoPow do, the API-specific versions of `work_generate` have +been abstracted and are now generated by a script in order to maintain +consistency regardless of the implementation and to make future improvements +easier. The algorithm as written for `work_validate` continues to be independent +from that script in order to provide a check-and-balance between the two and +ensure accuracy of results. + +### Other Changes + +Added utility functions for hex string validation. + +Expanded list of test blockhashes for longer testing. + +Consolidated npm scripts. + + ## v5.0.5 ### Notable Changes diff --git a/package-lock.json b/package-lock.json index 798d767..c2d2848 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nano-pow", - "version": "5.0.5", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nano-pow", - "version": "5.0.5", + "version": "5.1.0", "license": "(GPL-3.0-or-later AND MIT)", "bin": { "nano-pow": "dist/bin/nano-pow.sh" diff --git a/package.json b/package.json index ae86604..462b71d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nano-pow", - "version": "5.0.5", + "version": "5.1.0", "description": "Proof-of-work generation and validation with WebGPU/WebGL/WASM for Nano cryptocurrency.", "keywords": [ "nemo",