bitcoinjs-lib/src/networks.js

39 lines
821 B
JavaScript
Raw Permalink Normal View History

2014-04-17 05:43:34 +10:00
// https://en.bitcoin.it/wiki/List_of_address_prefixes
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
2014-06-17 14:48:06 +08:00
2015-03-16 12:35:49 +11:00
module.exports = {
2014-04-17 05:43:34 +10:00
bitcoin: {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'bc',
2014-04-17 05:43:34 +10:00
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
2014-04-17 05:43:34 +10:00
},
2014-06-17 21:05:18 +10:00
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80
2014-04-17 05:43:34 +10:00
},
2018-11-15 15:32:03 +09:00
regtest: {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'bcrt',
bip32: {
public: 0x043587cf,
private: 0x04358394
},
pubKeyHash: 0x6f,
scriptHash: 0xc4,
wif: 0xef
},
2014-11-27 16:29:24 +11:00
testnet: {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bech32: 'tb',
bip32: {
2014-11-27 16:29:24 +11:00
public: 0x043587cf,
private: 0x04358394
},
2014-11-27 16:29:24 +11:00
pubKeyHash: 0x6f,
scriptHash: 0xc4,
wif: 0xef
}
2014-05-16 15:39:17 +10:00
}