Skip to content

libs/crypto: webcpp::crypto foundation increment 2 (libsecp256k1's remaining modules) - #36

Merged
pinhopro merged 22 commits into
mainfrom
crypto/secp256k1-modules
Nov 20, 2026
Merged

pinhopro merged 22 commits into
mainfrom
crypto/secp256k1-modules

Conversation

@pinhopro

@pinhopro pinhopro commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What this brings

The superproject side of webcpp::crypto's foundation, increment 2: the libs/crypto gitlink (e7c71db), third_party/Jamfile declaring the BIP 324, 327 and 352 test vectors the tests read, crypto_jamfiles_test fixtures for the three secp256k1 module families on every target, and chapter 17 of CODING-GUIDELINES.md stating increment 2 as built and increment 1 merged. No tool or CI script changes.

Verification (local, on the final heads, before this PR)

  • Full lint: clean. generate.py --check and generate_test.py: clean.
  • Lanes from scratch, -a, test and example: native 344, gcc-15 307, wasip2 303, wasip3 291, emscripten 230; 0 failed, 0 warnings.
  • Constant time: dudect ecdh_x at 500k measurements, judged: macOS (under DIT) |t| 1.33, wasip2 2.86, Linux container 1.99; Linux container (memcheck, MSan) 11/11 with B's module cases clean and the planted leaks caught.
  • Release size tables unchanged on four targets; C suites on four targets; docs, site and site-test 97/97; the changed pages checked rendered at 1280 px and 375 px.
  • Tools tests 64/64; crypto_jamfiles_test on native, wasip2, wasip3, emscripten.
  • Local MSVC lane (real cl.exe under Wine): 14.3 and 14.5 each 570 passed, 0 new failures, 22 known Wine artifacts (three new Boost.JSON no-exception lines of the documented class); crypto 337 and test/msvc 46/46 pass, incl. the label_lookup_by_value and musig_nonce_copied compile-fail cases. One real MSVC /WX failure (C4244 in two tests) was found and fixed.
  • Not run locally: the CI's x86-64 container lanes and Apple Clang.

For the owner

  • Base: this branch starts from stream A's heads as merged (crypto 1fc5140 / webcpp c00bf7a, the second parents of dae9e84 and 485c5e0, same trees), so it lists only increment 2's commits.
  • label_lookup (silent payments) now requires a lookup to return exactly std::optional<std::span<const std::uint8_t, 32>>: a by-value result left the span dangling on libstdc++ and MSVC. Pinned by static_asserts on every lane and a compile-fail case per compiler.
  • Two examples requested in chat (musig_network, musig_taproot) run on every lane against their .expected output and are on the secp256k1 page.
  • No application is named in the teaching sections (primitives only, D24).
  • The changelog stays within its 10-line, 30-word form, so increment 2 is merged into the existing secp256k1 and capability lines.

Related PRs

🤖 Generated with Claude Code

R added 22 commits November 19, 2026 17:27
…ions, and their fix round 1 (gitlink 62b0412)
… and the review's documentation fixes (gitlink 24397cd)
… byte lists typed as std::uint8_t (gitlink e7c71db)
@pinhopro
pinhopro merged commit 8fa1633 into main Nov 20, 2026
4 of 185 checks passed
@pinhopro
pinhopro deleted the crypto/secp256k1-modules branch November 20, 2026 02:03
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