Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

This PR adds Bitcoin Cash-style fork ID support for multiple networks (BCH,
XEC, BSV, BTG) and extends the FixedScript wallet transaction capabilities
to include Bitcoin Cash and Bitcoin Gold.

Key changes:

  • Implement fork ID-aware signing for BCH (0), BTG (79), XEC (0), and BSV (0)
  • Update miniscript dependency to use forkid-compatible version
  • Modify PSBT functions to use appropriate sighash algorithms
  • Add network support utilities for fixtures to improve test organization
  • Update documentation to reflect newly supported networks in the feature
    status matrix

Issue: BTC-2656

OttoAllmendinger and others added 4 commits December 17, 2025 11:39
Mark FixedScript Wallet Transaction Support for Bitcoin and Litecoin
as complete in the feature status table.

Issue: BTC-2656

Co-authored-by: llm-git <llm-git@ttll.de>
Implement fork ID support for Bitcoin Cash-style networks to enable proper
signing and verification. This includes:

- Use fork ID-aware signing for BCH (0), BTG (79), XEC (0), and BSV (0)
- Update miniscript dependency to use forkid-compatible version
- Modify PSBT functions to use the appropriate sighash algorithm
- Ensure replay protection inputs use correct sighash calculation
- Add tests to verify sign→verify roundtrip works correctly

Issue: BTC-2656

Co-authored-by: llm-git <llm-git@ttll.de>
Updates the feature status in README to reflect that Bitcoin Cash and
Bitcoin Gold now have complete transaction support in the FixedScript wallet.

Issue: BTC-2656

Co-authored-by: llm-git <llm-git@ttll.de>
Extract fixture network filtering into a utility function. This improves
code organization and reduces duplication across test files. Now includes
bitcoincash and bitcoingold in fixture networks.

Issue: BTC-2656

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review December 17, 2025 11:23
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner December 17, 2025 11:23
@OttoAllmendinger OttoAllmendinger merged commit 8903d43 into master Dec 17, 2025
1 check passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2656.bch-forkid branch December 17, 2025 14:12
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.

3 participants