Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 42x 42x 42x 42x | export enum BitcoinNetworkVersion {
mainnetP2PKH = 0,
mainnetP2SH = 5,
testnetP2PKH = 111,
testnetP2SH = 196,
}
interface Network {
messagePrefix: string;
bech32: string;
bip32: {
public: number;
private: number;
};
pubKeyHash: number;
scriptHash: number;
wif: number;
}
const bitcoin: Network = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'bc',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80,
};
const testnet: Network = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'tb',
bip32: {
public: 0x043587cf,
private: 0x04358394,
},
pubKeyHash: 0x6f,
scriptHash: 0xc4,
wif: 0xef,
};
export const networks = {
bitcoin,
testnet,
};
|