tests: silentpayments: deduplicate setup code #1972

pull ViniciusCestarii wants to merge 3 commits into bitcoin-core:master from ViniciusCestarii:deduplicate-sp-tests changing 1 files +40 −42
  1. ViniciusCestarii commented at 6:13 PM on October 21, 2026: contributor

    Deduplicates code in silent payments as suggested by @theStack at #1943#pullrequestreview-5578778611.

    • Turns output_tweak into a reusable constant.
    • Adds function labels_cache_set_neg_output_tweak for setting the cache for negated OUTPUT_TWEAK.
    • Adds function prevouts_summary_create_bob for creating secp256k1_silentpayments_prevouts_summary with bob's first address key.
  2. tests: silentpayments: deduplicate output tweak 9c6ece8bdd
  3. tests: silentpayments: deduplicate label cache setup 67916d9bbc
  4. tests: silentpayments: deduplicate prevouts summary setup 70f321c334

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-10-23 08:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me