Skip to content

feat(wasm-utxo): add helper functions for PSBT testing and OP_RETURN scripts#117

Merged
OttoAllmendinger merged 2 commits intomasterfrom
BTC-2980.add-sign-input-func.testutils
Jan 28, 2026
Merged

feat(wasm-utxo): add helper functions for PSBT testing and OP_RETURN scripts#117
OttoAllmendinger merged 2 commits intomasterfrom
BTC-2980.add-sign-input-func.testutils

Conversation

@OttoAllmendinger
Copy link
Contributor

This PR adds several utilities to improve PSBT testing and transaction
handling in the wasm-utxo module:

  • Add utility function to create OP_RETURN output scripts with optional
    data payload, supporting both empty OP_RETURN scripts and ones with
    custom data

  • Implement AcidTest class for comprehensive PSBT testing across multiple
    conditions:

    • Different coin networks
    • All supported script types
    • Various signing stages (unsigned, half-signed, fully-signed)
    • Different PSBT formats
  • Add utility functions for deterministic key generation to support test
    reproducibility

BTC-2980

Add utility function that creates OP_RETURN output scripts with optional
data payload. This supports both empty OP_RETURN scripts and ones with
custom data.

Issue: BTC-2980

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2980.add-sign-input-func.testutils branch from e2f4b9c to faddbb4 Compare January 28, 2026 16:51
Add AcidTest class for comprehensive PSBT testing across multiple
conditions:
- Different coin networks
- All supported script types
- Various signing stages (unsigned, half-signed, fully-signed)
- Different PSBT formats

Also adds utility functions for deterministic key generation to support
test reproducibility.

Issue: BTC-2980

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2980.add-sign-input-func.testutils branch from faddbb4 to 4e5a152 Compare January 28, 2026 16:51
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review January 28, 2026 16:58
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner January 28, 2026 16:58
@OttoAllmendinger OttoAllmendinger merged commit fbc7c4a into master Jan 28, 2026
6 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2980.add-sign-input-func.testutils branch January 28, 2026 18:55
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