Merge pull request #29 from dangershony/master

Adding peercoin and namecoin
This commit is contained in:
iancoleman
2016-08-30 15:49:49 +10:00
committed by GitHub
3 changed files with 68 additions and 0 deletions

View File

@@ -13364,6 +13364,26 @@ bitcoin.networks.dash = {
wif: 0xcc,
};
bitcoin.networks.namecoin = {
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x34,
//scriptHash: 0x10,
wif: 0x80,
};
bitcoin.networks.peercoin = {
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x37,
//scriptHash: 0x10,
wif: 0xb7,
};
</script>
<script>// Select components from sjcl to suit the crypto operations bip39 requires.
@@ -15432,6 +15452,20 @@ var Mnemonic = function(language) {
DOM.bip44coin.val(5);
},
},
{
name: "Namecoin",
onSelect: function() {
network = bitcoin.networks.namecoin;
DOM.bip44coin.val(7);
},
},
{
name: "Peercoin",
onSelect: function() {
network = bitcoin.networks.peercoin;
DOM.bip44coin.val(6);
},
},
]
init();

View File

@@ -45,3 +45,23 @@ bitcoin.networks.dash = {
wif: 0xcc,
};
bitcoin.networks.namecoin = {
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x34,
//scriptHash: 0x10,
wif: 0x80,
};
bitcoin.networks.peercoin = {
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x37,
//scriptHash: 0x10,
wif: 0xb7,
};

View File

@@ -587,6 +587,20 @@
DOM.bip44coin.val(5);
},
},
{
name: "Namecoin",
onSelect: function() {
network = bitcoin.networks.namecoin;
DOM.bip44coin.val(7);
},
},
{
name: "Peercoin",
onSelect: function() {
network = bitcoin.networks.peercoin;
DOM.bip44coin.val(6);
},
},
]
init();