Compare commits

...

4 Commits
0.2.2 ... 0.2.3

Author SHA1 Message Date
Ian Coleman
88ea3e40ee Release v0.2.3 2017-08-23 09:45:09 +10:00
Ian Coleman
8a9f391376 Test for Maza network 2017-08-23 09:41:53 +10:00
iancoleman
e40acc3ab0 Merge pull request #92 from jonspock/master
Add maza coin, update PIVX in bip39-standalone.html
2017-08-23 09:30:43 +10:00
Jon Spock
56ad960105 Add maza coin 2017-08-21 17:13:44 -07:00
6 changed files with 76 additions and 2 deletions

View File

@@ -118,7 +118,7 @@
<div class="container">
<h1 class="text-center">Mnemonic Code Converter</h1>
<p class="version">v0.2.2</p>
<p class="version">v0.2.3</p>
<hr>
<div class="row">
<div class="col-md-12">
@@ -22160,6 +22160,17 @@ bitcoinjs.bitcoin.networks.dash = {
wif: 0xcc,
};
bitcoinjs.bitcoin.networks.maza = {
messagePrefix: "unused",
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x32,
scriptHash: 0x09,
wif: 0xe0,
};
bitcoinjs.bitcoin.networks.dashtn = {
messagePrefix: "unused",
bip32: {
@@ -47353,6 +47364,15 @@ window.Entropy = new (function() {
setHdCoin(2);
},
},
{
name: "MAZA - Maza",
bip49available: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.maza;
setHdCoin(13);
},
},
{
name: "NMC - Namecoin",
bip49available: false,

View File

@@ -1,3 +1,7 @@
# 0.2.3
* Add maza coin
# 0.2.2
* Improve showing feedback for pending calculations

View File

@@ -114,7 +114,7 @@
<div class="container">
<h1 class="text-center">Mnemonic Code Converter</h1>
<p class="version">v0.2.2</p>
<p class="version">v0.2.3</p>
<hr>
<div class="row">
<div class="col-md-12">

View File

@@ -53,6 +53,17 @@ bitcoinjs.bitcoin.networks.dash = {
wif: 0xcc,
};
bitcoinjs.bitcoin.networks.maza = {
messagePrefix: "unused",
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x32,
scriptHash: 0x09,
wif: 0xe0,
};
bitcoinjs.bitcoin.networks.dashtn = {
messagePrefix: "unused",
bip32: {

View File

@@ -1267,6 +1267,15 @@
setHdCoin(2);
},
},
{
name: "MAZA - Maza",
bip49available: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.maza;
setHdCoin(13);
},
},
{
name: "NMC - Namecoin",
bip49available: false,

View File

@@ -992,6 +992,36 @@ page.open(url, function(status) {
});
},
// Network can be set to maza
function() {
page.open(url, function(status) {
// set the phrase and coin
var expected = "MGW4Bmi2NEm4PxSjgeFwhP9vg18JHoRnfw";
page.evaluate(function() {
$(".phrase").val("abandon abandon ability");
$(".phrase").trigger("input");
$(".network option[selected]").removeAttr("selected");
$(".network option").filter(function() {
return $(this).html() == "MAZA - Maza";
}).prop("selected", true);
$(".network").trigger("change");
});
// check the address is generated correctly
waitForGenerate(function() {
var actual = page.evaluate(function() {
return $(".address:first").text();
});
if (actual != expected) {
console.log("Maza address is incorrect");
console.log("Expected: " + expected);
console.log("Actual: " + actual);
fail();
}
next();
});
});
},
// BIP39 seed is set from phrase
function() {
page.open(url, function(status) {