aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Spock <jonspock@protonmail.com>2017-08-21 17:13:44 -0700
committerJon Spock <jonspock@protonmail.com>2017-08-21 17:13:44 -0700
commit56ad960105f082e958154c24ad49d25c1db2f4be (patch)
treef92a4dd61378455cff948634b96346371e00a21b
parent47b64d3ee12f475fc939b9fbfc3f7ae2578ea2e1 (diff)
downloadBIP39-56ad960105f082e958154c24ad49d25c1db2f4be.tar.gz
BIP39-56ad960105f082e958154c24ad49d25c1db2f4be.tar.zst
BIP39-56ad960105f082e958154c24ad49d25c1db2f4be.zip
Add maza coin
-rw-r--r--bip39-standalone.html58
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js9
3 files changed, 78 insertions, 0 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index df3a460..c828bdc 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -22160,6 +22160,17 @@ bitcoinjs.bitcoin.networks.dash = {
22160 wif: 0xcc, 22160 wif: 0xcc,
22161}; 22161};
22162 22162
22163bitcoinjs.bitcoin.networks.maza = {
22164 messagePrefix: "unused",
22165 bip32: {
22166 public: 0x0488b21e,
22167 private: 0x0488ade4
22168 },
22169 pubKeyHash: 0x32,
22170 scriptHash: 0x09,
22171 wif: 0xe0,
22172};
22173
22163bitcoinjs.bitcoin.networks.dashtn = { 22174bitcoinjs.bitcoin.networks.dashtn = {
22164 messagePrefix: "unused", 22175 messagePrefix: "unused",
22165 bip32: { 22176 bip32: {
@@ -22302,6 +22313,28 @@ bitcoinjs.bitcoin.networks.myriadcoin = {
22302 scriptHash: 0x00, // TODO set this correctly 22313 scriptHash: 0x00, // TODO set this correctly
22303 wif: 0xb2, 22314 wif: 0xb2,
22304}; 22315};
22316
22317bitcoinjs.bitcoin.networks.pivx = {
22318 messagePrefix: "unused",
22319 bip32: {
22320 public: 0x022d2533,
22321 private: 0x0221312b
22322 },
22323 pubKeyHash: 0x1e,
22324 scriptHash: 0x0d,
22325 wif: 0xd4,
22326};
22327
22328bitcoinjs.bitcoin.networks.pivxtestnet = {
22329 messagePrefix: "unused",
22330 bip32: {
22331 public: 0x3a8061a0,
22332 private: 0x3a805837
22333 },
22334 pubKeyHash: 0x8b,
22335 scriptHash: 0x13,
22336 wif: 0xef,
22337};
22305</script> 22338</script>
22306 <script>(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethUtil = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ 22339 <script>(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethUtil = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
22307(function (global){ 22340(function (global){
@@ -47327,6 +47360,15 @@ window.Entropy = new (function() {
47327 }, 47360 },
47328 }, 47361 },
47329 { 47362 {
47363 name: "MAZA - Maza",
47364 bip49available: false,
47365 onSelect: function() {
47366 network = bitcoinjs.bitcoin.networks.maza;
47367 setHdCoin(13);
47368 },
47369 },
47370
47371 {
47330 name: "NMC - Namecoin", 47372 name: "NMC - Namecoin",
47331 bip49available: false, 47373 bip49available: false,
47332 onSelect: function() { 47374 onSelect: function() {
@@ -47335,6 +47377,22 @@ window.Entropy = new (function() {
47335 }, 47377 },
47336 }, 47378 },
47337 { 47379 {
47380 name: "PIVX - PIVX",
47381 bip49available: false,
47382 onSelect: function() {
47383 network = bitcoinjs.bitcoin.networks.pivx;
47384 setHdCoin(119);
47385 },
47386 },
47387 {
47388 name: "PIVX - PIVX Testnet",
47389 bip49available: false,
47390 onSelect: function() {
47391 network = bitcoinjs.bitcoin.networks.pivxtestnet;
47392 setHdCoin(1);
47393 },
47394 },
47395 {
47338 name: "PPC - Peercoin", 47396 name: "PPC - Peercoin",
47339 bip49available: false, 47397 bip49available: false,
47340 onSelect: function() { 47398 onSelect: function() {
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index c40c743..5bf1aec 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -53,6 +53,17 @@ bitcoinjs.bitcoin.networks.dash = {
53 wif: 0xcc, 53 wif: 0xcc,
54}; 54};
55 55
56bitcoinjs.bitcoin.networks.maza = {
57 messagePrefix: "unused",
58 bip32: {
59 public: 0x0488b21e,
60 private: 0x0488ade4
61 },
62 pubKeyHash: 0x32,
63 scriptHash: 0x09,
64 wif: 0xe0,
65};
66
56bitcoinjs.bitcoin.networks.dashtn = { 67bitcoinjs.bitcoin.networks.dashtn = {
57 messagePrefix: "unused", 68 messagePrefix: "unused",
58 bip32: { 69 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index 1f37d38..79f4e4c 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1263,6 +1263,15 @@
1263 }, 1263 },
1264 }, 1264 },
1265 { 1265 {
1266 name: "MAZA - Maza",
1267 bip49available: false,
1268 onSelect: function() {
1269 network = bitcoinjs.bitcoin.networks.maza;
1270 setHdCoin(13);
1271 },
1272 },
1273
1274 {
1266 name: "NMC - Namecoin", 1275 name: "NMC - Namecoin",
1267 bip49available: false, 1276 bip49available: false,
1268 onSelect: function() { 1277 onSelect: function() {