mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-17 07:52:16 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88ea3e40ee | ||
|
|
8a9f391376 | ||
|
|
e40acc3ab0 | ||
|
|
56ad960105 |
@@ -118,7 +118,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<h1 class="text-center">Mnemonic Code Converter</h1>
|
<h1 class="text-center">Mnemonic Code Converter</h1>
|
||||||
<p class="version">v0.2.2</p>
|
<p class="version">v0.2.3</p>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -22160,6 +22160,17 @@ bitcoinjs.bitcoin.networks.dash = {
|
|||||||
wif: 0xcc,
|
wif: 0xcc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.maza = {
|
||||||
|
messagePrefix: "unused",
|
||||||
|
bip32: {
|
||||||
|
public: 0x0488b21e,
|
||||||
|
private: 0x0488ade4
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x32,
|
||||||
|
scriptHash: 0x09,
|
||||||
|
wif: 0xe0,
|
||||||
|
};
|
||||||
|
|
||||||
bitcoinjs.bitcoin.networks.dashtn = {
|
bitcoinjs.bitcoin.networks.dashtn = {
|
||||||
messagePrefix: "unused",
|
messagePrefix: "unused",
|
||||||
bip32: {
|
bip32: {
|
||||||
@@ -47353,6 +47364,15 @@ window.Entropy = new (function() {
|
|||||||
setHdCoin(2);
|
setHdCoin(2);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "MAZA - Maza",
|
||||||
|
bip49available: false,
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.maza;
|
||||||
|
setHdCoin(13);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "NMC - Namecoin",
|
name: "NMC - Namecoin",
|
||||||
bip49available: false,
|
bip49available: false,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# 0.2.3
|
||||||
|
|
||||||
|
* Add maza coin
|
||||||
|
|
||||||
# 0.2.2
|
# 0.2.2
|
||||||
|
|
||||||
* Improve showing feedback for pending calculations
|
* Improve showing feedback for pending calculations
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<h1 class="text-center">Mnemonic Code Converter</h1>
|
<h1 class="text-center">Mnemonic Code Converter</h1>
|
||||||
<p class="version">v0.2.2</p>
|
<p class="version">v0.2.3</p>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|||||||
@@ -53,6 +53,17 @@ bitcoinjs.bitcoin.networks.dash = {
|
|||||||
wif: 0xcc,
|
wif: 0xcc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.maza = {
|
||||||
|
messagePrefix: "unused",
|
||||||
|
bip32: {
|
||||||
|
public: 0x0488b21e,
|
||||||
|
private: 0x0488ade4
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x32,
|
||||||
|
scriptHash: 0x09,
|
||||||
|
wif: 0xe0,
|
||||||
|
};
|
||||||
|
|
||||||
bitcoinjs.bitcoin.networks.dashtn = {
|
bitcoinjs.bitcoin.networks.dashtn = {
|
||||||
messagePrefix: "unused",
|
messagePrefix: "unused",
|
||||||
bip32: {
|
bip32: {
|
||||||
|
|||||||
@@ -1267,6 +1267,15 @@
|
|||||||
setHdCoin(2);
|
setHdCoin(2);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "MAZA - Maza",
|
||||||
|
bip49available: false,
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.maza;
|
||||||
|
setHdCoin(13);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "NMC - Namecoin",
|
name: "NMC - Namecoin",
|
||||||
bip49available: false,
|
bip49available: false,
|
||||||
|
|||||||
30
tests.js
30
tests.js
@@ -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
|
// BIP39 seed is set from phrase
|
||||||
function() {
|
function() {
|
||||||
page.open(url, function(status) {
|
page.open(url, function(status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user