Skip to content

Commit 5826da3

Browse files
OttoAllmendingerllm-git
andcommitted
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

4 files changed

+222
-57
lines changed

packages/wasm-utxo/Cargo.lock

Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/wasm-utxo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ all = "warn"
1616
[dependencies]
1717
wasm-bindgen = "0.2"
1818
js-sys = "0.3"
19-
miniscript = { git = "https://github.com/BitGo/rust-miniscript", tag = "miniscript-13.0.0-opdrop" }
19+
miniscript = { git = "https://github.com/BitGo/rust-miniscript", tag = "miniscript-13.0.0-opdrop-forkid" }
2020
bech32 = "0.11"
2121
musig2 = { version = "0.3.1", default-features = false, features = ["k256"] }
2222
getrandom = { version = "0.2", features = ["js"] }

0 commit comments

Comments
 (0)