]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - src/js/segwit-parameters.js
Adds Segwit support for Vertcoin.
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / segwit-parameters.js
CommitLineData
c49e8812
IC
1(function() {
2
3// p2wpkh
4
5bitcoinjs.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
206a2735
DS
18bitcoinjs.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
c49e8812
IC
31// p2wpkh in p2sh
32
33bitcoinjs.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
46bitcoinjs.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
59bitcoinjs.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
9a2ca392 71bitcoinjs.bitcoin.networks.fujicoin.p2wpkh = {
72 baseNetwork: "fujicoin",
73 messagePrefix: '\x19FujiCoin Signed Message:\n',
74 bech32: 'fc',
75 bip32: {
76 public: 0x04b24746,
77 private: 0x04b2430c
78 },
79 pubKeyHash: 0x24,
80 scriptHash: 0x10,
81 wif: 0xa4
82};
83
84bitcoinjs.bitcoin.networks.fujicoin.p2wpkhInP2sh = {
85 baseNetwork: "fujicoin",
86 messagePrefix: '\x19FujiCoin Signed Message:\n',
87 bech32: 'fc',
88 bip32: {
89 public: 0x049d7cb2,
90 private: 0x049d7878
91 },
92 pubKeyHash: 0x24,
93 scriptHash: 0x10,
94 wif: 0xa4
95};
96
f150f0c0
P
97bitcoinjs.bitcoin.networks.vertcoin.p2wpkh = {
98 baseNetwork: "vertcoin",
99 messagePrefix: '\x18Vertcoin Signed Message:\n',
100 bech32: 'vtc',
101 bip32: {
102 public: 0x0488b21e,
103 private: 0x0488ade4
104 },
105 pubKeyHash: 71,
106 scriptHash: 5,
107 wif: 0x80
108};
109
110bitcoinjs.bitcoin.networks.vertcoin.p2wpkhInP2sh = {
111 baseNetwork: "vertcoin",
112 messagePrefix: '\x18Vertcoin Signed Message:\n',
113 bip32: {
114 public: 0x0488b21e,
115 private: 0x0488ade4
116 },
117 pubKeyHash: 71,
118 scriptHash: 5,
119 wif: 0x80
120};
121
c49e8812 122})();