44 lines
960 B
JavaScript
44 lines
960 B
JavaScript
// https://en.bitcoin.it/wiki/List_of_address_prefixes
|
|
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
|
|
module.exports = {
|
|
bitcoin: {
|
|
magicPrefix: '\x18Bitcoin Signed Message:\n',
|
|
bip32: {
|
|
public: 0x0488b21e,
|
|
private: 0x0488ade4
|
|
},
|
|
pubKeyHash: 0x00,
|
|
scriptHash: 0x05,
|
|
wif: 0x80
|
|
},
|
|
dogecoin: {
|
|
magicPrefix: '\x19Dogecoin Signed Message:\n',
|
|
bip32: {
|
|
public: 0x02facafd,
|
|
private: 0x02fac398
|
|
},
|
|
pubKeyHash: 0x1e,
|
|
scriptHash: 0x16,
|
|
wif: 0x9e
|
|
},
|
|
litecoin: {
|
|
magicPrefix: '\x19Litecoin Signed Message:\n',
|
|
bip32: {
|
|
public: 0x019da462,
|
|
private: 0x019d9cfe
|
|
},
|
|
pubKeyHash: 0x30,
|
|
scriptHash: 0x05,
|
|
wif: 0xb0
|
|
},
|
|
testnet: {
|
|
magicPrefix: '\x18Bitcoin Signed Message:\n',
|
|
bip32: {
|
|
public: 0x043587cf,
|
|
private: 0x04358394
|
|
},
|
|
pubKeyHash: 0x6f,
|
|
scriptHash: 0xc4,
|
|
wif: 0xef
|
|
}
|
|
}
|