diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 25 | ||||
-rw-r--r-- | src/js/index.js | 8 |
2 files changed, 29 insertions, 4 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 17475b1..85c39d1 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1175,6 +1175,31 @@ libs.bitcoin.networks.revolutionvr = { | |||
1175 | wif: 0xc6, | 1175 | wif: 0xc6, |
1176 | }; | 1176 | }; |
1177 | 1177 | ||
1178 | libs.bitcoin.networks.rsk = { | ||
1179 | messagePrefix: '\x18RSK Signed Message:\n', | ||
1180 | bip32: { | ||
1181 | public: 0x0488b21e, | ||
1182 | private: 0x0488ade4 | ||
1183 | }, | ||
1184 | // TODO defaulting to Bitcoin value, check this | ||
1185 | pubKeyHash: 0x00, | ||
1186 | // TODO defaulting to Bitcoin value, check this | ||
1187 | scriptHash: 0x05, | ||
1188 | // TODO defaulting to Bitcoin value, check this | ||
1189 | wif: 0x80 | ||
1190 | }; | ||
1191 | |||
1192 | libs.bitcoin.networks.rsktestnet = { | ||
1193 | messagePrefix: '\x18RSK Testnet Signed Message:\n', | ||
1194 | bip32: { | ||
1195 | public: 0x043587cf, | ||
1196 | private: 0x04358394 | ||
1197 | }, | ||
1198 | pubKeyHash: 0x6f, | ||
1199 | scriptHash: 0xc4, | ||
1200 | wif: 0xef | ||
1201 | }; | ||
1202 | |||
1178 | libs.bitcoin.networks.rubycoin = { | 1203 | libs.bitcoin.networks.rubycoin = { |
1179 | messagePrefix: '\x18Rubycoin Signed Message:\n', | 1204 | messagePrefix: '\x18Rubycoin Signed Message:\n', |
1180 | bip32: { | 1205 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index c2d34a7..ad2b859 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -2973,16 +2973,16 @@ | |||
2973 | }, | 2973 | }, |
2974 | }, | 2974 | }, |
2975 | { | 2975 | { |
2976 | name: "RBTC - RSK", | 2976 | name: "R-BTC - RSK", |
2977 | onSelect: function() { | 2977 | onSelect: function() { |
2978 | network = libs.bitcoin.networks.rubycoin; | 2978 | network = libs.bitcoin.networks.rsk; |
2979 | setHdCoin(137); | 2979 | setHdCoin(137); |
2980 | }, | 2980 | }, |
2981 | }, | 2981 | }, |
2982 | { | 2982 | { |
2983 | name: "tRBTC - RSK Testnet", | 2983 | name: "tR-BTC - RSK Testnet", |
2984 | onSelect: function() { | 2984 | onSelect: function() { |
2985 | network = libs.bitcoin.networks.rubycoin; | 2985 | network = libs.bitcoin.networks.rsktestnet; |
2986 | setHdCoin(37310); | 2986 | setHdCoin(37310); |
2987 | }, | 2987 | }, |
2988 | }, | 2988 | }, |