test(wasm-utxo): Pearl AcidTest regtest integrationLocalRpc (CECHO-1806) - #344
Merged
manojkumar138 merged 1 commit intoJul 29, 2026
Merged
Conversation
OttoAllmendinger
requested changes
Jul 29, 2026
Comment on lines
+1
to
+6
| /** | ||
| * Pearl regtest addresses use HRP `rprl`, but wasm-utxo CoinName only has | ||
| * pearl/tpearl (prl/tprl). Encode/decode witness programs with the regtest HRP | ||
| * so pearld accepts the addresses. | ||
| */ | ||
| import { bech32m } from "bech32"; |
Contributor
There was a problem hiding this comment.
add support for regtest pearl network in wasm-utxo instead
Contributor
Author
There was a problem hiding this comment.
Done — added first-class Network::PearlRegtest / CoinName tpearlreg (HRP rprl), mirroring tbtcreg. Dropped the test-only bech32 shim; integrationLocalRpc now uses fromOutputScriptWithCoin(..., "tpearlreg").
…O-1806) Live-node AcidTest harness under test/integrationLocalRpc/ (Docker or native pearld), Pearl fixtures committed, CI-excluded. Adds PearlRegtest / tpearlreg (HRP rprl) so regtest addresses use first-class network support, not a bech32 shim. Co-authored-by: Cursor <cursoragent@cursor.com>
manojkumar138
force-pushed
the
manojkumar138/cecho-1806-wasm-utxo-pearl-regtest
branch
from
July 29, 2026 10:35
e68c6b7 to
4ee1d85
Compare
OttoAllmendinger
approved these changes
Jul 29, 2026
manojkumar138
enabled auto-merge
July 29, 2026 10:38
manojkumar138
deleted the
manojkumar138/cecho-1806-wasm-utxo-pearl-regtest
branch
July 29, 2026 10:41
2 tasks
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.
Summary
Adds Pearl (Duplex) live-node coverage in
@bitgo/wasm-utxo, per Otto’s guidance on BitGoJS #9367 (superseded).test/integrationLocalRpc/— utxo-lib-style harness: spin uppearld(Docker or native viaWASM_UTXO_PEARLD_BIN), run the shared AcidTest kitchen-sink withdrawal against RPC, commit fixtures.npm run test:integrationLocalRpc— offline fixture checksnpm run test:integrationLocalRpc:generate— live generate + write fixturesPearlRegtest/ CoinNametpearlreg(HRPrprl) — first-class regtest network (mirrorstbtcreg), so addresses use production encode/decode instead of a test bech32 shim.AcidTest.createPsbt({ outpoints })— allows real funded UTXOs instead of synthetictxid=0…0.Local generate against native
pearld1.0.2 succeeded (p2trLegacy+p2trMusig2KeyPathfunded, broadcast accepted). Fixture:fixtures/pearl/acidTest.fullsigned.json.Test plan
pearldgenerate wrotefixtures/pearl/acidTest.fullsigned.jsonnpm run test:integrationLocalRpcpasses (offline)tpearlregencodes mining addr asrprl1p…(matches--miningaddr)test/integrationLocalRpc/**tpearlreg(addresses prior CHANGES_REQUESTED)Refs