Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

This PR adds Zcash support to the wasm-utxo module and improves handling of
OP_RETURN outputs in the PSBT parser.

Features:

  • Implement Zcash transaction support with ZIP-243 sighash algorithm
  • Add consensus branch ID handling, version group ID, and expiry height
  • Create ZcashBitGoPsbt class for Zcash-specific transaction fields
  • Add automatic branch ID determination from block height
  • Improve handling for OP_RETURN outputs in PSBT parser
  • Update tests for zero value outputs with no address
  • Fix spend amount calculations for OP_RETURN outputs

BTC-2659

Add special handling for OP_RETURN outputs, which have zero value and no
address. Update tests to properly check these conditions and fix spend
amount calculations accordingly.

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2659.add-zcash-support branch 4 times, most recently from f1b667d to 4d18ec6 Compare December 22, 2025 14:55
Implement Zcash transaction support including consensus branch ID handling,
version group ID, expiry height, and ZIP-243 sighash algorithm for signatures.
Add ZcashBitGoPsbt class that handles Zcash-specific transaction fields and
simplifies PSBT creation with automatic branch ID determination from block
height.

Issue: BTC-2659

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2659.add-zcash-support branch from 4d18ec6 to 5df410a Compare December 22, 2025 15:45
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review December 22, 2025 15:52
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner December 22, 2025 15:52
@OttoAllmendinger OttoAllmendinger merged commit 4b89ac9 into master Dec 22, 2025
1 check passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2659.add-zcash-support branch December 22, 2025 16:10
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