export class Network { constructor ( readonly name , readonly p2pkhPrefix , readonly p2shPrefix , readonly p2wpkhPrefix , readonly p2wshPrefix , readonly xpubVersion , readonly xprvVersion , readonly ypubVersion , readonly yprvVersion , readonly zpubVersion , readonly zprvVersion , readonly wifPrefix ) { } public isMainnet ( ) { return this . name === "mainnet" ; } public static get mainnet ( ) : Network { return mainnet ; } public static get testnet ( ) : Network { return testnet ; } public static get regtest ( ) : Network { return regtest ; } public static get all ( ) : Network [ ] { return all ; } } const mainnet = new Network ( "mainnet" , 0x00 , 0x05 , "bc" , "bc" , 0x0488b21e , 0x0488ade4 , 0x049d7cb2 , 0x049d7878 , 0x04b24746 , 0x04b2430c , 0x80 ) ; const testnet = new Network ( "testnet" , 0x6f , 0xc4 , "tb" , "tb" , 0x043587cf , 0x04358394 , 0x044a5262 , 0x044a4e28 , 0x045f1cf6 , 0x045f18bc , 0xef ) ; const regtest = new Network ( "regtest" , 0x6f , 0xc4 , "bcrt" , "bcrt" , 0x043587cf , 0x04358394 , 0x044a5262 , 0x044a4e28 , 0x045f1cf6 , 0x045f18bc , 0xef ) ; const all = [ mainnet , testnet , regtest ] ;