]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blob - src/js/segwit-parameters.js
Add ONX (Onixcoin)
[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 // p2wpkh in p2sh
19
20 bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = {
21 baseNetwork: "bitcoin",
22 messagePrefix: '\x18Bitcoin Signed Message:\n',
23 bech32: 'bc',
24 bip32: {
25 public: 0x049d7cb2,
26 private: 0x049d7878
27 },
28 pubKeyHash: 0x00,
29 scriptHash: 0x05,
30 wif: 0x80
31 };
32
33 bitcoinjs.bitcoin.networks.testnet.p2wpkhInP2sh = {
34 baseNetwork: "testnet",
35 messagePrefix: '\x18Bitcoin Signed Message:\n',
36 bech32: 'tb',
37 bip32: {
38 public: 0x044a5262,
39 private: 0x044a4e28
40 },
41 pubKeyHash: 0x6f,
42 scriptHash: 0xc4,
43 wif: 0xef
44 };
45
46 bitcoinjs.bitcoin.networks.litecoin.p2wpkhInP2sh = {
47 baseNetwork: "litecoin",
48 messagePrefix: '\x19Litecoin Signed Message:\n',
49 bip32: {
50 public: 0x01b26ef6,
51 private: 0x01b26792
52 },
53 pubKeyHash: 0x30,
54 scriptHash: 0x32,
55 wif: 0xb0
56 };
57
58 })();