namecoin and peercoin

This commit is contained in:
dangershony
2016-08-25 16:21:41 +01:00
parent 3821c0d345
commit 07ac4350ee
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();