Repository navigation
Conversation
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).
chore(release): bump to 2.4.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release 2.4.4: promotes
developtomain.Type of change
fix- Bug fix (non-breaking)