]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blob - src/js/segwit-parameters.js
Add network testnet.p2wpkh
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / segwit-parameters.js
1 (function() {
2
3 // p2wpkh
4
5 bitcoinjs.bitcoin.networks.bitcoin.p2wpkh = {
6 baseNetwork: "bitcoin",
7 messagePrefix: '\x18Bitcoin Signed Message:\n',
8 bech32: 'bc',
9 bip32: {
10 public: 0x04b24746,
11 private: 0x04b2430c
12 },
13 pubKeyHash: 0x00,
14 scriptHash: 0x05,
15 wif: 0x80
16 };
17
18 bitcoinjs.bitcoin.networks.testnet.p2wpkh = {
19 baseNetwork: "testnet",
20 messagePrefix: '\x18Bitcoin Signed Message:\n',
21 bech32: 'tb',
22 bip32: {
23 public: 0x045f1cf6,
24 private: 0x045f18bc
25 },
26 pubKeyHash: 0x6f,
27 scriptHash: 0xc4,
28 wif: 0xef
29 };
30
31 // p2wpkh in p2sh
32
33 bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = {
34 baseNetwork: "bitcoin",
35 messagePrefix: '\x18Bitcoin Signed Message:\n',
36 bech32: 'bc',
37 bip32: {
38 public: 0x049d7cb2,
39 private: 0x049d7878
40 },
41 pubKeyHash: 0x00,
42 scriptHash: 0x05,
43 wif: 0x80
44 };
45
46 bitcoinjs.bitcoin.networks.testnet.p2wpkhInP2sh = {
47 baseNetwork: "testnet",
48 messagePrefix: '\x18Bitcoin Signed Message:\n',
49 bech32: 'tb',
50 bip32: {
51 public: 0x044a5262,
52 private: 0x044a4e28
53 },
54 pubKeyHash: 0x6f,
55 scriptHash: 0xc4,
56 wif: 0xef
57 };
58
59 bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = {
60 baseNetwork: "litecoin",
61 messagePrefix: '\x19Litecoin Signed Message:\n',
62 bip32: {
63 public: 0x01b26ef6,
64 private: 0x01b26792
65 },
66 pubKeyHash: 0x30,
67 scriptHash: 0x32,
68 wif: 0xb0
69 };
70
71 })();