diff --git a/modules/abstract-utxo/src/recovery/crossChainRecovery.ts b/modules/abstract-utxo/src/recovery/crossChainRecovery.ts index 59593c4303..62aab1ba0f 100644 --- a/modules/abstract-utxo/src/recovery/crossChainRecovery.ts +++ b/modules/abstract-utxo/src/recovery/crossChainRecovery.ts @@ -240,6 +240,7 @@ async function getFeeRateSatVB(coin: AbstractUtxoCoin): Promise { btc: 80, tbtc: 80, tbtcsig: 80, + tbtc4: 80, tbtcbgsig: 80, ltc: 100, tltc: 100, diff --git a/modules/bitgo/src/v2/coinFactory.ts b/modules/bitgo/src/v2/coinFactory.ts index 22b9e98649..3137bdd999 100644 --- a/modules/bitgo/src/v2/coinFactory.ts +++ b/modules/bitgo/src/v2/coinFactory.ts @@ -83,6 +83,7 @@ import { Tbsv, Tbtc, Tbtcsig, + Tbtc4, Tbtcbgsig, Tcelo, Tcoreum, @@ -198,6 +199,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void { globalCoinFactory.register('tbsv', Tbsv.createInstance); globalCoinFactory.register('tbtc', Tbtc.createInstance); globalCoinFactory.register('tbtcsig', Tbtcsig.createInstance); + globalCoinFactory.register('tbtc4', Tbtc4.createInstance); globalCoinFactory.register('tbtcbgsig', Tbtcbgsig.createInstance); globalCoinFactory.register('tcelo', Tcelo.createInstance); globalCoinFactory.register('tcoreum', Tcoreum.createInstance); diff --git a/modules/bitgo/src/v2/coins/index.ts b/modules/bitgo/src/v2/coins/index.ts index a29a3b6972..520df70027 100644 --- a/modules/bitgo/src/v2/coins/index.ts +++ b/modules/bitgo/src/v2/coins/index.ts @@ -12,7 +12,7 @@ import { Bera, Tbera } from '@bitgo/sdk-coin-bera'; import { Bld, Tbld } from '@bitgo/sdk-coin-bld'; import { Bsc, BscToken, Tbsc } from '@bitgo/sdk-coin-bsc'; import { Bsv, Tbsv } from '@bitgo/sdk-coin-bsv'; -import { Btc, Tbtc, Tbtcsig, Tbtcbgsig } from '@bitgo/sdk-coin-btc'; +import { Btc, Tbtc, Tbtcsig, Tbtc4, Tbtcbgsig } from '@bitgo/sdk-coin-btc'; import { Btg } from '@bitgo/sdk-coin-btg'; import { Celo, CeloToken, Tcelo } from '@bitgo/sdk-coin-celo'; import { Coreum, Tcoreum } from '@bitgo/sdk-coin-coreum'; @@ -62,7 +62,7 @@ export { Bch, Tbch }; export { Bera, Tbera }; export { Bsc, BscToken, Tbsc }; export { Bsv, Tbsv }; -export { Btc, Tbtc, Tbtcsig, Tbtcbgsig }; +export { Btc, Tbtc, Tbtcsig, Tbtc4, Tbtcbgsig }; export { Btg }; export { Celo, CeloToken, Tcelo }; export { Coreum, Tcoreum }; diff --git a/modules/bitgo/test/v2/unit/coins/utxo/address.ts b/modules/bitgo/test/v2/unit/coins/utxo/address.ts index 895cee0c79..0dfbd58ab2 100644 --- a/modules/bitgo/test/v2/unit/coins/utxo/address.ts +++ b/modules/bitgo/test/v2/unit/coins/utxo/address.ts @@ -23,12 +23,13 @@ function isCompatibleAddress(a: AbstractUtxoCoin, b: AbstractUtxoCoin): boolean return ['btc', 'bsv', 'bch', 'bcha'].includes(b.getChain()); case 'tbtc': case 'tbtcsig': + case 'tbtc4': case 'tbtcbgsig': case 'tbsv': case 'tbch': case 'tdoge': case 'tbcha': - return ['tbtc', 'tbtcsig', 'tbtcbgsig', 'tbsv', 'tbch', 'tbcha', 'tdoge'].includes(b.getChain()); + return ['tbtc', 'tbtcsig', 'tbtc4', 'tbtcbgsig', 'tbsv', 'tbch', 'tbcha', 'tdoge'].includes(b.getChain()); default: return false; } @@ -50,6 +51,7 @@ function run(coin: AbstractUtxoCoin) { case 'btc': case 'tbtc': case 'tbtcsig': + case 'tbtc4': case 'tbtcbgsig': supportedAddressTypes.should.eql(['p2sh', 'p2shP2wsh', 'p2wsh', 'p2tr', 'p2trMusig2']); break; diff --git a/modules/bitgo/test/v2/unit/coins/utxo/coins.ts b/modules/bitgo/test/v2/unit/coins/utxo/coins.ts index a87dea890f..1b28f77f43 100644 --- a/modules/bitgo/test/v2/unit/coins/utxo/coins.ts +++ b/modules/bitgo/test/v2/unit/coins/utxo/coins.ts @@ -13,6 +13,7 @@ describe('utxoCoins', function () { ['btc', 'bitcoin'], ['tbtc', 'testnet'], ['tbtcsig', 'bitcoinPublicSignet'], + ['tbtc4', 'bitcoinTestnet4'], ['tbtcbgsig', 'bitcoinBitGoSignet'], ['bch', 'bitcoincash'], ['tbch', 'bitcoincashTestnet'], @@ -47,6 +48,7 @@ describe('utxoCoins', function () { ['bitcoin', 'btc'], ['testnet', 'tbtc'], ['bitcoinPublicSignet', 'tbtcsig'], + ['bitcoinTestnet4', 'tbtc4'], ['bitcoinBitGoSignet', 'tbtcbgsig'], ['bitcoincash', 'bch'], ['bitcoincashTestnet', 'tbch'], diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/addresses-by-chain.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/addresses-by-chain.json new file mode 100644 index 0000000000..6ab0ab663b --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/addresses-by-chain.json @@ -0,0 +1,176 @@ +[ + [ + { + "chain": "default" + }, + { + "address": "2Mv1fGp8gHSqsiXYG7WqcYmHZdurDGVtUbn", + "chain": 0, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "redeemScript": "5221037acffd52bb7c39a4ac3d4c01af33ce0367afec45347e332edca63a38d1fb2e472102658831a87322b3583515ca8725841335505755ada53ee133c70a6b4b8d3978702102641ee6557561c9038242cafa7f538070d7646a969bcf6169f9950abfcfefd6b853ae" + }, + "addressType": "p2sh" + } + ], + [ + { + "chain": 0 + }, + { + "address": "2Mv1fGp8gHSqsiXYG7WqcYmHZdurDGVtUbn", + "chain": 0, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "redeemScript": "5221037acffd52bb7c39a4ac3d4c01af33ce0367afec45347e332edca63a38d1fb2e472102658831a87322b3583515ca8725841335505755ada53ee133c70a6b4b8d3978702102641ee6557561c9038242cafa7f538070d7646a969bcf6169f9950abfcfefd6b853ae" + }, + "addressType": "p2sh" + } + ], + [ + { + "chain": 1 + }, + { + "address": "2MyPbR4VrC98jCfnfhu9ir4zsuNxZiPS85K", + "chain": 1, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "a9144365f80ae9830dab1d9124be68c74c2fa23bbc1287", + "redeemScript": "522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53ae" + }, + "addressType": "p2sh" + } + ], + [ + { + "chain": 10 + }, + { + "address": "2N4uionZeh2p88wf2B6MCEr8ar2NHWEnQeQ", + "chain": 10, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "a9147ff13f3faeba4d439ef40604f7c127951e77eb6a87", + "redeemScript": "00207aad7d57b238a09b5daa10ff47c54483b7f2ad47f3f0c0aa230958b9df334260", + "witnessScript": "52210304fcea3fb05f6e8a8fe91db2087bdd13b18102a0b10a77c1fdbb326b0ce7cec421028242a3ea9e20d4e6b78e3f0dde21aff86a623d48322681b203b6827e22d04a9d2102ceec88b222a55ec67d1414b523bcfc0f53eb6ac012ba91744a4ed8eb448d55f753ae" + }, + "addressType": "p2shP2wsh" + } + ], + [ + { + "chain": 11 + }, + { + "address": "2NFCjioQkatHzS9wxXiURfvsQrHfWqT3yZj", + "chain": 11, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "a914f0da56d9bb06310289d808a22ad68457a760ac0387", + "redeemScript": "00202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800", + "witnessScript": "52210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae" + }, + "addressType": "p2shP2wsh" + } + ], + [ + { + "chain": 20 + }, + { + "address": "tb1qjpzgkka9lhs5l39shlr4d394tljw8p2v35sl88h82djvqp3mculq283u4j", + "chain": 20, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "002090448b5ba5fde14fc4b0bfc756c4b55fe4e3854c8d21f39ee75364c0063bc73e", + "witnessScript": "522103cf858f42c759d590d80f3715ce59be999089e6b1f381d0f4338276546fd3a04e2102dca1ab8670d45f5213c7c9d66b2f89b50a4cbd33fd72db89ba18d3e82d3dd5ee210294b6dab0dc112831a0dc1e219769bd81d13eb38a8bdb938103f919d8dd7e004353ae" + }, + "addressType": "p2wsh" + } + ], + [ + { + "chain": 21 + }, + { + "address": "tb1q5e7nvvypt2qpjxq74zwtry9klsqkcyvcee85anaa3pax7ae207gs37spuh", + "chain": 21, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "0020a67d3630815a8019181ea89cb190b6fc016c1198ce4f4ecfbd887a6f772a7f91", + "witnessScript": "52210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae" + }, + "addressType": "p2wsh" + } + ], + [ + { + "chain": 30 + }, + { + "address": "tb1p0sm0je6mv9zrzyguquzh24svlz6sgcct3qckp34nc09vj6wedn0shlq9un", + "chain": 30, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "51207c36f9675b614431111c070575560cf8b504630b883160c6b3c3cac969d96cdf" + }, + "addressType": "p2tr" + } + ], + [ + { + "chain": 31 + }, + { + "address": "tb1phk6lhy2tka2kxsx6hjd3c0z2h2e0rcrere9lr3kqsg0p6xxqe2pqa44eqg", + "chain": 31, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "5120bdb5fb914bb7556340dabc9b1c3c4abab2f1e0791e4bf1c6c0821e1d18c0ca82" + }, + "addressType": "p2tr" + } + ], + [ + { + "chain": 40 + }, + { + "address": "tb1pxgs4mpuymvtr7hsx3u0efx5yvjd2nark5qgsg89s8p0jcdzvukgq35t4u7", + "chain": 40, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "512032215d8784db163f5e068f1f949a84649aa9f476a011041cb0385f2c344ce590" + }, + "addressType": "p2trMusig2" + } + ], + [ + { + "chain": 41 + }, + { + "address": "tb1p8qdlmtsw6ehy9u4w8lpw4xw6shg7jknu7fhrlaclpdaqtfp0puesgpm4xs", + "chain": 41, + "index": 0, + "coin": "tbtc4", + "coinSpecific": { + "outputScript": "5120381bfdae0ed66e42f2ae3fc2ea99da85d1e95a7cf26e3ff71f0b7a05a42f0f33" + }, + "addressType": "p2trMusig2" + } + ] +] \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-fullSignedRecovery-customUserKeyPath.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-fullSignedRecovery-customUserKeyPath.json new file mode 100644 index 0000000000..46ff1619ae --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-fullSignedRecovery-customUserKeyPath.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "c35632d302cbce17584464d2932d93aab8be0f10ce2507a97a5a9d2c7e1a177b:0", + "address": "2N4QNizxEe9cidCuiwBSuWMVnESL1rq4xeP", + "value": 100000000, + "chain": 1, + "index": 0, + "valueString": "100000000" + }, + { + "id": "a94f373ba53af0a6d35991c460149b1f3bb2c6981110ca505248b2c6e673d997:2", + "address": "2MsPHutXUnEtC8sZgUz8bS5cwrsnECbMYA4", + "value": 200000000, + "chain": 1, + "index": 2, + "valueString": "200000000" + }, + { + "id": "2ced3812039330d831d4546175fc7486cfbc2feb754e5ce5e5df5867ae677056:3", + "address": "2MvA4HmvYvPKbzXYS1yb9iZh2WUSuFY6iy7", + "value": 300000000, + "chain": 1, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "01000000037b171a7e2c9d5a7aa90725ce100fbeb8aa932d93d264445817cecb02d33256c300000000fdfd000048304502210090afd8e3bfd9e080ebf66d1367d1947033c5c8682558d14de429412152df5e0202204d9e6838c10d2c863a8d3ef6114b4beb4663eaa2189e56c87be3ffa81a2c316301473044022032bb84e66cf44a3ce2a9114b06c616b8044b5df4ae743e779dd7bdbaab31093c02206ae22a743cbd4c59996ee44044431363ee9d1f0b8468c3539aee9d692f936a52014c69522102587d7749d1ed2a3d3d300b969e68cbedb042ea19e3ee90c4131e2092f5e1181e21030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff97d973e6c6b2485250ca101198c6b23b1f9b1460c49159d3a6f03aa53b374fa902000000fc00473044022020ca41765bdfec55a1f1467111e699fb44b85d268efe5462ed5deb85596393f102203f1e8066f3ddb4d7bee5397b41593fe1ff99a3d72dcaa361e4a0ba8e59a2ae430147304402200934c3a7471cc655e73e9a9ef5994738a621f43081a585ceb7e2bb0470a3b74e02200177e4ea17e4ff5418fe3535fa2c2a43e9ad433f87372b317c11de131de5a8a9014c695221025f891d428e847408357073c5b14344ec582230b4007695110140b2433f8e4fa82103b85d4e424ae44b828e313ca36fa1fc83cdc7f3eefd722cb89ed6d1b3caf385b921026d466a768d425c86687b79a28faa5297d4016b37c09d779bc0313d688e0f302453aeffffffff567067ae6758dfe5e55c4e75eb2fbccf8674fc756154d431d83093031238ed2c03000000fc0047304402200f5e67793a44288724dab7136cd55e1e21442da67660d1c68b0f4816389253d0022077a9c303a80a63d703114504915131d24e867450405b78b42fbf3520b58e177b01473044022050243f1fc531961c7bf1cc63a08d823edf6a75524eb1f75d70846e8f657fb09d0220747e1a591f2d08151b8391f7790f9a6e62e8451ebe468ca42338ddd570e75aed014c6952210228b669c7736183ae301d159ee7788e1a7dccb7ec3d45de94eccf0b384aa8f78021022438d658cc970895bf05bb617fbf4036600fc716bec8adb92aeaa317edd1700d2102b650623b12f2407c25496559410dfd0624dda8b79908bc9d80402100406e4f4b53aeffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txid": "a0455b558005c37d3927a82712bb26cefa467bde2f89bc1c97a0a2645492b873" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-fullSignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-fullSignedRecovery.json new file mode 100644 index 0000000000..aeb3f46a71 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-fullSignedRecovery.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "818236f569e2c257866e3b2b2f496d32b9972d67bbae0fffe10bd5d15c439a28:0", + "address": "2MyPbR4VrC98jCfnfhu9ir4zsuNxZiPS85K", + "value": 100000000, + "chain": 1, + "index": 0, + "valueString": "100000000" + }, + { + "id": "3c8a8235f781763203ceea667a440934e00ab639866664a04e18fc8b14862b1f:2", + "address": "2My3yKChWKQLAfot9zUfnCtKzwR1hxdfvE4", + "value": 200000000, + "chain": 1, + "index": 2, + "valueString": "200000000" + }, + { + "id": "959bb11cb05102765373e1174b0ef61d75ca7b81d3245aa82e9756219cc360dc:3", + "address": "2MscdR7AUdUzbGcxq9k7BWsVaiHoXwk2Rn4", + "value": 300000000, + "chain": 1, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "0100000003289a435cd1d50be1ff0faebb672d97b9326d492f2b3b6e8657c2e269f536828100000000fc0047304402203bf1f574c794fd8f68e90722c57cc93ce136ccddf3b30b5ce64342c89c83a7f3022019e8c18c6c94acd2c384c76f65ad417dc0c729fcabf8c20a77c521641b751a0301473044022100d091b48bd6cc8e7955fc281c313e2f43ae4caee4326cd1c03f84ae179de5e5e6021f32aeb1dcee1695875f459b40a7fabdae99d3991338dc101dffcfd9a18f85bf014c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff1f2b86148bfc184ea064668639b60ae03409447a66eace03327681f735828a3c02000000fdfd0000483045022100c26df93a70b8383d26b033a750483a33ebe2474bafc640ff376ad9eae4d2fb95022042154846c2f042cbfce1d59fe22620ea7433552913c027588b9fbd6da43eb846014730440220477c29b238a95f6574eca9ecbb4d71e32696a1e0fd1f4e9c471838c07e0637fe02201365e92f8ab0b901a56f5258ceabc278967645503caef4a32c0c4c00f8283a2a014c695221021a8d0b4e9ad8c7538f7b9ea0441b33ed3611559afef335a990e4702fb95d41a72103b85d4e424ae44b828e313ca36fa1fc83cdc7f3eefd722cb89ed6d1b3caf385b921026d466a768d425c86687b79a28faa5297d4016b37c09d779bc0313d688e0f302453aeffffffffdc60c39c2156972ea85a24d3817bca751df60e4b17e17353760251b01cb19b9503000000fdfd0000473044022049ed363ab4890ea65ce8fbe76030fa329ccea35dba3aaec24582838eb6139d7c0220072794c17dbc26de84a25e2804f5408115f12437c9bb50bc3abb713c4e5a297601483045022100c278f9d719f0071d56091c6b8dc7abe911e9df0512373505ed82a180f3f2b2f5022012db544b4301d259b8419ed49bd36d76265e834e9536efee8c867f9f4b4f11ee014c695221023c5cbb819b0bcb5c7bf8db592d4c1d15d1b8d14d49b444ba4e85131316b24d4c21022438d658cc970895bf05bb617fbf4036600fc716bec8adb92aeaa317edd1700d2102b650623b12f2407c25496559410dfd0624dda8b79908bc9d80402100406e4f4b53aeffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txid": "328a694e782f085a82ec01a93056c57541adca82ce3007a0f910f1b2291c1d24" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-keyRecoveryService-dai.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-keyRecoveryService-dai.json new file mode 100644 index 0000000000..ba4d209304 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-keyRecoveryService-dai.json @@ -0,0 +1,8 @@ +{ + "transactionHex": "70736274ff0100a50100000003289a435cd1d50be1ff0faebb672d97b9326d492f2b3b6e8657c2e269f53682810000000000ffffffff1f2b86148bfc184ea064668639b60ae03409447a66eace03327681f735828a3c0200000000ffffffffdc60c39c2156972ea85a24d3817bca751df60e4b17e17353760251b01cb19b950300000000ffffffff01e4c2c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87000000004f010488b21e0000000000000000004b256d3cf3524c8d7086e295a1923d6fa2f99b686699ed50084bb114495c982403a86864862a9e315221809501f2a4200cd9e057a70f9164d485d4cfbeb8e47c74048374ad864f010488b21e000000000000000000914cc440157319de14126a1a2e87ea86f3b983f923fb17693a157b721220d74c02e81e105716179975cc47afd117cae272519aafdd6bfff688e4280d384e13184f04e15f6f214f010488b21e000000000000000000da28679577f7faf0ed86164da220aa4a29c7edfb0de8bdabd97f19fd15e74bed03db2b42af97f60db6ec5a1500e246ef2107660c4fc02699ed69b82c2f3e9324ae0403a82391000100c10100000000010101010101010101010101010101010101010101010101010101010101010101010000000000ffffffff0100e1f5050000000017a9144365f80ae9830dab1d9124be68c74c2fa23bbc128702483045022100858c9aa2a8a09e21aa6c2690d9310d29b611b5c3c4684a278a35df474b77d2c5022006557c234f65761407cafba42273f10380c3f0fc672fb78a3d19d7d4de1953ed012103bd0c34b2373e387575cddb103ec03916c31044f2508e261fe3597a2680ecbd1f00000000220202d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc61483045022100c15ce99736373c306708f8cc510a4ad85e109c0482918cde4cd64957eece542a022063a15d21b3c13ed5e5bc350b3bc677183c4041cca4b90c25ec4318f4f2d67dc20101030401000000010469522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53ae2206029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d148374ad8600000000000000000100000000000000220602d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc611403a82391000000000000000001000000000000002206030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3514e15f6f2100000000000000000100000000000000000100fdfe000100000000010101010101010101010101010101010101010101010101010101010101010101010000000000ffffffff0300c2eb0b00000000160014883ad8d1affdf8a73cbdaf7237b5c5ab9ec2c32600c2eb0b00000000160014883ad8d1affdf8a73cbdaf7237b5c5ab9ec2c32600c2eb0b0000000017a9143fafee16e19a14db449ab3a57da1fd3ef89daa59870247304402203eac5776ee059ab03970aa4de32186769f24c90225b015b1c2af58f900ce1f9c02201c8ab9bf330aff31efdf9937e4bdff4a79629df2e506a445387c5404d5fd6f07012103bd0c34b2373e387575cddb103ec03916c31044f2508e261fe3597a2680ecbd1f000000002202021a8d0b4e9ad8c7538f7b9ea0441b33ed3611559afef335a990e4702fb95d41a7483045022100c4767d763ba74be1c9e39cc0972e31ff89865b03973f218c1ea2cc26334be8ae02201e164bca6f26364ee522d967aa70ea53b00c548a6f876478033d629759a3380501010304010000000104695221021a8d0b4e9ad8c7538f7b9ea0441b33ed3611559afef335a990e4702fb95d41a72103b85d4e424ae44b828e313ca36fa1fc83cdc7f3eefd722cb89ed6d1b3caf385b921026d466a768d425c86687b79a28faa5297d4016b37c09d779bc0313d688e0f302453ae2206021a8d0b4e9ad8c7538f7b9ea0441b33ed3611559afef335a990e4702fb95d41a71403a82391000000000000000001000000020000002206026d466a768d425c86687b79a28faa5297d4016b37c09d779bc0313d688e0f3024148374ad8600000000000000000100000002000000220603b85d4e424ae44b828e313ca36fa1fc83cdc7f3eefd722cb89ed6d1b3caf385b914e15f6f2100000000000000000100000002000000000100fd1e010100000000010101010101010101010101010101010101010101010101010101010101010101010000000000ffffffff0400a3e11100000000160014883ad8d1affdf8a73cbdaf7237b5c5ab9ec2c32600a3e11100000000160014883ad8d1affdf8a73cbdaf7237b5c5ab9ec2c32600a3e11100000000160014883ad8d1affdf8a73cbdaf7237b5c5ab9ec2c32600a3e1110000000017a914040c4ab99a665c767adaa50fb28dce2ae514363b8702483045022100f1048d424cecee8bb0f80f884a141ac77d66ec734d5b678e7179c21f0dd6999d0220652a35be4ca4e7acc73ad8d45e8483cba4420e0f99c7b77608cbba5ca507966b012103bd0c34b2373e387575cddb103ec03916c31044f2508e261fe3597a2680ecbd1f000000002202023c5cbb819b0bcb5c7bf8db592d4c1d15d1b8d14d49b444ba4e85131316b24d4c483045022100e722510ad6c3aabcad9684e302c07bbb56c8c8fa860d68d800d1d3582b4bdee202202e40d997fdec7dc1c8b61d450b75cfde8c285caa12cd7b5e8897083ecad0ea5e01010304010000000104695221023c5cbb819b0bcb5c7bf8db592d4c1d15d1b8d14d49b444ba4e85131316b24d4c21022438d658cc970895bf05bb617fbf4036600fc716bec8adb92aeaa317edd1700d2102b650623b12f2407c25496559410dfd0624dda8b79908bc9d80402100406e4f4b53ae2206022438d658cc970895bf05bb617fbf4036600fc716bec8adb92aeaa317edd1700d14e15f6f21000000000000000001000000030000002206023c5cbb819b0bcb5c7bf8db592d4c1d15d1b8d14d49b444ba4e85131316b24d4c1403a8239100000000000000000100000003000000220602b650623b12f2407c25496559410dfd0624dda8b79908bc9d80402100406e4f4b148374ad86000000000000000001000000030000000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599900900, + "recoveryAmountString": "599900900", + "txid": "8f52b9ad56724efdcd392f50d8cda59e333d2eb7a3e3b2ac0edf191463a2751e" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-keyRecoveryService-keyternal.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-keyRecoveryService-keyternal.json new file mode 100644 index 0000000000..03fbef3eae --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-keyRecoveryService-keyternal.json @@ -0,0 +1,34 @@ +{ + "inputs": [ + { + "id": "818236f569e2c257866e3b2b2f496d32b9972d67bbae0fffe10bd5d15c439a28:0", + "address": "2MyPbR4VrC98jCfnfhu9ir4zsuNxZiPS85K", + "value": 100000000, + "chain": 1, + "index": 0, + "valueString": "100000000" + }, + { + "id": "3c8a8235f781763203ceea667a440934e00ab639866664a04e18fc8b14862b1f:2", + "address": "2My3yKChWKQLAfot9zUfnCtKzwR1hxdfvE4", + "value": 200000000, + "chain": 1, + "index": 2, + "valueString": "200000000" + }, + { + "id": "959bb11cb05102765373e1174b0ef61d75ca7b81d3245aa82e9756219cc360dc:3", + "address": "2MscdR7AUdUzbGcxq9k7BWsVaiHoXwk2Rn4", + "value": 300000000, + "chain": 1, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "0100000003289a435cd1d50be1ff0faebb672d97b9326d492f2b3b6e8657c2e269f536828100000000b60047304402203828c6052fc53c573b8ad653ac80fe26e1d1ddde683faca519b2820212da4f7d02205e7e55a1cc552687f5a9ec8e9bd135557c09d9b2aaa0019929288c630fd1ceea0100004c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff1f2b86148bfc184ea064668639b60ae03409447a66eace03327681f735828a3c02000000b700483045022100f758208f72138002f57aae96b15a7b60a059d78da132c0e3c7e0abb4bd567f3f02205ce0a003b117d77542d8e1a46eded5c661996e69ee123c146d65338b9cd881250100004c695221021a8d0b4e9ad8c7538f7b9ea0441b33ed3611559afef335a990e4702fb95d41a72103b85d4e424ae44b828e313ca36fa1fc83cdc7f3eefd722cb89ed6d1b3caf385b921026d466a768d425c86687b79a28faa5297d4016b37c09d779bc0313d688e0f302453aeffffffffdc60c39c2156972ea85a24d3817bca751df60e4b17e17353760251b01cb19b9503000000b700483045022100adf4e985196efef77c9bd658691e056c54e2ef6b9b829f1bec67f5d457ce828f02206c2c11f191d754f418383635d37b2a47f0539857e75b631f9637733fdfc678850100004c695221023c5cbb819b0bcb5c7bf8db592d4c1d15d1b8d14d49b444ba4e85131316b24d4c21022438d658cc970895bf05bb617fbf4036600fc716bec8adb92aeaa317edd1700d2102b650623b12f2407c25496559410dfd0624dda8b79908bc9d80402100406e4f4b53aeffffffff02d295bf230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87122d02000000000017a9148c306cfb0b0def57576ace97941c12c1a79834cf8700000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599758290, + "recoveryAmountString": "599758290", + "txid": "7cb327f1dde5aac990f3b053a4aa24d1dc2009d682c5c76062d9cb5737feb36e" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-unsignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-unsignedRecovery.json new file mode 100644 index 0000000000..66ad654420 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2sh-unsignedRecovery.json @@ -0,0 +1,34 @@ +{ + "txHex": "0100000003289a435cd1d50be1ff0faebb672d97b9326d492f2b3b6e8657c2e269f53682810000000000ffffffff1f2b86148bfc184ea064668639b60ae03409447a66eace03327681f735828a3c0200000000ffffffffdc60c39c2156972ea85a24d3817bca751df60e4b17e17353760251b01cb19b950300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txInfo": { + "unspents": [ + { + "id": "818236f569e2c257866e3b2b2f496d32b9972d67bbae0fffe10bd5d15c439a28:0", + "address": "2MyPbR4VrC98jCfnfhu9ir4zsuNxZiPS85K", + "value": 100000000, + "chain": 1, + "index": 0, + "valueString": "100000000" + }, + { + "id": "3c8a8235f781763203ceea667a440934e00ab639866664a04e18fc8b14862b1f:2", + "address": "2My3yKChWKQLAfot9zUfnCtKzwR1hxdfvE4", + "value": 200000000, + "chain": 1, + "index": 2, + "valueString": "200000000" + }, + { + "id": "959bb11cb05102765373e1174b0ef61d75ca7b81d3245aa82e9756219cc360dc:3", + "address": "2MscdR7AUdUzbGcxq9k7BWsVaiHoXwk2Rn4", + "value": 300000000, + "chain": 1, + "index": 3, + "valueString": "300000000" + } + ] + }, + "feeInfo": {}, + "coin": "tbtc4", + "txid": "15454128619e030a6338799449934241c024abf40d52585e9e003eef622636b7" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-fullSignedRecovery-customUserKeyPath.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-fullSignedRecovery-customUserKeyPath.json new file mode 100644 index 0000000000..72a830180e --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-fullSignedRecovery-customUserKeyPath.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "887016e6d1109bdb219ce8ce3671879f4d3410eb4abba6ca760dcaf88834c02e:0", + "address": "2N2G3HPJe3HqFswHdqgnr3fmawk2DJ5wZBE", + "value": 100000000, + "chain": 11, + "index": 0, + "valueString": "100000000" + }, + { + "id": "16839837f79f95b5cbf22424ea879f8d21a852208bd5539b79c6b004a46d9221:2", + "address": "2N6h5nj19gCfus68bSjmtkATpobRJoTnS64", + "value": 200000000, + "chain": 11, + "index": 2, + "valueString": "200000000" + }, + { + "id": "0bffcb3fad2801934dbf7b555b3bcec9dbb2d3377b79f820e8d3cdb16576f1b5:3", + "address": "2N2sPZFaLgPXjF4j5zFn6fCVDmS13Btot9A", + "value": 300000000, + "chain": 11, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "010000000001032ec03488f8ca0d76caa6bb4aeb10344d9f877136cee89c21db9b10d1e61670880000000023220020b858b5820bca303626d8d5a5291b5a0dcf839c76d61c32eb226c9d08fd06e3a4ffffffff21926da404b0c6799b53d58b2052a8218d9f87ea2424f2cbb5959ff73798831602000000232200201063b62f857751aaeaf8c7ef5636d48511fac0008f8ee69e4b1a006b2b74e553ffffffffb5f17665b1cdd3e820f8797b37d3b2dbc9ce3b5b557bbf4d930128ad3fcbff0b03000000232200202b16216e81e558810abe7604a67aa97b737f64d40b3de22d5fccdf2b6c972f03ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87040047304402207d54be589b6c1025283b43402f788e5df2823be0c08a67d00c707f998d33905f02200abe7d2722a62f66fd4582af266b36254c8966184b4383e935aa76810c85b88d0147304402204427ff567bc701a9662a74bd730bc70dd22d30695f50678ad81785b4584c8845022028a7561021e5fdd140d30b3abdec13c05cc448da9e5e38bfc0cf9d693735732501695221032484ff761a521ee38b094232984175f1db28c90fe304c7242c0057330b6e024a21022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae0400483045022100da3a4808be7bb6ef4ac1534e310b79b6297c6aaae7fb36540e598fddba1b3e83022013626ce8a8512ae8252edb8c635b003c588a8369480821152f5d96327e56e1d20147304402203b0df6269ffffa3635a9698bd06863c9a4193547492953ca52b92609dbb78e0c02205200d9013e6eef136eba572406231127e1ed8cbcc36548c14234fe68d163064d0169522102678b7a7d9dc0736691adc5b681808f1bbc981563ffa23e1c302d0a4006e7fa252103f1f0e0df1b33d83a63a6ee6f70005f48e2c1aa221d1d9748c495a873e01ffcff21021b1ce0837f6c057a6622b90bcc30d27685df6e19717864e7ed4b289f790fb24d53ae0400483045022100bb2721b111314619ca01a60ceba591ce63ee7b04901584eaa6194f14de421e080220209f5acfcb77f27c3659913590f2ae11f06d40947457faa6065248059349b445014730440220585ed3ebe3361cf7b77c5ca45074468dd71fd16f26c6ba2c0a5126c43dd6751a02207a894f15c968736063a77b62aa3a7e5e1188d893c1392d4f37ee92310d5538590169522102be72efeb6abfd486e92e30221f854983722118d820c90d5b2999b8623b27abee2103cccd821265c6da3e77e4db08d4c6f39a259abbd143017fcf264b8a4114812a39210391ea88b71b8275193f39ffffef42da14c775d7a13434aa5427dc5bbb0ccc3f1853ae00000000", + "txid": "032cba72ac12735687826665632affe4270704422534de39b72fa14d07d3b83a" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-fullSignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-fullSignedRecovery.json new file mode 100644 index 0000000000..b64b36ec68 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-fullSignedRecovery.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "c3d8cd849b9f1939bea833ef14735be7c293bc7739241098ce386b968420aa4a:0", + "address": "2NFCjioQkatHzS9wxXiURfvsQrHfWqT3yZj", + "value": 100000000, + "chain": 11, + "index": 0, + "valueString": "100000000" + }, + { + "id": "7f0246d1beeb93f1990650508d4dbfb6a35ae4489abb5aa6724896efb4ad8c43:2", + "address": "2NGYMtcbtpniMSu8aNkwsEvPDzMJMY2Bhbg", + "value": 200000000, + "chain": 11, + "index": 2, + "valueString": "200000000" + }, + { + "id": "6cc0e85f057729f4485b2051c3f2ed6dbc8141a6283cd3697f52f90d482947e3:3", + "address": "2MyaBFSyvydN7Hjppt27vsDaEHHWbq2btjH", + "value": 300000000, + "chain": 11, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "010000000001034aaa2084966b38ce9810243977bc93c2e75b7314ef33a8be39199f9b84cdd8c300000000232200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800ffffffff438cadb4ef964872a65abb9a48e45aa3b6bf4d8d50500699f193ebbed146027f02000000232200206fbe320ee6cef6a57f89af5ffcc027a2413a768598a36617bee7310028bc3104ffffffffe34729480df9527f69d33c28a64181bc6dedf2c351205b48f42977055fe8c06c03000000232200208b9b1b4c660760e162f678ec6515fb574b48e93eb5ff4636dd85d1788a977d06ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff870400483045022100ac7a0a1f45645b1b550f3e44b1c4db2b6e41b702e30c6ac504407e240b305f6f02204a376cf87826c3ec0ea05ddafc05df3f1d9c62f7f213041346a222eec309fb980147304402205b2c335f1770f77bca9264687efd55eb074ca0ca176d5fc48c0d7cd4e7c85af1022027bacc464154faadf0ee6ad8bade5b188ea5afdc8f5262644e3c00e094e2c83c016952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae0400463043021f753406a28aa9b4b47430cd0c0e4bd0d392e99ecf58e85ed7a1bd9c43d1c3e1022073bb1d8e33981210760b609c056862464b4a4cd74a9fb5510a57f4a88be7ec4801473044022010221b0c005bbd30a61eba6b4f4031fd4a4480de816134274e050043b31a08c6022038e14ce618fa997209db4e715a2f6385e8dce21e76c397d6182becc99af7b8620169522102787bacc6de8d57ecd2cdbde2e405f6328e52e3bdbefc5b3ef75a87f8f4c6c8fd2103f1f0e0df1b33d83a63a6ee6f70005f48e2c1aa221d1d9748c495a873e01ffcff21021b1ce0837f6c057a6622b90bcc30d27685df6e19717864e7ed4b289f790fb24d53ae0400473044022018ceec1e4a56b15f767b3dcb6b0cda382e225ded7f450a732eb080bd0837101502203570e94107651c6a590b8681b7f8795a572cccec1395509960df8270ff94859c014730440220167f9a698cc6d7b4425226ef34f3db8197e701a284de0962108edb774fe7d45a0220171dfed54a1c56911388621589bdb77d6d67c5b5d06560e9e2322d5f32a523540169522102a816e254943391bb037211dfac8dda132bfcf2051c386631402834e2783466d82103cccd821265c6da3e77e4db08d4c6f39a259abbd143017fcf264b8a4114812a39210391ea88b71b8275193f39ffffef42da14c775d7a13434aa5427dc5bbb0ccc3f1853ae00000000", + "txid": "c6865e1296858dbbcda5eed4de7b07cbf959802acd27ac26ca68120e76f521be" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-keyRecoveryService-dai.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-keyRecoveryService-dai.json new file mode 100644 index 0000000000..6e5860d36c --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-keyRecoveryService-dai.json @@ -0,0 +1,8 @@ +{ + "transactionHex": "70736274ff0100a501000000034aaa2084966b38ce9810243977bc93c2e75b7314ef33a8be39199f9b84cdd8c30000000000ffffffff438cadb4ef964872a65abb9a48e45aa3b6bf4d8d50500699f193ebbed146027f0200000000ffffffffe34729480df9527f69d33c28a64181bc6dedf2c351205b48f42977055fe8c06c0300000000ffffffff01e4c2c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87000000004f010488b21e0000000000000000004b256d3cf3524c8d7086e295a1923d6fa2f99b686699ed50084bb114495c982403a86864862a9e315221809501f2a4200cd9e057a70f9164d485d4cfbeb8e47c74048374ad864f010488b21e000000000000000000914cc440157319de14126a1a2e87ea86f3b983f923fb17693a157b721220d74c02e81e105716179975cc47afd117cae272519aafdd6bfff688e4280d384e13184f04e15f6f214f010488b21e000000000000000000da28679577f7faf0ed86164da220aa4a29c7edfb0de8bdabd97f19fd15e74bed03db2b42af97f60db6ec5a1500e246ef2107660c4fc02699ed69b82c2f3e9324ae0403a823910001012000e1f5050000000017a914f0da56d9bb06310289d808a22ad68457a760ac038722020386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c548304502210097c2aa44c0f495846c9d3661235e7b6ce9fe8fd8337001156eff75a1ade70466022033608757fd1d2fbcc26d9379ab0ffc65728a9d3d1a0faed1ae13c49f97719468010103040100000001042200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae80001056952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae2206022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda414e15f6f2100000000000000000b00000000000000220602f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e227003148374ad8600000000000000000b0000000000000022060386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c51403a8239100000000000000000b000000000000000001012000c2eb0b0000000017a914ff888f939bb7911883d2a990b48b20449b0a3b6087220202787bacc6de8d57ecd2cdbde2e405f6328e52e3bdbefc5b3ef75a87f8f4c6c8fd483045022100e8cb817725036eaa7ef25aa5b3f75038e3a85b80e3400dd4c49772392e88358702207da866724fb735ec1c11defe1148b87593465ddf669d2f8265dc3438ff381986010103040100000001042200206fbe320ee6cef6a57f89af5ffcc027a2413a768598a36617bee7310028bc3104010569522102787bacc6de8d57ecd2cdbde2e405f6328e52e3bdbefc5b3ef75a87f8f4c6c8fd2103f1f0e0df1b33d83a63a6ee6f70005f48e2c1aa221d1d9748c495a873e01ffcff21021b1ce0837f6c057a6622b90bcc30d27685df6e19717864e7ed4b289f790fb24d53ae2206021b1ce0837f6c057a6622b90bcc30d27685df6e19717864e7ed4b289f790fb24d148374ad8600000000000000000b00000002000000220602787bacc6de8d57ecd2cdbde2e405f6328e52e3bdbefc5b3ef75a87f8f4c6c8fd1403a8239100000000000000000b00000002000000220603f1f0e0df1b33d83a63a6ee6f70005f48e2c1aa221d1d9748c495a873e01ffcff14e15f6f2100000000000000000b000000020000000001012000a3e1110000000017a91445665f38d00633b9a2cb7f73c2fffb9dc6c95efa87220202a816e254943391bb037211dfac8dda132bfcf2051c386631402834e2783466d8473044022000d7b0ff8fbe7c0e977d24540f769406d66930a65e7821f165f33a6afcd25ce1022047de2d86c480fbc27a4d016f1b78a1922076be3a721397e10e23719f91c23133010103040100000001042200208b9b1b4c660760e162f678ec6515fb574b48e93eb5ff4636dd85d1788a977d06010569522102a816e254943391bb037211dfac8dda132bfcf2051c386631402834e2783466d82103cccd821265c6da3e77e4db08d4c6f39a259abbd143017fcf264b8a4114812a39210391ea88b71b8275193f39ffffef42da14c775d7a13434aa5427dc5bbb0ccc3f1853ae220602a816e254943391bb037211dfac8dda132bfcf2051c386631402834e2783466d81403a8239100000000000000000b0000000300000022060391ea88b71b8275193f39ffffef42da14c775d7a13434aa5427dc5bbb0ccc3f18148374ad8600000000000000000b00000003000000220603cccd821265c6da3e77e4db08d4c6f39a259abbd143017fcf264b8a4114812a3914e15f6f2100000000000000000b000000030000000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599900900, + "recoveryAmountString": "599900900", + "txid": "54893c251e7356739826e0ee00127daddc52bb1280b9a808a73678f0d3b0e79a" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-keyRecoveryService-keyternal.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-keyRecoveryService-keyternal.json new file mode 100644 index 0000000000..d404aecfda --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-keyRecoveryService-keyternal.json @@ -0,0 +1,34 @@ +{ + "inputs": [ + { + "id": "c3d8cd849b9f1939bea833ef14735be7c293bc7739241098ce386b968420aa4a:0", + "address": "2NFCjioQkatHzS9wxXiURfvsQrHfWqT3yZj", + "value": 100000000, + "chain": 11, + "index": 0, + "valueString": "100000000" + }, + { + "id": "7f0246d1beeb93f1990650508d4dbfb6a35ae4489abb5aa6724896efb4ad8c43:2", + "address": "2NGYMtcbtpniMSu8aNkwsEvPDzMJMY2Bhbg", + "value": 200000000, + "chain": 11, + "index": 2, + "valueString": "200000000" + }, + { + "id": "6cc0e85f057729f4485b2051c3f2ed6dbc8141a6283cd3697f52f90d482947e3:3", + "address": "2MyaBFSyvydN7Hjppt27vsDaEHHWbq2btjH", + "value": 300000000, + "chain": 11, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "010000000001034aaa2084966b38ce9810243977bc93c2e75b7314ef33a8be39199f9b84cdd8c300000000232200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800ffffffff438cadb4ef964872a65abb9a48e45aa3b6bf4d8d50500699f193ebbed146027f02000000232200206fbe320ee6cef6a57f89af5ffcc027a2413a768598a36617bee7310028bc3104ffffffffe34729480df9527f69d33c28a64181bc6dedf2c351205b48f42977055fe8c06c03000000232200208b9b1b4c660760e162f678ec6515fb574b48e93eb5ff4636dd85d1788a977d06ffffffff02d295bf230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87122d02000000000017a9148c306cfb0b0def57576ace97941c12c1a79834cf870500473044022008f803a8276a5bb4c5d818e910e185f5212833eb808cd39bc305c15ec6345d2a0220323f437f6a7118f8c6b4a6c6b373b3018d3c4ed25b9149d9b64a6d1c6c0418e60100006952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae05004830450221009508613d107aa55ac2837a0c5f1425d48b55d30ed6a7f90945e40ca7680f3da2022039b5231227a7237d680bb0adba3aa4bfe4f355e1128bc181dbbcf07db3ca513301000069522102787bacc6de8d57ecd2cdbde2e405f6328e52e3bdbefc5b3ef75a87f8f4c6c8fd2103f1f0e0df1b33d83a63a6ee6f70005f48e2c1aa221d1d9748c495a873e01ffcff21021b1ce0837f6c057a6622b90bcc30d27685df6e19717864e7ed4b289f790fb24d53ae050047304402206307490d80aa26421b98da586d95f1c81ec37ba5f0f7242a2775a601e249da3a02206f76f4b9d0eea59c81c98de0be090f8471fa5e58bbcd4e6cbcf2d6a0581828a601000069522102a816e254943391bb037211dfac8dda132bfcf2051c386631402834e2783466d82103cccd821265c6da3e77e4db08d4c6f39a259abbd143017fcf264b8a4114812a39210391ea88b71b8275193f39ffffef42da14c775d7a13434aa5427dc5bbb0ccc3f1853ae00000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599758290, + "recoveryAmountString": "599758290", + "txid": "709929d8ec6cba5831d4e1d494af9b0b575509182c502f325c192ff05b254f50" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-unsignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-unsignedRecovery.json new file mode 100644 index 0000000000..69165e684b --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2shP2wsh-unsignedRecovery.json @@ -0,0 +1,34 @@ +{ + "txHex": "01000000034aaa2084966b38ce9810243977bc93c2e75b7314ef33a8be39199f9b84cdd8c30000000000ffffffff438cadb4ef964872a65abb9a48e45aa3b6bf4d8d50500699f193ebbed146027f0200000000ffffffffe34729480df9527f69d33c28a64181bc6dedf2c351205b48f42977055fe8c06c0300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txInfo": { + "unspents": [ + { + "id": "c3d8cd849b9f1939bea833ef14735be7c293bc7739241098ce386b968420aa4a:0", + "address": "2NFCjioQkatHzS9wxXiURfvsQrHfWqT3yZj", + "value": 100000000, + "chain": 11, + "index": 0, + "valueString": "100000000" + }, + { + "id": "7f0246d1beeb93f1990650508d4dbfb6a35ae4489abb5aa6724896efb4ad8c43:2", + "address": "2NGYMtcbtpniMSu8aNkwsEvPDzMJMY2Bhbg", + "value": 200000000, + "chain": 11, + "index": 2, + "valueString": "200000000" + }, + { + "id": "6cc0e85f057729f4485b2051c3f2ed6dbc8141a6283cd3697f52f90d482947e3:3", + "address": "2MyaBFSyvydN7Hjppt27vsDaEHHWbq2btjH", + "value": 300000000, + "chain": 11, + "index": 3, + "valueString": "300000000" + } + ] + }, + "feeInfo": {}, + "coin": "tbtc4", + "txid": "f6e2efdf6719634a3ad9bce3a866f4540720c2601e89a87840ac2930f576d764" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-fullSignedRecovery-customUserKeyPath.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-fullSignedRecovery-customUserKeyPath.json new file mode 100644 index 0000000000..74d9b716bc --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-fullSignedRecovery-customUserKeyPath.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "bd94494ed5f5aeb83e54ad4cabf7fc5efefeb97b47f9aa8b79d87e104a2607ef:0", + "address": "tb1pr6whavsvtjs9wukwxt9l8t8z4cj7erycw3aqg4szqja9q5prr77qnsvw6h", + "value": 100000000, + "chain": 31, + "index": 0, + "valueString": "100000000" + }, + { + "id": "eafa0aefe4062420a2a50573ac6830483b30ebe79fce8da58cf071c172ffdbd4:2", + "address": "tb1p8vl64kccrqxl9smfd9x5dq6wyspqphqezdd4wzj0d8jgdnw4xjdskct3eu", + "value": 200000000, + "chain": 31, + "index": 2, + "valueString": "200000000" + }, + { + "id": "ecaf045a0b2f7e1b667d5fe02f676ae788c24b4cebc3ff18ead8877ced13c7f2:3", + "address": "tb1pd5enxvqupqlcz6tan6vkdgwrt2gxqdvx8xa75a86adtg6g60zhhqf8z6c7", + "value": 300000000, + "chain": 31, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "01000000000103ef07264a107ed8798baaf9477bb9fefe5efcf7ab4cad543eb8aef5d54e4994bd0000000000ffffffffd4dbff72c171f08ca58dce9fe7eb303b483068ac7305a5a2202406e4ef0afaea0200000000fffffffff2c713ed7c87d8ea18ffc3eb4c4bc288e76a672fe05f7d661b7e2f0b5a04afec0300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87044052dccbb98a041f88a7bb63d63b3468c862dd8247d7893837b9d343e4ba9be580b534b80d8ee30dbeb814f50179ae24494e9d0e87470313f2b42cadc6a06cd32d40b692e26f8fffb37af86284df6f3014ce0cd65dd25ee5026931394470be4ab60acd4e70dfe0d0c5d37d9f0db6bad07ad72f537a828947467a69d359a58a1fdff444204fa2a74016854082e063d260de5401518db0566d853b3cfddd03484dea94fc11ad20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfac61c0d73d45b503a6ccd7415d3aa9ce7ac2fed592b892861b5ccd38869d5b6a588cc85d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083a33b8977ba2126df5628953c9f7cf356897a4985c5d98f97c75a7dd8cfe662600440deb49e26d9aa7e0a04b8bcf224102454a72cdb39697d6efeef5fbabb99cf965ed4982ed3583db49b224dc62e8a628e062f4eec02ff6cc1162569646bb284d9e940b34d31572ec92b1c4b4e64e881a2301b3d468116dbbe53ddd83aa0a447254ce766f19af4051cf3c833166694863d1e40026ecbebfb1252ec637c273767f0c6b74420b3688855cfe427576031737562f66cadabf8e4b04e92ec6fa359edff6680b3f2ad20c74b86531a1df0f93372432e4c21524040a4037e3a828a1b7b99b391852345b8ac61c0e47e9d15b49db7b1487ff89d9c98507b957541d9b51bf2b3f2cd5b05b7722e98a3841eb28228fb5461898e0f0adf251d1c61c6645f686b803ecbcf1f4814f69515651bebba8bbfdf61248ec30583a2b4a9be8daa289fa828538bb7774d5186b4044008bd27d7225a8209060a10133aaf7de0cca256be396912627d9452a6043247a673b862cb06af3dacbc4e7bce1d74b9bc411c5f8922e13fc705e82cd2b18502a840cd72a1b7dbea3367ec18b26fb9f24a0c9ce76029c8cf38253ffe652fdabef40e7578a7ab54fbb98f75dd34c9c33ebc440baa1a99d3d52acaa9670e9f622e3ab344208e827169785e0328bc78cf96ca17b2446fabc6f280729012332ee159b0772c66ad2085ed62cc40a0d24b22a0b0eae7b340c5873a73198856c41f5a21c7a56e0104c3ac61c04d62e502f2b741eb9a14720b5708e52a8ef0d9a21387b994307c227bc7a31965f1f4d5dbf948920c0f00c7a2f5cc74095649931ed3865afbcc46116199850510b611ac3446ef33a196bb71ce7090d1846940c792b6b55e73677db9a37fd807a900000000", + "txid": "6df77f1daf826ad8d6727eed90433b402e0985792c7797ea4d6a81143e4bdb74" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-fullSignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-fullSignedRecovery.json new file mode 100644 index 0000000000..966782f0e9 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-fullSignedRecovery.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "7ca8ba68a39451bae5a9a72f9cfacbcb66962f9a30b9aa6b926199f55848fd3f:0", + "address": "tb1phk6lhy2tka2kxsx6hjd3c0z2h2e0rcrere9lr3kqsg0p6xxqe2pqa44eqg", + "value": 100000000, + "chain": 31, + "index": 0, + "valueString": "100000000" + }, + { + "id": "952d60c533de8911c2a3c8abf97c7609e501789360114ab2c30972432d661a2e:2", + "address": "tb1punyhjurx29e2577msed4mzlu5py2snp6s2zwf2uux2ek5xk2ps6s3vkh6a", + "value": 200000000, + "chain": 31, + "index": 2, + "valueString": "200000000" + }, + { + "id": "3560f8d5fb32b816e22ce229cf3c4cdd2e52ca4b765455e9cbab9ffe2b79f006:3", + "address": "tb1pgrsntg8rd9qdjf06demu0423ysxftqddx9twyqy38fsg9qyj82xsxvny7v", + "value": 300000000, + "chain": 31, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "010000000001033ffd4858f59961926baab9309a2f9666cbcbfa9c2fa7a9e5ba5194a368baa87c0000000000ffffffff2e1a662d437209c3b24a1160937801e509767cf9abc8a3c21189de33c5602d950200000000ffffffff06f0792bfe9fabcbe95554764bca522edd4c3ccf29e22ce216b832fbd5f860350300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff870440dab3ce7de5a7ebba1ad528e7c8d63bb4e76027ed8f3afba43f6cd18706c9c88bd0a0d206e72cccc49c9f20886a3af9a7e0e8ff2c3ab3cfcca44823a17b2b38a8409f252a964b38bb8912e7ed6042497d42b2d98560b0c02fc04c1922f8feaa9e562fd418851cc61b8079e727cdb65831c15f6f61644665ce91709145883166539f44201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfac61c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083d0cb8bfdb6c6e7213b38bca5978bd646de4a79848028a610ef92e4d7a302603d0440b18803d002bcdeaa23a052ec7277621d82674176955cf58cd1bc550248da08e279b3c2cd98c0a1191827664565be4ef67686e61a08ff00c58ee31564ef25aaca40f84725946c9bc57e1ce5b2ede0333d767b26c83dd7cf18f3905122420a076f42c2630c5e7d39db1b7640944588ad13dd929bd78a2c722e32e270d8a14733fec244202e67678ed40b48ac431f0b7be9a788cf4b53482d675aa7e4eeef6970b8bd7651ad20c74b86531a1df0f93372432e4c21524040a4037e3a828a1b7b99b391852345b8ac61c0d6ac24e8540ba9c29208766c42027c2cdef71c45e8ec41cd0fb66abb9ab260bca3841eb28228fb5461898e0f0adf251d1c61c6645f686b803ecbcf1f4814f695eb36bcc16894bb28839cab2e681a2dc88418268eb7f7b1a9b44cff569e1ef8580440ad360516c463d126466908ffe34441a21b2bf2427fdff5d3084c4d37f771a2c732124f8f4820848a32d89adcd6541b4ae5efee978aef74339860b14bf9a1c832405206f5fff75494b4df5685d71bd90c91eba9fa5900a560c7d4b64c5862d8e37d50dc1dde666aa6b5ed0028cae6a2c83d2d92610940dbd7cf100faa86d122ee0d4420145fc970734cac345d322ea533f7e82b57c9758e49e1426091e7d1bcbb86e0cfad2085ed62cc40a0d24b22a0b0eae7b340c5873a73198856c41f5a21c7a56e0104c3ac61c13d64a0b237496a7450abb3375815d47bf93907317fe23b2d5c48759cd35fc782f1f4d5dbf948920c0f00c7a2f5cc74095649931ed3865afbcc46116199850510e6e4a517245c10ab719832f5ede9671bcec0c03d80e3f1bbc1a861601465de7700000000", + "txid": "7e2eb66172a9206d5fab6bde3b645506c7619de018956b1f7501bd50923917cc" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-keyRecoveryService-dai.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-keyRecoveryService-dai.json new file mode 100644 index 0000000000..b28121d17a --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-keyRecoveryService-dai.json @@ -0,0 +1,8 @@ +{ + "transactionHex": "70736274ff0100a501000000033ffd4858f59961926baab9309a2f9666cbcbfa9c2fa7a9e5ba5194a368baa87c0000000000ffffffff2e1a662d437209c3b24a1160937801e509767cf9abc8a3c21189de33c5602d950200000000ffffffff06f0792bfe9fabcbe95554764bca522edd4c3ccf29e22ce216b832fbd5f860350300000000ffffffff01e4c2c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87000000004f010488b21e0000000000000000004b256d3cf3524c8d7086e295a1923d6fa2f99b686699ed50084bb114495c982403a86864862a9e315221809501f2a4200cd9e057a70f9164d485d4cfbeb8e47c74048374ad864f010488b21e000000000000000000914cc440157319de14126a1a2e87ea86f3b983f923fb17693a157b721220d74c02e81e105716179975cc47afd117cae272519aafdd6bfff688e4280d384e13184f04e15f6f214f010488b21e000000000000000000da28679577f7faf0ed86164da220aa4a29c7edfb0de8bdabd97f19fd15e74bed03db2b42af97f60db6ec5a1500e246ef2107660c4fc02699ed69b82c2f3e9324ae0403a823910001012b00e1f50500000000225120bdb5fb914bb7556340dabc9b1c3c4abab2f1e0791e4bf1c6c0821e1d18c0ca820103040000000041141ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612e325f5fbe6b49895c08cbf9e52d26d769779d386635c86cc26b0b4b1b91475e6c40a627ebf90cbfc6244bea1880059effae39ead9aa975b2a04a14538467dc206fe68c98863cfa31e695d8f8447d4ac2629a6980b74f61aeb4613d7b8687e0522b36215c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083d0cb8bfdb6c6e7213b38bca5978bd646de4a79848028a610ef92e4d7a302603d45201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfacc021161ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612e3501325f5fbe6b49895c08cbf9e52d26d769779d386635c86cc26b0b4b1b91475e6c03a8239100000000000000001f000000000000002116d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbf3501325f5fbe6b49895c08cbf9e52d26d769779d386635c86cc26b0b4b1b91475e6ce15f6f2100000000000000001f000000000000000001012b00c2eb0b00000000225120e4c97970665172aa7bdb865b5d8bfca048a84c3a8284e4ab9c32b36a1aca0c350103040000000041142e67678ed40b48ac431f0b7be9a788cf4b53482d675aa7e4eeef6970b8bd76513faf7daf92673d9d95496f14c10cb75430758aa69ba585cbbf8483280eea396940b291e5058577aed1b34d6d806d5b657928a691abad4fe89d197322c9bb7b66ed6513f29faf4c7e9af8ce8a7e7d81092ef2ccb3fe46311e9097d3eae812af05176215c0d6ac24e8540ba9c29208766c42027c2cdef71c45e8ec41cd0fb66abb9ab260bca3841eb28228fb5461898e0f0adf251d1c61c6645f686b803ecbcf1f4814f695eb36bcc16894bb28839cab2e681a2dc88418268eb7f7b1a9b44cff569e1ef85845202e67678ed40b48ac431f0b7be9a788cf4b53482d675aa7e4eeef6970b8bd7651ad20c74b86531a1df0f93372432e4c21524040a4037e3a828a1b7b99b391852345b8acc021162e67678ed40b48ac431f0b7be9a788cf4b53482d675aa7e4eeef6970b8bd765135013faf7daf92673d9d95496f14c10cb75430758aa69ba585cbbf8483280eea396903a8239100000000000000001f000000020000002116c74b86531a1df0f93372432e4c21524040a4037e3a828a1b7b99b391852345b835013faf7daf92673d9d95496f14c10cb75430758aa69ba585cbbf8483280eea3969e15f6f2100000000000000001f000000020000000001012b00a3e1110000000022512040e135a0e36940d925fa6e77c7d551240c9581ad3156e200913a608280923a8d010304000000004114145fc970734cac345d322ea533f7e82b57c9758e49e1426091e7d1bcbb86e0cf1d85570e9fcc236c931721342e3b6757f122d9e001e83c1706d59da175dd73264083c8f4674c3f940a7eaef84ebb6065ea3c3e7681f246ea8998c737144e4467dd3e78ef340ee73ee13532df2d2704375796dae61613d9341cd3328fcf1ba5295b6215c13d64a0b237496a7450abb3375815d47bf93907317fe23b2d5c48759cd35fc782f1f4d5dbf948920c0f00c7a2f5cc74095649931ed3865afbcc46116199850510e6e4a517245c10ab719832f5ede9671bcec0c03d80e3f1bbc1a861601465de774520145fc970734cac345d322ea533f7e82b57c9758e49e1426091e7d1bcbb86e0cfad2085ed62cc40a0d24b22a0b0eae7b340c5873a73198856c41f5a21c7a56e0104c3acc02116145fc970734cac345d322ea533f7e82b57c9758e49e1426091e7d1bcbb86e0cf35011d85570e9fcc236c931721342e3b6757f122d9e001e83c1706d59da175dd732603a8239100000000000000001f00000003000000211685ed62cc40a0d24b22a0b0eae7b340c5873a73198856c41f5a21c7a56e0104c335011d85570e9fcc236c931721342e3b6757f122d9e001e83c1706d59da175dd7326e15f6f2100000000000000001f000000030000000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599900900, + "recoveryAmountString": "599900900", + "txid": "22656c97134b567b952da548a5ea1b658e0f4c1715ff8171d1f256e3960152ac" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-unsignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-unsignedRecovery.json new file mode 100644 index 0000000000..220362d66c --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2tr-unsignedRecovery.json @@ -0,0 +1,34 @@ +{ + "txHex": "01000000033ffd4858f59961926baab9309a2f9666cbcbfa9c2fa7a9e5ba5194a368baa87c0000000000ffffffff2e1a662d437209c3b24a1160937801e509767cf9abc8a3c21189de33c5602d950200000000ffffffff06f0792bfe9fabcbe95554764bca522edd4c3ccf29e22ce216b832fbd5f860350300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txInfo": { + "unspents": [ + { + "id": "7ca8ba68a39451bae5a9a72f9cfacbcb66962f9a30b9aa6b926199f55848fd3f:0", + "address": "tb1phk6lhy2tka2kxsx6hjd3c0z2h2e0rcrere9lr3kqsg0p6xxqe2pqa44eqg", + "value": 100000000, + "chain": 31, + "index": 0, + "valueString": "100000000" + }, + { + "id": "952d60c533de8911c2a3c8abf97c7609e501789360114ab2c30972432d661a2e:2", + "address": "tb1punyhjurx29e2577msed4mzlu5py2snp6s2zwf2uux2ek5xk2ps6s3vkh6a", + "value": 200000000, + "chain": 31, + "index": 2, + "valueString": "200000000" + }, + { + "id": "3560f8d5fb32b816e22ce229cf3c4cdd2e52ca4b765455e9cbab9ffe2b79f006:3", + "address": "tb1pgrsntg8rd9qdjf06demu0423ysxftqddx9twyqy38fsg9qyj82xsxvny7v", + "value": 300000000, + "chain": 31, + "index": 3, + "valueString": "300000000" + } + ] + }, + "feeInfo": {}, + "coin": "tbtc4", + "txid": "7e2eb66172a9206d5fab6bde3b645506c7619de018956b1f7501bd50923917cc" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-fullSignedRecovery-customUserKeyPath.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-fullSignedRecovery-customUserKeyPath.json new file mode 100644 index 0000000000..312cecc356 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-fullSignedRecovery-customUserKeyPath.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "e5a626c354aeeb03cdff8e686228abedefa8b38669fce2a53c69857b3be50de1:0", + "address": "tb1pnchn7al5kjsdwjj6elzdcrx73gxeypv0c6dutqaznny7rkfj6pusnxup5q", + "value": 100000000, + "chain": 41, + "index": 0, + "valueString": "100000000" + }, + { + "id": "788e76b93f024c4cf633ea2395aaa1f6ecdb761716f3870edb91e7705e060ab1:2", + "address": "tb1pacvp0j2zdxvygk6kg95ku0gn6w42wr9l6pfc6vhuect4jz90t0wq3d925v", + "value": 200000000, + "chain": 41, + "index": 2, + "valueString": "200000000" + }, + { + "id": "48315cd4735d4528a3cb6d87444506f91000b6b078761cedbda604c93a0bb792:3", + "address": "tb1p3pvmz34le42zf8mk4hw84c42fazv9kmk94l7wtjydjp6wdhjcj4q6r2pzs", + "value": 300000000, + "chain": 41, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "01000000000103e10de53b7b85693ca5e2fc6986b3a8efedab2862688effcd03ebae54c326a6e50000000000ffffffffb10a065e70e791db0e87f3161776dbecf6a1aa9523ea33f64c4c023fb9768e780200000000ffffffff92b70b3ac904a6bded1c7678b0b60010f9064544876dcba328455d73d45c31480300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff870440e6792fe6231ee0eb3d633016b943cf323b2cb3de75887166e70ea606d1987995c6537ca41c7bcdd920699e77d5301f59c49a7a2d7849860442f29cf1cfa7aff5407667495bc90c5f58e77db0e28c94dc27a98315734e85f8079acfa649982ed5c71bb0d59839db314dadd76909eac777d62a36729acca15ea34261f5f6f1f37d0e4420fb35352c31bb6136fcc9f14b29775d06fdbe89f67339ffc8583d9cf0e4f4b95dad20c8c3073f14d56926710445b3bfa3cb3c0ea2c223d0b5e2bfbc06a0ca7f8503bcac41c1005c62da63b9d8d8bcf1207877cfd4182f3f7a040402ee1e1ecfb8ca6d73baa3fb116a4ad3a03e27bcf2ac8570a8c9b000d337087019aed731c95178481b4a7c0440017b02974d0559a9cd7c17eab259c3515865980d996c147e9b08936ee0ad822084cd2c311841c3ce7375d3c06d1b4d30f3878fe52a82594cdb7783c07136eecc40d7176e97f98d1dcdaf3a4b5f9341ccc664fedefa24e912c2ec88ef5daa0630639d8e7f6861c42701cae63d8a291f3d3fcc88943560d681dcd371fe521a8acd63442023e24dfc0a397fc61cb26ea857b9c844d54c00d406bec924ecf73675f713d2dcad20cdc13238cbc54d045ddf3d82e5eb9e34c8987ed636a939fc25721fd2f1321388ac41c1fe7ce647d153bd84f07b7e5211f84bb206fab6da765983177ea2e9ff398c917c96c2d14e98bcbcfa3e33accbf4efcbf2e46a5d8bc1fe8bf79a8ed7d4b20ce41e04401997d16396a0240c0a6afd8a7fa9b35ede4369da808a327aaf20c7f7f3528c33a3aa6f60876a97e1e8a4e50b6e86b661acf71902a8dd07ad8c4ac84013e5b32b40fe3461f35beace70657f8fad15019c63f372ca63c14886f0afbd04e99d53219c14224c9f36ba6bb82e7b27f7a7e64121bf7fa9d72501df099e81e777bc3cfc854420db7359656a56882cd0785d354076d104fb07fb1c56e23beaceafde7efd1f0bf5ad2023df6e8bc726a54706c9c56b0bfccd04e7598e56a6d56984ac93023419f49db5ac41c1964d9e42931aa6d0b2fa62a49dc05bbf426a37a70fe162f885a4d3ba9e3cbaae46bc77ba410e7146abe9d508b0ea489d8498206ff9fae9348c656a58b0a2308e00000000", + "txid": "5422f2cce42ade7f0a6c216850cfc1c18e8d7fdcc15158dcdf1f6c1268c14c48" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-fullSignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-fullSignedRecovery.json new file mode 100644 index 0000000000..4467b387c6 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-fullSignedRecovery.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "d674d0e6a19688b98626853ef1dc181f1db5a45eb1a02e4a459caaf00fb3a860:0", + "address": "tb1p8qdlmtsw6ehy9u4w8lpw4xw6shg7jknu7fhrlaclpdaqtfp0puesgpm4xs", + "value": 100000000, + "chain": 41, + "index": 0, + "valueString": "100000000" + }, + { + "id": "1cb91131c03fc39b025274d40a6617246e8c326f43cee77a1f614c3c81ee2315:2", + "address": "tb1phc2yazexcn6rylkhqsrlcl96t0kwk5qnuvdz77m56j9wpfpgz8hqk37lzx", + "value": 200000000, + "chain": 41, + "index": 2, + "valueString": "200000000" + }, + { + "id": "598de04498cf9dd911dafb02878c099baa4849f7b285e57d9e838c502547854e:3", + "address": "tb1pyk4ezmq0gyez0sxjd74ztwy54870cq9dh6drlzrmmsu6k7wtq3kq8ggwqh", + "value": 300000000, + "chain": 41, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "0100000000010360a8b30ff0aa9c454a2ea0b15ea4b51d1f18dcf13e852686b98896a1e6d074d60000000000ffffffff1523ee813c4c611f7ae7ce436f328c6e2417660ad47452029bc33fc03111b91c0200000000ffffffff4e854725508c839e7de585b2f74948aa9b098c8702fbda11d99dcf9844e08d590300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8704401d18752bdb055f3906704b825b3042961380881e795377ac254b0e71e7261b00ed86350f74576584ce543286e759064c8662482fbe5b3d75352048988274fbdd406ee6afffb567437d127b4d331519a9896d746434ab067553bedfa8fb0f9d1dd1744f372c3ba1a46b43e79a9211c02da92ddccf49e253f6ab38787aa5c130da52442099733a9b244ac527f0d79b340c0aa5aed43fcde952b51bf49d2da6dbd7e31b80ad20c8c3073f14d56926710445b3bfa3cb3c0ea2c223d0b5e2bfbc06a0ca7f8503bcac41c0e807c1c6edff45083a9d0d5f3771b7c02c3a015413f51f862efdf113f63d1d33fb116a4ad3a03e27bcf2ac8570a8c9b000d337087019aed731c95178481b4a7c0440716651336ee507726b0455e5b1c1a352fdf998abb37ba32ed4c7e998f27769d331679d988db040c40d0ad1f655e0fe2d289326c3e91d879ffa5d342cbca918a34050626e648407a6c8df3434fccff6024179e7cca4759a9f58308157de84acfae150abdabb64f99fc252196251e485650e39bb3cd9e11d997d0833caa6d4881e7e44204ea87845bafeb6f623523a5efba3d23ea2a05e79dacd3c7e3c1cd44f5e8ac842ad20cdc13238cbc54d045ddf3d82e5eb9e34c8987ed636a939fc25721fd2f1321388ac41c18068d228c90640ffad1897166bacdad48fab80aa74421c935f6d7291898f104496c2d14e98bcbcfa3e33accbf4efcbf2e46a5d8bc1fe8bf79a8ed7d4b20ce41e044044aa522c555ff76a711e3aa1eac75066dda636841301a90b87c678ef35171d2fb3f012fa1e1082a500d204d3edcfa2282848f66844433ef23dee889d6d4ca4d0400858808e853b21525c06492d36452d21bffa72d74f9d3ec81d8ab3db5dd50afb9caa467ed6a6a77b61062d3e43e2d03d623772b2b37e2ee6b0a78690c380749644205431da6074ad73f81cca3f94f6162efff682bd3d308433aabfea355ba72701b8ad2023df6e8bc726a54706c9c56b0bfccd04e7598e56a6d56984ac93023419f49db5ac41c003928cb5445eb076cfbbbf062f32fe35bfcfc4ec98ed9a833b7beae6e8108cf946bc77ba410e7146abe9d508b0ea489d8498206ff9fae9348c656a58b0a2308e00000000", + "txid": "c21af54a5e1057542e1d63f1bdb6bdc9f5864e03d9e9344ad4868def5676ec82" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-keyRecoveryService-dai.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-keyRecoveryService-dai.json new file mode 100644 index 0000000000..c7d9d4c881 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-keyRecoveryService-dai.json @@ -0,0 +1,8 @@ +{ + "transactionHex": "70736274ff0100a5010000000360a8b30ff0aa9c454a2ea0b15ea4b51d1f18dcf13e852686b98896a1e6d074d60000000000ffffffff1523ee813c4c611f7ae7ce436f328c6e2417660ad47452029bc33fc03111b91c0200000000ffffffff4e854725508c839e7de585b2f74948aa9b098c8702fbda11d99dcf9844e08d590300000000ffffffff01e4c2c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87000000004f010488b21e0000000000000000004b256d3cf3524c8d7086e295a1923d6fa2f99b686699ed50084bb114495c982403a86864862a9e315221809501f2a4200cd9e057a70f9164d485d4cfbeb8e47c74048374ad864f010488b21e000000000000000000914cc440157319de14126a1a2e87ea86f3b983f923fb17693a157b721220d74c02e81e105716179975cc47afd117cae272519aafdd6bfff688e4280d384e13184f04e15f6f214f010488b21e000000000000000000da28679577f7faf0ed86164da220aa4a29c7edfb0de8bdabd97f19fd15e74bed03db2b42af97f60db6ec5a1500e246ef2107660c4fc02699ed69b82c2f3e9324ae0403a823910001012b00e1f50500000000225120381bfdae0ed66e42f2ae3fc2ea99da85d1e95a7cf26e3ff71f0b7a05a42f0f3301030400000000411499733a9b244ac527f0d79b340c0aa5aed43fcde952b51bf49d2da6dbd7e31b80fa2f5b1ed749cb60910d218c15ca21def9de5e29f61b117840db5237c37653ff40a6d5b4b8d2393dda2ed0b4c6f5c59506952aa95b138d8efc42312a603bddbdfcf03892320ac2c7d191815ad819add14aa5336c06033730a76445979aa394603c4215c0e807c1c6edff45083a9d0d5f3771b7c02c3a015413f51f862efdf113f63d1d33fb116a4ad3a03e27bcf2ac8570a8c9b000d337087019aed731c95178481b4a7c452099733a9b244ac527f0d79b340c0aa5aed43fcde952b51bf49d2da6dbd7e31b80ad20c8c3073f14d56926710445b3bfa3cb3c0ea2c223d0b5e2bfbc06a0ca7f8503bcacc0211699733a9b244ac527f0d79b340c0aa5aed43fcde952b51bf49d2da6dbd7e31b803501fa2f5b1ed749cb60910d218c15ca21def9de5e29f61b117840db5237c37653ff03a82391000000000000000029000000000000002116c8c3073f14d56926710445b3bfa3cb3c0ea2c223d0b5e2bfbc06a0ca7f8503bc3501fa2f5b1ed749cb60910d218c15ca21def9de5e29f61b117840db5237c37653ffe15f6f21000000000000000029000000000000000001012b00c2eb0b00000000225120be144e8b26c4f4327ed70407fc7cba5beceb5013e31a2f7b74d48ae0a42811ee0103040000000041144ea87845bafeb6f623523a5efba3d23ea2a05e79dacd3c7e3c1cd44f5e8ac8429e64d800b25cc65ed7a44c4e8168c962692ce051da036106149ee5e240509dbe40307242bb4fc03cebe50e8f0296010a927bc96facabc27001d71cab71ee10db9862b79498b6e6eeef2b6eaa7919c6201c8131c883f677e259ceae607e0a0837ac4215c18068d228c90640ffad1897166bacdad48fab80aa74421c935f6d7291898f104496c2d14e98bcbcfa3e33accbf4efcbf2e46a5d8bc1fe8bf79a8ed7d4b20ce41e45204ea87845bafeb6f623523a5efba3d23ea2a05e79dacd3c7e3c1cd44f5e8ac842ad20cdc13238cbc54d045ddf3d82e5eb9e34c8987ed636a939fc25721fd2f1321388acc021164ea87845bafeb6f623523a5efba3d23ea2a05e79dacd3c7e3c1cd44f5e8ac84235019e64d800b25cc65ed7a44c4e8168c962692ce051da036106149ee5e240509dbe03a82391000000000000000029000000020000002116cdc13238cbc54d045ddf3d82e5eb9e34c8987ed636a939fc25721fd2f132138835019e64d800b25cc65ed7a44c4e8168c962692ce051da036106149ee5e240509dbee15f6f21000000000000000029000000020000000001012b00a3e1110000000022512025ab916c0f413227c0d26faa25b894a9fcfc00adbe9a3f887bdc39ab79cb046c0103040000000041145431da6074ad73f81cca3f94f6162efff682bd3d308433aabfea355ba72701b8bef937bd526108627a5b8f396bac4b521f5917b087209a6ac56107dabb92583240f101cb3cbc2ea2af47c17bf5ee598bb949799af630059c47f23a77458acac3eb65139e87ce7008e150eb0d13b02cec9ec5bf8e3f16abe7d25dc2be71b5f838194215c003928cb5445eb076cfbbbf062f32fe35bfcfc4ec98ed9a833b7beae6e8108cf946bc77ba410e7146abe9d508b0ea489d8498206ff9fae9348c656a58b0a2308e45205431da6074ad73f81cca3f94f6162efff682bd3d308433aabfea355ba72701b8ad2023df6e8bc726a54706c9c56b0bfccd04e7598e56a6d56984ac93023419f49db5acc0211623df6e8bc726a54706c9c56b0bfccd04e7598e56a6d56984ac93023419f49db53501bef937bd526108627a5b8f396bac4b521f5917b087209a6ac56107dabb925832e15f6f210000000000000000290000000300000021165431da6074ad73f81cca3f94f6162efff682bd3d308433aabfea355ba72701b83501bef937bd526108627a5b8f396bac4b521f5917b087209a6ac56107dabb92583203a82391000000000000000029000000030000000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599900900, + "recoveryAmountString": "599900900", + "txid": "793c6702f0d6e1681186a4d66ee447a36a4afdc2ec3e71abddfa2e4d47662d6b" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-unsignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-unsignedRecovery.json new file mode 100644 index 0000000000..9059a1b597 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2trMusig2-unsignedRecovery.json @@ -0,0 +1,34 @@ +{ + "txHex": "010000000360a8b30ff0aa9c454a2ea0b15ea4b51d1f18dcf13e852686b98896a1e6d074d60000000000ffffffff1523ee813c4c611f7ae7ce436f328c6e2417660ad47452029bc33fc03111b91c0200000000ffffffff4e854725508c839e7de585b2f74948aa9b098c8702fbda11d99dcf9844e08d590300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txInfo": { + "unspents": [ + { + "id": "d674d0e6a19688b98626853ef1dc181f1db5a45eb1a02e4a459caaf00fb3a860:0", + "address": "tb1p8qdlmtsw6ehy9u4w8lpw4xw6shg7jknu7fhrlaclpdaqtfp0puesgpm4xs", + "value": 100000000, + "chain": 41, + "index": 0, + "valueString": "100000000" + }, + { + "id": "1cb91131c03fc39b025274d40a6617246e8c326f43cee77a1f614c3c81ee2315:2", + "address": "tb1phc2yazexcn6rylkhqsrlcl96t0kwk5qnuvdz77m56j9wpfpgz8hqk37lzx", + "value": 200000000, + "chain": 41, + "index": 2, + "valueString": "200000000" + }, + { + "id": "598de04498cf9dd911dafb02878c099baa4849f7b285e57d9e838c502547854e:3", + "address": "tb1pyk4ezmq0gyez0sxjd74ztwy54870cq9dh6drlzrmmsu6k7wtq3kq8ggwqh", + "value": 300000000, + "chain": 41, + "index": 3, + "valueString": "300000000" + } + ] + }, + "feeInfo": {}, + "coin": "tbtc4", + "txid": "c21af54a5e1057542e1d63f1bdb6bdc9f5864e03d9e9344ad4868def5676ec82" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-fullSignedRecovery-customUserKeyPath.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-fullSignedRecovery-customUserKeyPath.json new file mode 100644 index 0000000000..f784150f68 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-fullSignedRecovery-customUserKeyPath.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "175dbc7fab42ec55fd2a8d7062f30d973315b9d4c175c65173117f438e79a50c:0", + "address": "tb1qdneyaj2s0wxu2egqac347kjsvxmcgyqpj7xkpshsa3tcghhs3ecqtqxmyt", + "value": 100000000, + "chain": 21, + "index": 0, + "valueString": "100000000" + }, + { + "id": "ece5336891c75f99c4b26be522c903483b6fe01d989a9a3e2179d418bc4fff33:2", + "address": "tb1q8lxf2fq0yhzd2ytndhcc4432yjugacfxgxrha69xsjhctuztlcasa9v29x", + "value": 200000000, + "chain": 21, + "index": 2, + "valueString": "200000000" + }, + { + "id": "fe88d5200cdf96648e5c5c886760deb41ddcd7e1475e9fe8fd7e7448b47d39b4:3", + "address": "tb1q55jrprtwpfvu3jaq729sq0rraynctezqtpdtgrc5e5v60ssptwaqmnvcmx", + "value": 300000000, + "chain": 21, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "010000000001030ca5798e437f117351c675c1d4b91533970df362708d2afd55ec42ab7fbc5d170000000000ffffffff33ff4fbc18d479213e9a9a981de06f3b4803c922e56bb2c4995fc7916833e5ec0200000000ffffffffb4397db448747efde89f5e47e1d7dc1db4de6067885c5c8e6496df0c20d588fe0300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff870400483045022100fab04bb98db89733b6f685333b9b3ef4bbef840d08dad44e4d57b0b4a96ba96702207c202dc5c8eb7eff9c36d17d87e03f1cdd5d4069000007a060f2e7ffaa23643501483045022100e57e55249c38e9545861bac9fd50ea9fb8242c0a200eb8427e58e35c892171890220719e39f9d3374dc8142c970c06bb5998a70121a7efa4460bc794b4f450d8a23d0169522102e7386fc3b8f8f334c51add4a7c325c804896d60fd3fa33f3206b6f0143081865210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae04004730440220040e4e229b845e795a0e6d0ef81d06fedf9e6d8ce03472f6c259f8d9dd4ada030220315c3b83c85aad471566c4d8aeca11a32d11bc8aa43f293fb20e65633e75376b01473044022047b6cc1dc6e2f90d44dde327c8db8961091f9bbb14c78b71cca6e3513e24bf20022016cdc94f0e75ffeb3d8c1446ecf71a32e0b9f7815ee88e53da26fc9049df0518016952210262e2d7db076a14af58f92fbc591d870606afc4362f8deead03425bf16de332fe2102003243d889cec7c4c55042d6c10091a536eef3894f573759c5d26a727e96f036210257f6aee3214f76ff02748de7d291866642a913b0d346ccc976d6a77d9aa00de253ae0400483045022100c7ed2926d59747e64853622796b16c0a7a2ffebfbb7830b725d7d71cf707ea8502203c83136368afb8e5ffbb0f85de1f0025f736e24b0303894e7903f1a34544421b014730440220058a7a96110d0135fefe0466b4fb03c23eeacd4a1abb1c77b19859c06e6dbff30220481e39b7413333eb8ab4c4a0b75a2de245b026b14ad093927f57b866d138d3860169522102b107ccb600ca89ca074c0b6c95e48bfff7f2dc9d33e4bdf9a5c929053f4a87c921032edf1b3c4b31a0757e1122d558b6dabebdc0b2a39f040dcd4f89ac3e4d5811a42102da0f05c67ffa785717242a75a2f8635fcc1d767b5d88dd772da0547d287021ff53ae00000000", + "txid": "2243a0dc3d63f94bca937404d1a2c49fc0703f6054122d4e518b0f36a05bdc67" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-fullSignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-fullSignedRecovery.json new file mode 100644 index 0000000000..75feb28e8d --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-fullSignedRecovery.json @@ -0,0 +1,30 @@ +{ + "inputs": [ + { + "id": "d3c756572affce5f37fc6c556f3c1113be063a7c61df6ff8b3008848ea9bfdb1:0", + "address": "tb1q5e7nvvypt2qpjxq74zwtry9klsqkcyvcee85anaa3pax7ae207gs37spuh", + "value": 100000000, + "chain": 21, + "index": 0, + "valueString": "100000000" + }, + { + "id": "9d21659b6e9ef5b353b7f41b590d10508b999b46392b60136e0614e3e1db8368:2", + "address": "tb1q3v9yjlrzkufgd99d07806262dhqgfjf2zjdx5sfrw8uslnjs2utsrt6dc5", + "value": 200000000, + "chain": 21, + "index": 2, + "valueString": "200000000" + }, + { + "id": "552e492060fd183e0d6fb8be789bcd51c92248c77fdc622e2a318d946361e195:3", + "address": "tb1qyerx34sx9a2a4zz7w320tuxz3hq84xn0hm6tzr6tek77tsknfg0sac2xhy", + "value": 300000000, + "chain": 21, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "01000000000103b1fd9bea488800b3f86fdf617c3a06be13113c6f556cfc375fceff2a5756c7d30000000000ffffffff6883dbe1e314066e13602b39469b998b50100d591bf4b753b3f59e6e9b65219d0200000000ffffffff95e16163948d312a2e62dc7fc74822c951cd9b78beb86f0d3e18fd6020492e550300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff870400483045022100957d87027590327a121c4df72ebc9f965c4f2ef5f3ef93a94fe2800eb151178102207272b6243d1b346fdfc473971b3654b1d7b404175abad7b9d7a7e13c2dfbc8b601483045022100c7eb476a4d88154a05506724757e7e311fd61d020899477fab17622edcfe5d0d02200ecad823cfb5662d04052d1a9e08a2dbfd35fb06b0468438ea2b7548be26f43c016952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae0400473044022076e2fa09def10747f9462d315de880f53bd9d96e7708936783264c0986b66a36022005157ebecdf90a49c97e1b2020880d0cfa70aa6dc26efc2c940a351ff2527c7d0148304502210098a7534e6bea4a3e11e68d2da14b601e07274150c4d977313f85c84e1cd653870220256187239b37a52c2b082a7b9b20c40d87d29b8500ba096af10762f7639b585301695221027db35d325fb6b20e7990d5e5ca33144c270a2b149b4b4158a6e16a090b276f8a2102003243d889cec7c4c55042d6c10091a536eef3894f573759c5d26a727e96f036210257f6aee3214f76ff02748de7d291866642a913b0d346ccc976d6a77d9aa00de253ae0400483045022100f01ca9bcb642ce768882c6024ebc02920449fab5249b2d65f585840e2b27e5eb022068ca7cf0d3ba6959f8edb483b97f16d8323ae00cbda822c4f1b26c2e4765bb3f014730440220342091e15dfa7164474b14b2413dcf1f243c944852f5e9fadd43952068ad6ba1022023f7d93132890f0b765e4a4ac257ab8599d9aa0fde8ab4b98718a334134ca3900169522102b587356915a019e64745d1e8b75a9109a762feeec08607e46ec83681a608a90521032edf1b3c4b31a0757e1122d558b6dabebdc0b2a39f040dcd4f89ac3e4d5811a42102da0f05c67ffa785717242a75a2f8635fcc1d767b5d88dd772da0547d287021ff53ae00000000", + "txid": "7959a63f331f9984fbdcf764b31435fb993116bbcddb68441af939402daff1d8" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-keyRecoveryService-dai.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-keyRecoveryService-dai.json new file mode 100644 index 0000000000..08c4e67b4a --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-keyRecoveryService-dai.json @@ -0,0 +1,8 @@ +{ + "transactionHex": "70736274ff0100a50100000003b1fd9bea488800b3f86fdf617c3a06be13113c6f556cfc375fceff2a5756c7d30000000000ffffffff6883dbe1e314066e13602b39469b998b50100d591bf4b753b3f59e6e9b65219d0200000000ffffffff95e16163948d312a2e62dc7fc74822c951cd9b78beb86f0d3e18fd6020492e550300000000ffffffff01e4c2c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87000000004f010488b21e0000000000000000004b256d3cf3524c8d7086e295a1923d6fa2f99b686699ed50084bb114495c982403a86864862a9e315221809501f2a4200cd9e057a70f9164d485d4cfbeb8e47c74048374ad864f010488b21e000000000000000000914cc440157319de14126a1a2e87ea86f3b983f923fb17693a157b721220d74c02e81e105716179975cc47afd117cae272519aafdd6bfff688e4280d384e13184f04e15f6f214f010488b21e000000000000000000da28679577f7faf0ed86164da220aa4a29c7edfb0de8bdabd97f19fd15e74bed03db2b42af97f60db6ec5a1500e246ef2107660c4fc02699ed69b82c2f3e9324ae0403a823910001012b00e1f50500000000220020a67d3630815a8019181ea89cb190b6fc016c1198ce4f4ecfbd887a6f772a7f9122020391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab483045022100e0738509171e10b8f5410e7c9ff524cfd3b6e80aed77c5c1021e6d3aa43db7690220235b979221d04c03d9af4ee11b7482f5b6c654f79b283d86c6968962d5f588d7010103040100000001056952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae22060285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c14e15f6f210000000000000000150000000000000022060391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab1403a8239100000000000000001500000000000000220603a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb8148374ad86000000000000000015000000000000000001012b00c2eb0b000000002200208b0a497c62b7128694ad7f8efd2b4a6dc084c92a149a6a412371f90fce5057172202027db35d325fb6b20e7990d5e5ca33144c270a2b149b4b4158a6e16a090b276f8a473044022064523245caef905574e009c4ae6bfdc374eddbb021037dbb839dbee026efd9760220754c8affb3247ca0d2db97b27ed1ce55797e64dcea50fecaeabdab820512515a01010304010000000105695221027db35d325fb6b20e7990d5e5ca33144c270a2b149b4b4158a6e16a090b276f8a2102003243d889cec7c4c55042d6c10091a536eef3894f573759c5d26a727e96f036210257f6aee3214f76ff02748de7d291866642a913b0d346ccc976d6a77d9aa00de253ae220602003243d889cec7c4c55042d6c10091a536eef3894f573759c5d26a727e96f03614e15f6f210000000000000000150000000200000022060257f6aee3214f76ff02748de7d291866642a913b0d346ccc976d6a77d9aa00de2148374ad86000000000000000015000000020000002206027db35d325fb6b20e7990d5e5ca33144c270a2b149b4b4158a6e16a090b276f8a1403a82391000000000000000015000000020000000001012b00a3e11100000000220020264668d6062f55da885e7454f5f0c28dc07a9a6fbef4b10f4bcdbde5c2d34a1f220202b587356915a019e64745d1e8b75a9109a762feeec08607e46ec83681a608a90547304402204488e6315f9599f6bfa3b5465b9306e42c6906548a1f346f5405b89f0f2eee6e02207635465fadc5f5c8722689c18a7feaaa58601ca6e4b55af7b1d492c48c3b0a9d0101030401000000010569522102b587356915a019e64745d1e8b75a9109a762feeec08607e46ec83681a608a90521032edf1b3c4b31a0757e1122d558b6dabebdc0b2a39f040dcd4f89ac3e4d5811a42102da0f05c67ffa785717242a75a2f8635fcc1d767b5d88dd772da0547d287021ff53ae220602b587356915a019e64745d1e8b75a9109a762feeec08607e46ec83681a608a9051403a8239100000000000000001500000003000000220602da0f05c67ffa785717242a75a2f8635fcc1d767b5d88dd772da0547d287021ff148374ad86000000000000000015000000030000002206032edf1b3c4b31a0757e1122d558b6dabebdc0b2a39f040dcd4f89ac3e4d5811a414e15f6f21000000000000000015000000030000000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599900900, + "recoveryAmountString": "599900900", + "txid": "074919108e267d48672ac585410f9fefaa547ef84f4eb1c8a6e1bc72e93df893" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-keyRecoveryService-keyternal.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-keyRecoveryService-keyternal.json new file mode 100644 index 0000000000..c6970d34a8 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-keyRecoveryService-keyternal.json @@ -0,0 +1,34 @@ +{ + "inputs": [ + { + "id": "d3c756572affce5f37fc6c556f3c1113be063a7c61df6ff8b3008848ea9bfdb1:0", + "address": "tb1q5e7nvvypt2qpjxq74zwtry9klsqkcyvcee85anaa3pax7ae207gs37spuh", + "value": 100000000, + "chain": 21, + "index": 0, + "valueString": "100000000" + }, + { + "id": "9d21659b6e9ef5b353b7f41b590d10508b999b46392b60136e0614e3e1db8368:2", + "address": "tb1q3v9yjlrzkufgd99d07806262dhqgfjf2zjdx5sfrw8uslnjs2utsrt6dc5", + "value": 200000000, + "chain": 21, + "index": 2, + "valueString": "200000000" + }, + { + "id": "552e492060fd183e0d6fb8be789bcd51c92248c77fdc622e2a318d946361e195:3", + "address": "tb1qyerx34sx9a2a4zz7w320tuxz3hq84xn0hm6tzr6tek77tsknfg0sac2xhy", + "value": 300000000, + "chain": 21, + "index": 3, + "valueString": "300000000" + } + ], + "transactionHex": "01000000000103b1fd9bea488800b3f86fdf617c3a06be13113c6f556cfc375fceff2a5756c7d30000000000ffffffff6883dbe1e314066e13602b39469b998b50100d591bf4b753b3f59e6e9b65219d0200000000ffffffff95e16163948d312a2e62dc7fc74822c951cd9b78beb86f0d3e18fd6020492e550300000000ffffffff02d295bf230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff87122d02000000000017a9148c306cfb0b0def57576ace97941c12c1a79834cf870500473044022064684a4f4dde1fd1cfced8658d8417b23193f5844a614805d1d8c53db6ea83ac02205d08d6e0a85fdb167a31e2f17e938130214bbc9361690dd1e37d2b9ef741f9ce0100006952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae05004830450221009a997961bd4bff14ff3a7c12ed2d0bd4133df2a81fd00bf6a2132a43ba1cfd2f022048db4dde9dab08b4fefc40794dd802919ff000097a74e6f4a001be47e2745916010000695221027db35d325fb6b20e7990d5e5ca33144c270a2b149b4b4158a6e16a090b276f8a2102003243d889cec7c4c55042d6c10091a536eef3894f573759c5d26a727e96f036210257f6aee3214f76ff02748de7d291866642a913b0d346ccc976d6a77d9aa00de253ae050047304402202fa7b5c19dcdedf9cb2b28a79b3b5568b811ab5dfa5d2d1285a257563d289b520220516da8e767ca58809db67d9635664190356d3fe85e0a54a942ebb317fb86008501000069522102b587356915a019e64745d1e8b75a9109a762feeec08607e46ec83681a608a90521032edf1b3c4b31a0757e1122d558b6dabebdc0b2a39f040dcd4f89ac3e4d5811a42102da0f05c67ffa785717242a75a2f8635fcc1d767b5d88dd772da0547d287021ff53ae00000000", + "coin": "tbtc4", + "backupKey": "xpub661MyMwAqRbcFzLXuganogQvd7MrefQQqCcJP2ZDumnCdQecf5cw1P1nD5qBz8SNS1yCLSC9VqpNUWnQU3V6qmnPt2r21oXhicQFzPA6Lby", + "recoveryAmount": 599758290, + "recoveryAmountString": "599758290", + "txid": "588799e9c78373ea7fde449cc01843e003fb687d867ce823e521139dc211d848" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-unsignedRecovery.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-unsignedRecovery.json new file mode 100644 index 0000000000..8a5b6b2032 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/recovery/backupKeyRecovery-p2wsh-unsignedRecovery.json @@ -0,0 +1,34 @@ +{ + "txHex": "0100000003b1fd9bea488800b3f86fdf617c3a06be13113c6f556cfc375fceff2a5756c7d30000000000ffffffff6883dbe1e314066e13602b39469b998b50100d591bf4b753b3f59e6e9b65219d0200000000ffffffff95e16163948d312a2e62dc7fc74822c951cd9b78beb86f0d3e18fd6020492e550300000000ffffffff01b0d3c1230000000017a91439c65a0d0072a140694d6b13ec5f5f2437de99ff8700000000", + "txInfo": { + "unspents": [ + { + "id": "d3c756572affce5f37fc6c556f3c1113be063a7c61df6ff8b3008848ea9bfdb1:0", + "address": "tb1q5e7nvvypt2qpjxq74zwtry9klsqkcyvcee85anaa3pax7ae207gs37spuh", + "value": 100000000, + "chain": 21, + "index": 0, + "valueString": "100000000" + }, + { + "id": "9d21659b6e9ef5b353b7f41b590d10508b999b46392b60136e0614e3e1db8368:2", + "address": "tb1q3v9yjlrzkufgd99d07806262dhqgfjf2zjdx5sfrw8uslnjs2utsrt6dc5", + "value": 200000000, + "chain": 21, + "index": 2, + "valueString": "200000000" + }, + { + "id": "552e492060fd183e0d6fb8be789bcd51c92248c77fdc622e2a318d946361e195:3", + "address": "tb1qyerx34sx9a2a4zz7w320tuxz3hq84xn0hm6tzr6tek77tsknfg0sac2xhy", + "value": 300000000, + "chain": 21, + "index": 3, + "valueString": "300000000" + } + ] + }, + "feeInfo": {}, + "coin": "tbtc4", + "txid": "7959a63f331f9984fbdcf764b31435fb993116bbcddb68441af939402daff1d8" +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2sh-p2sh.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2sh-p2sh.json new file mode 100644 index 0000000000..88f10d3786 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2sh-p2sh.json @@ -0,0 +1,122 @@ +{ + "prebuild": { + "id": "90f18ec25c6ad6c3dc05cabc567dc88e11d352b0cca89632a88796594d84183c", + "hex": "01000000022328ebd65ad3eacb893cdc4593d7ede6ede16c89f27d7456de7c041ae8e884180100000000ffffffff1b193d37e9983572da0db6b929e44f8ea7e9057c08ff46144362e778c6bec5bc0100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "1884e8e81a047cde56747df2896ce1ede6edd79345dc3c89cbead35ad6eb2823", + "index": 1, + "script": "", + "witness": [] + }, + { + "txid": "bcc5bec678e762431446ff087c05e9a78e4fe429b9b60dda723598e9373d191b", + "index": 1, + "script": "", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBackup": { + "id": "8f07f6ad84c667264b2287303ce3a6337fe3a64eae93e91fc1443bbb9df01851", + "hex": "01000000022328ebd65ad3eacb893cdc4593d7ede6ede16c89f27d7456de7c041ae8e8841801000000b600473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe20100004c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff1b193d37e9983572da0db6b929e44f8ea7e9057c08ff46144362e778c6bec5bc01000000b700483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be770100004c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53aeffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "1884e8e81a047cde56747df2896ce1ede6edd79345dc3c89cbead35ad6eb2823", + "index": 1, + "script": "00473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe20100004c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53ae", + "witness": [] + }, + { + "txid": "bcc5bec678e762431446ff087c05e9a78e4fe429b9b60dda723598e9373d191b", + "index": 1, + "script": "00483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be770100004c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53ae", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBitGo": { + "id": "8f07f6ad84c667264b2287303ce3a6337fe3a64eae93e91fc1443bbb9df01851", + "hex": "01000000022328ebd65ad3eacb893cdc4593d7ede6ede16c89f27d7456de7c041ae8e8841801000000b600473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe20100004c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff1b193d37e9983572da0db6b929e44f8ea7e9057c08ff46144362e778c6bec5bc01000000b700483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be770100004c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53aeffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "1884e8e81a047cde56747df2896ce1ede6edd79345dc3c89cbead35ad6eb2823", + "index": 1, + "script": "00473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe20100004c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53ae", + "witness": [] + }, + { + "txid": "bcc5bec678e762431446ff087c05e9a78e4fe429b9b60dda723598e9373d191b", + "index": 1, + "script": "00483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be770100004c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53ae", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBackup": { + "id": "08ffbdc5246fdcdfca22622b0889f8d81e87cc6b75f662ae0436afdf69c8e15c", + "hex": "01000000022328ebd65ad3eacb893cdc4593d7ede6ede16c89f27d7456de7c041ae8e8841801000000fdfd0000473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe201483045022100a70b67b1cd8dfd2a67b4113512afdc6d0b58dc0b352bf2a88b512c82714d0ec002207ad068540982b7b5761e82faaede1fe4faf17215f963cc85d2f396d2af9248d6014c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff1b193d37e9983572da0db6b929e44f8ea7e9057c08ff46144362e778c6bec5bc01000000fdfe0000483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be7701483045022100939fddf72fc8ab35b77733513e8d2d0a389d03321682317fc545f537abfc0aad0220027180bf0ba4e851fb342bed523a9058cb006151d96a1e71a43caac4fda12dfd014c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53aeffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "1884e8e81a047cde56747df2896ce1ede6edd79345dc3c89cbead35ad6eb2823", + "index": 1, + "script": "00473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe201483045022100a70b67b1cd8dfd2a67b4113512afdc6d0b58dc0b352bf2a88b512c82714d0ec002207ad068540982b7b5761e82faaede1fe4faf17215f963cc85d2f396d2af9248d6014c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53ae", + "witness": [] + }, + { + "txid": "bcc5bec678e762431446ff087c05e9a78e4fe429b9b60dda723598e9373d191b", + "index": 1, + "script": "00483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be7701483045022100939fddf72fc8ab35b77733513e8d2d0a389d03321682317fc545f537abfc0aad0220027180bf0ba4e851fb342bed523a9058cb006151d96a1e71a43caac4fda12dfd014c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53ae", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBitGo": { + "id": "011e913f9cd7a2c205255f2ef7cb0da7a0093d91f735e247377f436a442afa47", + "hex": "01000000022328ebd65ad3eacb893cdc4593d7ede6ede16c89f27d7456de7c041ae8e8841801000000fc00473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe201473044022016dad35efd19750bc2caafc4d2dab8abb922c64b4127dde26e4797082d4ec62c02205a2246c0bf855c37fda7d0734f85310c47dc6e30038c4d5d751671170eeccc11014c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53aeffffffff1b193d37e9983572da0db6b929e44f8ea7e9057c08ff46144362e778c6bec5bc01000000fdfe0000483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be7701483045022100bf6bafba802a74f8258690d82b69657823b449411f1defb301a2c770b1495825022060de76c3433b76b5aed50e42c23b9974f8c09f78c3b99ebea6c8283c018679f7014c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53aeffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "1884e8e81a047cde56747df2896ce1ede6edd79345dc3c89cbead35ad6eb2823", + "index": 1, + "script": "00473044022077cca6fa0f9120cf625e99c52762d03f76931ebae7020ee77341fd80f2b5218202202d956b341e78ccff40e98bcf142a0ee7dd91f17d0bc4f309fb30feec4c100fe201473044022016dad35efd19750bc2caafc4d2dab8abb922c64b4127dde26e4797082d4ec62c02205a2246c0bf855c37fda7d0734f85310c47dc6e30038c4d5d751671170eeccc11014c69522102d06c08ccf0fddefff881e869b951d4b92e936118b3360182c5b8c55f4c40bc6121030795af84ecc10252d8a894f54845beeb5624a1c24c3747cc654bd430539dee3521029b30ebe8eb23f8cec82f25a80e3b423979ec3ba1fe07d9d4ed9f6361258bc31d53ae", + "witness": [] + }, + { + "txid": "bcc5bec678e762431446ff087c05e9a78e4fe429b9b60dda723598e9373d191b", + "index": 1, + "script": "00483045022100c45f72fa37bbb51825362661c659fd28c342ce9d3f1be7479f18ae67b16454aa022010417bb9796f381b54114b707ffa0d6e28e3de79965aa293d1e9697ad7f7be7701483045022100bf6bafba802a74f8258690d82b69657823b449411f1defb301a2c770b1495825022060de76c3433b76b5aed50e42c23b9974f8c09f78c3b99ebea6c8283c018679f7014c695221022a388ece509cad31a5bed9ff6142991fadc8529a57e388cd83b92421c3f8072f2103b1d138f39f76ee6b3132a9fb9d1cd1c78590effaf37eb43f0020ea614c7d733f21032a0963ad6630acd7222202d52862003403cb34727ead9fcc4b0732307a52ba6b53ae", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + } +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2shP2wsh-p2shP2wsh.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2shP2wsh-p2shP2wsh.json new file mode 100644 index 0000000000..f81cb56632 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2shP2wsh-p2shP2wsh.json @@ -0,0 +1,166 @@ +{ + "prebuild": { + "id": "43e3699e61b7e71f4f61fc00aec5ba2fe1acc02e7ff09af5efebdc6b4747b623", + "hex": "01000000021806382e478ca74217178378b99688dc6cf62013f9a3837dfe3b13a651cbc6370100000000ffffffff2ee15092cb19a8c933e050e29ccbeab4492e7a26ba1d1acf9f2b2223d61d39d40100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "37c6cb51a6133bfe7d83a3f91320f66cdc8896b97883171742a78c472e380618", + "index": 1, + "script": "", + "witness": [] + }, + { + "txid": "d4391dd623222b9fcf1a1dba267a2e49b4eacb9ce250e033c9a819cb9250e12e", + "index": 1, + "script": "", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBackup": { + "id": "0bd6f0441f32312fc3c61a7d97cf619e1b1ce6980b3622494c4c2cdeecefe8e5", + "hex": "010000000001021806382e478ca74217178378b99688dc6cf62013f9a3837dfe3b13a651cbc63701000000232200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800ffffffff2ee15092cb19a8c933e050e29ccbeab4492e7a26ba1d1acf9f2b2223d61d39d40100000023220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870500483045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e0100006952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae0500483045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e8901000069522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae00000000", + "ins": [ + { + "txid": "37c6cb51a6133bfe7d83a3f91320f66cdc8896b97883171742a78c472e380618", + "index": 1, + "script": "2200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800", + "witness": [ + "", + "3045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e01", + "", + "", + "52210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae" + ] + }, + { + "txid": "d4391dd623222b9fcf1a1dba267a2e49b4eacb9ce250e033c9a819cb9250e12e", + "index": 1, + "script": "220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610", + "witness": [ + "", + "3045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e8901", + "", + "", + "522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBitGo": { + "id": "0bd6f0441f32312fc3c61a7d97cf619e1b1ce6980b3622494c4c2cdeecefe8e5", + "hex": "010000000001021806382e478ca74217178378b99688dc6cf62013f9a3837dfe3b13a651cbc63701000000232200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800ffffffff2ee15092cb19a8c933e050e29ccbeab4492e7a26ba1d1acf9f2b2223d61d39d40100000023220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870500483045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e0100006952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae0500483045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e8901000069522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae00000000", + "ins": [ + { + "txid": "37c6cb51a6133bfe7d83a3f91320f66cdc8896b97883171742a78c472e380618", + "index": 1, + "script": "2200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800", + "witness": [ + "", + "3045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e01", + "", + "", + "52210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae" + ] + }, + { + "txid": "d4391dd623222b9fcf1a1dba267a2e49b4eacb9ce250e033c9a819cb9250e12e", + "index": 1, + "script": "220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610", + "witness": [ + "", + "3045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e8901", + "", + "", + "522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBackup": { + "id": "0bd6f0441f32312fc3c61a7d97cf619e1b1ce6980b3622494c4c2cdeecefe8e5", + "hex": "010000000001021806382e478ca74217178378b99688dc6cf62013f9a3837dfe3b13a651cbc63701000000232200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800ffffffff2ee15092cb19a8c933e050e29ccbeab4492e7a26ba1d1acf9f2b2223d61d39d40100000023220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870400483045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e014730440220344fd043a5ab4a3e4cbfe7363af0c8ae388fbf7315b480d481cbd67efe1442d5022074a42655627e9017e6798ff77777d63495172bfbdb4326a7d184d8b12600c2f3016952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae0400483045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e890147304402206b229dd87b8dc4dbfe48a679a7f30f40a15ac68340e14f1d17b44a39213afbb002206e0e1c787235f85f47ffdda3367cbf0cac89fe1bbe349eb46ab4bba8631e58b40169522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae00000000", + "ins": [ + { + "txid": "37c6cb51a6133bfe7d83a3f91320f66cdc8896b97883171742a78c472e380618", + "index": 1, + "script": "2200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800", + "witness": [ + "", + "3045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e01", + "30440220344fd043a5ab4a3e4cbfe7363af0c8ae388fbf7315b480d481cbd67efe1442d5022074a42655627e9017e6798ff77777d63495172bfbdb4326a7d184d8b12600c2f301", + "52210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae" + ] + }, + { + "txid": "d4391dd623222b9fcf1a1dba267a2e49b4eacb9ce250e033c9a819cb9250e12e", + "index": 1, + "script": "220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610", + "witness": [ + "", + "3045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e8901", + "304402206b229dd87b8dc4dbfe48a679a7f30f40a15ac68340e14f1d17b44a39213afbb002206e0e1c787235f85f47ffdda3367cbf0cac89fe1bbe349eb46ab4bba8631e58b401", + "522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBitGo": { + "id": "0bd6f0441f32312fc3c61a7d97cf619e1b1ce6980b3622494c4c2cdeecefe8e5", + "hex": "010000000001021806382e478ca74217178378b99688dc6cf62013f9a3837dfe3b13a651cbc63701000000232200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800ffffffff2ee15092cb19a8c933e050e29ccbeab4492e7a26ba1d1acf9f2b2223d61d39d40100000023220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870400483045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e01483045022100e68695323497e7b1a8c132005bd53fb2918bc737e0e5fe3ba02a5f824ad8037a022015d0f431ce5e34ad86a4a40020482f6d11a50964877136cc87a8a18185318db9016952210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae0400483045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e890147304402204c3118319e0c72b22f6a27a44e4aec94ce92f2dfb1668a7da8416f10167ba3c40220057afbdf22e8e6d90a7b68548dc535401ed429189b9d81b3cba816b39ac29a870169522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae00000000", + "ins": [ + { + "txid": "37c6cb51a6133bfe7d83a3f91320f66cdc8896b97883171742a78c472e380618", + "index": 1, + "script": "2200202ce48eb68ff4a96f2742cfbdd90210ae30bc7cdbafd63fbbe368802e3c0ae800", + "witness": [ + "", + "3045022100c4d0f6ea532cf2b8c7bf7d582bcb83323837e28ca6a3193913f3320e97f2f80d0220798f561949e4b7c0a79d76c24d22d680828a608f83d7c032f88b4ec76e50048e01", + "3045022100e68695323497e7b1a8c132005bd53fb2918bc737e0e5fe3ba02a5f824ad8037a022015d0f431ce5e34ad86a4a40020482f6d11a50964877136cc87a8a18185318db901", + "52210386b73c1c9e0d5c3370496426cdb6593bd69bb93743e135860aa5797cd04353c521022e79cdb1ee0b8cad6c9667fedafa92f8472f731f627dc8e0018571e4de9dfda42102f6d5e998e5b41e7e783c7c5c8a633cf333b86200aab31676ab07ed336e22700353ae" + ] + }, + { + "txid": "d4391dd623222b9fcf1a1dba267a2e49b4eacb9ce250e033c9a819cb9250e12e", + "index": 1, + "script": "220020bfc4956a4b0f95a6722cf9c2073c8f86a2f5b86a8c14c68d7aab60fa4d8f0610", + "witness": [ + "", + "3045022100d251ccb934a90547d33fe9373b20a186e06748a9bcd2cfbccbde3500a734042402205b87b8bfdcf23f8c2531052835a1303b8449a1a7eea19c5a39ce26cb19d79e8901", + "304402204c3118319e0c72b22f6a27a44e4aec94ce92f2dfb1668a7da8416f10167ba3c40220057afbdf22e8e6d90a7b68548dc535401ed429189b9d81b3cba816b39ac29a8701", + "522102265114bdc9f7954a18fdf695b8ef3f806fba3104b7750a339c94b4c24485a9d72102500d273c1dca588566b2910bbf907f0a4f139f9d21a1af22e884d2d529065fdf2102e330cbfcf82a754afcf38ee382751e0361769f9cbbd9997395da84b6842e7d0653ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + } +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2tr-p2tr.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2tr-p2tr.json new file mode 100644 index 0000000000..bb2760a14e --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2tr-p2tr.json @@ -0,0 +1,162 @@ +{ + "prebuild": { + "id": "f55a069c3b57192ce7603f577c062235f6ee3191ffd7e02dc98587d4b3fe483d", + "hex": "01000000022cab6e75380e46c4fa5bf2454935d42b638f54a04b4cc3c99a6f36d5e839cd190100000000ffffffff7a626b57f7cbf3ddaf0cfb658231df5f5576b3cab6773570944d39a640d076910100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "19cd39e8d5366f9ac9c34c4ba0548f632bd4354945f25bfac4460e38756eab2c", + "index": 1, + "script": "", + "witness": [] + }, + { + "txid": "9176d040a6394d94703577b6cab376555fdf318265fb0cafddf3cbf7576b627a", + "index": 1, + "script": "", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBackup": { + "id": "f55a069c3b57192ce7603f577c062235f6ee3191ffd7e02dc98587d4b3fe483d", + "hex": "010000000001022cab6e75380e46c4fa5bf2454935d42b638f54a04b4cc3c99a6f36d5e839cd190100000000ffffffff7a626b57f7cbf3ddaf0cfb658231df5f5576b3cab6773570944d39a640d076910100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68704004088f5973e454d7c41690acdc5bc6056418b97644e529196b85caf60a8e3f6a66e55bc27b11b7ade3b130de10274724cf78bff6ef85e05306674eb5c3bac5984f744201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfac61c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083d0cb8bfdb6c6e7213b38bca5978bd646de4a79848028a610ef92e4d7a302603d040040883a6115eb418f70517bee6cece211abe702b1b82ee3c22478d65529709d6114a7127c13271cd8b7135439737a408c2c99839e6e9f07149ee88277080b26000b4420be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad201fd7e44980cbfd63b30d1ce141333242cf4f0080447e4db628f38e4bc5c09106ac61c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63471f6a8139ffdd5120ed77cd33a1a3d478c294f7114c8c9343217f58f01cabb15532b0389bb3246784a2631d3904f2bddf500dd2d40b98cb2c65e70ecf260a9dcf00000000", + "ins": [ + { + "txid": "19cd39e8d5366f9ac9c34c4ba0548f632bd4354945f25bfac4460e38756eab2c", + "index": 1, + "script": "", + "witness": [ + "", + "88f5973e454d7c41690acdc5bc6056418b97644e529196b85caf60a8e3f6a66e55bc27b11b7ade3b130de10274724cf78bff6ef85e05306674eb5c3bac5984f7", + "201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfac", + "c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083d0cb8bfdb6c6e7213b38bca5978bd646de4a79848028a610ef92e4d7a302603d" + ] + }, + { + "txid": "9176d040a6394d94703577b6cab376555fdf318265fb0cafddf3cbf7576b627a", + "index": 1, + "script": "", + "witness": [ + "", + "883a6115eb418f70517bee6cece211abe702b1b82ee3c22478d65529709d6114a7127c13271cd8b7135439737a408c2c99839e6e9f07149ee88277080b26000b", + "20be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad201fd7e44980cbfd63b30d1ce141333242cf4f0080447e4db628f38e4bc5c09106ac", + "c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63471f6a8139ffdd5120ed77cd33a1a3d478c294f7114c8c9343217f58f01cabb15532b0389bb3246784a2631d3904f2bddf500dd2d40b98cb2c65e70ecf260a9dcf" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBitGo": { + "id": "f55a069c3b57192ce7603f577c062235f6ee3191ffd7e02dc98587d4b3fe483d", + "hex": "010000000001022cab6e75380e46c4fa5bf2454935d42b638f54a04b4cc3c99a6f36d5e839cd190100000000ffffffff7a626b57f7cbf3ddaf0cfb658231df5f5576b3cab6773570944d39a640d076910100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b687040040d972b0fadc07cdab87ae37fc5e480c1e39946f4f0a289348ce632bd0ddc8e67ece3f9903ad813eda362301c6b86fcce36638a909437f232b4d7d310f1e84b5a144201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead205850b8e17f15a3e6a5fc8dbb3ce83ac4dfe9b360847a6d57519412763ebd8bd9ac41c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495ad3df4f3ba0799b3f112c233c3ac996bc5bf456ed90e3c957b7553b5ba66b4f0400409726b8200001c68fe1f907b5fc984a8c76dfaa06212ed3bbe4ca8184289e28edce7ce011a75296790fdd2f53b2362f79a04fb3142ff0558304b96b21b0be86dc4420be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad206afab067efbf99dafb32c11d364874e8f9ba7fe86ea446f96201311b795d8903ac41c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63479985ee36b4eefa509405f815e0092068208a7134b7f4cd25d980d833bb6c517900000000", + "ins": [ + { + "txid": "19cd39e8d5366f9ac9c34c4ba0548f632bd4354945f25bfac4460e38756eab2c", + "index": 1, + "script": "", + "witness": [ + "", + "d972b0fadc07cdab87ae37fc5e480c1e39946f4f0a289348ce632bd0ddc8e67ece3f9903ad813eda362301c6b86fcce36638a909437f232b4d7d310f1e84b5a1", + "201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead205850b8e17f15a3e6a5fc8dbb3ce83ac4dfe9b360847a6d57519412763ebd8bd9ac", + "c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495ad3df4f3ba0799b3f112c233c3ac996bc5bf456ed90e3c957b7553b5ba66b4f" + ] + }, + { + "txid": "9176d040a6394d94703577b6cab376555fdf318265fb0cafddf3cbf7576b627a", + "index": 1, + "script": "", + "witness": [ + "", + "9726b8200001c68fe1f907b5fc984a8c76dfaa06212ed3bbe4ca8184289e28edce7ce011a75296790fdd2f53b2362f79a04fb3142ff0558304b96b21b0be86dc", + "20be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad206afab067efbf99dafb32c11d364874e8f9ba7fe86ea446f96201311b795d8903ac", + "c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63479985ee36b4eefa509405f815e0092068208a7134b7f4cd25d980d833bb6c5179" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBackup": { + "id": "f55a069c3b57192ce7603f577c062235f6ee3191ffd7e02dc98587d4b3fe483d", + "hex": "010000000001022cab6e75380e46c4fa5bf2454935d42b638f54a04b4cc3c99a6f36d5e839cd190100000000ffffffff7a626b57f7cbf3ddaf0cfb658231df5f5576b3cab6773570944d39a640d076910100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870440593bac7af19ca8d4efa7459a30f6678c6db2aa2335e12a8664e4a5fe756b40761724402211db3b314651e622c90c7f30a21746689177a6b15a1fdbd716f33e514088f5973e454d7c41690acdc5bc6056418b97644e529196b85caf60a8e3f6a66e55bc27b11b7ade3b130de10274724cf78bff6ef85e05306674eb5c3bac5984f744201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfac61c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083d0cb8bfdb6c6e7213b38bca5978bd646de4a79848028a610ef92e4d7a302603d0440b326ec9e21bd267b476b63d2ffc369cbd5320604b5126b7025a3672e2d782401dbd7b6274419931824da47db1b591905e080495ef63f37fb9217e8aabf9ea86140883a6115eb418f70517bee6cece211abe702b1b82ee3c22478d65529709d6114a7127c13271cd8b7135439737a408c2c99839e6e9f07149ee88277080b26000b4420be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad201fd7e44980cbfd63b30d1ce141333242cf4f0080447e4db628f38e4bc5c09106ac61c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63471f6a8139ffdd5120ed77cd33a1a3d478c294f7114c8c9343217f58f01cabb15532b0389bb3246784a2631d3904f2bddf500dd2d40b98cb2c65e70ecf260a9dcf00000000", + "ins": [ + { + "txid": "19cd39e8d5366f9ac9c34c4ba0548f632bd4354945f25bfac4460e38756eab2c", + "index": 1, + "script": "", + "witness": [ + "593bac7af19ca8d4efa7459a30f6678c6db2aa2335e12a8664e4a5fe756b40761724402211db3b314651e622c90c7f30a21746689177a6b15a1fdbd716f33e51", + "88f5973e454d7c41690acdc5bc6056418b97644e529196b85caf60a8e3f6a66e55bc27b11b7ade3b130de10274724cf78bff6ef85e05306674eb5c3bac5984f7", + "201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead20d4c149c56e614423aa7c55c91d71b9b30dd8e8af29b9e04fc003dcc8ed3c3bbfac", + "c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495d503a0d622e4c5a538fc4061d41a4d76943880028022adf565a2b5e7df0d083d0cb8bfdb6c6e7213b38bca5978bd646de4a79848028a610ef92e4d7a302603d" + ] + }, + { + "txid": "9176d040a6394d94703577b6cab376555fdf318265fb0cafddf3cbf7576b627a", + "index": 1, + "script": "", + "witness": [ + "b326ec9e21bd267b476b63d2ffc369cbd5320604b5126b7025a3672e2d782401dbd7b6274419931824da47db1b591905e080495ef63f37fb9217e8aabf9ea861", + "883a6115eb418f70517bee6cece211abe702b1b82ee3c22478d65529709d6114a7127c13271cd8b7135439737a408c2c99839e6e9f07149ee88277080b26000b", + "20be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad201fd7e44980cbfd63b30d1ce141333242cf4f0080447e4db628f38e4bc5c09106ac", + "c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63471f6a8139ffdd5120ed77cd33a1a3d478c294f7114c8c9343217f58f01cabb15532b0389bb3246784a2631d3904f2bddf500dd2d40b98cb2c65e70ecf260a9dcf" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBitGo": { + "id": "f55a069c3b57192ce7603f577c062235f6ee3191ffd7e02dc98587d4b3fe483d", + "hex": "010000000001022cab6e75380e46c4fa5bf2454935d42b638f54a04b4cc3c99a6f36d5e839cd190100000000ffffffff7a626b57f7cbf3ddaf0cfb658231df5f5576b3cab6773570944d39a640d076910100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870440110816e2af866ac565c197c0cb537918c2862e7b367b15c61a571382f59a07286ec77f633f4c7fbd52fe6debd95b694e75e7a8935c2cdad0da960d2bb8f8324440d972b0fadc07cdab87ae37fc5e480c1e39946f4f0a289348ce632bd0ddc8e67ece3f9903ad813eda362301c6b86fcce36638a909437f232b4d7d310f1e84b5a144201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead205850b8e17f15a3e6a5fc8dbb3ce83ac4dfe9b360847a6d57519412763ebd8bd9ac41c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495ad3df4f3ba0799b3f112c233c3ac996bc5bf456ed90e3c957b7553b5ba66b4f044060f281fb0c8fd0f55e6b6ad7d9abe248cc6242fa1f49a371f8c86b8c15128ee605d16608dd56cf9fd24a0fbff371f66153a60aaef2fc3b3764e1a407029277c1409726b8200001c68fe1f907b5fc984a8c76dfaa06212ed3bbe4ca8184289e28edce7ce011a75296790fdd2f53b2362f79a04fb3142ff0558304b96b21b0be86dc4420be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad206afab067efbf99dafb32c11d364874e8f9ba7fe86ea446f96201311b795d8903ac41c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63479985ee36b4eefa509405f815e0092068208a7134b7f4cd25d980d833bb6c517900000000", + "ins": [ + { + "txid": "19cd39e8d5366f9ac9c34c4ba0548f632bd4354945f25bfac4460e38756eab2c", + "index": 1, + "script": "", + "witness": [ + "110816e2af866ac565c197c0cb537918c2862e7b367b15c61a571382f59a07286ec77f633f4c7fbd52fe6debd95b694e75e7a8935c2cdad0da960d2bb8f83244", + "d972b0fadc07cdab87ae37fc5e480c1e39946f4f0a289348ce632bd0ddc8e67ece3f9903ad813eda362301c6b86fcce36638a909437f232b4d7d310f1e84b5a1", + "201ce1b0b4d5d856368637b75808b138f042b335d23bb46d297f19b09000a8612ead205850b8e17f15a3e6a5fc8dbb3ce83ac4dfe9b360847a6d57519412763ebd8bd9ac", + "c0312363917d7b7b60c312a0a2fa761f885a76746769436ccd1ff042c9e9dc81495ad3df4f3ba0799b3f112c233c3ac996bc5bf456ed90e3c957b7553b5ba66b4f" + ] + }, + { + "txid": "9176d040a6394d94703577b6cab376555fdf318265fb0cafddf3cbf7576b627a", + "index": 1, + "script": "", + "witness": [ + "60f281fb0c8fd0f55e6b6ad7d9abe248cc6242fa1f49a371f8c86b8c15128ee605d16608dd56cf9fd24a0fbff371f66153a60aaef2fc3b3764e1a407029277c1", + "9726b8200001c68fe1f907b5fc984a8c76dfaa06212ed3bbe4ca8184289e28edce7ce011a75296790fdd2f53b2362f79a04fb3142ff0558304b96b21b0be86dc", + "20be38da53fc0c51074bc239855667a8a457000ee2173ef2041927d0eeb016787aad206afab067efbf99dafb32c11d364874e8f9ba7fe86ea446f96201311b795d8903ac", + "c1d8415bc416f85fde3688bea33bfa82a24b8342ff1c837818093a31df478d63479985ee36b4eefa509405f815e0092068208a7134b7f4cd25d980d833bb6c5179" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + } +} \ No newline at end of file diff --git a/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2wsh-p2wsh.json b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2wsh-p2wsh.json new file mode 100644 index 0000000000..6b20cc8f77 --- /dev/null +++ b/modules/bitgo/test/v2/unit/coins/utxo/fixtures/tbtc4/transactions-p2wsh-p2wsh.json @@ -0,0 +1,166 @@ +{ + "prebuild": { + "id": "ae17224baeba7b4d6208802ccc361402717780cb83682bba901d8011443db0d9", + "hex": "0100000002cb20279e54ad6f45ffcc493f1951221943ec2172371bcf8f4c4067e4215acd2a0100000000ffffffff2c9f1ed726c60b54195d676a3da80e4a33a4e2691ec84cf0aedc9bea748397f90100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b68700000000", + "ins": [ + { + "txid": "2acd5a21e467404c8fcf1b377221ec43192251193f49ccff456fad549e2720cb", + "index": 1, + "script": "", + "witness": [] + }, + { + "txid": "f9978374ea9bdcaef04cc81e69e2a4334a0ea83d6a675d19540bc626d71e9f2c", + "index": 1, + "script": "", + "witness": [] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBackup": { + "id": "ae17224baeba7b4d6208802ccc361402717780cb83682bba901d8011443db0d9", + "hex": "01000000000102cb20279e54ad6f45ffcc493f1951221943ec2172371bcf8f4c4067e4215acd2a0100000000ffffffff2c9f1ed726c60b54195d676a3da80e4a33a4e2691ec84cf0aedc9bea748397f90100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870500483045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a880100006952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae0500483045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01000069522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae00000000", + "ins": [ + { + "txid": "2acd5a21e467404c8fcf1b377221ec43192251193f49ccff456fad549e2720cb", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a8801", + "", + "", + "52210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae" + ] + }, + { + "txid": "f9978374ea9bdcaef04cc81e69e2a4334a0ea83d6a675d19540bc626d71e9f2c", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01", + "", + "", + "522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "halfSignedUserBitGo": { + "id": "ae17224baeba7b4d6208802ccc361402717780cb83682bba901d8011443db0d9", + "hex": "01000000000102cb20279e54ad6f45ffcc493f1951221943ec2172371bcf8f4c4067e4215acd2a0100000000ffffffff2c9f1ed726c60b54195d676a3da80e4a33a4e2691ec84cf0aedc9bea748397f90100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870500483045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a880100006952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae0500483045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01000069522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae00000000", + "ins": [ + { + "txid": "2acd5a21e467404c8fcf1b377221ec43192251193f49ccff456fad549e2720cb", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a8801", + "", + "", + "52210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae" + ] + }, + { + "txid": "f9978374ea9bdcaef04cc81e69e2a4334a0ea83d6a675d19540bc626d71e9f2c", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01", + "", + "", + "522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBackup": { + "id": "ae17224baeba7b4d6208802ccc361402717780cb83682bba901d8011443db0d9", + "hex": "01000000000102cb20279e54ad6f45ffcc493f1951221943ec2172371bcf8f4c4067e4215acd2a0100000000ffffffff2c9f1ed726c60b54195d676a3da80e4a33a4e2691ec84cf0aedc9bea748397f90100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870400483045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a8801483045022100a4a80836fd5927f73d75e1ccd6e4e8141f74d1187a596009bf571a0ef2bc835d02203ae92d28fc3c672e722d8121ed2aef6979262381ffad22ef0e51a486ff551102016952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae0400483045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec0147304402206a1bb3e255b967c67e32d0a73f704f006a46f0106e131c246692114278f4c7d7022012433f2199e248acd9332733c7b0976cc9fb64dd028e1d70f6993853a29fea080169522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae00000000", + "ins": [ + { + "txid": "2acd5a21e467404c8fcf1b377221ec43192251193f49ccff456fad549e2720cb", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a8801", + "3045022100a4a80836fd5927f73d75e1ccd6e4e8141f74d1187a596009bf571a0ef2bc835d02203ae92d28fc3c672e722d8121ed2aef6979262381ffad22ef0e51a486ff55110201", + "52210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae" + ] + }, + { + "txid": "f9978374ea9bdcaef04cc81e69e2a4334a0ea83d6a675d19540bc626d71e9f2c", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01", + "304402206a1bb3e255b967c67e32d0a73f704f006a46f0106e131c246692114278f4c7d7022012433f2199e248acd9332733c7b0976cc9fb64dd028e1d70f6993853a29fea0801", + "522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + }, + "fullSignedUserBitGo": { + "id": "ae17224baeba7b4d6208802ccc361402717780cb83682bba901d8011443db0d9", + "hex": "01000000000102cb20279e54ad6f45ffcc493f1951221943ec2172371bcf8f4c4067e4215acd2a0100000000ffffffff2c9f1ed726c60b54195d676a3da80e4a33a4e2691ec84cf0aedc9bea748397f90100000000ffffffff0118beeb0b0000000017a9141e57a925dd863a86af341037e700862bf66bf7b6870400483045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a8801473044022038273887297a871d030ef88e6fc26e2eea851b7b731f6ae294d7a56937fe092502200e46790050514ab05aaaa590ab2ea7783ae629557887cec40789315f86912733016952210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae0400483045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01483045022100c9dbad38273a282c29fb059ed67a33af738b1716bbb78638bc93a75f7b30bab9022032c9b44f71687ee1248f5744a2d0bb72b40196e9576c22ae4f0942b0ed08a79e0169522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae00000000", + "ins": [ + { + "txid": "2acd5a21e467404c8fcf1b377221ec43192251193f49ccff456fad549e2720cb", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100e09c62b66fb3cfd2f827bd0cc234c126d1ba806edf95a8383ec623fe14362260022068202db712d806807183f66365af36474ee1631829eca2d75c7202b89e190a8801", + "3044022038273887297a871d030ef88e6fc26e2eea851b7b731f6ae294d7a56937fe092502200e46790050514ab05aaaa590ab2ea7783ae629557887cec40789315f8691273301", + "52210391e76285ad55895309f6fa7db9fb359489daaf235bb4cb50608f9562122af1ab210285ddd6b1e84e37a9f222737d8b80a8a980a193a783b75b9e82d6e239eb52818c2103a13ee160d79d43201ef5e65b6df4e0842de3b640904d049e64daaaa84a306bb853ae" + ] + }, + { + "txid": "f9978374ea9bdcaef04cc81e69e2a4334a0ea83d6a675d19540bc626d71e9f2c", + "index": 1, + "script": "", + "witness": [ + "", + "3045022100a9526ae27876da8a86134d369431f16111e157609f76e00ce69ab4a9e8eea3cb022067b91bb2380464f57c5547d57bce70431b6fd95bb0abf2269c817c670a7201ec01", + "3045022100c9dbad38273a282c29fb059ed67a33af738b1716bbb78638bc93a75f7b30bab9022032c9b44f71687ee1248f5744a2d0bb72b40196e9576c22ae4f0942b0ed08a79e01", + "522103cfb542b732ae06a1265a515297c2398009eea602afb5631ec63e34ed7f5fa055210245917cae825127509940626a2343565109eb83e289c30473772ab175331aa964210373f8df125941e11f8154fdeb42e3690815634f70787c06729f68b2b42580b4dc53ae" + ] + } + ], + "outs": [ + { + "script": "a9141e57a925dd863a86af341037e700862bf66bf7b687", + "value": 199999000 + } + ] + } +} \ No newline at end of file diff --git a/modules/sdk-coin-btc/src/index.ts b/modules/sdk-coin-btc/src/index.ts index 076f577fa9..557f215b45 100644 --- a/modules/sdk-coin-btc/src/index.ts +++ b/modules/sdk-coin-btc/src/index.ts @@ -1,5 +1,6 @@ export * from './btc'; export * from './tbtc'; export * from './tbtcsig'; +export * from './tbtc4'; export * from './tbtcbgsig'; export * from './register'; diff --git a/modules/sdk-coin-btc/src/tbtc4.ts b/modules/sdk-coin-btc/src/tbtc4.ts new file mode 100644 index 0000000000..376cec66ae --- /dev/null +++ b/modules/sdk-coin-btc/src/tbtc4.ts @@ -0,0 +1,24 @@ +/** + * @prettier + */ +import { BaseCoin, BitGoBase } from '@bitgo/sdk-core'; +import { Btc } from './btc'; +import * as utxolib from '@bitgo/utxo-lib'; + +export class Tbtc4 extends Btc { + constructor(bitgo: BitGoBase) { + super(bitgo, utxolib.networks.bitcoinTestnet4); + } + + static createInstance(bitgo: BitGoBase): BaseCoin { + return new Tbtc4(bitgo); + } + + getChain() { + return 'tbtc4'; + } + + getFullName() { + return 'Testnet4 Bitcoin'; + } +} diff --git a/modules/statics/src/networks.ts b/modules/statics/src/networks.ts index 44b49d078c..13e93f0372 100644 --- a/modules/statics/src/networks.ts +++ b/modules/statics/src/networks.ts @@ -312,6 +312,13 @@ class BitcoinPublicSignet extends Testnet implements UtxoNetwork { explorerUrl = 'https://mempool.space/signet/tx/'; } +class BitcoinTestnet4 extends Testnet implements UtxoNetwork { + name = 'BitcoinTestnet4'; + family = CoinFamily.BTC; + utxolibName = 'bitcoinTestnet4'; + explorerUrl = 'https://mempool.space/testnet4/tx/'; +} + class BitcoinBitGoSignet extends Testnet implements UtxoNetwork { name = 'BitcoinBitGoSignet'; family = CoinFamily.BTC; @@ -1131,6 +1138,7 @@ export const Networks = { basechain: Object.freeze(new BaseChainTestnet()), bitcoin: Object.freeze(new BitcoinTestnet()), bitcoinPublicSignet: Object.freeze(new BitcoinPublicSignet()), + bitcoinTestnet4: Object.freeze(new BitcoinTestnet4()), bitcoinBitGoSignet: Object.freeze(new BitcoinBitGoSignet()), bitcoinCash: Object.freeze(new BitcoinCashTestnet()), bitcoinGold: Object.freeze(new BitcoinGoldTestnet()), diff --git a/modules/statics/src/utxo.ts b/modules/statics/src/utxo.ts index 4c698c381d..64908d9444 100644 --- a/modules/statics/src/utxo.ts +++ b/modules/statics/src/utxo.ts @@ -212,6 +212,15 @@ export const utxoCoins: Readonly[] = [ BaseUnit.BTC, BTC_FEATURES ), + utxo( + 'f76cec3f-7aef-473d-af5d-4c47dd40dfa8', + 'tbtc4', + 'Testnet4 Bitcoin', + Networks.test.bitcoinTestnet4, + UnderlyingAsset.BTC, + BaseUnit.BTC, + BTC_FEATURES + ), utxo( '722522dc-a613-4bff-a1d1-183ebe5138ae', 'tbtcbgsig', diff --git a/modules/statics/test/unit/coins.ts b/modules/statics/test/unit/coins.ts index 5a34a0c389..6b92995e02 100644 --- a/modules/statics/test/unit/coins.ts +++ b/modules/statics/test/unit/coins.ts @@ -182,6 +182,16 @@ const custodyFeatures: Record = { CoinFeature.CUSTODY_BITGO_SWITZERLAND, ], }, + tbtc4: { + features: [ + CoinFeature.CUSTODY_BITGO_GERMANY, + CoinFeature.CUSTODY_BITGO_NEW_YORK, + CoinFeature.CUSTODY_BITGO_FRANKFURT, + CoinFeature.CUSTODY_BITGO_SISTER_TRUST_ONE, + CoinFeature.CUSTODY_BITGO_SINGAPORE, + CoinFeature.CUSTODY_BITGO_SWITZERLAND, + ], + }, tbtcbgsig: { features: [ CoinFeature.CUSTODY_BITGO_GERMANY, diff --git a/modules/statics/test/unit/fixtures/expectedColdFeatures.ts b/modules/statics/test/unit/fixtures/expectedColdFeatures.ts index 845ce15cd2..f285531a53 100644 --- a/modules/statics/test/unit/fixtures/expectedColdFeatures.ts +++ b/modules/statics/test/unit/fixtures/expectedColdFeatures.ts @@ -32,6 +32,7 @@ export const expectedColdFeatures = { 'tbsv', 'tbtc', 'tbtcsig', + 'tbtc4', 'tbtcbgsig', 'tcelo', 'tcspr', diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt index 080c154c90..2b034a52e6 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di │ ├── type: scripthash │ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587 │ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt index 579dfe79a6..595c98bad3 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt @@ -9,4 +9,4 @@ address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78 │ ├── type: taproot │ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b │ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt index e5d474c336..8415a6ef9e 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt @@ -9,4 +9,4 @@ address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf │ ├── type: taproot │ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 │ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt index d9b718aa32..dd6725dade 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt @@ -5,4 +5,4 @@ address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut │ ├── type: witnesspubkeyhash │ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 │ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt index 26b1be5a94..b8037b9159 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinBitGoSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt @@ -9,4 +9,4 @@ address: tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du │ ├── type: witnessscripthash │ ├── hex: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 │ └── asm: OP_0 cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt index 080c154c90..2b034a52e6 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di │ ├── type: scripthash │ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587 │ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt index 579dfe79a6..595c98bad3 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt @@ -9,4 +9,4 @@ address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78 │ ├── type: taproot │ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b │ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt index e5d474c336..8415a6ef9e 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt @@ -9,4 +9,4 @@ address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf │ ├── type: taproot │ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 │ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt index d9b718aa32..dd6725dade 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt @@ -5,4 +5,4 @@ address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut │ ├── type: witnesspubkeyhash │ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 │ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt index 26b1be5a94..b8037b9159 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinPublicSignet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt @@ -9,4 +9,4 @@ address: tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du │ ├── type: witnessscripthash │ ├── hex: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 │ └── asm: OP_0 cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt new file mode 100644 index 0000000000..70a7a583ae --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -0,0 +1,14 @@ +address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ +├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check +│ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) +│ ├── version: 6f +│ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) +├── format: default +├─┬ outputScript: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac (25 bytes) +│ └─┬ scriptPubKey: [25byte] +│ ├── type: pubkeyhash +│ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac +│ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt new file mode 100644 index 0000000000..2b034a52e6 --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt @@ -0,0 +1,14 @@ +address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di +├─┬ base58 +│ └── payload: c4179ddf848a574c6fdb30e6e564f2c8b8fc1135456d756f29 (25 bytes) +├─┬ base58Check +│ ├── payload: c4179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) +│ ├── version: c4 +│ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) +├── format: default +├─┬ outputScript: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587 (23 bytes) +│ └─┬ scriptPubKey: [23byte] +│ ├── type: scripthash +│ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587 +│ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt new file mode 100644 index 0000000000..024b17bfcf --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -0,0 +1,14 @@ +address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW +├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check +│ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) +│ ├── version: c4 +│ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) +├── format: default +├─┬ outputScript: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 (23 bytes) +│ └─┬ scriptPubKey: [23byte] +│ ├── type: scripthash +│ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 +│ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt new file mode 100644 index 0000000000..595c98bad3 --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt @@ -0,0 +1,12 @@ +address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78 +├─┬ bech32m +│ ├── prefix: tb +│ ├── words: 011406000c000819030f020d0118001a1011120213090211140a1906171611141a0105171b1f1a181a051b1d0b1b0808030c190510 (53 bytes) +│ └── bytes: 0d0c0601191bc4d0e01a846429a451a2b26bda34d04b7dff58d177d5ed081b3258 (33 bytes) +├── format: default +├─┬ outputScript: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b (34 bytes) +│ └─┬ scriptPubKey: [34byte] +│ ├── type: taproot +│ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b +│ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt new file mode 100644 index 0000000000..8415a6ef9e --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt @@ -0,0 +1,12 @@ +address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf +├─┬ bech32m +│ ├── prefix: tb +│ ├── words: 0107080c051b1a15101411051b041812151b0a050e1c070b1704141311041a1c111a061014070e0011041902031b0004080e091310 (53 bytes) +│ └── bytes: 09d0c2ef5585225d9312aed45770ebb92938935c8e8d0a1dc0893221ec04439338 (33 bytes) +├── format: default +├─┬ outputScript: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 (34 bytes) +│ └─┬ scriptPubKey: [34byte] +│ ├── type: taproot +│ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 +│ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt new file mode 100644 index 0000000000..dd6725dade --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt @@ -0,0 +1,8 @@ +address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut +├── format: default +├─┬ outputScript: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (22 bytes) +│ └─┬ scriptPubKey: [22byte] +│ ├── type: witnesspubkeyhash +│ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 +│ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt new file mode 100644 index 0000000000..b8037b9159 --- /dev/null +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinTestnet4_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt @@ -0,0 +1,12 @@ +address: tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du +├─┬ bech32 +│ ├── prefix: tb +│ ├── words: 00191c1a061b190b140e00101f120a0e0f0e1d180f17061408121a0d1c011b01071a05181d1203160b11160e1a1c0d111616191810 (53 bytes) +│ └── bytes: 0679a36f2ba3810fc94e7bbb87dcd444b4de07613e8b8ec8765c6ced71b1b5b388 (33 bytes) +├── format: default +├─┬ outputScript: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 (34 bytes) +│ └─┬ scriptPubKey: [34byte] +│ ├── type: witnessscripthash +│ ├── hex: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 +│ └── asm: OP_0 cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt index 121fa6db0e..1b1ea4a529 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt @@ -22,6 +22,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── bitcoin default: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── testnet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoinPublicSignet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW + ├── bitcoinTestnet4 default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoinBitGoSignet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoincash default: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── bitcoincash cashaddr: bitcoincash:pqh4utv0fm35eng6gycfwkuluc6l7e0q9vhaa54xz8 diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincashTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt index 121fa6db0e..1b1ea4a529 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt @@ -22,6 +22,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── bitcoin default: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── testnet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoinPublicSignet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW + ├── bitcoinTestnet4 default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoinBitGoSignet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoincash default: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── bitcoincash cashaddr: bitcoincash:pqh4utv0fm35eng6gycfwkuluc6l7e0q9vhaa54xz8 diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt index 080c154c90..2b034a52e6 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di │ ├── type: scripthash │ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587 │ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingoldTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsvTestnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/ecashTest_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt b/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt index 121fa6db0e..1b1ea4a529 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.all.txt @@ -22,6 +22,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── bitcoin default: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── testnet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoinPublicSignet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW + ├── bitcoinTestnet4 default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoinBitGoSignet default: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├── bitcoincash default: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├── bitcoincash cashaddr: bitcoincash:pqh4utv0fm35eng6gycfwkuluc6l7e0q9vhaa54xz8 diff --git a/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt index f97b3b5798..70a7a583ae 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2pkh_default_mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ.txt @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ │ ├── type: pubkeyhash │ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac │ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt index 080c154c90..2b034a52e6 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2shP2wsh_default_2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di.txt @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di │ ├── type: scripthash │ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587 │ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt index 97ee2aa675..024b17bfcf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2sh_default_2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW.txt @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW │ ├── type: scripthash │ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87 │ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt index 579dfe79a6..595c98bad3 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2trMusig2_default_tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78.txt @@ -9,4 +9,4 @@ address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78 │ ├── type: taproot │ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b │ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt index e5d474c336..8415a6ef9e 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2tr_default_tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf.txt @@ -9,4 +9,4 @@ address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf │ ├── type: taproot │ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 │ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt index d9b718aa32..dd6725dade 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wkh_default_tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut.txt @@ -5,4 +5,4 @@ address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut │ ├── type: witnesspubkeyhash │ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 │ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt index 26b1be5a94..b8037b9159 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/testnet_p2wsh_default_tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du.txt @@ -9,4 +9,4 @@ address: tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du │ ├── type: witnessscripthash │ ├── hex: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 │ └── asm: OP_0 cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671 -└── network: testnet, bitcoinPublicSignet, bitcoinBitGoSignet +└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet diff --git a/modules/utxo-bin/test/parseAddress.ts b/modules/utxo-bin/test/parseAddress.ts index 39a85b15f7..3980c51548 100644 --- a/modules/utxo-bin/test/parseAddress.ts +++ b/modules/utxo-bin/test/parseAddress.ts @@ -81,6 +81,7 @@ function testParseAddress( const formatted = formatTreeNoColor(parse(address, args), { showAll: true }); const addrNoColon = address.replace(':', '_'); const filename = [utxolib.getNetworkName(network), type, addressFormat, addrNoColon + suffix].join('_'); + console.log(filename); assert.strictEqual(await getFixtureString(`test/fixtures/formatAddress/${filename}.txt`, formatted), formatted); }); }); diff --git a/modules/utxo-lib/src/networks.ts b/modules/utxo-lib/src/networks.ts index 3667e38792..88436c7f90 100644 --- a/modules/utxo-lib/src/networks.ts +++ b/modules/utxo-lib/src/networks.ts @@ -39,6 +39,7 @@ export type NetworkName = | 'bitcoin' | 'testnet' | 'bitcoinPublicSignet' + | 'bitcoinTestnet4' | 'bitcoinBitGoSignet' | 'bitcoincash' | 'bitcoincashTestnet' @@ -133,7 +134,21 @@ export const networks: Record = { coin: coins.BTC, }, /** - * Same as above, except only BitGo can mine blocks + * Proof-of-work testnet for BTC that replaces the deprecated Testnet3 + * Address encoding is the same as for testnet3 + * Source for constants: https://github.com/bitcoin/bitcoin/blob/v28.0rc2/src/kernel/chainparams.cpp#L372-L374 + */ + bitcoinTestnet4: { + messagePrefix: '\x18Bitcoin Signed Message:\n', + bech32: 'tb', + bip32: getDefaultBip32Testnet(), + pubKeyHash: 0x6f, + scriptHash: 0xc4, + wif: 0xef, + coin: coins.BTC, + }, + /** + * Same as public signet, except only BitGo can mine blocks */ bitcoinBitGoSignet: { messagePrefix: '\x18Bitcoin Signed Message:\n', @@ -359,6 +374,7 @@ export function getMainnet(network: Network): Network { case networks.bitcoin: case networks.testnet: case networks.bitcoinPublicSignet: + case networks.bitcoinTestnet4: case networks.bitcoinBitGoSignet: return networks.bitcoin; diff --git a/modules/utxo-lib/test/bitgo/outputScripts.ts b/modules/utxo-lib/test/bitgo/outputScripts.ts index dfd0302b3f..a0e26f0569 100644 --- a/modules/utxo-lib/test/bitgo/outputScripts.ts +++ b/modules/utxo-lib/test/bitgo/outputScripts.ts @@ -22,6 +22,7 @@ describe('output script support', function () { ['bitcoin', ['p2sh', 'p2shP2wsh', 'p2wsh', 'p2tr', 'p2trMusig2']], ['testnet', ['p2sh', 'p2shP2wsh', 'p2wsh', 'p2tr', 'p2trMusig2']], ['bitcoinPublicSignet', ['p2sh', 'p2shP2wsh', 'p2wsh', 'p2tr', 'p2trMusig2']], + ['bitcoinTestnet4', ['p2sh', 'p2shP2wsh', 'p2wsh', 'p2tr', 'p2trMusig2']], ['bitcoinBitGoSignet', ['p2sh', 'p2shP2wsh', 'p2wsh', 'p2tr', 'p2trMusig2']], ['bitcoincash', ['p2sh']], ['bitcoincashTestnet', ['p2sh']], diff --git a/modules/utxo-lib/test/fixture.util.ts b/modules/utxo-lib/test/fixture.util.ts index 773c519f4b..f9773d207b 100644 --- a/modules/utxo-lib/test/fixture.util.ts +++ b/modules/utxo-lib/test/fixture.util.ts @@ -18,6 +18,7 @@ function toPrettyJSON(v: unknown): string { export async function readFixture(path: string, defaultValue: T): Promise { path = path.replace('bitcoinBitGoSignet', 'bitcoinPublicSignet'); + path = path.replace('bitcoinTestnet4', 'bitcoinPublicSignet'); try { await fs.access(mpath.dirname(path)); diff --git a/modules/utxo-lib/test/integration_local_rpc/generate/fixtures.ts b/modules/utxo-lib/test/integration_local_rpc/generate/fixtures.ts index 976d2c51f8..bacabacbd1 100644 --- a/modules/utxo-lib/test/integration_local_rpc/generate/fixtures.ts +++ b/modules/utxo-lib/test/integration_local_rpc/generate/fixtures.ts @@ -27,7 +27,7 @@ export function getProtocolVersions(network: Network): number[] { export function getFixtureDir(protocol: Protocol): string { let networkName = getNetworkName(protocol.network); assert(networkName); - if (networkName === 'bitcoinBitGoSignet') { + if (networkName === 'bitcoinBitGoSignet' || networkName === 'bitcoinTestnet4') { networkName = 'bitcoinPublicSignet'; } return path.join(__dirname, '..', 'fixtures', networkName, `v${protocol.version}`); diff --git a/modules/utxo-lib/test/networks.ts b/modules/utxo-lib/test/networks.ts index 01106029af..3147ed3f41 100644 --- a/modules/utxo-lib/test/networks.ts +++ b/modules/utxo-lib/test/networks.ts @@ -101,6 +101,7 @@ describe('networks', function () { ['bitcoin', true, true], ['testnet', true, true], ['bitcoinPublicSignet', true, true], + ['bitcoinTestnet4', true, true], ['bitcoinBitGoSignet', true, true], ['bitcoincash', false, false], ['bitcoincashTestnet', false, false], @@ -170,7 +171,7 @@ describe('networks', function () { for (const otherName in networks) { const otherNetwork = networks[otherName]; - const alternateBtcTestnets = ['bitcoinPublicSignet', 'bitcoinBitGoSignet']; + const alternateBtcTestnets = ['bitcoinPublicSignet', 'bitcoinTestnet4', 'bitcoinBitGoSignet']; if ( (alternateBtcTestnets.includes(name) && otherName === 'testnet') || alternateBtcTestnets.includes(otherName)