]> git.codecow.com Git - nano-pow.git/commitdiff
Update version. v5.1.0
authorChris Duncan <chris@zoso.dev>
Fri, 27 Jun 2025 07:00:40 +0000 (00:00 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 27 Jun 2025 07:00:40 +0000 (00:00 -0700)
CHANGELOG.md
package-lock.json
package.json

index cecb3917b66b0aea8c4e08760c41aba22e7ac35e..55af4a63f4180ab9f8fa646f6bdbcbf1f16937a7 100644 (file)
@@ -3,6 +3,39 @@ SPDX-FileCopyrightText: 2025 Chris Duncan <chris@zoso.dev>
 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
index 798d7672e2dbfb7b2c3bdaec8ec3dbb3e5a74228..c2d28481cdc262b8855dd1268cca345ca1caad81 100644 (file)
@@ -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"
index ae866048d05a17138e40018476fbfa9819888430..462b71d4c498e95bb1fc29fccc55f50f39d2a1f4 100644 (file)
@@ -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",