edge-currency-plugins 3.10.0 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -107,6 +107,16 @@ var _utils3 = require('./utils');
|
|
|
107
107
|
},
|
|
108
108
|
|
|
109
109
|
async parseUri(uri) {
|
|
110
|
+
// CashStamps and similar paper-wallet tools prefix a WIF private key with
|
|
111
|
+
// a "<code>-wif:" protohandler (e.g. "bch-wif:<WIF>"). Strip it so the
|
|
112
|
+
// bare WIF is handled by the private-key detection in parsePathname. The
|
|
113
|
+
// prefix is derived from the wallet's own currency code, so it can only
|
|
114
|
+
// ever match this coin.
|
|
115
|
+
const wifPrefix = `${currencyInfo.currencyCode.toLowerCase()}-wif:`
|
|
116
|
+
if (uri.toLowerCase().startsWith(wifPrefix)) {
|
|
117
|
+
uri = uri.slice(wifPrefix.length)
|
|
118
|
+
}
|
|
119
|
+
|
|
110
120
|
const isGateway = uri
|
|
111
121
|
.toLocaleLowerCase()
|
|
112
122
|
.startsWith(`${coinInfo.name}://`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"homepage": "https://edge.app/",
|
|
6
6
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|