diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 8 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
3 files changed, 26 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index b4926db..80dcc89 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -781,6 +781,17 @@ bitcoinjs.bitcoin.networks.ixcoin = { | |||
781 | wif: 0x80, | 781 | wif: 0x80, |
782 | }; | 782 | }; |
783 | 783 | ||
784 | bitcoinjs.bitcoin.networks.kobocoin = { | ||
785 | messagePrefix: '\x18Kobocoin Signed Message:\n', | ||
786 | bip32: { | ||
787 | public: 0x0488B21E, | ||
788 | private: 0x0488ADE4, | ||
789 | }, | ||
790 | pubKeyHash: 0x23, | ||
791 | scriptHash: 0x1c, | ||
792 | wif: 0xa3, | ||
793 | }; | ||
794 | |||
784 | bitcoinjs.bitcoin.networks.landcoin = { | 795 | bitcoinjs.bitcoin.networks.landcoin = { |
785 | messagePrefix: '\x18Landcoin Signed Message:\n', | 796 | messagePrefix: '\x18Landcoin Signed Message:\n', |
786 | bip32: { | 797 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index e96f4a9..5433bc3 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1956,6 +1956,14 @@ | |||
1956 | }, | 1956 | }, |
1957 | }, | 1957 | }, |
1958 | { | 1958 | { |
1959 | name: "KOBO - Kobocoin", | ||
1960 | bip49available: false, | ||
1961 | onSelect: function() { | ||
1962 | network = bitcoinjs.bitcoin.networks.kobocoin; | ||
1963 | setHdCoin(196); | ||
1964 | }, | ||
1965 | }, | ||
1966 | { | ||
1959 | name: "LBC - Library Credits", | 1967 | name: "LBC - Library Credits", |
1960 | segwitAvailable: false, | 1968 | segwitAvailable: false, |
1961 | onSelect: function() { | 1969 | onSelect: function() { |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 034b50f..ac2151e 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -900,6 +900,13 @@ it('Allows selection of Ixcoin', function(done) { | |||
900 | }; | 900 | }; |
901 | testNetwork(done, params); | 901 | testNetwork(done, params); |
902 | }); | 902 | }); |
903 | it('Allows selection of Kobocoin', function(done) { | ||
904 | var params = { | ||
905 | selectText: "KOBO - Kobocoin", | ||
906 | firstAddress: "FTVoNJETXDAM8x7MnmdE8RwWndSr9PQWhy", | ||
907 | }; | ||
908 | testNetwork(done, params); | ||
909 | }); | ||
903 | it('Allows selection of Landcoin', function(done) { | 910 | it('Allows selection of Landcoin', function(done) { |
904 | var params = { | 911 | var params = { |
905 | selectText: "LDCN - Landcoin", | 912 | selectText: "LDCN - Landcoin", |