networks: drop dogecoin and dustThreshold

This commit is contained in:
Daniel Cousens 2016-10-21 12:29:42 +11:00 committed by JP Richardson
parent 078318094d
commit a956b8859f
2 changed files with 4 additions and 19 deletions

View file

@ -10,8 +10,7 @@ module.exports = {
},
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80,
dustThreshold: 546 // https://github.com/bitcoin/bitcoin/blob/v0.9.2/src/core.h#L151-L162
wif: 0x80
},
testnet: {
messagePrefix: '\x18Bitcoin Signed Message:\n',
@ -21,8 +20,7 @@ module.exports = {
},
pubKeyHash: 0x6f,
scriptHash: 0xc4,
wif: 0xef,
dustThreshold: 546
wif: 0xef
},
litecoin: {
messagePrefix: '\x19Litecoin Signed Message:\n',
@ -32,18 +30,6 @@ module.exports = {
},
pubKeyHash: 0x30,
scriptHash: 0x05,
wif: 0xb0,
dustThreshold: 0 // https://github.com/litecoin-project/litecoin/blob/v0.8.7.2/src/main.cpp#L360-L365
},
dogecoin: {
messagePrefix: '\x19Dogecoin Signed Message:\n',
bip32: {
public: 0x02facafd,
private: 0x02fac398
},
pubKeyHash: 0x1e,
scriptHash: 0x16,
wif: 0x9e,
dustThreshold: 0 // https://github.com/dogecoin/dogecoin/blob/v1.7.1/src/core.h#L155-L160
wif: 0xb0
}
}

View file

@ -29,8 +29,7 @@ var Network = typeforce.compile({
},
pubKeyHash: typeforce.UInt8,
scriptHash: typeforce.UInt8,
wif: typeforce.UInt8,
dustThreshold: Satoshi
wif: typeforce.UInt8
})
// extend typeforce types with ours