Commit 5826da3
feat(wasm-utxo): add BCH fork ID support for BCH, XEC, BSV, BTG
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 <[email protected]>1 parent 42945f4 commit 5826da3
File tree
4 files changed
+222
-57
lines changed- packages/wasm-utxo
- src/fixed_script_wallet/bitgo_psbt
4 files changed
+222
-57
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments