Skip to content

chore(release): 2.4.4 - #573

Merged
tcheeric merged 15 commits into
mainfrom
develop
Nov 25, 2026
Merged

tcheeric merged 15 commits into
mainfrom
develop

Conversation

@tcheeric

Copy link
Copy Markdown
Owner

Summary

Release 2.4.4: promotes develop to main.

Type of change

  • fix - Bug fix (non-breaking)

tcheeric and others added 15 commits November 25, 2026 21:01
Docker 29 on ubuntu-26.04 runners rejects API 1.32.
Import testcontainers-bom 1.21.4 ahead of nostr-java-bom.
Run the Docker IT job on pull requests too.
Hypothesis: replacing the BigInteger affine double-and-add (one modular
inversion per step, 256 iterations) with BouncyCastle's custom secp256k1
ECPoint, and a precomputed comb multiplier for G, cuts sign, verify and
pubkey time by more than 20x.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hypothesis: writing the NIP-01 array straight to a JsonGenerator, instead of
building an ArrayNode and running MAPPER.valueToTree(tags) first, removes one
full tree conversion per update() and cuts update_small and update_large time
by about 40%. Output is byte-identical.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hypothesis: replacing the chained Predicate.and lambdas, List.contains scans
and per-event stream pipelines with a single loop over precomputed hash sets
cuts filter matching over 10k events by about 30%.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hypothesis: computing s*G - e*P with ECAlgorithms.sumOfTwoMultiplies (GLV +
Shamir) instead of two separate multiplications and an addition cuts verify
time by about 25%. Also returns false instead of dereferencing the point at
infinity.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Hypothesis: sign lifts its own public key x-coordinate again in verify (a
256-bit modular square root) and recomputes P.toBytes() and R.toBytes() several
times. Passing the point it already holds and caching the byte arrays cuts
sign time by about 15%.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix(ci): upgrade Testcontainers to 1.21.4 for Docker Engine 29 API
test(mcp): isolate user.home in NostrMcpServerStdioIT
Adds known-value checks for Point.mul, Point.mulSum against separate
multiplications, Point.liftX, and BIP-340 signing vectors 0 and 1 plus the
off-curve public key vector 5 for Schnorr.verify.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
perf(core): speed up Schnorr signing, event serialization and filter matching
- nostr-java (all modules): 2.4.3 → 2.4.4 (patch) [maven]

Changed: BouncyCastle secp256k1 arithmetic, faster Schnorr sign/verify,
streamed event serialization and one-pass EventFilter (#571).
Fixed: Testcontainers 1.21.4 for Docker 29 runners (#569), isolated
user.home in NostrMcpServerStdioIT (#570).
@tcheeric
tcheeric merged commit a20633e into main Nov 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant