• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk-sp
27%

Build:
DEFAULT BRANCH: master
Repo Added 09 Jul 2025 12:08AM UTC
Files 23
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • build/setup-nix-env-for-frigate
  • build/update-bdk-cli-in-nix-env
  • build/use-main-bdk-tx-repository-as-dependency
  • bump_dev_0_1
  • chore/Cargo-file-updates
  • ci/add-mutation-testing-job
  • ci/update-coverage-job
  • docs/add-CONTRIBUTING-file
  • docs/presentation
  • docs/readme-stale-api
  • docs/tabconf7
  • eligible
  • feat/add-fuzz-harness
  • feat/frigate
  • fix-xpriv-sender-taproot-tweak
  • fix/clippy-iter-kv-map
  • fix/clippy-useless-conversion
  • fix/fix-bdk-tx-version
  • fix/mutants-baseline-features
  • fix/regtest-env
  • fix/tsp-network-group-compat
  • fix/update-bdk-tx-hash-in-flake
  • intermediate_sum_vector
  • master
  • playbook-update
  • refactor/indexer
  • refactor/optimize-pre-push-tests
  • refactor/psbt-derive-sp
  • refactor/rename-SpInputs-variants
  • refactor/replace-get-smallest-outpoint-by-lexmin
  • refs/tags/v0.1.0
  • release/0.1.0
  • test/add-unit-test-for-create-partial-secret
  • test/add-unit-test-for-create-silentpayment-spks
  • test/add-unit-test-for-extract-pubkey
  • test/add-unit-test-for-get-smallest-outpoint
  • test/add-unit-test-for-tag-txin
  • test/remove-prefix-and-scope-tests
  • try-from

22 Sep 2026 07:52PM UTC coverage: 27.421% (+0.09%) from 27.331%
35776559309

push

github

nymius
Merge bitcoindevkit/bdk-sp#78: fix(send): apply taproot tweak only to P2TR inputs in XprivSilentPaymentSender::send_to

<a class=hub.com/bitcoindevkit/bdk-sp/commit/830af5a4120c3320e32439273f49bec5458b467d">830af5a41 fix(send): apply taproot tweak only to P2TR inputs in XprivSilentPaymentSender (MusabYK)

Pull request description:

  ### Description
  `XprivSilentPaymentSender::send_to` currently applies the BIP-341 Taproot key-path tweak to every input, regardless of the input's script type.

  As a result, using `XprivSilentPaymentSender::send_to` with a non-Taproot input can produce an incorrect Silent Payment partial secret and therefore incorrect output keys. The call does not necessarily fail, the recipient may simply be unable to discover the payment.

  The problem is that create_silentpayment_partial_secret in `silentpayments/src/send/mode.rs` is script-type aware. It only performs the Taproot parity handling for P2TR inputs and uses the supplied private key directly for the other eligible input types.

  This PR branches on `spk`'s actual type before deciding whether to apply the tap tweak, matching what create_silentpayment_partial_secret already expects

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [conventional commit guidelines](https://www.conventionalcommits.org/en/v1.0.0/)
  * [x] I ran `just p` (fmt, clippy and test) before committing

  #### Bugfixes:

  * [ ] This pull request breaks the existing API
  * [x] I've added tests to reproduce the issue which are now passing
  * [ ] I'm linking the issue being fixed by this PR

ACKs for top commit:
  nymius:
    ACK 830af5a4120c3320e32439273f49bec5458b467d

Tree-SHA512: 2aeda66634f628ac89ad9ae5ceb1b99d820

77 of 98 branches covered (78.57%)

Branch coverage included in aggregate %.

9 of 10 new or added lines in 1 file covered. (90.0%)

815 of 3155 relevant lines covered (25.83%)

10.17 hits per line

Relevant lines Covered
Build:
Build:
3155 RELEVANT LINES 815 COVERED LINES
10.17 HITS PER LINE
Source Files on master
  • Tree
  • List 23
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
35776559309 master Merge bitcoindevkit/bdk-sp#78: fix(send): apply taproot tweak only to P2TR inputs in XprivSilentPaymentSender::send_to 830af5a41 fix(send): apply taproot tweak only to P2TR inputs in XprivSilentPaymentSender (MusabY... push 22 Sep 2026 07:54PM UTC nymius github
27.42
35691216893 fix-xpriv-sender-taproot-tweak Merge 830af5a41 into bd43521a1 Pull #78 22 Sep 2026 05:36AM UTC web-flow github
27.42
35369323872 fix-xpriv-sender-taproot-tweak Merge 6f1e23172 into bd43521a1 Pull #78 18 Sep 2026 04:37PM UTC web-flow github
27.42
34081301384 master Merge bitcoindevkit/bdk-sp#77: refactore(test): ignore slow tests locally during pre-push, still run them in CI 6d61ce323 refactore: ignore slow tests locally during pre-push (MusabYK) Pull request description: ... push 07 Sep 2026 03:57AM UTC nymius github
27.33
33948617568 refactor/optimize-pre-push-tests Merge 6d61ce323 into 8f88bd848 Pull #77 05 Sep 2026 06:02AM UTC web-flow github
27.01
33917752673 master Merge bitcoindevkit/bdk-sp#76: docs: fix the stale silent payment example in the README 5554f4270 docs: replace the stale README snippet with the example (kkdao) 7d50b1ed2 example: add... push 04 Sep 2026 08:50PM UTC nymius github
27.06
33765353364 master Merge bitcoindevkit/bdk-sp#75: fix(receive): Enforce BIP-352 K_MAX per-group recipient limit in scan_txouts 1598b066c fix: enforce K_max limit during tx scan and unignore test 27 (MusabYK) Pull request description:... push 03 Sep 2026 02:17PM UTC nymius github
27.06
33745063132 docs/readme-stale-api Merge 5554f4270 into a3916b7b0 Pull #76 03 Sep 2026 10:37AM UTC web-flow github
26.99
33665478528 master Merge bitcoindevkit/bdk-sp#66: fix: return an error for empty silent payment payloads 582ff4428 fix: return an error for empty silent payment payloads (Matthew) Pull request description: <!-- You can erase any p... push 02 Sep 2026 06:11PM UTC nymius github
26.99
33662012388 try-from Merge 582ff4428 into e3c320704 Pull #66 02 Sep 2026 05:38PM UTC web-flow github
26.99
See All Builds (115)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc