ufsecp 3.19.0 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -120,6 +120,22 @@ Built on hand-optimized C/C++ with platform-specific acceleration (AVX2, SHA-NI,
120
120
  | kG (generator mul) | 5 us | 14 us | 33 us |
121
121
  | kP (arbitrary mul) | 25 us | 131 us | 154 us |
122
122
 
123
+ ## Performance Tuning
124
+
125
+ When building the native addon from source, you can tune scalar multiplication (k*P) performance via the GLV window width:
126
+
127
+ ```bash
128
+ cmake -S . -B build -DSECP256K1_GLV_WINDOW_WIDTH=6
129
+ ```
130
+
131
+ | Window | Default On | Tradeoff |
132
+ |--------|-----------|----------|
133
+ | w=4 | ESP32, WASM | Smaller tables, more point additions |
134
+ | w=5 | x86-64, ARM64, RISC-V | Balanced (default) |
135
+ | w=6 | -- | Larger tables, fewer additions |
136
+
137
+ See [docs/PERFORMANCE_GUIDE.md](../../docs/PERFORMANCE_GUIDE.md) for detailed benchmarks and per-platform tuning advice.
138
+
123
139
  ## License
124
140
 
125
141
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ufsecp",
3
- "version": "3.19.0",
3
+ "version": "3.20.1",
4
4
  "description": "Node.js bindings for UltrafastSecp256k1 — high-performance secp256k1 ECC (ufsecp C ABI v1)",
5
5
  "main": "lib/ufsecp.js",
6
6
  "files": ["lib/ufsecp.js", "prebuilds/", "README.md"],
Binary file
Binary file
Binary file