UNPKG

1.29 kBJavaScriptView Raw
1// https://en.bitcoin.it/wiki/List_of_address_prefixes
2// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
3
4module.exports = {
5 bitcoin: {
6 messagePrefix: '\x18Bitcoin Signed Message:\n',
7 bip32: {
8 public: 0x0488b21e,
9 private: 0x0488ade4
10 },
11 pubKeyHash: 0x00,
12 scriptHash: 0x05,
13 wif: 0x80,
14 dustThreshold: 546 // https://github.com/bitcoin/bitcoin/blob/v0.9.2/src/core.h#L151-L162
15 },
16 testnet: {
17 messagePrefix: '\x18Bitcoin Signed Message:\n',
18 bip32: {
19 public: 0x043587cf,
20 private: 0x04358394
21 },
22 pubKeyHash: 0x6f,
23 scriptHash: 0xc4,
24 wif: 0xef,
25 dustThreshold: 546
26 },
27 litecoin: {
28 messagePrefix: '\x19Litecoin Signed Message:\n',
29 bip32: {
30 public: 0x019da462,
31 private: 0x019d9cfe
32 },
33 pubKeyHash: 0x30,
34 scriptHash: 0x05,
35 wif: 0xb0,
36 dustThreshold: 0 // https://github.com/litecoin-project/litecoin/blob/v0.8.7.2/src/main.cpp#L360-L365
37 },
38 dogecoin: {
39 messagePrefix: '\x19Dogecoin Signed Message:\n',
40 bip32: {
41 public: 0x02facafd,
42 private: 0x02fac398
43 },
44 pubKeyHash: 0x1e,
45 scriptHash: 0x16,
46 wif: 0x9e,
47 dustThreshold: 0 // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/core.h#L155-L160
48 }
49}