diff --git a/bip39-standalone.html b/bip39-standalone.html
index 1fd175d..a7d6ce9 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -17896,6 +17896,16 @@ bitcoin.networks.dash = {
wif: 0xcc,
};
+bitcoin.networks.game = {
+ bip32: {
+ public: 0x0488b21e,
+ private: 0x0488ade4
+ },
+ pubKeyHash: 0x26,
+ scriptHash: 0x05,
+ wif: 0xa6,
+};
+
bitcoin.networks.namecoin = {
bip32: {
public: 0x0488b21e,
@@ -42780,6 +42790,13 @@ window.Entropy = new (function() {
DOM.bip44coin.val(60);
},
},
+ {
+ name: "GAME",
+ onSelect: function() {
+ network = bitcoin.networks.game;
+ DOM.bip44coin.val(101);
+ },
+ },
{
name: "Jumbucks",
onSelect: function() {
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index b02d79f..ed1bb09 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -45,6 +45,16 @@ bitcoin.networks.dash = {
wif: 0xcc,
};
+bitcoin.networks.game = {
+ bip32: {
+ public: 0x0488b21e,
+ private: 0x0488ade4
+ },
+ pubKeyHash: 0x26,
+ scriptHash: 0x05,
+ wif: 0xa6,
+};
+
bitcoin.networks.namecoin = {
bip32: {
public: 0x0488b21e,
diff --git a/src/js/index.js b/src/js/index.js
index 757d088..8f825f4 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1113,6 +1113,13 @@
DOM.bip44coin.val(60);
},
},
+ {
+ name: "GAME",
+ onSelect: function() {
+ network = bitcoin.networks.game;
+ DOM.bip44coin.val(101);
+ },
+ },
{
name: "Jumbucks",
onSelect: function() {
diff --git a/tests.js b/tests.js
index d55b8f4..49d42c3 100644
--- a/tests.js
+++ b/tests.js
@@ -571,6 +571,36 @@ page.open(url, function(status) {
});
},
+// Network can be set to game
+function() {
+page.open(url, function(status) {
+ // set the phrase and coin
+ var expected = "GSMY9bAp36cMR4zyT4uGVS7GFjpdXbao5Q";
+ page.evaluate(function() {
+ $(".phrase").val("abandon abandon ability");
+ $(".phrase").trigger("input");
+ $(".network option[selected]").removeAttr("selected");
+ $(".network option").filter(function() {
+ return $(this).html() == "GAME";
+ }).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("GAME address is incorrect");
+ console.log("Expected: " + expected);
+ console.log("Actual: " + actual);
+ fail();
+ }
+ next();
+ });
+});
+},
+
// Network can be set to namecoin
function() {
page.open(url, function(status) {