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 +16 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/libufsecp.dylib +0 -0
- package/prebuilds/linux-arm64/libufsecp.so +0 -0
- package/prebuilds/linux-arm64/libufsecp.so.3 +0 -0
- package/prebuilds/linux-arm64/libufsecp.so.3.20.1 +0 -0
- package/prebuilds/linux-x64/libufsecp.so +0 -0
- package/prebuilds/linux-x64/libufsecp.so.3 +0 -0
- package/prebuilds/linux-x64/libufsecp.so.3.20.1 +0 -0
- package/prebuilds/win32-x64/ufsecp.dll +0 -0
- package/prebuilds/linux-x64/libufsecp.so.3.19.0 +0 -0
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|