Skip to content

Commit

Permalink
Merge pull request #5164 from BitGo/BTC-1472.regtest
Browse files Browse the repository at this point in the history
feat(utxo-bin): add support for regtest addresses
  • Loading branch information
OttoAllmendinger authored Nov 23, 2024
2 parents 6e7ee30 + 002f296 commit 1bbb8b4
Show file tree
Hide file tree
Showing 64 changed files with 833 additions and 124 deletions.
18 changes: 12 additions & 6 deletions modules/utxo-bin/src/AddressParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as utxolib from '@bitgo/utxo-lib';
import * as bech32 from 'bech32';

import { Parser, ParserNode } from './Parser';
import { getNetworkList, getNetworkName } from './args';

const bs58 = require('bs58');
const bs58check = require('bs58check');
Expand Down Expand Up @@ -98,21 +99,26 @@ export class AddressParser extends Parser {
}

convert(outputScript: Buffer): ParserNode {
function getWidth(list: readonly string[]): number {
return Math.max(...list.map((s) => s.length));
}
const networkWith = getWidth(getNetworkList().map(getNetworkName));
const addressFormatWith = getWidth(utxolib.addressFormat.addressFormats);
return this.node(
'converted',
undefined,
utxolib.getNetworkList().flatMap((network) =>
getNetworkList().flatMap((network) =>
utxolib.addressFormat.addressFormats
.filter((f) => utxolib.addressFormat.isSupportedAddressFormat(f, network))
.map((addressFormat) => {
const name = utxolib.getNetworkName(network) as string;
const label = `${getNetworkName(network).padEnd(networkWith)} ${addressFormat.padEnd(addressFormatWith)}`;
try {
return this.node(
`${name} ${addressFormat}`,
label,
utxolib.addressFormat.fromOutputScriptWithFormat(outputScript, addressFormat, network)
);
} catch (e) {
return this.node(`${name} ${addressFormat}`, 'undefined');
return this.node(label, 'undefined');
}
})
)
Expand All @@ -139,7 +145,7 @@ export class AddressParser extends Parser {
}

parse(input: string): ParserNode {
const networks = this.params.network ? [this.params.network] : utxolib.getNetworkList();
const networks = this.params.network ? [this.params.network] : getNetworkList();

type Match = {
network: utxolib.Network;
Expand Down Expand Up @@ -168,7 +174,7 @@ export class AddressParser extends Parser {

nodes.push(this.node('format', firstMatch.addressFormat));
nodes.push(this.node('outputScript', firstMatch.buffer, this.parseOutputScript(firstMatch.buffer)));
nodes.push(this.node('network', matches.map((m) => utxolib.getNetworkName(m.network)).join(', ')));
nodes.push(this.node('network', matches.map((m) => getNetworkName(m.network)).join(', ')));

if (this.params.all || this.params.convert) {
nodes.push(this.convert(firstMatch.buffer));
Expand Down
46 changes: 46 additions & 0 deletions modules/utxo-bin/src/args/parseNetwork.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,59 @@
import * as utxolib from '@bitgo/utxo-lib';
import { getMainnet } from '@bitgo/utxo-lib';

export const bitcoinRegtest: utxolib.Network = {
...utxolib.networks.testnet,
bech32: 'bcrt',
};

export function getNetworkForName(name: string): utxolib.Network {
if (name === 'bitcoinRegtest') {
return bitcoinRegtest;
}
const network = utxolib.networks[name as utxolib.NetworkName];
if (!network) {
throw new Error(`invalid network ${name}`);
}
return network;
}

export function getNetworkName(network: utxolib.Network): string {
if (network === bitcoinRegtest) {
return 'bitcoinRegtest';
}
return utxolib.getNetworkName(network) as string;
}

const networkOrder = [
utxolib.networks.bitcoin,
utxolib.networks.bitcoincash,
utxolib.networks.bitcoingold,
utxolib.networks.bitcoinsv,
utxolib.networks.dash,
utxolib.networks.dogecoin,
utxolib.networks.ecash,
utxolib.networks.litecoin,
utxolib.networks.zcash,
];

function getNetworkOrderIndex(network: utxolib.Network): number {
if (network === bitcoinRegtest) {
network = utxolib.networks.bitcoin;
}
network = getMainnet(network);
const index = networkOrder.indexOf(network);
if (index === -1) {
throw new Error(`unknown network ${network}`);
}
return index;
}

export function getNetworkList(): utxolib.Network[] {
return [...utxolib.getNetworkList(), bitcoinRegtest].sort(
(a, b) => getNetworkOrderIndex(a) - getNetworkOrderIndex(b) || getNetworkName(a).localeCompare(getNetworkName(b))
);
}

export function getNetwork(argv: { network: string }): utxolib.Network {
return getNetworkForName(argv.network);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ
│ ├── type: pubkeyhash
│ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac
│ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di
│ ├── type: scripthash
│ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587
│ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW
│ ├── type: scripthash
│ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87
│ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78
│ ├── type: taproot
│ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b
│ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf
│ ├── type: taproot
│ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267
│ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut
│ ├── type: witnesspubkeyhash
│ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
│ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du
│ ├── type: witnessscripthash
│ ├── hex: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671
│ └── asm: OP_0 cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ
│ ├── type: pubkeyhash
│ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac
│ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di
│ ├── type: scripthash
│ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587
│ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW
│ ├── type: scripthash
│ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87
│ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78
│ ├── type: taproot
│ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b
│ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf
│ ├── type: taproot
│ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267
│ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut
│ ├── type: witnesspubkeyhash
│ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
│ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecs62l3du
│ ├── type: witnessscripthash
│ ├── hex: 0020cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671
│ └── asm: OP_0 cf346de5747021f929cf7770fb9a88969bc0ec27d171d90ecb8d9dae3636b671
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
@@ -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: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
Original file line number Diff line number Diff line change
@@ -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: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
@@ -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: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
address: bcrt1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9szu5eta
├─┬ bech32m
│ ├── prefix: bcrt
│ ├── 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: bitcoinRegtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
address: bcrt1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfnsgxq3kn
├─┬ base58
│ └── payload: 47d14b5ca8a3257d6d2adf22a28a0d67fa3988e407eb7ed0a04f8268e21a7ee3ccd8f6ab9c4ea649e450272d237483 (47 bytes)
├─┬ bech32m
│ ├── prefix: bcrt
│ ├── 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: bitcoinRegtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
address: bcrt1q62tshlryz9lrjlw9edaf4l5l3v3deg03anv5tz
├── format: default
├─┬ outputScript: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 (22 bytes)
│ └─┬ scriptPubKey: [22byte]
│ ├── type: witnesspubkeyhash
│ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
│ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
└── network: bitcoinRegtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
address: bcrt1qeu6xmet5wqslj2w0wac0hx5gj6dupmp869cajrkt3kw6ud3kkecshn4hcx
├─┬ bech32
│ ├── prefix: bcrt
│ ├── 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: bitcoinRegtest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: mziT9FmaG3XjV7tbaGYekqvBcVDvGnY3EZ
│ ├── type: pubkeyhash
│ ├── hex: 76a914d2970bfc64117e397dc5cb7a9afe9f8b22dca1f188ac
│ └── asm: OP_DUP OP_HASH160 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1 OP_EQUALVERIFY OP_CHECKSIG
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, ecashTest, litecoinTest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: 2MuQ6eusngGJY693CU1VUTADGWQtcBBk1di
│ ├── type: scripthash
│ ├── hex: a914179ddf848a574c6fdb30e6e564f2c8b8fc11354587
│ └── asm: OP_HASH160 179ddf848a574c6fdb30e6e564f2c8b8fc113545 OP_EQUAL
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ address: 2MwZgZu9ZT8uDqSkskSJSiDMeoFa4z4RtdW
│ ├── type: scripthash
│ ├── hex: a9142f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b87
│ └── asm: OP_HASH160 2f5e2d8f4ee34ccd1a4130975b9fe635ff65e02b OP_EQUAL
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinRegtest, bitcoinTestnet4, testnet, bitcoincashTestnet, bitcoingoldTestnet, bitcoinsvTestnet, dogecoinTest, ecashTest
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1p5xqvqger0zdpcq6s3jznfz352exhk356p9hml6c69matmggrve9s097l78
│ ├── type: taproot
│ ├── hex: 5120a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b
│ └── asm: OP_1 a180c02323789a1c03508c85348a34564d7b469a096fbfeb1a2efabda103664b
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ address: tb1p8gv9m64s539mycj4m29wu8thy5n3y6u36xs58wq3yezrmqygwfns9l2hrf
│ ├── type: taproot
│ ├── hex: 51203a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267
│ └── asm: OP_1 3a185deab0a44bb26255da8aee1d772527126b91d1a143b81126443d80887267
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ address: tb1q62tshlryz9lrjlw9edaf4l5l3v3deg03l64eut
│ ├── type: witnesspubkeyhash
│ ├── hex: 0014d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
│ └── asm: OP_0 d2970bfc64117e397dc5cb7a9afe9f8b22dca1f1
└── network: testnet, bitcoinPublicSignet, bitcoinTestnet4, bitcoinBitGoSignet
└── network: bitcoinBitGoSignet, bitcoinPublicSignet, bitcoinTestnet4, testnet
Loading

0 comments on commit 1bbb8b4

Please sign in to comment.