[GridPlus] Updates Lattice-related modules to unlock functionality (#14467)
GridPlus has updated the EVM signing pathway in Lattice firmware, which has not yet been released. Additionally, requesters can now include ABI definitions with signing requests, which are used by Lattice firmware to decode calldata in place. All updates are backward compatable. Updates: * https://github.com/GridPlus/gridplus-sdk/compare/v1.1.6...v1.2.4 * https://github.com/GridPlus/eth-lattice-keyring/compare/v0.6.1...v0.7.3feature/default_network_editable
parent
c3071b273b
commit
32a82be2b6
@ -1,27 +0,0 @@ |
||||
patch from https://github.com/GridPlus/gridplus-sdk/pull/367
|
||||
diff --git a/node_modules/gridplus-sdk/dist/util.js b/node_modules/gridplus-sdk/dist/util.js
|
||||
index 08cc920..1f58806 100644
|
||||
--- a/node_modules/gridplus-sdk/dist/util.js
|
||||
+++ b/node_modules/gridplus-sdk/dist/util.js
|
||||
@@ -22,7 +22,7 @@ var elliptic_1 = __importDefault(require("elliptic"));
|
||||
var constants_1 = require("./constants");
|
||||
var COINS = constants_1.BIP_CONSTANTS.COINS, PURPOSES = constants_1.BIP_CONSTANTS.PURPOSES;
|
||||
var EC = elliptic_1.default.ec;
|
||||
-var ec = new EC('p256');
|
||||
+var ec;
|
||||
//--------------------------------------------------
|
||||
// LATTICE UTILS
|
||||
//--------------------------------------------------
|
||||
@@ -219,10 +219,12 @@ var parseDER = function (sigBuf) {
|
||||
};
|
||||
exports.parseDER = parseDER;
|
||||
var getP256KeyPair = function (priv) {
|
||||
+ if (ec === undefined) ec = new EC('p256');
|
||||
return ec.keyFromPrivate(priv, 'hex');
|
||||
};
|
||||
exports.getP256KeyPair = getP256KeyPair;
|
||||
var getP256KeyPairFromPub = function (pub) {
|
||||
+ if (ec === undefined) ec = new EC('p256');
|
||||
return ec.keyFromPublic(pub, 'hex');
|
||||
};
|
||||
exports.getP256KeyPairFromPub = getP256KeyPairFromPub;
|
Loading…
Reference in new issue