mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Limits the O(N^2) pairwise check in `normalizeNip46CiphertextPayload` to small arrays (<= 16 items) to prevent combinatorial explosion. This heuristic is only intended for small split-payload cases, and processing large arrays this way was unnecessary and caused performance issues. Benchmark results (200 items, 100 iterations): - Before: ~54.84ms per iteration - After: ~0.12ms per iteration - Improvement: ~457x speedup Co-authored-by: PR0M3TH3AN <[email protected]>