diff --git a/modules/utxo-bin/package.json b/modules/utxo-bin/package.json index f2daed9c6e..9f4ca09ba6 100644 --- a/modules/utxo-bin/package.json +++ b/modules/utxo-bin/package.json @@ -33,6 +33,7 @@ "bech32": "^2.0.0", "bitcoinjs-lib": "npm:@bitgo-forks/bitcoinjs-lib@7.1.0-master.2", "bn.js": "^5.2.1", + "bs58": "^5.0.0", "bs58check": "^2.1.2", "cashaddress": "^1.1.0", "chalk": "4", diff --git a/modules/utxo-bin/src/AddressParser.ts b/modules/utxo-bin/src/AddressParser.ts index cfad7995fc..2bd5722c89 100644 --- a/modules/utxo-bin/src/AddressParser.ts +++ b/modules/utxo-bin/src/AddressParser.ts @@ -3,6 +3,7 @@ import * as bech32 from 'bech32'; import { Parser, ParserNode } from './Parser'; +const bs58 = require('bs58'); const bs58check = require('bs58check'); const cashaddress = require('cashaddress'); @@ -57,6 +58,11 @@ export class AddressParser extends Parser { } parseBase58(address: string): ParserNode[] { + const payload = bs58.decode(address); + return [this.node('payload', payload)]; + } + + parseBase58Check(address: string): ParserNode[] { const payload = bs58check.decode(address); return [ this.node('payload', payload), @@ -125,6 +131,7 @@ export class AddressParser extends Parser { return [ ...decodeWith('base58', this.parseBase58.bind(this)), + ...decodeWith('base58Check', this.parseBase58Check.bind(this)), ...decodeWith('bech32', this.parseBech32.bind(this)), ...decodeWith('bech32m', this.parseBech32m.bind(this)), ...decodeWith('cashaddr', this.parseCashaddr.bind(this)), diff --git a/modules/utxo-bin/src/Parser.ts b/modules/utxo-bin/src/Parser.ts index fd827a37e1..e05f01cf4c 100644 --- a/modules/utxo-bin/src/Parser.ts +++ b/modules/utxo-bin/src/Parser.ts @@ -1,4 +1,4 @@ -export type ParserNodeValue = number | bigint | string | Buffer | boolean | undefined | null; +export type ParserNodeValue = number | bigint | string | Buffer | Uint8Array | boolean | undefined | null; export function isParserNodeValue(v: unknown): v is ParserNodeValue { switch (typeof v) { @@ -9,7 +9,7 @@ export function isParserNodeValue(v: unknown): v is ParserNodeValue { case 'bigint': return true; case 'object': - return v === null || Buffer.isBuffer(v); + return v === null || Buffer.isBuffer(v) || v instanceof Uint8Array; } return false; } @@ -27,6 +27,9 @@ export class Parser { this.parseError = params.parseError ?? 'continue'; } node(label: string | number, value: ParserNodeValue, nodes: ParserNode[] = []): ParserNode { + if (!isParserNodeValue(value)) { + throw new Error(`invalid node value ${typeof value}`); + } return { type: 'node', label: String(label), diff --git a/modules/utxo-bin/src/format.ts b/modules/utxo-bin/src/format.ts index 0e96efa5f0..0ad705d184 100644 --- a/modules/utxo-bin/src/format.ts +++ b/modules/utxo-bin/src/format.ts @@ -44,6 +44,9 @@ export function formatTree( if (Buffer.isBuffer(v)) { return `${v.toString('hex')} ${chalk.dim(`(${v.length} bytes)`)}`; } + if (v instanceof Uint8Array) { + return getLabelFromValue(Buffer.from(v)); + } } throw new Error(`could not get label from value ${typeof v}`); } diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt index 59ddc9f200..2e51a1f608 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt @@ -1,5 +1,7 @@ address: 1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt ├─┬ base58 +│ └── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1a6727ebd (25 bytes) +├─┬ base58Check │ ├── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 0 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2shP2wsh_default_33qtbAwm4ooBtMQenssbqDE1J4gSMMBRnb.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2shP2wsh_default_33qtbAwm4ooBtMQenssbqDE1J4gSMMBRnb.txt index e24344293f..dcf72bbbda 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2shP2wsh_default_33qtbAwm4ooBtMQenssbqDE1J4gSMMBRnb.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2shP2wsh_default_33qtbAwm4ooBtMQenssbqDE1J4gSMMBRnb.txt @@ -1,5 +1,7 @@ address: 33qtbAwm4ooBtMQenssbqDE1J4gSMMBRnb ├─┬ base58 +│ └── payload: 05179ddf848a574c6fdb30e6e564f2c8b8fc1135451b11bbc4 (25 bytes) +├─┬ base58Check │ ├── payload: 05179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) │ ├── version: 5 │ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) 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 bb55a1687d..e47ec3186b 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 @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt index 14e97860f3..0bbcbfb67c 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2tr_default_bc1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfnsjhucex.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2tr_default_bc1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfnsjhucex.txt index 851687acd9..f1c26db593 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2tr_default_bc1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfnsjhucex.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoin_p2tr_default_bc1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfnsjhucex.txt @@ -1,4 +1,6 @@ address: bc1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfnsjhucex +├─┬ base58 +│ └── payload: 0576877ae3e52efff978360035cc4ab3e9901f00b73c4ace62b5cda6df0fb165592fc18b0ea529e4502798708a65 (46 bytes) ├─┬ bech32m │ ├── prefix: bc │ ├── words: 0107080c051b1a15101411051b041812151b0a050e1c070b1704141311041a1c111a061014070e0011041902031b0004080e091310 (53 bytes) 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 27127f967e..dd095e480b 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 @@ -1,5 +1,7 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ ├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check │ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 6f │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 fd6b5a8b32..ff812e14ac 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 @@ -1,5 +1,7 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check │ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: c4 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt index 59ddc9f200..2e51a1f608 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt @@ -1,5 +1,7 @@ address: 1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt ├─┬ base58 +│ └── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1a6727ebd (25 bytes) +├─┬ base58Check │ ├── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 0 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 bb55a1687d..e47ec3186b 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 @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt index 14e97860f3..0bbcbfb67c 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoincash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) 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 27127f967e..dd095e480b 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 @@ -1,5 +1,7 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ ├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check │ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 6f │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 fd6c0abf82..d474626921 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 @@ -1,5 +1,7 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di ├─┬ base58 +│ └── payload: c4179ddf848a574c6fdb30e6e564f2c8b8fc1135456d756f29 (25 bytes) +├─┬ base58Check │ ├── payload: c4179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) │ ├── version: c4 │ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) 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 fd6b5a8b32..ff812e14ac 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 @@ -1,5 +1,7 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check │ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: c4 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2pkh_default_Gd3RGL1YRshmnUiGneEPMh3kffR4S91A1w.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2pkh_default_Gd3RGL1YRshmnUiGneEPMh3kffR4S91A1w.txt index cc8317beb4..fcec5fe2d1 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2pkh_default_Gd3RGL1YRshmnUiGneEPMh3kffR4S91A1w.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2pkh_default_Gd3RGL1YRshmnUiGneEPMh3kffR4S91A1w.txt @@ -1,5 +1,7 @@ address: Gd3RGL1YRshmnUiGneEPMh3kffR4S91A1w ├─┬ base58 +│ └── payload: 26d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1a959685a (25 bytes) +├─┬ base58Check │ ├── payload: 26d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 26 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2shP2wsh_default_AHvkK8Jwr48xc9vDERsLZU8Ad9KRDP3e7m.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2shP2wsh_default_AHvkK8Jwr48xc9vDERsLZU8Ad9KRDP3e7m.txt index 67e080f73a..80875f68ad 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2shP2wsh_default_AHvkK8Jwr48xc9vDERsLZU8Ad9KRDP3e7m.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2shP2wsh_default_AHvkK8Jwr48xc9vDERsLZU8Ad9KRDP3e7m.txt @@ -1,5 +1,7 @@ address: AHvkK8Jwr48xc9vDERsLZU8Ad9KRDP3e7m ├─┬ base58 +│ └── payload: 17179ddf848a574c6fdb30e6e564f2c8b8fc113545b0624dec (25 bytes) +├─┬ base58Check │ ├── payload: 17179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) │ ├── version: 17 │ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2sh_default_AL6LE7aicvjeMTdtWrgJpXGYuyzsxJYdja.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2sh_default_AL6LE7aicvjeMTdtWrgJpXGYuyzsxJYdja.txt index 78b3fa7969..7f6a849606 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2sh_default_AL6LE7aicvjeMTdtWrgJpXGYuyzsxJYdja.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoingold_p2sh_default_AL6LE7aicvjeMTdtWrgJpXGYuyzsxJYdja.txt @@ -1,5 +1,7 @@ address: AL6LE7aicvjeMTdtWrgJpXGYuyzsxJYdja ├─┬ base58 +│ └── payload: 172f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b6e7ed3fd (25 bytes) +├─┬ base58Check │ ├── payload: 172f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 17 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) 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 27127f967e..dd095e480b 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 @@ -1,5 +1,7 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ ├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check │ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 6f │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 fd6b5a8b32..ff812e14ac 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 @@ -1,5 +1,7 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check │ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: c4 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt index 59ddc9f200..2e51a1f608 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt @@ -1,5 +1,7 @@ address: 1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt ├─┬ base58 +│ └── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1a6727ebd (25 bytes) +├─┬ base58Check │ ├── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 0 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt index 14e97860f3..0bbcbfb67c 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/bitcoinsv_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2pkh_default_yfWwhQQvrGy9Cgw7HSCtpUozs7hGy5CK3x.txt b/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2pkh_default_yfWwhQQvrGy9Cgw7HSCtpUozs7hGy5CK3x.txt index 8f3922d7ee..0ecaf66167 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2pkh_default_yfWwhQQvrGy9Cgw7HSCtpUozs7hGy5CK3x.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2pkh_default_yfWwhQQvrGy9Cgw7HSCtpUozs7hGy5CK3x.txt @@ -1,5 +1,7 @@ address: yfWwhQQvrGy9Cgw7HSCtpUozs7hGy5CK3x ├─┬ base58 +│ └── payload: 8cd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1d2499beb (25 bytes) +├─┬ base58Check │ ├── payload: 8cd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 8c │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2sh_default_8ijvHgPZnCt95j5YRBM2t2BQPxy76bvp6E.txt b/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2sh_default_8ijvHgPZnCt95j5YRBM2t2BQPxy76bvp6E.txt index 71e33a615b..fce2496f1d 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2sh_default_8ijvHgPZnCt95j5YRBM2t2BQPxy76bvp6E.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dashTest_p2sh_default_8ijvHgPZnCt95j5YRBM2t2BQPxy76bvp6E.txt @@ -1,5 +1,7 @@ address: 8ijvHgPZnCt95j5YRBM2t2BQPxy76bvp6E ├─┬ base58 +│ └── payload: 132f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b509ffdd3 (25 bytes) +├─┬ base58Check │ ├── payload: 132f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 13 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dash_p2pkh_default_XutLgTLVQjK4rx1ZiatVnTPeaqCuNvRz6k.txt b/modules/utxo-bin/test/fixtures/formatAddress/dash_p2pkh_default_XutLgTLVQjK4rx1ZiatVnTPeaqCuNvRz6k.txt index d5d155ef2f..0903259caf 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dash_p2pkh_default_XutLgTLVQjK4rx1ZiatVnTPeaqCuNvRz6k.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dash_p2pkh_default_XutLgTLVQjK4rx1ZiatVnTPeaqCuNvRz6k.txt @@ -1,5 +1,7 @@ address: XutLgTLVQjK4rx1ZiatVnTPeaqCuNvRz6k ├─┬ base58 +│ └── payload: 4cd2970bfc64117e397dc5cb7a9afe9f8b22dca1f108510301 (25 bytes) +├─┬ base58Check │ ├── payload: 4cd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 4c │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dash_p2sh_default_7Wj7LMVhefVWdRfHLvM5ReN3WTCGzyVbdE.txt b/modules/utxo-bin/test/fixtures/formatAddress/dash_p2sh_default_7Wj7LMVhefVWdRfHLvM5ReN3WTCGzyVbdE.txt index 66cb56e5c7..3c42830db5 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dash_p2sh_default_7Wj7LMVhefVWdRfHLvM5ReN3WTCGzyVbdE.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dash_p2sh_default_7Wj7LMVhefVWdRfHLvM5ReN3WTCGzyVbdE.txt @@ -1,5 +1,7 @@ address: 7Wj7LMVhefVWdRfHLvM5ReN3WTCGzyVbdE ├─┬ base58 +│ └── payload: 102f5e2d8f4ee34ccd1a4130975b9fe635ff65e02ba1c78cbd (25 bytes) +├─┬ base58Check │ ├── payload: 102f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 10 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2pkh_default_noPf7UN9gQTV7zAmd7DHj6TksVjoihVkLY.txt b/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2pkh_default_noPf7UN9gQTV7zAmd7DHj6TksVjoihVkLY.txt index e5eb8d4d92..5d6215bb26 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2pkh_default_noPf7UN9gQTV7zAmd7DHj6TksVjoihVkLY.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dogecoinTest_p2pkh_default_noPf7UN9gQTV7zAmd7DHj6TksVjoihVkLY.txt @@ -1,5 +1,7 @@ address: noPf7UN9gQTV7zAmd7DHj6TksVjoihVkLY ├─┬ base58 +│ └── payload: 71d2970bfc64117e397dc5cb7a9afe9f8b22dca1f15aeeab79 (25 bytes) +├─┬ base58Check │ ├── payload: 71d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 71 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 fd6b5a8b32..ff812e14ac 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 @@ -1,5 +1,7 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check │ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: c4 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2pkh_default_DQLbPTdEkRzmF1babHZqUgsTddMWgQq2ad.txt b/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2pkh_default_DQLbPTdEkRzmF1babHZqUgsTddMWgQq2ad.txt index 0f86f4d223..06e4b2d2b5 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2pkh_default_DQLbPTdEkRzmF1babHZqUgsTddMWgQq2ad.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2pkh_default_DQLbPTdEkRzmF1babHZqUgsTddMWgQq2ad.txt @@ -1,5 +1,7 @@ address: DQLbPTdEkRzmF1babHZqUgsTddMWgQq2ad ├─┬ base58 +│ └── payload: 1ed2970bfc64117e397dc5cb7a9afe9f8b22dca1f11296ef52 (25 bytes) +├─┬ base58Check │ ├── payload: 1ed2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 1e │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2sh_default_9vkjF1HRukGmY2VoVSLzLPzmHUjwCvtAad.txt b/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2sh_default_9vkjF1HRukGmY2VoVSLzLPzmHUjwCvtAad.txt index a03f1bdf5c..d53b1cf6c7 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2sh_default_9vkjF1HRukGmY2VoVSLzLPzmHUjwCvtAad.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/dogecoin_p2sh_default_9vkjF1HRukGmY2VoVSLzLPzmHUjwCvtAad.txt @@ -1,5 +1,7 @@ address: 9vkjF1HRukGmY2VoVSLzLPzmHUjwCvtAad ├─┬ base58 +│ └── payload: 162f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b1acd338a (25 bytes) +├─┬ base58Check │ ├── payload: 162f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 16 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) 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 27127f967e..dd095e480b 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 @@ -1,5 +1,7 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ ├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check │ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 6f │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 fd6b5a8b32..ff812e14ac 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 @@ -1,5 +1,7 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check │ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: c4 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt b/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt index 59ddc9f200..2e51a1f608 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2pkh_default_1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt.txt @@ -1,5 +1,7 @@ address: 1LCVrCgbT26Ui1QyrhaGvvhrkVdDRAXxtt ├─┬ base58 +│ └── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1a6727ebd (25 bytes) +├─┬ base58Check │ ├── payload: 00d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 0 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 bb55a1687d..e47ec3186b 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 @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt b/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt index 14e97860f3..0bbcbfb67c 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/ecash_p2sh_default_361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW.txt @@ -1,5 +1,7 @@ address: 361UWADXqgPsdf8L5Jga6GNPauMuBtT1eW ├─┬ base58 +│ └── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb4eab7ff (25 bytes) +├─┬ base58Check │ ├── payload: 052f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 5 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) 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 27127f967e..dd095e480b 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 @@ -1,5 +1,7 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ ├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check │ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 6f │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2shP2wsh_default_QNkrmvk2hNMdEKoF67XVXreheoLS5yeqB5.txt b/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2shP2wsh_default_QNkrmvk2hNMdEKoF67XVXreheoLS5yeqB5.txt index 90064f66d0..4ad872f1b2 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2shP2wsh_default_QNkrmvk2hNMdEKoF67XVXreheoLS5yeqB5.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2shP2wsh_default_QNkrmvk2hNMdEKoF67XVXreheoLS5yeqB5.txt @@ -1,5 +1,7 @@ address: QNkrmvk2hNMdEKoF67XVXreheoLS5yeqB5 ├─┬ base58 +│ └── payload: 3a179ddf848a574c6fdb30e6e564f2c8b8fc11354598e77e90 (25 bytes) +├─┬ base58Check │ ├── payload: 3a179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) │ ├── version: 3a │ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2sh_default_QQvSgv1oUExJydWvNYLTnuo5we1tsV5DZ3.txt b/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2sh_default_QQvSgv1oUExJydWvNYLTnuo5we1tsV5DZ3.txt index 5eae119b08..27c155cddc 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2sh_default_QQvSgv1oUExJydWvNYLTnuo5we1tsV5DZ3.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/litecoinTest_p2sh_default_QQvSgv1oUExJydWvNYLTnuo5we1tsV5DZ3.txt @@ -1,5 +1,7 @@ address: QQvSgv1oUExJydWvNYLTnuo5we1tsV5DZ3 ├─┬ base58 +│ └── payload: 3a2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bbc23b452 (25 bytes) +├─┬ base58Check │ ├── payload: 3a2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 3a │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2pkh_default_LeRT7QzRXgLXxp792qZaCwmcxhzVVhCFuv.txt b/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2pkh_default_LeRT7QzRXgLXxp792qZaCwmcxhzVVhCFuv.txt index 45f35cbdfe..6b3909b30c 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2pkh_default_LeRT7QzRXgLXxp792qZaCwmcxhzVVhCFuv.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2pkh_default_LeRT7QzRXgLXxp792qZaCwmcxhzVVhCFuv.txt @@ -1,5 +1,7 @@ address: LeRT7QzRXgLXxp792qZaCwmcxhzVVhCFuv ├─┬ base58 +│ └── payload: 30d2970bfc64117e397dc5cb7a9afe9f8b22dca1f13c51bb2d (25 bytes) +├─┬ base58Check │ ├── payload: 30d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 30 │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2shP2wsh_default_MA42u4Mj1vecgrgYtkrwerUQcmGtR4kUvr.txt b/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2shP2wsh_default_MA42u4Mj1vecgrgYtkrwerUQcmGtR4kUvr.txt index 9e7ce209ec..f25eac8541 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2shP2wsh_default_MA42u4Mj1vecgrgYtkrwerUQcmGtR4kUvr.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2shP2wsh_default_MA42u4Mj1vecgrgYtkrwerUQcmGtR4kUvr.txt @@ -1,5 +1,7 @@ address: MA42u4Mj1vecgrgYtkrwerUQcmGtR4kUvr ├─┬ base58 +│ └── payload: 32179ddf848a574c6fdb30e6e564f2c8b8fc113545be849c27 (25 bytes) +├─┬ base58Check │ ├── payload: 32179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) │ ├── version: 32 │ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2sh_default_MCDcp3dVnoFJSAQEBBfuuucnubxM6uQRD5.txt b/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2sh_default_MCDcp3dVnoFJSAQEBBfuuucnubxM6uQRD5.txt index 2a549fea0a..9f65c87e22 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2sh_default_MCDcp3dVnoFJSAQEBBfuuucnubxM6uQRD5.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/litecoin_p2sh_default_MCDcp3dVnoFJSAQEBBfuuucnubxM6uQRD5.txt @@ -1,5 +1,7 @@ address: MCDcp3dVnoFJSAQEBBfuuucnubxM6uQRD5 ├─┬ base58 +│ └── payload: 322f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b03febf94 (25 bytes) +├─┬ base58Check │ ├── payload: 322f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: 32 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) 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 27127f967e..dd095e480b 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 @@ -1,5 +1,7 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ ├─┬ base58 +│ └── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f122697ba2 (25 bytes) +├─┬ base58Check │ ├── payload: 6fd2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) │ ├── version: 6f │ └── hash: d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (20 bytes) 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 fd6c0abf82..d474626921 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 @@ -1,5 +1,7 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di ├─┬ base58 +│ └── payload: c4179ddf848a574c6fdb30e6e564f2c8b8fc1135456d756f29 (25 bytes) +├─┬ base58Check │ ├── payload: c4179ddf848a574c6fdb30e6e564f2c8b8fc113545 (21 bytes) │ ├── version: c4 │ └── hash: 179ddf848a574c6fdb30e6e564f2c8b8fc113545 (20 bytes) 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 fd6b5a8b32..ff812e14ac 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 @@ -1,5 +1,7 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW ├─┬ base58 +│ └── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bc6292d41 (25 bytes) +├─┬ base58Check │ ├── payload: c42f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) │ ├── version: c4 │ └── hash: 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (20 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2pkh_default_tmUurBNb8p1PaStfKTrh8vQUXc8u7i1s34C.txt b/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2pkh_default_tmUurBNb8p1PaStfKTrh8vQUXc8u7i1s34C.txt index 0d4fc6845e..c43495e8bd 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2pkh_default_tmUurBNb8p1PaStfKTrh8vQUXc8u7i1s34C.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2pkh_default_tmUurBNb8p1PaStfKTrh8vQUXc8u7i1s34C.txt @@ -1,5 +1,7 @@ address: tmUurBNb8p1PaStfKTrh8vQUXc8u7i1s34C ├─┬ base58 +│ └── payload: 1d25d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1bac2e9f1 (26 bytes) +├─┬ base58Check │ ├── payload: 1d25d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (22 bytes) │ ├── version: 1d │ └── hash: 25d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2sh_default_t2AsGZAjogTnqmzkxwUVjmhewx3n9qwJkTV.txt b/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2sh_default_t2AsGZAjogTnqmzkxwUVjmhewx3n9qwJkTV.txt index 3b2e424129..80644b58aa 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2sh_default_t2AsGZAjogTnqmzkxwUVjmhewx3n9qwJkTV.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/zcashTest_p2sh_default_t2AsGZAjogTnqmzkxwUVjmhewx3n9qwJkTV.txt @@ -1,5 +1,7 @@ address: t2AsGZAjogTnqmzkxwUVjmhewx3n9qwJkTV ├─┬ base58 +│ └── payload: 1cba2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bb2e0e994 (26 bytes) +├─┬ base58Check │ ├── payload: 1cba2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (22 bytes) │ ├── version: 1c │ └── hash: ba2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2pkh_default_t1d56rY6jRLt5JeTso8PQ4jon19pJAF13hg.txt b/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2pkh_default_t1d56rY6jRLt5JeTso8PQ4jon19pJAF13hg.txt index c279d2f06e..b4085ac873 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2pkh_default_t1d56rY6jRLt5JeTso8PQ4jon19pJAF13hg.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2pkh_default_t1d56rY6jRLt5JeTso8PQ4jon19pJAF13hg.txt @@ -1,5 +1,7 @@ address: t1d56rY6jRLt5JeTso8PQ4jon19pJAF13hg ├─┬ base58 +│ └── payload: 1cb8d2970bfc64117e397dc5cb7a9afe9f8b22dca1f13bc3a0bf (26 bytes) +├─┬ base58Check │ ├── payload: 1cb8d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (22 bytes) │ ├── version: 1c │ └── hash: b8d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (21 bytes) diff --git a/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2sh_default_t3Nt5WVdfp1BUEJBE1jVhE5UJqZYz1DCoRU.txt b/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2sh_default_t3Nt5WVdfp1BUEJBE1jVhE5UJqZYz1DCoRU.txt index af513ab97b..bb328898fc 100644 --- a/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2sh_default_t3Nt5WVdfp1BUEJBE1jVhE5UJqZYz1DCoRU.txt +++ b/modules/utxo-bin/test/fixtures/formatAddress/zcash_p2sh_default_t3Nt5WVdfp1BUEJBE1jVhE5UJqZYz1DCoRU.txt @@ -1,5 +1,7 @@ address: t3Nt5WVdfp1BUEJBE1jVhE5UJqZYz1DCoRU ├─┬ base58 +│ └── payload: 1cbd2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02bf05be43b (26 bytes) +├─┬ base58Check │ ├── payload: 1cbd2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (22 bytes) │ ├── version: 1c │ └── hash: bd2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b (21 bytes)