docs(wasm-utxo): add comprehensive new coin integration guide#168
Draft
OttoAllmendinger wants to merge 2 commits intomasterfrom
Draft
docs(wasm-utxo): add comprehensive new coin integration guide#168OttoAllmendinger wants to merge 2 commits intomasterfrom
OttoAllmendinger wants to merge 2 commits intomasterfrom
Conversation
bb4eb5b to
e585cfe
Compare
Remove utxo-lib dependencies from fixed-script PSBT tests and implement fixture auto-generation. Tests now generate fixtures on-demand when missing, ensuring consistency across all signature states (unsigned, halfsigned, fullsigned). Changes: - Implement fixture generation in generateFixture.ts - Update fixtureUtil to auto-generate missing fixtures - Remove utxo-lib network references, use NetworkName type - Remove txid validation against utxo-lib - Remove OP_RETURN output construction via utxo-lib - Update all test files to use async fixture loading - Switch to format validation for txids instead of cross-library checks Issue: BTC-3047 Co-authored-by: llm-git <llm-git@ttll.de> feat(wasm-utxo): attach non_witness_utxo to PSBT inputs in AcidTest Use the new Transaction builder to construct a fake previous transaction for each input when txFormat is "psbt", populating non_witness_utxo. refactor(wasm-utxo): make txFormat a parameter in fixture generation Accept txFormat in generateAllStates() and loadPsbtFixture() instead of hardcoding "psbt-lite", enabling generation of both psbt and psbt-lite fixtures from the same infrastructure. test(wasm-utxo): run fixed-script tests across both psbt and psbt-lite formats Iterate over txFormats in parseTransactionWithWalletKeys and signAndVerifySignature, skipping psbt for zcash which doesn't support non_witness_utxo. update fixtures test(wasm-utxo): add psbt-format fixtures for all 7 coins Generate unsigned/halfsigned/fullsigned PSBT fixtures (with non_witness_utxo) for bitcoin, bitcoincash, bitcoingold, dash, dogecoin, ecash, and litecoin.
e585cfe to
9ddab67
Compare
Add detailed guide for integrating new UTXO coins into wasm-utxo. Include step-by-step instructions for network enum updates, address codec configuration, PSBT handling, and fixture generation. Document match arm requirements, version byte sources, script type support flags, and sighash configuration. Provide worked example using foocoin throughout with code snippets, architecture diagram, and complete testing checklist. BTC-3047 Co-authored-by: llm-git <llm-git@ttll.de>
9ddab67 to
e4c31bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add detailed guide for integrating new UTXO coins into wasm-utxo.
Include step-by-step instructions for network enum updates, address
codec configuration, PSBT handling, and fixture generation. Document
match arm requirements, version byte sources, script type support
flags, and sighash configuration. Provide worked example using
foocoin throughout with code snippets, architecture diagram, and
complete testing checklist.
BTC-3047
Co-authored-by: llm-git llm-git@ttll.de