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

bitcoindevkit / bdk-sp / 33507320938
27%

Build:
DEFAULT BRANCH: master
Ran 01 Sep 2026 12:23PM UTC
Jobs 1
Files 23
Run time 1min
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

01 Sep 2026 12:22PM UTC coverage: 26.93% (+0.4%) from 26.483%
33507320938

push

github

nymius
Merge bitcoindevkit/bdk-sp#70: fix: accept tsp recipients on Signet and Testnet4

bca79c5fa fix(cli): accept tsp recipients on Signet and Testnet4 (kkdao)
b2dc8346f feat(encoding): add SilentPaymentCode::is_valid_for_network (kkdao)

Pull request description:

  ### Description

  Fixes #68

  Every test network encodes to the same `tsp` prefix, so parsing always returns `Network::Testnet`. `sp-cli2 new-tx --to-sp` compared that to the wallet's network with `!=`, so Signet and Testnet4 wallets rejected valid codes, including their own.

  Adds `SilentPaymentCode::is_valid_for_network`, which compares prefixes instead, and uses it in `sp-cli2`. The empty `bail!("")` next to it gets a message.

  ### Notes to the reviewers

  Encoding is unchanged — this only changes how compatibility is judged. `prefix_assignment_is_unchanged` pins that.

  The prefix match already in `Display::fmt` is lifted into `hrp_for_network` and shared, so the two can't drift.

  Groups follow this crate's encoder, not `bitcoin::NetworkKind`, which groups regtest with the other test networks while this crate gives regtest its own `sprt`.

  Tests are in `silentpayments` rather than next to the CLI because `cli/v2` isn't in `default-members` and `just check`/`just test` exclude it, so a test there would never run. I built and linted `cli/v2` directly to check this change.

  ### Changelog notice

  Added: `SilentPaymentCode::is_valid_for_network` and `encoding::hrp_for_network`.

  Fixed: `sp-cli2 new-tx --to-sp` rejected valid `tsp` recipients on Signet and Testnet4.

  ### Checklists

  #### 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

  #### New Features:

  * [x] I've added tests for the new feature
  * [x] I've added docs for the new featur... (continued)

74 of 94 branches covered (78.72%)

Branch coverage included in aggregate %.

25 of 28 new or added lines in 2 files covered. (89.29%)

840 of 3300 relevant lines covered (25.45%)

10.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
0.0
0.0% cli/v2/src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 33507320938.1 01 Sep 2026 12:23PM UTC 23
26.93
GitHub Action Run
Source Files on build 33507320938
  • Tree
  • List 23
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e3c32070 on github
  • Prev Build on master (#33506098910)
  • Next Build on master (#33665478528)
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