Updated dist files
This commit is contained in:
parent
7d0b33dc42
commit
80cde06bcc
@ -3,6 +3,12 @@ Changelog
|
||||
|
||||
This change log is managed by `admin/cmds/update-versions` but may be manually updated.
|
||||
|
||||
ethers/v5.0.30 (2021-02-08 15:22)
|
||||
---------------------------------
|
||||
|
||||
- When in Status trigger personal_sign instead of eth_sign. ([#1285](https://github.com/ethers-io/ethers.js/issues/1285); [73e9434](https://github.com/ethers-io/ethers.js/commit/73e94349de94d2969ccb21c834119525ddfcb961))
|
||||
- Bump elliptic version for CVE-2020-28498. ([#1284](https://github.com/ethers-io/ethers.js/issues/1284); [796954f](https://github.com/ethers-io/ethers.js/commit/796954f8807b0c464c7baa8f7ff299e22685e192))
|
||||
|
||||
ethers/v5.0.29 (2021-02-03 14:36)
|
||||
---------------------------------
|
||||
|
||||
@ -229,4 +235,4 @@ ethers/v5.0.0 (2020-06-12 19:58)
|
||||
--------------------------------
|
||||
|
||||
- Preserve config canary string. ([7157816](https://github.com/ethers-io/ethers.js/commit/7157816fa53f660d750811b293e3b1d5a2f70bd4))
|
||||
- Updated docs. ([9e4c7e6](https://github.com/ethers-io/ethers.js/commit/9e4c7e609d9eeb5f2a11d6a90bfa9d32ee696431))
|
||||
- Updated docs. ([9e4c7e6](https://github.com/ethers-io/ethers.js/commit/9e4c7e609d9eeb5f2a11d6a90bfa9d32ee696431))
|
||||
|
218
package-lock.json
generated
218
package-lock.json
generated
@ -36,9 +36,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.12.14",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.14.tgz",
|
||||
"integrity": "sha512-xcfxDq3OrBnDsA/Z8eK5/2iPcLD8qbOaSSfOw4RA6jp4i7e6dEQ7+wTwxItEwzcXPQcsry5nZk96gmVPKletjQ==",
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz",
|
||||
"integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/types": {
|
||||
@ -76,9 +76,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/generator": {
|
||||
"version": "7.12.13",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.13.tgz",
|
||||
"integrity": "sha512-9qQ8Fgo8HaSvHEt6A5+BATP7XktD/AdAnObUeTRz5/e2y3kbrxZgz32qUJJsdmwUvBJzF4AeV21nGTNwv05Mpw==",
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.15.tgz",
|
||||
"integrity": "sha512-6F2xHxBiFXWNSGb7vyCUTBF8RCLY66rS0zEPcP8t/nQyXjha5EuK4z7H5o7fWG8B4M7y6mqVWq1J+1PuwRhecQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.12.13",
|
||||
@ -374,9 +374,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.12.14",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.14.tgz",
|
||||
"integrity": "sha512-xcfxDq3OrBnDsA/Z8eK5/2iPcLD8qbOaSSfOw4RA6jp4i7e6dEQ7+wTwxItEwzcXPQcsry5nZk96gmVPKletjQ==",
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz",
|
||||
"integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/types": {
|
||||
@ -410,9 +410,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/parser": {
|
||||
"version": "7.12.14",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.14.tgz",
|
||||
"integrity": "sha512-xcfxDq3OrBnDsA/Z8eK5/2iPcLD8qbOaSSfOw4RA6jp4i7e6dEQ7+wTwxItEwzcXPQcsry5nZk96gmVPKletjQ==",
|
||||
"version": "7.12.15",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.15.tgz",
|
||||
"integrity": "sha512-AQBOU2Z9kWwSZMd6lNjCX0GUgFonL1wAM1db8L8PMk9UDaGsRCArBkU4Sc+UCM3AE4hjbXx+h58Lb3QT4oRmrA==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/types": {
|
||||
@ -473,20 +473,20 @@
|
||||
"dev": true
|
||||
},
|
||||
"@ledgerhq/cryptoassets": {
|
||||
"version": "5.42.1",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/cryptoassets/-/cryptoassets-5.42.1.tgz",
|
||||
"integrity": "sha512-QhIOw8x8rzx5Ovm5sTYZvhaZ8OdSOrYRHWQxmXZvVu3H53w+ScaIaJTaUVBmo2gHVI+rydr70X2LPVKqpRToSA==",
|
||||
"version": "5.43.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/cryptoassets/-/cryptoassets-5.43.0.tgz",
|
||||
"integrity": "sha512-4WsL24r/F6ewgI5F4e4QGZfdrziGbgs/k9e8nPT/7JfjzNIPwIQCOJloYXZgptD4sGKA7DY9M9SJ7JVcZCusbQ==",
|
||||
"requires": {
|
||||
"invariant": "2"
|
||||
}
|
||||
},
|
||||
"@ledgerhq/devices": {
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/devices/-/devices-5.41.0.tgz",
|
||||
"integrity": "sha512-3rZzjJ8JEX2dBU+Nq8+FygxFoMZJ/XucjwNBXRaZQfqIFfYGywUH2RueQTY8d0JpzeSS5XYALAXzwLCRZmYrAg==",
|
||||
"version": "5.43.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/devices/-/devices-5.43.0.tgz",
|
||||
"integrity": "sha512-/M5ZLUBdBK7Vl2T4yNJbES3Z4w55LbPdxD9rcOBAKH/5V3V0obQv6MUasP9b7DSkwGSSLCOGZLohoT2NxK2D2A==",
|
||||
"requires": {
|
||||
"@ledgerhq/errors": "^5.41.0",
|
||||
"@ledgerhq/logs": "^5.41.0",
|
||||
"@ledgerhq/errors": "^5.43.0",
|
||||
"@ledgerhq/logs": "^5.43.0",
|
||||
"rxjs": "^6.6.3",
|
||||
"semver": "^7.3.4"
|
||||
},
|
||||
@ -502,9 +502,9 @@
|
||||
}
|
||||
},
|
||||
"@ledgerhq/errors": {
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/errors/-/errors-5.41.0.tgz",
|
||||
"integrity": "sha512-Di6Uq9l9c/W9V1jZAQjsVPbvSOSRipF+zXd/Z6SVKB1QxIHwXZu7KYSUnDLV6jqKZ9fxXoLjTYWq2Gl/EW87Kw=="
|
||||
"version": "5.43.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/errors/-/errors-5.43.0.tgz",
|
||||
"integrity": "sha512-ZjKlUQbIn/DHXAefW3Y1VyDrlVhVqqGnXzrqbOXuDbZ2OAIfSe/A1mrlCbWt98jP/8EJQBuCzBOtnmpXIL/nYg=="
|
||||
},
|
||||
"@ledgerhq/hw-app-eth": {
|
||||
"version": "5.27.2",
|
||||
@ -540,9 +540,9 @@
|
||||
}
|
||||
},
|
||||
"@ledgerhq/logs": {
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/logs/-/logs-5.41.0.tgz",
|
||||
"integrity": "sha512-pY3nIxOWISAreVTiKRDdKgjQvKWkzz3lov9LsJLyaTn0Q1PISHPjcuMpchueLI50BMA6v1M8ENzXgpqqw+KQDw=="
|
||||
"version": "5.43.0",
|
||||
"resolved": "https://registry.npmjs.org/@ledgerhq/logs/-/logs-5.43.0.tgz",
|
||||
"integrity": "sha512-QWfQjea3ekh9ZU+JeL2tJC9cTKLZ/JrcS0JGatLejpRYxQajvnHvHfh0dbHOKXEaXfCskEPTZ3f1kzuts742GA=="
|
||||
},
|
||||
"@npmcli/ci-detect": {
|
||||
"version": "1.3.0",
|
||||
@ -567,6 +567,16 @@
|
||||
"which": "^2.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"promise-retry": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-1.1.1.tgz",
|
||||
"integrity": "sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"err-code": "^1.0.0",
|
||||
"retry": "^0.10.0"
|
||||
}
|
||||
},
|
||||
"semver": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz",
|
||||
@ -588,15 +598,13 @@
|
||||
}
|
||||
},
|
||||
"@npmcli/installed-package-contents": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-1.0.5.tgz",
|
||||
"integrity": "sha512-aKIwguaaqb6ViwSOFytniGvLPb9SMCUm39TgM3SfUo7n0TxUMbwoXfpwyvQ4blm10lzbAwTsvjr7QZ85LvTi4A==",
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-1.0.7.tgz",
|
||||
"integrity": "sha512-9rufe0wnJusCQoLpV9ZPKIVP55itrM5BxOXs10DmdbRfgWtHy1LDyskbwRnBghuB0PrF7pNPOqREVtpz4HqzKw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"npm-bundled": "^1.1.1",
|
||||
"npm-normalize-package-bin": "^1.0.1",
|
||||
"read-package-json-fast": "^1.1.1",
|
||||
"readdir-scoped-modules": "^1.1.0"
|
||||
"npm-normalize-package-bin": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@npmcli/move-file": {
|
||||
@ -636,17 +644,17 @@
|
||||
}
|
||||
},
|
||||
"@npmcli/run-script": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.1.tgz",
|
||||
"integrity": "sha512-G8c86g9cQHyRINosIcpovzv0BkXQc3urhL1ORf3KTe4TS4UBsg2O4Z2feca/W3pfzdHEJzc83ETBW4aKbb3SaA==",
|
||||
"version": "1.8.2",
|
||||
"resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-1.8.2.tgz",
|
||||
"integrity": "sha512-iwKq152Q62zG2rz/zRqT/OLDKcF1nBGTGmFdHRkTV8JRte6bUt18vPG4vOr/uoECecrIuJe1SSyvuUF32yt5BA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@npmcli/node-gyp": "^1.0.0",
|
||||
"@npmcli/promise-spawn": "^1.3.0",
|
||||
"@npmcli/node-gyp": "^1.0.1",
|
||||
"@npmcli/promise-spawn": "^1.3.2",
|
||||
"infer-owner": "^1.0.4",
|
||||
"node-gyp": "^7.1.0",
|
||||
"puka": "^1.0.1",
|
||||
"read-package-json-fast": "^1.1.3"
|
||||
"read-package-json-fast": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"@rollup/plugin-commonjs": {
|
||||
@ -740,9 +748,9 @@
|
||||
"integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ=="
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "12.19.15",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.15.tgz",
|
||||
"integrity": "sha512-lowukE3GUI+VSYSu6VcBXl14d61Rp5hA1D+61r16qnwC0lYNSqdxcvRh0pswejorHfS+HgwBasM8jLXz0/aOsw==",
|
||||
"version": "12.19.16",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.16.tgz",
|
||||
"integrity": "sha512-7xHmXm/QJ7cbK2laF+YYD7gb5MggHIIQwqyjin3bpEGiSuvScMQ5JZZXPvRipi1MwckTQbJZROMns/JxdnIL1Q==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/resolve": {
|
||||
@ -826,9 +834,9 @@
|
||||
}
|
||||
},
|
||||
"agentkeepalive": {
|
||||
"version": "4.1.3",
|
||||
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.1.3.tgz",
|
||||
"integrity": "sha512-wn8fw19xKZwdGPO47jivonaHRTd+nGOMP1z11sgGeQzDy2xd5FG0R67dIMcKHDE2cJ5y+YXV30XVGUBPRSY7Hg==",
|
||||
"version": "4.1.4",
|
||||
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.1.4.tgz",
|
||||
"integrity": "sha512-+V/rGa3EuU74H6wR04plBb7Ks10FbtUQgRj/FQOG7uUIEuaINI+AiqJR1k6t3SVNs7o7ZjIdus6706qqzVq8jQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "^4.1.0",
|
||||
@ -959,12 +967,6 @@
|
||||
"integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==",
|
||||
"dev": true
|
||||
},
|
||||
"asap": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz",
|
||||
"integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=",
|
||||
"dev": true
|
||||
},
|
||||
"asn1": {
|
||||
"version": "0.2.4",
|
||||
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
|
||||
@ -1513,12 +1515,6 @@
|
||||
"ms": "2.0.0"
|
||||
}
|
||||
},
|
||||
"debuglog": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/debuglog/-/debuglog-1.0.1.tgz",
|
||||
"integrity": "sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=",
|
||||
"dev": true
|
||||
},
|
||||
"decamelize": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
|
||||
@ -1573,16 +1569,6 @@
|
||||
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=",
|
||||
"dev": true
|
||||
},
|
||||
"dezalgo": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.3.tgz",
|
||||
"integrity": "sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"asap": "^2.0.0",
|
||||
"wrappy": "1"
|
||||
}
|
||||
},
|
||||
"di": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz",
|
||||
@ -1630,17 +1616,17 @@
|
||||
"dev": true
|
||||
},
|
||||
"elliptic": {
|
||||
"version": "6.5.3",
|
||||
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",
|
||||
"integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",
|
||||
"version": "6.5.4",
|
||||
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
||||
"integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
|
||||
"requires": {
|
||||
"bn.js": "^4.4.0",
|
||||
"brorand": "^1.0.1",
|
||||
"bn.js": "^4.11.9",
|
||||
"brorand": "^1.1.0",
|
||||
"hash.js": "^1.0.0",
|
||||
"hmac-drbg": "^1.0.0",
|
||||
"inherits": "^2.0.1",
|
||||
"minimalistic-assert": "^1.0.0",
|
||||
"minimalistic-crypto-utils": "^1.0.0"
|
||||
"hmac-drbg": "^1.0.1",
|
||||
"inherits": "^2.0.4",
|
||||
"minimalistic-assert": "^1.0.1",
|
||||
"minimalistic-crypto-utils": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"emoji-regex": {
|
||||
@ -2055,9 +2041,9 @@
|
||||
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
|
||||
},
|
||||
"fsevents": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.1.tgz",
|
||||
"integrity": "sha512-YR47Eg4hChJGAB1O3yEAOkGO+rlzutoICGqGo9EZ4lKWokzZRSyIW1QmTzqjtw8MJdj9srP869CuWw/hyzSiBw==",
|
||||
"version": "2.3.2",
|
||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
|
||||
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
@ -2187,9 +2173,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"graceful-fs": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
|
||||
"integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw=="
|
||||
"version": "4.2.5",
|
||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.5.tgz",
|
||||
"integrity": "sha512-kBBSQbz2K0Nyn+31j/w36fUfxkBW9/gfwRWdUY1ULReH3iokVJgddZAFcD1D0xlgTmFxJCbUkUclAlc6/IDJkw=="
|
||||
},
|
||||
"growl": {
|
||||
"version": "1.10.5",
|
||||
@ -3202,6 +3188,18 @@
|
||||
"promise-retry": "^1.1.1",
|
||||
"socks-proxy-agent": "^5.0.0",
|
||||
"ssri": "^8.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"promise-retry": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-1.1.1.tgz",
|
||||
"integrity": "sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"err-code": "^1.0.0",
|
||||
"retry": "^0.10.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"media-typer": {
|
||||
@ -4017,15 +4015,15 @@
|
||||
}
|
||||
},
|
||||
"pacote": {
|
||||
"version": "11.2.4",
|
||||
"resolved": "https://registry.npmjs.org/pacote/-/pacote-11.2.4.tgz",
|
||||
"integrity": "sha512-GfTeVQGJ6WyBQbQD4t3ocHbyOmTQLmWjkCKSZPmKiGFKYKNUaM5U2gbLzUW8WG1XmS9yQFnsTFA0k3o1+q4klQ==",
|
||||
"version": "11.2.6",
|
||||
"resolved": "https://registry.npmjs.org/pacote/-/pacote-11.2.6.tgz",
|
||||
"integrity": "sha512-xCl++Hb3aBC7LaWMimbO4xUqZVsEbKDVc6KKDIIyAeBYrmMwY1yJC2nES/lsGd8sdQLUosgBxQyuVNncZ2Ru0w==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@npmcli/git": "^2.0.1",
|
||||
"@npmcli/installed-package-contents": "^1.0.5",
|
||||
"@npmcli/installed-package-contents": "^1.0.6",
|
||||
"@npmcli/promise-spawn": "^1.2.0",
|
||||
"@npmcli/run-script": "^1.3.0",
|
||||
"@npmcli/run-script": "^1.8.2",
|
||||
"cacache": "^15.0.5",
|
||||
"chownr": "^2.0.0",
|
||||
"fs-minipass": "^2.1.0",
|
||||
@ -4036,10 +4034,10 @@
|
||||
"npm-packlist": "^2.1.4",
|
||||
"npm-pick-manifest": "^6.0.0",
|
||||
"npm-registry-fetch": "^9.0.0",
|
||||
"promise-retry": "^1.1.1",
|
||||
"read-package-json-fast": "^1.1.3",
|
||||
"promise-retry": "^2.0.1",
|
||||
"read-package-json-fast": "^2.0.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"ssri": "^8.0.0",
|
||||
"ssri": "^8.0.1",
|
||||
"tar": "^6.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
@ -4154,13 +4152,27 @@
|
||||
"dev": true
|
||||
},
|
||||
"promise-retry": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-1.1.1.tgz",
|
||||
"integrity": "sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0=",
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",
|
||||
"integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"err-code": "^1.0.0",
|
||||
"retry": "^0.10.0"
|
||||
"err-code": "^2.0.2",
|
||||
"retry": "^0.12.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"err-code": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
|
||||
"integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
|
||||
"dev": true
|
||||
},
|
||||
"retry": {
|
||||
"version": "0.12.0",
|
||||
"resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
|
||||
"integrity": "sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"psl": {
|
||||
@ -4218,9 +4230,9 @@
|
||||
}
|
||||
},
|
||||
"read-package-json-fast": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-1.2.1.tgz",
|
||||
"integrity": "sha512-OFbpwnHcv74Oa5YN5WvbOBfLw6yPmPcwvyJJw/tj9cWFBF7juQUDLDSZiOjEcgzfweWeeROOmbPpNN1qm4hcRg==",
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-2.0.1.tgz",
|
||||
"integrity": "sha512-bp6z0tdgLy9KzdfENDIw/53HWAolOVoQTRWXv7PUiqAo3YvvoUVeLr7RWPWq+mu7KUOu9kiT4DvxhUgNUBsvug==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"json-parse-even-better-errors": "^2.3.0",
|
||||
@ -4242,18 +4254,6 @@
|
||||
"util-deprecate": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"readdir-scoped-modules": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz",
|
||||
"integrity": "sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debuglog": "^1.0.1",
|
||||
"dezalgo": "^1.0.0",
|
||||
"graceful-fs": "^4.1.2",
|
||||
"once": "^1.3.0"
|
||||
}
|
||||
},
|
||||
"readdirp": {
|
||||
"version": "3.5.0",
|
||||
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz",
|
||||
|
@ -93,7 +93,7 @@
|
||||
"aes-js": "3.0.0",
|
||||
"bech32": "1.1.4",
|
||||
"bn.js": "^4.4.0",
|
||||
"elliptic": "6.5.3",
|
||||
"elliptic": "6.5.4",
|
||||
"hash.js": "1.1.3",
|
||||
"js-sha3": "0.5.7",
|
||||
"scrypt-js": "3.0.1",
|
||||
|
251
packages/ethers/dist/ethers.esm.js
vendored
251
packages/ethers/dist/ethers.esm.js
vendored
@ -11437,15 +11437,15 @@ utils.getNAF = getNAF;
|
||||
function getJSF(k1, k2) {
|
||||
var jsf = [
|
||||
[],
|
||||
[]
|
||||
[],
|
||||
];
|
||||
|
||||
k1 = k1.clone();
|
||||
k2 = k2.clone();
|
||||
var d1 = 0;
|
||||
var d2 = 0;
|
||||
var m8;
|
||||
while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {
|
||||
|
||||
// First phase
|
||||
var m14 = (k1.andln(3) + d1) & 3;
|
||||
var m24 = (k2.andln(3) + d2) & 3;
|
||||
@ -11457,7 +11457,7 @@ function getJSF(k1, k2) {
|
||||
if ((m14 & 1) === 0) {
|
||||
u1 = 0;
|
||||
} else {
|
||||
var m8 = (k1.andln(7) + d1) & 7;
|
||||
m8 = (k1.andln(7) + d1) & 7;
|
||||
if ((m8 === 3 || m8 === 5) && m24 === 2)
|
||||
u1 = -m14;
|
||||
else
|
||||
@ -11469,7 +11469,7 @@ function getJSF(k1, k2) {
|
||||
if ((m24 & 1) === 0) {
|
||||
u2 = 0;
|
||||
} else {
|
||||
var m8 = (k2.andln(7) + d2) & 7;
|
||||
m8 = (k2.andln(7) + d2) & 7;
|
||||
if ((m8 === 3 || m8 === 5) && m14 === 2)
|
||||
u2 = -m24;
|
||||
else
|
||||
@ -11494,14 +11494,14 @@ function cachedProperty(obj, name, computer) {
|
||||
var key = '_' + name;
|
||||
obj.prototype[name] = function cachedProperty() {
|
||||
return this[key] !== undefined ? this[key] :
|
||||
this[key] = computer.call(this);
|
||||
this[key] = computer.call(this);
|
||||
};
|
||||
}
|
||||
utils.cachedProperty = cachedProperty;
|
||||
|
||||
function parseBytes(bytes) {
|
||||
return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :
|
||||
bytes;
|
||||
bytes;
|
||||
}
|
||||
utils.parseBytes = parseBytes;
|
||||
|
||||
@ -11572,18 +11572,20 @@ BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
|
||||
|
||||
// Translate into more windowed form
|
||||
var repr = [];
|
||||
for (var j = 0; j < naf.length; j += doubles.step) {
|
||||
var nafW = 0;
|
||||
for (var k = j + doubles.step - 1; k >= j; k--)
|
||||
nafW = (nafW << 1) + naf[k];
|
||||
var j;
|
||||
var nafW;
|
||||
for (j = 0; j < naf.length; j += doubles.step) {
|
||||
nafW = 0;
|
||||
for (var l = j + doubles.step - 1; l >= j; l--)
|
||||
nafW = (nafW << 1) + naf[l];
|
||||
repr.push(nafW);
|
||||
}
|
||||
|
||||
var a = this.jpoint(null, null, null);
|
||||
var b = this.jpoint(null, null, null);
|
||||
for (var i = I; i > 0; i--) {
|
||||
for (var j = 0; j < repr.length; j++) {
|
||||
var nafW = repr[j];
|
||||
for (j = 0; j < repr.length; j++) {
|
||||
nafW = repr[j];
|
||||
if (nafW === i)
|
||||
b = b.mixedAdd(doubles.points[j]);
|
||||
else if (nafW === -i)
|
||||
@ -11609,11 +11611,11 @@ BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
|
||||
var acc = this.jpoint(null, null, null);
|
||||
for (var i = naf.length - 1; i >= 0; i--) {
|
||||
// Count zeroes
|
||||
for (var k = 0; i >= 0 && naf[i] === 0; i--)
|
||||
k++;
|
||||
for (var l = 0; i >= 0 && naf[i] === 0; i--)
|
||||
l++;
|
||||
if (i >= 0)
|
||||
k++;
|
||||
acc = acc.dblp(k);
|
||||
l++;
|
||||
acc = acc.dblp(l);
|
||||
|
||||
if (i < 0)
|
||||
break;
|
||||
@ -11637,25 +11639,28 @@ BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
|
||||
};
|
||||
|
||||
BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
points,
|
||||
coeffs,
|
||||
len,
|
||||
jacobianResult) {
|
||||
points,
|
||||
coeffs,
|
||||
len,
|
||||
jacobianResult) {
|
||||
var wndWidth = this._wnafT1;
|
||||
var wnd = this._wnafT2;
|
||||
var naf = this._wnafT3;
|
||||
|
||||
// Fill all arrays
|
||||
var max = 0;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var p = points[i];
|
||||
var i;
|
||||
var j;
|
||||
var p;
|
||||
for (i = 0; i < len; i++) {
|
||||
p = points[i];
|
||||
var nafPoints = p._getNAFPoints(defW);
|
||||
wndWidth[i] = nafPoints.wnd;
|
||||
wnd[i] = nafPoints.points;
|
||||
}
|
||||
|
||||
// Comb small window NAFs
|
||||
for (var i = len - 1; i >= 1; i -= 2) {
|
||||
for (i = len - 1; i >= 1; i -= 2) {
|
||||
var a = i - 1;
|
||||
var b = i;
|
||||
if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
|
||||
@ -11670,7 +11675,7 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
points[a], /* 1 */
|
||||
null, /* 3 */
|
||||
null, /* 5 */
|
||||
points[b] /* 7 */
|
||||
points[b], /* 7 */
|
||||
];
|
||||
|
||||
// Try to avoid Projective points, if possible
|
||||
@ -11694,14 +11699,14 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
7, /* 0 1 */
|
||||
5, /* 1 -1 */
|
||||
1, /* 1 0 */
|
||||
3 /* 1 1 */
|
||||
3, /* 1 1 */
|
||||
];
|
||||
|
||||
var jsf = getJSF(coeffs[a], coeffs[b]);
|
||||
max = Math.max(jsf[0].length, max);
|
||||
naf[a] = new Array(max);
|
||||
naf[b] = new Array(max);
|
||||
for (var j = 0; j < max; j++) {
|
||||
for (j = 0; j < max; j++) {
|
||||
var ja = jsf[0][j] | 0;
|
||||
var jb = jsf[1][j] | 0;
|
||||
|
||||
@ -11713,12 +11718,12 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
|
||||
var acc = this.jpoint(null, null, null);
|
||||
var tmp = this._wnafT4;
|
||||
for (var i = max; i >= 0; i--) {
|
||||
for (i = max; i >= 0; i--) {
|
||||
var k = 0;
|
||||
|
||||
while (i >= 0) {
|
||||
var zero = true;
|
||||
for (var j = 0; j < len; j++) {
|
||||
for (j = 0; j < len; j++) {
|
||||
tmp[j] = naf[j][i] | 0;
|
||||
if (tmp[j] !== 0)
|
||||
zero = false;
|
||||
@ -11734,9 +11739,9 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
if (i < 0)
|
||||
break;
|
||||
|
||||
for (var j = 0; j < len; j++) {
|
||||
for (j = 0; j < len; j++) {
|
||||
var z = tmp[j];
|
||||
var p;
|
||||
p;
|
||||
if (z === 0)
|
||||
continue;
|
||||
else if (z > 0)
|
||||
@ -11751,7 +11756,7 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
}
|
||||
}
|
||||
// Zeroify references
|
||||
for (var i = 0; i < len; i++)
|
||||
for (i = 0; i < len; i++)
|
||||
wnd[i] = null;
|
||||
|
||||
if (jacobianResult)
|
||||
@ -11789,7 +11794,7 @@ BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
|
||||
assert$1$1(bytes[bytes.length - 1] % 2 === 1);
|
||||
|
||||
var res = this.point(bytes.slice(1, 1 + len),
|
||||
bytes.slice(1 + len, 1 + 2 * len));
|
||||
bytes.slice(1 + len, 1 + 2 * len));
|
||||
|
||||
return res;
|
||||
} else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&
|
||||
@ -11810,7 +11815,7 @@ BasePoint.prototype._encode = function _encode(compact) {
|
||||
if (compact)
|
||||
return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);
|
||||
|
||||
return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ;
|
||||
return [ 0x04 ].concat(x, this.getY().toArray('be', len));
|
||||
};
|
||||
|
||||
BasePoint.prototype.encode = function encode(enc, compact) {
|
||||
@ -11824,7 +11829,7 @@ BasePoint.prototype.precompute = function precompute(power) {
|
||||
var precomputed = {
|
||||
doubles: null,
|
||||
naf: null,
|
||||
beta: null
|
||||
beta: null,
|
||||
};
|
||||
precomputed.naf = this._getNAFPoints(8);
|
||||
precomputed.doubles = this._getDoubles(4, power);
|
||||
@ -11858,7 +11863,7 @@ BasePoint.prototype._getDoubles = function _getDoubles(step, power) {
|
||||
}
|
||||
return {
|
||||
step: step,
|
||||
points: doubles
|
||||
points: doubles,
|
||||
};
|
||||
};
|
||||
|
||||
@ -11873,7 +11878,7 @@ BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {
|
||||
res[i] = res[i - 1].add(dbl);
|
||||
return {
|
||||
wnd: wnd,
|
||||
points: res
|
||||
points: res,
|
||||
};
|
||||
};
|
||||
|
||||
@ -11980,7 +11985,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
|
||||
basis = conf.basis.map(function(vec) {
|
||||
return {
|
||||
a: new bn(vec.a, 16),
|
||||
b: new bn(vec.b, 16)
|
||||
b: new bn(vec.b, 16),
|
||||
};
|
||||
});
|
||||
} else {
|
||||
@ -11990,7 +11995,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
|
||||
return {
|
||||
beta: beta,
|
||||
lambda: lambda,
|
||||
basis: basis
|
||||
basis: basis,
|
||||
};
|
||||
};
|
||||
|
||||
@ -12081,7 +12086,7 @@ ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
|
||||
|
||||
return [
|
||||
{ a: a1, b: b1 },
|
||||
{ a: a2, b: b2 }
|
||||
{ a: a2, b: b2 },
|
||||
];
|
||||
};
|
||||
|
||||
@ -12137,36 +12142,36 @@ ShortCurve.prototype.validate = function validate(point) {
|
||||
|
||||
ShortCurve.prototype._endoWnafMulAdd =
|
||||
function _endoWnafMulAdd(points, coeffs, jacobianResult) {
|
||||
var npoints = this._endoWnafT1;
|
||||
var ncoeffs = this._endoWnafT2;
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
var split = this._endoSplit(coeffs[i]);
|
||||
var p = points[i];
|
||||
var beta = p._getBeta();
|
||||
var npoints = this._endoWnafT1;
|
||||
var ncoeffs = this._endoWnafT2;
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
var split = this._endoSplit(coeffs[i]);
|
||||
var p = points[i];
|
||||
var beta = p._getBeta();
|
||||
|
||||
if (split.k1.negative) {
|
||||
split.k1.ineg();
|
||||
p = p.neg(true);
|
||||
}
|
||||
if (split.k2.negative) {
|
||||
split.k2.ineg();
|
||||
beta = beta.neg(true);
|
||||
}
|
||||
if (split.k1.negative) {
|
||||
split.k1.ineg();
|
||||
p = p.neg(true);
|
||||
}
|
||||
if (split.k2.negative) {
|
||||
split.k2.ineg();
|
||||
beta = beta.neg(true);
|
||||
}
|
||||
|
||||
npoints[i * 2] = p;
|
||||
npoints[i * 2 + 1] = beta;
|
||||
ncoeffs[i * 2] = split.k1;
|
||||
ncoeffs[i * 2 + 1] = split.k2;
|
||||
}
|
||||
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
||||
npoints[i * 2] = p;
|
||||
npoints[i * 2 + 1] = beta;
|
||||
ncoeffs[i * 2] = split.k1;
|
||||
ncoeffs[i * 2 + 1] = split.k2;
|
||||
}
|
||||
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
||||
|
||||
// Clean-up references to points and coefficients
|
||||
for (var j = 0; j < i * 2; j++) {
|
||||
npoints[j] = null;
|
||||
ncoeffs[j] = null;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
// Clean-up references to points and coefficients
|
||||
for (var j = 0; j < i * 2; j++) {
|
||||
npoints[j] = null;
|
||||
ncoeffs[j] = null;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
function Point(curve, x, y, isRed) {
|
||||
base.BasePoint.call(this, curve, 'affine');
|
||||
@ -12218,12 +12223,12 @@ Point.prototype._getBeta = function _getBeta() {
|
||||
beta: null,
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: pre.naf.points.map(endoMul)
|
||||
points: pre.naf.points.map(endoMul),
|
||||
},
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: pre.doubles.points.map(endoMul)
|
||||
}
|
||||
points: pre.doubles.points.map(endoMul),
|
||||
},
|
||||
};
|
||||
}
|
||||
return beta;
|
||||
@ -12236,12 +12241,12 @@ Point.prototype.toJSON = function toJSON() {
|
||||
return [ this.x, this.y, this.precomputed && {
|
||||
doubles: this.precomputed.doubles && {
|
||||
step: this.precomputed.doubles.step,
|
||||
points: this.precomputed.doubles.points.slice(1)
|
||||
points: this.precomputed.doubles.points.slice(1),
|
||||
},
|
||||
naf: this.precomputed.naf && {
|
||||
wnd: this.precomputed.naf.wnd,
|
||||
points: this.precomputed.naf.points.slice(1)
|
||||
}
|
||||
points: this.precomputed.naf.points.slice(1),
|
||||
},
|
||||
} ];
|
||||
};
|
||||
|
||||
@ -12261,12 +12266,12 @@ Point.fromJSON = function fromJSON(curve, obj, red) {
|
||||
beta: null,
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: [ res ].concat(pre.doubles.points.map(obj2point))
|
||||
points: [ res ].concat(pre.doubles.points.map(obj2point)),
|
||||
},
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: [ res ].concat(pre.naf.points.map(obj2point))
|
||||
}
|
||||
points: [ res ].concat(pre.naf.points.map(obj2point)),
|
||||
},
|
||||
};
|
||||
return res;
|
||||
};
|
||||
@ -12388,12 +12393,12 @@ Point.prototype.neg = function neg(_precompute) {
|
||||
res.precomputed = {
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: pre.naf.points.map(negate)
|
||||
points: pre.naf.points.map(negate),
|
||||
},
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: pre.doubles.points.map(negate)
|
||||
}
|
||||
points: pre.doubles.points.map(negate),
|
||||
},
|
||||
};
|
||||
}
|
||||
return res;
|
||||
@ -12530,9 +12535,10 @@ JPoint.prototype.dblp = function dblp(pow) {
|
||||
if (!pow)
|
||||
return this.dbl();
|
||||
|
||||
var i;
|
||||
if (this.curve.zeroA || this.curve.threeA) {
|
||||
var r = this;
|
||||
for (var i = 0; i < pow; i++)
|
||||
for (i = 0; i < pow; i++)
|
||||
r = r.dbl();
|
||||
return r;
|
||||
}
|
||||
@ -12549,7 +12555,7 @@ JPoint.prototype.dblp = function dblp(pow) {
|
||||
|
||||
// Reuse results
|
||||
var jyd = jy.redAdd(jy);
|
||||
for (var i = 0; i < pow; i++) {
|
||||
for (i = 0; i < pow; i++) {
|
||||
var jx2 = jx.redSqr();
|
||||
var jyd2 = jyd.redSqr();
|
||||
var jyd4 = jyd2.redSqr();
|
||||
@ -12903,10 +12909,10 @@ function defineCurve(name, options) {
|
||||
Object.defineProperty(curves, name, {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
value: curve
|
||||
value: curve,
|
||||
});
|
||||
return curve;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@ -12921,8 +12927,8 @@ defineCurve('p192', {
|
||||
gRed: false,
|
||||
g: [
|
||||
'188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',
|
||||
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811'
|
||||
]
|
||||
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p224', {
|
||||
@ -12936,8 +12942,8 @@ defineCurve('p224', {
|
||||
gRed: false,
|
||||
g: [
|
||||
'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',
|
||||
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34'
|
||||
]
|
||||
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p256', {
|
||||
@ -12951,8 +12957,8 @@ defineCurve('p256', {
|
||||
gRed: false,
|
||||
g: [
|
||||
'6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',
|
||||
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5'
|
||||
]
|
||||
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p384', {
|
||||
@ -12972,8 +12978,8 @@ defineCurve('p384', {
|
||||
'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +
|
||||
'5502f25d bf55296c 3a545e38 72760ab7',
|
||||
'3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +
|
||||
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f'
|
||||
]
|
||||
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p521', {
|
||||
@ -12999,8 +13005,8 @@ defineCurve('p521', {
|
||||
'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',
|
||||
'00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +
|
||||
'579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +
|
||||
'3fad0761 353c7086 a272c240 88be9476 9fd16650'
|
||||
]
|
||||
'3fad0761 353c7086 a272c240 88be9476 9fd16650',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('curve25519', {
|
||||
@ -13013,8 +13019,8 @@ defineCurve('curve25519', {
|
||||
hash: hash_1.sha256,
|
||||
gRed: false,
|
||||
g: [
|
||||
'9'
|
||||
]
|
||||
'9',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('ed25519', {
|
||||
@ -13032,8 +13038,8 @@ defineCurve('ed25519', {
|
||||
'216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',
|
||||
|
||||
// 4/5
|
||||
'6666666666666666666666666666666666666666666666666666666666666658'
|
||||
]
|
||||
'6666666666666666666666666666666666666666666666666666666666666658',
|
||||
],
|
||||
});
|
||||
|
||||
var pre;
|
||||
@ -13059,20 +13065,20 @@ defineCurve('secp256k1', {
|
||||
basis: [
|
||||
{
|
||||
a: '3086d221a7d46bcde86c90e49284eb15',
|
||||
b: '-e4437ed6010e88286f547fa90abfe4c3'
|
||||
b: '-e4437ed6010e88286f547fa90abfe4c3',
|
||||
},
|
||||
{
|
||||
a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
|
||||
b: '3086d221a7d46bcde86c90e49284eb15'
|
||||
}
|
||||
b: '3086d221a7d46bcde86c90e49284eb15',
|
||||
},
|
||||
],
|
||||
|
||||
gRed: false,
|
||||
g: [
|
||||
'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
|
||||
'483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
|
||||
pre
|
||||
]
|
||||
pre,
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
@ -13215,7 +13221,7 @@ KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
|
||||
|
||||
return new KeyPair(ec, {
|
||||
pub: pub,
|
||||
pubEnc: enc
|
||||
pubEnc: enc,
|
||||
});
|
||||
};
|
||||
|
||||
@ -13225,7 +13231,7 @@ KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
|
||||
|
||||
return new KeyPair(ec, {
|
||||
priv: priv,
|
||||
privEnc: enc
|
||||
privEnc: enc,
|
||||
});
|
||||
};
|
||||
|
||||
@ -13292,6 +13298,9 @@ KeyPair.prototype._importPublic = function _importPublic(key, enc) {
|
||||
|
||||
// ECDH
|
||||
KeyPair.prototype.derive = function derive(pub) {
|
||||
if(!pub.validate()) {
|
||||
assert$3(pub.validate(), 'public point not validated');
|
||||
}
|
||||
return pub.mul(this.priv).getX();
|
||||
};
|
||||
|
||||
@ -13494,7 +13503,8 @@ function EC(options) {
|
||||
|
||||
// Shortcut `elliptic.ec(curve-name)`
|
||||
if (typeof options === 'string') {
|
||||
assert$5(curves_1.hasOwnProperty(options), 'Unknown curve ' + options);
|
||||
assert$5(Object.prototype.hasOwnProperty.call(curves_1, options),
|
||||
'Unknown curve ' + options);
|
||||
|
||||
options = curves_1[options];
|
||||
}
|
||||
@ -13540,22 +13550,22 @@ EC.prototype.genKeyPair = function genKeyPair(options) {
|
||||
persEnc: options.persEnc || 'utf8',
|
||||
entropy: options.entropy || rand(this.hash.hmacStrength),
|
||||
entropyEnc: options.entropy && options.entropyEnc || 'utf8',
|
||||
nonce: this.n.toArray()
|
||||
nonce: this.n.toArray(),
|
||||
});
|
||||
|
||||
var bytes = this.n.byteLength();
|
||||
var ns2 = this.n.sub(new bn(2));
|
||||
do {
|
||||
for (;;) {
|
||||
var priv = new bn(drbg.generate(bytes));
|
||||
if (priv.cmp(ns2) > 0)
|
||||
continue;
|
||||
|
||||
priv.iaddn(1);
|
||||
return this.keyFromPrivate(priv);
|
||||
} while (true);
|
||||
}
|
||||
};
|
||||
|
||||
EC.prototype._truncateToN = function truncateToN(msg, truncOnly) {
|
||||
EC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {
|
||||
var delta = msg.byteLength() * 8 - this.n.bitLength();
|
||||
if (delta > 0)
|
||||
msg = msg.ushrn(delta);
|
||||
@ -13589,16 +13599,16 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
|
||||
entropy: bkey,
|
||||
nonce: nonce,
|
||||
pers: options.pers,
|
||||
persEnc: options.persEnc || 'utf8'
|
||||
persEnc: options.persEnc || 'utf8',
|
||||
});
|
||||
|
||||
// Number of bytes to generate
|
||||
var ns1 = this.n.sub(new bn(1));
|
||||
|
||||
for (var iter = 0; true; iter++) {
|
||||
for (var iter = 0; ; iter++) {
|
||||
var k = options.k ?
|
||||
options.k(iter) :
|
||||
new bn(drbg.generate(this.n.byteLength()));
|
||||
options.k(iter) :
|
||||
new bn(drbg.generate(this.n.byteLength()));
|
||||
k = this._truncateToN(k, true);
|
||||
if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
|
||||
continue;
|
||||
@ -13647,9 +13657,10 @@ EC.prototype.verify = function verify(msg, signature$1, key, enc) {
|
||||
var sinv = s.invm(this.n);
|
||||
var u1 = sinv.mul(msg).umod(this.n);
|
||||
var u2 = sinv.mul(r).umod(this.n);
|
||||
var p;
|
||||
|
||||
if (!this.curve._maxwellTrick) {
|
||||
var p = this.g.mulAdd(u1, key.getPublic(), u2);
|
||||
p = this.g.mulAdd(u1, key.getPublic(), u2);
|
||||
if (p.isInfinity())
|
||||
return false;
|
||||
|
||||
@ -13659,7 +13670,7 @@ EC.prototype.verify = function verify(msg, signature$1, key, enc) {
|
||||
// NOTE: Greg Maxwell's trick, inspired by:
|
||||
// https://git.io/vad3K
|
||||
|
||||
var p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
||||
p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
||||
if (p.isInfinity())
|
||||
return false;
|
||||
|
||||
@ -13723,7 +13734,7 @@ var elliptic_1 = createCommonjsModule$1(function (module, exports) {
|
||||
|
||||
var elliptic = exports;
|
||||
|
||||
elliptic.version = /*RicMoo:ethers*/{ version: "6.5.3" }.version;
|
||||
elliptic.version = /*RicMoo:ethers*/{ version: "6.5.4" }.version;
|
||||
elliptic.utils = utils_1$1;
|
||||
elliptic.rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });
|
||||
elliptic.curve = curve_1;
|
||||
@ -13736,7 +13747,7 @@ elliptic.eddsa = /*RicMoo:ethers:require(./elliptic/eddsa)*/(null);
|
||||
|
||||
var EC$1 = elliptic_1.ec;
|
||||
|
||||
const version$d = "signing-key/5.0.9";
|
||||
const version$d = "signing-key/5.0.10";
|
||||
|
||||
"use strict";
|
||||
const logger$i = new Logger(version$d);
|
||||
@ -17630,7 +17641,7 @@ var bech32 = {
|
||||
fromWords: fromWords
|
||||
};
|
||||
|
||||
const version$m = "providers/5.0.21";
|
||||
const version$m = "providers/5.0.22";
|
||||
|
||||
"use strict";
|
||||
const logger$s = new Logger(version$m);
|
||||
@ -21613,7 +21624,7 @@ let _nextId = 1;
|
||||
function buildWeb3LegacyFetcher(provider, sendFunc) {
|
||||
return function (method, params) {
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
@ -21646,7 +21657,7 @@ function buildEip1193Fetcher(provider) {
|
||||
params = [];
|
||||
}
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
@ -22040,7 +22051,7 @@ var utils$1 = /*#__PURE__*/Object.freeze({
|
||||
Indexed: Indexed
|
||||
});
|
||||
|
||||
const version$o = "ethers/5.0.29";
|
||||
const version$o = "ethers/5.0.30";
|
||||
|
||||
"use strict";
|
||||
const logger$H = new Logger(version$o);
|
||||
|
2
packages/ethers/dist/ethers.esm.js.map
vendored
2
packages/ethers/dist/ethers.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js
vendored
2
packages/ethers/dist/ethers.esm.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
2
packages/ethers/dist/ethers.esm.min.js.map
vendored
File diff suppressed because one or more lines are too long
251
packages/ethers/dist/ethers.umd.js
vendored
251
packages/ethers/dist/ethers.umd.js
vendored
@ -12744,15 +12744,15 @@
|
||||
function getJSF(k1, k2) {
|
||||
var jsf = [
|
||||
[],
|
||||
[]
|
||||
[],
|
||||
];
|
||||
|
||||
k1 = k1.clone();
|
||||
k2 = k2.clone();
|
||||
var d1 = 0;
|
||||
var d2 = 0;
|
||||
var m8;
|
||||
while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {
|
||||
|
||||
// First phase
|
||||
var m14 = (k1.andln(3) + d1) & 3;
|
||||
var m24 = (k2.andln(3) + d2) & 3;
|
||||
@ -12764,7 +12764,7 @@
|
||||
if ((m14 & 1) === 0) {
|
||||
u1 = 0;
|
||||
} else {
|
||||
var m8 = (k1.andln(7) + d1) & 7;
|
||||
m8 = (k1.andln(7) + d1) & 7;
|
||||
if ((m8 === 3 || m8 === 5) && m24 === 2)
|
||||
u1 = -m14;
|
||||
else
|
||||
@ -12776,7 +12776,7 @@
|
||||
if ((m24 & 1) === 0) {
|
||||
u2 = 0;
|
||||
} else {
|
||||
var m8 = (k2.andln(7) + d2) & 7;
|
||||
m8 = (k2.andln(7) + d2) & 7;
|
||||
if ((m8 === 3 || m8 === 5) && m14 === 2)
|
||||
u2 = -m24;
|
||||
else
|
||||
@ -12801,14 +12801,14 @@
|
||||
var key = '_' + name;
|
||||
obj.prototype[name] = function cachedProperty() {
|
||||
return this[key] !== undefined ? this[key] :
|
||||
this[key] = computer.call(this);
|
||||
this[key] = computer.call(this);
|
||||
};
|
||||
}
|
||||
utils.cachedProperty = cachedProperty;
|
||||
|
||||
function parseBytes(bytes) {
|
||||
return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :
|
||||
bytes;
|
||||
bytes;
|
||||
}
|
||||
utils.parseBytes = parseBytes;
|
||||
|
||||
@ -12879,18 +12879,20 @@
|
||||
|
||||
// Translate into more windowed form
|
||||
var repr = [];
|
||||
for (var j = 0; j < naf.length; j += doubles.step) {
|
||||
var nafW = 0;
|
||||
for (var k = j + doubles.step - 1; k >= j; k--)
|
||||
nafW = (nafW << 1) + naf[k];
|
||||
var j;
|
||||
var nafW;
|
||||
for (j = 0; j < naf.length; j += doubles.step) {
|
||||
nafW = 0;
|
||||
for (var l = j + doubles.step - 1; l >= j; l--)
|
||||
nafW = (nafW << 1) + naf[l];
|
||||
repr.push(nafW);
|
||||
}
|
||||
|
||||
var a = this.jpoint(null, null, null);
|
||||
var b = this.jpoint(null, null, null);
|
||||
for (var i = I; i > 0; i--) {
|
||||
for (var j = 0; j < repr.length; j++) {
|
||||
var nafW = repr[j];
|
||||
for (j = 0; j < repr.length; j++) {
|
||||
nafW = repr[j];
|
||||
if (nafW === i)
|
||||
b = b.mixedAdd(doubles.points[j]);
|
||||
else if (nafW === -i)
|
||||
@ -12916,11 +12918,11 @@
|
||||
var acc = this.jpoint(null, null, null);
|
||||
for (var i = naf.length - 1; i >= 0; i--) {
|
||||
// Count zeroes
|
||||
for (var k = 0; i >= 0 && naf[i] === 0; i--)
|
||||
k++;
|
||||
for (var l = 0; i >= 0 && naf[i] === 0; i--)
|
||||
l++;
|
||||
if (i >= 0)
|
||||
k++;
|
||||
acc = acc.dblp(k);
|
||||
l++;
|
||||
acc = acc.dblp(l);
|
||||
|
||||
if (i < 0)
|
||||
break;
|
||||
@ -12944,25 +12946,28 @@
|
||||
};
|
||||
|
||||
BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
points,
|
||||
coeffs,
|
||||
len,
|
||||
jacobianResult) {
|
||||
points,
|
||||
coeffs,
|
||||
len,
|
||||
jacobianResult) {
|
||||
var wndWidth = this._wnafT1;
|
||||
var wnd = this._wnafT2;
|
||||
var naf = this._wnafT3;
|
||||
|
||||
// Fill all arrays
|
||||
var max = 0;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var p = points[i];
|
||||
var i;
|
||||
var j;
|
||||
var p;
|
||||
for (i = 0; i < len; i++) {
|
||||
p = points[i];
|
||||
var nafPoints = p._getNAFPoints(defW);
|
||||
wndWidth[i] = nafPoints.wnd;
|
||||
wnd[i] = nafPoints.points;
|
||||
}
|
||||
|
||||
// Comb small window NAFs
|
||||
for (var i = len - 1; i >= 1; i -= 2) {
|
||||
for (i = len - 1; i >= 1; i -= 2) {
|
||||
var a = i - 1;
|
||||
var b = i;
|
||||
if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
|
||||
@ -12977,7 +12982,7 @@
|
||||
points[a], /* 1 */
|
||||
null, /* 3 */
|
||||
null, /* 5 */
|
||||
points[b] /* 7 */
|
||||
points[b], /* 7 */
|
||||
];
|
||||
|
||||
// Try to avoid Projective points, if possible
|
||||
@ -13001,14 +13006,14 @@
|
||||
7, /* 0 1 */
|
||||
5, /* 1 -1 */
|
||||
1, /* 1 0 */
|
||||
3 /* 1 1 */
|
||||
3, /* 1 1 */
|
||||
];
|
||||
|
||||
var jsf = getJSF(coeffs[a], coeffs[b]);
|
||||
max = Math.max(jsf[0].length, max);
|
||||
naf[a] = new Array(max);
|
||||
naf[b] = new Array(max);
|
||||
for (var j = 0; j < max; j++) {
|
||||
for (j = 0; j < max; j++) {
|
||||
var ja = jsf[0][j] | 0;
|
||||
var jb = jsf[1][j] | 0;
|
||||
|
||||
@ -13020,12 +13025,12 @@
|
||||
|
||||
var acc = this.jpoint(null, null, null);
|
||||
var tmp = this._wnafT4;
|
||||
for (var i = max; i >= 0; i--) {
|
||||
for (i = max; i >= 0; i--) {
|
||||
var k = 0;
|
||||
|
||||
while (i >= 0) {
|
||||
var zero = true;
|
||||
for (var j = 0; j < len; j++) {
|
||||
for (j = 0; j < len; j++) {
|
||||
tmp[j] = naf[j][i] | 0;
|
||||
if (tmp[j] !== 0)
|
||||
zero = false;
|
||||
@ -13041,9 +13046,9 @@
|
||||
if (i < 0)
|
||||
break;
|
||||
|
||||
for (var j = 0; j < len; j++) {
|
||||
for (j = 0; j < len; j++) {
|
||||
var z = tmp[j];
|
||||
var p;
|
||||
p;
|
||||
if (z === 0)
|
||||
continue;
|
||||
else if (z > 0)
|
||||
@ -13058,7 +13063,7 @@
|
||||
}
|
||||
}
|
||||
// Zeroify references
|
||||
for (var i = 0; i < len; i++)
|
||||
for (i = 0; i < len; i++)
|
||||
wnd[i] = null;
|
||||
|
||||
if (jacobianResult)
|
||||
@ -13096,7 +13101,7 @@
|
||||
assert$1(bytes[bytes.length - 1] % 2 === 1);
|
||||
|
||||
var res = this.point(bytes.slice(1, 1 + len),
|
||||
bytes.slice(1 + len, 1 + 2 * len));
|
||||
bytes.slice(1 + len, 1 + 2 * len));
|
||||
|
||||
return res;
|
||||
} else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&
|
||||
@ -13117,7 +13122,7 @@
|
||||
if (compact)
|
||||
return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);
|
||||
|
||||
return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ;
|
||||
return [ 0x04 ].concat(x, this.getY().toArray('be', len));
|
||||
};
|
||||
|
||||
BasePoint.prototype.encode = function encode(enc, compact) {
|
||||
@ -13131,7 +13136,7 @@
|
||||
var precomputed = {
|
||||
doubles: null,
|
||||
naf: null,
|
||||
beta: null
|
||||
beta: null,
|
||||
};
|
||||
precomputed.naf = this._getNAFPoints(8);
|
||||
precomputed.doubles = this._getDoubles(4, power);
|
||||
@ -13165,7 +13170,7 @@
|
||||
}
|
||||
return {
|
||||
step: step,
|
||||
points: doubles
|
||||
points: doubles,
|
||||
};
|
||||
};
|
||||
|
||||
@ -13180,7 +13185,7 @@
|
||||
res[i] = res[i - 1].add(dbl);
|
||||
return {
|
||||
wnd: wnd,
|
||||
points: res
|
||||
points: res,
|
||||
};
|
||||
};
|
||||
|
||||
@ -13257,7 +13262,7 @@
|
||||
basis = conf.basis.map(function(vec) {
|
||||
return {
|
||||
a: new bn(vec.a, 16),
|
||||
b: new bn(vec.b, 16)
|
||||
b: new bn(vec.b, 16),
|
||||
};
|
||||
});
|
||||
} else {
|
||||
@ -13267,7 +13272,7 @@
|
||||
return {
|
||||
beta: beta,
|
||||
lambda: lambda,
|
||||
basis: basis
|
||||
basis: basis,
|
||||
};
|
||||
};
|
||||
|
||||
@ -13358,7 +13363,7 @@
|
||||
|
||||
return [
|
||||
{ a: a1, b: b1 },
|
||||
{ a: a2, b: b2 }
|
||||
{ a: a2, b: b2 },
|
||||
];
|
||||
};
|
||||
|
||||
@ -13414,36 +13419,36 @@
|
||||
|
||||
ShortCurve.prototype._endoWnafMulAdd =
|
||||
function _endoWnafMulAdd(points, coeffs, jacobianResult) {
|
||||
var npoints = this._endoWnafT1;
|
||||
var ncoeffs = this._endoWnafT2;
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
var split = this._endoSplit(coeffs[i]);
|
||||
var p = points[i];
|
||||
var beta = p._getBeta();
|
||||
var npoints = this._endoWnafT1;
|
||||
var ncoeffs = this._endoWnafT2;
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
var split = this._endoSplit(coeffs[i]);
|
||||
var p = points[i];
|
||||
var beta = p._getBeta();
|
||||
|
||||
if (split.k1.negative) {
|
||||
split.k1.ineg();
|
||||
p = p.neg(true);
|
||||
}
|
||||
if (split.k2.negative) {
|
||||
split.k2.ineg();
|
||||
beta = beta.neg(true);
|
||||
}
|
||||
if (split.k1.negative) {
|
||||
split.k1.ineg();
|
||||
p = p.neg(true);
|
||||
}
|
||||
if (split.k2.negative) {
|
||||
split.k2.ineg();
|
||||
beta = beta.neg(true);
|
||||
}
|
||||
|
||||
npoints[i * 2] = p;
|
||||
npoints[i * 2 + 1] = beta;
|
||||
ncoeffs[i * 2] = split.k1;
|
||||
ncoeffs[i * 2 + 1] = split.k2;
|
||||
}
|
||||
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
||||
npoints[i * 2] = p;
|
||||
npoints[i * 2 + 1] = beta;
|
||||
ncoeffs[i * 2] = split.k1;
|
||||
ncoeffs[i * 2 + 1] = split.k2;
|
||||
}
|
||||
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
||||
|
||||
// Clean-up references to points and coefficients
|
||||
for (var j = 0; j < i * 2; j++) {
|
||||
npoints[j] = null;
|
||||
ncoeffs[j] = null;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
// Clean-up references to points and coefficients
|
||||
for (var j = 0; j < i * 2; j++) {
|
||||
npoints[j] = null;
|
||||
ncoeffs[j] = null;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
function Point(curve, x, y, isRed) {
|
||||
base.BasePoint.call(this, curve, 'affine');
|
||||
@ -13495,12 +13500,12 @@
|
||||
beta: null,
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: pre.naf.points.map(endoMul)
|
||||
points: pre.naf.points.map(endoMul),
|
||||
},
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: pre.doubles.points.map(endoMul)
|
||||
}
|
||||
points: pre.doubles.points.map(endoMul),
|
||||
},
|
||||
};
|
||||
}
|
||||
return beta;
|
||||
@ -13513,12 +13518,12 @@
|
||||
return [ this.x, this.y, this.precomputed && {
|
||||
doubles: this.precomputed.doubles && {
|
||||
step: this.precomputed.doubles.step,
|
||||
points: this.precomputed.doubles.points.slice(1)
|
||||
points: this.precomputed.doubles.points.slice(1),
|
||||
},
|
||||
naf: this.precomputed.naf && {
|
||||
wnd: this.precomputed.naf.wnd,
|
||||
points: this.precomputed.naf.points.slice(1)
|
||||
}
|
||||
points: this.precomputed.naf.points.slice(1),
|
||||
},
|
||||
} ];
|
||||
};
|
||||
|
||||
@ -13538,12 +13543,12 @@
|
||||
beta: null,
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: [ res ].concat(pre.doubles.points.map(obj2point))
|
||||
points: [ res ].concat(pre.doubles.points.map(obj2point)),
|
||||
},
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: [ res ].concat(pre.naf.points.map(obj2point))
|
||||
}
|
||||
points: [ res ].concat(pre.naf.points.map(obj2point)),
|
||||
},
|
||||
};
|
||||
return res;
|
||||
};
|
||||
@ -13665,12 +13670,12 @@
|
||||
res.precomputed = {
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: pre.naf.points.map(negate)
|
||||
points: pre.naf.points.map(negate),
|
||||
},
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: pre.doubles.points.map(negate)
|
||||
}
|
||||
points: pre.doubles.points.map(negate),
|
||||
},
|
||||
};
|
||||
}
|
||||
return res;
|
||||
@ -13807,9 +13812,10 @@
|
||||
if (!pow)
|
||||
return this.dbl();
|
||||
|
||||
var i;
|
||||
if (this.curve.zeroA || this.curve.threeA) {
|
||||
var r = this;
|
||||
for (var i = 0; i < pow; i++)
|
||||
for (i = 0; i < pow; i++)
|
||||
r = r.dbl();
|
||||
return r;
|
||||
}
|
||||
@ -13826,7 +13832,7 @@
|
||||
|
||||
// Reuse results
|
||||
var jyd = jy.redAdd(jy);
|
||||
for (var i = 0; i < pow; i++) {
|
||||
for (i = 0; i < pow; i++) {
|
||||
var jx2 = jx.redSqr();
|
||||
var jyd2 = jyd.redSqr();
|
||||
var jyd4 = jyd2.redSqr();
|
||||
@ -14180,10 +14186,10 @@
|
||||
Object.defineProperty(curves, name, {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
value: curve
|
||||
value: curve,
|
||||
});
|
||||
return curve;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@ -14198,8 +14204,8 @@
|
||||
gRed: false,
|
||||
g: [
|
||||
'188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',
|
||||
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811'
|
||||
]
|
||||
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p224', {
|
||||
@ -14213,8 +14219,8 @@
|
||||
gRed: false,
|
||||
g: [
|
||||
'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',
|
||||
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34'
|
||||
]
|
||||
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p256', {
|
||||
@ -14228,8 +14234,8 @@
|
||||
gRed: false,
|
||||
g: [
|
||||
'6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',
|
||||
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5'
|
||||
]
|
||||
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p384', {
|
||||
@ -14249,8 +14255,8 @@
|
||||
'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +
|
||||
'5502f25d bf55296c 3a545e38 72760ab7',
|
||||
'3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +
|
||||
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f'
|
||||
]
|
||||
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p521', {
|
||||
@ -14276,8 +14282,8 @@
|
||||
'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',
|
||||
'00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +
|
||||
'579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +
|
||||
'3fad0761 353c7086 a272c240 88be9476 9fd16650'
|
||||
]
|
||||
'3fad0761 353c7086 a272c240 88be9476 9fd16650',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('curve25519', {
|
||||
@ -14290,8 +14296,8 @@
|
||||
hash: hash_1.sha256,
|
||||
gRed: false,
|
||||
g: [
|
||||
'9'
|
||||
]
|
||||
'9',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('ed25519', {
|
||||
@ -14309,8 +14315,8 @@
|
||||
'216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',
|
||||
|
||||
// 4/5
|
||||
'6666666666666666666666666666666666666666666666666666666666666658'
|
||||
]
|
||||
'6666666666666666666666666666666666666666666666666666666666666658',
|
||||
],
|
||||
});
|
||||
|
||||
var pre;
|
||||
@ -14336,20 +14342,20 @@
|
||||
basis: [
|
||||
{
|
||||
a: '3086d221a7d46bcde86c90e49284eb15',
|
||||
b: '-e4437ed6010e88286f547fa90abfe4c3'
|
||||
b: '-e4437ed6010e88286f547fa90abfe4c3',
|
||||
},
|
||||
{
|
||||
a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
|
||||
b: '3086d221a7d46bcde86c90e49284eb15'
|
||||
}
|
||||
b: '3086d221a7d46bcde86c90e49284eb15',
|
||||
},
|
||||
],
|
||||
|
||||
gRed: false,
|
||||
g: [
|
||||
'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
|
||||
'483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
|
||||
pre
|
||||
]
|
||||
pre,
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
@ -14492,7 +14498,7 @@
|
||||
|
||||
return new KeyPair(ec, {
|
||||
pub: pub,
|
||||
pubEnc: enc
|
||||
pubEnc: enc,
|
||||
});
|
||||
};
|
||||
|
||||
@ -14502,7 +14508,7 @@
|
||||
|
||||
return new KeyPair(ec, {
|
||||
priv: priv,
|
||||
privEnc: enc
|
||||
privEnc: enc,
|
||||
});
|
||||
};
|
||||
|
||||
@ -14569,6 +14575,9 @@
|
||||
|
||||
// ECDH
|
||||
KeyPair.prototype.derive = function derive(pub) {
|
||||
if(!pub.validate()) {
|
||||
assert$3(pub.validate(), 'public point not validated');
|
||||
}
|
||||
return pub.mul(this.priv).getX();
|
||||
};
|
||||
|
||||
@ -14771,7 +14780,8 @@
|
||||
|
||||
// Shortcut `elliptic.ec(curve-name)`
|
||||
if (typeof options === 'string') {
|
||||
assert$5(curves_1.hasOwnProperty(options), 'Unknown curve ' + options);
|
||||
assert$5(Object.prototype.hasOwnProperty.call(curves_1, options),
|
||||
'Unknown curve ' + options);
|
||||
|
||||
options = curves_1[options];
|
||||
}
|
||||
@ -14817,22 +14827,22 @@
|
||||
persEnc: options.persEnc || 'utf8',
|
||||
entropy: options.entropy || rand(this.hash.hmacStrength),
|
||||
entropyEnc: options.entropy && options.entropyEnc || 'utf8',
|
||||
nonce: this.n.toArray()
|
||||
nonce: this.n.toArray(),
|
||||
});
|
||||
|
||||
var bytes = this.n.byteLength();
|
||||
var ns2 = this.n.sub(new bn(2));
|
||||
do {
|
||||
for (;;) {
|
||||
var priv = new bn(drbg.generate(bytes));
|
||||
if (priv.cmp(ns2) > 0)
|
||||
continue;
|
||||
|
||||
priv.iaddn(1);
|
||||
return this.keyFromPrivate(priv);
|
||||
} while (true);
|
||||
}
|
||||
};
|
||||
|
||||
EC.prototype._truncateToN = function truncateToN(msg, truncOnly) {
|
||||
EC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {
|
||||
var delta = msg.byteLength() * 8 - this.n.bitLength();
|
||||
if (delta > 0)
|
||||
msg = msg.ushrn(delta);
|
||||
@ -14866,16 +14876,16 @@
|
||||
entropy: bkey,
|
||||
nonce: nonce,
|
||||
pers: options.pers,
|
||||
persEnc: options.persEnc || 'utf8'
|
||||
persEnc: options.persEnc || 'utf8',
|
||||
});
|
||||
|
||||
// Number of bytes to generate
|
||||
var ns1 = this.n.sub(new bn(1));
|
||||
|
||||
for (var iter = 0; true; iter++) {
|
||||
for (var iter = 0; ; iter++) {
|
||||
var k = options.k ?
|
||||
options.k(iter) :
|
||||
new bn(drbg.generate(this.n.byteLength()));
|
||||
options.k(iter) :
|
||||
new bn(drbg.generate(this.n.byteLength()));
|
||||
k = this._truncateToN(k, true);
|
||||
if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
|
||||
continue;
|
||||
@ -14924,9 +14934,10 @@
|
||||
var sinv = s.invm(this.n);
|
||||
var u1 = sinv.mul(msg).umod(this.n);
|
||||
var u2 = sinv.mul(r).umod(this.n);
|
||||
var p;
|
||||
|
||||
if (!this.curve._maxwellTrick) {
|
||||
var p = this.g.mulAdd(u1, key.getPublic(), u2);
|
||||
p = this.g.mulAdd(u1, key.getPublic(), u2);
|
||||
if (p.isInfinity())
|
||||
return false;
|
||||
|
||||
@ -14936,7 +14947,7 @@
|
||||
// NOTE: Greg Maxwell's trick, inspired by:
|
||||
// https://git.io/vad3K
|
||||
|
||||
var p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
||||
p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
||||
if (p.isInfinity())
|
||||
return false;
|
||||
|
||||
@ -15000,7 +15011,7 @@
|
||||
|
||||
var elliptic = exports;
|
||||
|
||||
elliptic.version = /*RicMoo:ethers*/{ version: "6.5.3" }.version;
|
||||
elliptic.version = /*RicMoo:ethers*/{ version: "6.5.4" }.version;
|
||||
elliptic.utils = utils_1$1;
|
||||
elliptic.rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });
|
||||
elliptic.curve = curve_1;
|
||||
@ -15028,7 +15039,7 @@
|
||||
var _version$q = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "signing-key/5.0.9";
|
||||
exports.version = "signing-key/5.0.10";
|
||||
|
||||
});
|
||||
|
||||
@ -19701,7 +19712,7 @@
|
||||
var _version$I = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.21";
|
||||
exports.version = "providers/5.0.22";
|
||||
|
||||
});
|
||||
|
||||
@ -24898,7 +24909,7 @@
|
||||
function buildWeb3LegacyFetcher(provider, sendFunc) {
|
||||
return function (method, params) {
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
@ -24931,7 +24942,7 @@
|
||||
params = [];
|
||||
}
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
@ -25427,7 +25438,7 @@
|
||||
var _version$M = createCommonjsModule(function (module, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.29";
|
||||
exports.version = "ethers/5.0.30";
|
||||
|
||||
});
|
||||
|
||||
|
2
packages/ethers/dist/ethers.umd.js.map
vendored
2
packages/ethers/dist/ethers.umd.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js
vendored
2
packages/ethers/dist/ethers.umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
2
packages/ethers/dist/ethers.umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
packages/ethers/lib.esm/_version.d.ts
vendored
2
packages/ethers/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "ethers/5.0.29";
|
||||
export declare const version = "ethers/5.0.30";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "ethers/5.0.29";
|
||||
export const version = "ethers/5.0.30";
|
||||
//# sourceMappingURL=_version.js.map
|
2
packages/ethers/lib/_version.d.ts
vendored
2
packages/ethers/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "ethers/5.0.29";
|
||||
export declare const version = "ethers/5.0.30";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "ethers/5.0.29";
|
||||
exports.version = "ethers/5.0.30";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -20,11 +20,11 @@
|
||||
"@ethersproject/networks": "5.0.8",
|
||||
"@ethersproject/pbkdf2": "5.0.8",
|
||||
"@ethersproject/properties": "5.0.8",
|
||||
"@ethersproject/providers": "5.0.21",
|
||||
"@ethersproject/providers": "5.0.22",
|
||||
"@ethersproject/random": "5.0.8",
|
||||
"@ethersproject/rlp": "5.0.8",
|
||||
"@ethersproject/sha2": "5.0.8",
|
||||
"@ethersproject/signing-key": "5.0.9",
|
||||
"@ethersproject/signing-key": "5.0.10",
|
||||
"@ethersproject/solidity": "5.0.9",
|
||||
"@ethersproject/strings": "5.0.9",
|
||||
"@ethersproject/transactions": "5.0.10",
|
||||
@ -62,7 +62,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0x39d88539494ba5a57753c5cd359d2bb66eaffb87d9046cdf4c04cf4b201bd442",
|
||||
"tarballHash": "0xdf3bae7db22cd8766586785ea3ed0021291d91740229d69a9215aba60edadfbb",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.29"
|
||||
"version": "5.0.30"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "ethers/5.0.29";
|
||||
export const version = "ethers/5.0.30";
|
||||
|
2
packages/providers/lib.esm/_version.d.ts
vendored
2
packages/providers/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "providers/5.0.21";
|
||||
export declare const version = "providers/5.0.22";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,2 +1,2 @@
|
||||
export const version = "providers/5.0.21";
|
||||
export const version = "providers/5.0.22";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -2,6 +2,7 @@ import { Networkish } from "@ethersproject/networks";
|
||||
import { JsonRpcProvider } from "./json-rpc-provider";
|
||||
export declare type ExternalProvider = {
|
||||
isMetaMask?: boolean;
|
||||
isStatus?: boolean;
|
||||
host?: string;
|
||||
path?: string;
|
||||
sendAsync?: (request: {
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"web3-provider.d.ts","sourceRoot":"","sources":["../src.ts/web3-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAOrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,oBAAY,gBAAgB,GAAG;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAA;IACrH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAA;IAChH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,KAAK,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Q,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAA;IAChH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAC/E,CAAA;AAID,oBAAY,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAqDrF,qBAAa,YAAa,SAAQ,eAAe;IAC7C,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;gBAEhC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,OAAO,CAAC,EAAE,UAAU;IA2C/E,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;CAGzD"}
|
@ -8,7 +8,7 @@ let _nextId = 1;
|
||||
function buildWeb3LegacyFetcher(provider, sendFunc) {
|
||||
return function (method, params) {
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
@ -41,7 +41,7 @@ function buildEip1193Fetcher(provider) {
|
||||
params = [];
|
||||
}
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"web3-provider.js","sourceRoot":"","sources":["../src.ts/web3-provider.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAYtD,IAAI,OAAO,GAAG,CAAC,CAAC;AAMhB,SAAS,sBAAsB,CAAC,QAA0B,EAAE,QAAwB;IAChF,OAAO,UAAS,MAAc,EAAE,MAAkB;QAE9C,iEAAiE;QACjE,IAAI,MAAM,IAAI,UAAU,IAAI,QAAQ,CAAC,UAAU,EAAE;YAC7C,6EAA6E;YAC7E,MAAM,GAAG,eAAe,CAAC;YACzB,MAAM,GAAG,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAE,CAAC;SACrC;QAED,MAAM,OAAO,GAAG;YACZ,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC;YACf,OAAO,EAAE,KAAK;SACjB,CAAC;QAEF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,QAAQ,CAAC,OAAO,EAAE,UAAS,KAAK,EAAE,MAAM;gBACpC,IAAI,KAAK,EAAE;oBAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;iBAAE;gBAEpC,IAAI,MAAM,CAAC,KAAK,EAAE;oBACd,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAA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AAC;IACjD,CAAC;CACJ"}
|
2
packages/providers/lib/_version.d.ts
vendored
2
packages/providers/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "providers/5.0.21";
|
||||
export declare const version = "providers/5.0.22";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "providers/5.0.21";
|
||||
exports.version = "providers/5.0.22";
|
||||
//# sourceMappingURL=_version.js.map
|
1
packages/providers/lib/web3-provider.d.ts
vendored
1
packages/providers/lib/web3-provider.d.ts
vendored
@ -2,6 +2,7 @@ import { Networkish } from "@ethersproject/networks";
|
||||
import { JsonRpcProvider } from "./json-rpc-provider";
|
||||
export declare type ExternalProvider = {
|
||||
isMetaMask?: boolean;
|
||||
isStatus?: boolean;
|
||||
host?: string;
|
||||
path?: string;
|
||||
sendAsync?: (request: {
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"web3-provider.d.ts","sourceRoot":"","sources":["../src.ts/web3-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAOrD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,oBAAY,gBAAgB,GAAG;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAA;IACrH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAA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AAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAA;IACrH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAA;IAChH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAC/E,CAAA;AAID,oBAAY,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAqDrF,qBAAa,YAAa,SAAQ,eAAe;IAC7C,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;gBAEhC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,OAAO,CAAC,EAAE,UAAU;IA2C/E,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;CAGzD"}
|
@ -22,7 +22,7 @@ var _nextId = 1;
|
||||
function buildWeb3LegacyFetcher(provider, sendFunc) {
|
||||
return function (method, params) {
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
@ -55,7 +55,7 @@ function buildEip1193Fetcher(provider) {
|
||||
params = [];
|
||||
}
|
||||
// Metamask complains about eth_sign (and on some versions hangs)
|
||||
if (method == "eth_sign" && provider.isMetaMask) {
|
||||
if (method == "eth_sign" && (provider.isMetaMask || provider.isStatus)) {
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
|
||||
method = "personal_sign";
|
||||
params = [params[1], params[0]];
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"web3-provider.js","sourceRoot":"","sources":["../src.ts/web3-provider.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;AAGb,wDAA2D;AAE3D,gDAA+C;AAC/C,uCAAqC;AACrC,IAAM,MAAM,GAAG,IAAI,eAAM,CAAC,kBAAO,CAAC,CAAC;AAEnC,yDAAsD;AAYtD,IAAI,OAAO,GAAG,CAAC,CAAC;AAMhB,SAAS,sBAAsB,CAAC,QAA0B,EAAE,QAAwB;IAChF,OAAO,UAAS,MAAc,EAAE,MAAkB;QAE9C,iEAAiE;QACjE,IAAI,MAAM,IAAI,UAAU,IAAI,QAAQ,CAAC,UAAU,EAAE;YAC7C,6EAA6E;YAC7E,MAAM,GAAG,eAAe,CAAC;YACzB,MAAM,GAAG,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAE,CAAC;SACrC;QAED,IAAM,OAAO,GAAG;YACZ,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC;YACf,OAAO,EAAE,KAAK;SACjB,CAAC;QAEF,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;YAC/B,QAAQ,CAAC,OAAO,EAAE,UAAS,KAAK,EAAE,MAAM;gBACpC,IAAI,KAAK,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,UAAK,MAAc,EAAE,MAAkB;QACnC,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IACL,mBAAC;AAAD,CAAC,AAlDD,CAAkC,mCAAe,GAkDhD;AAlDY,oCAAY"}
|
@ -66,7 +66,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xad4433107f7bf8db9a2a7582dfd653bd7db6c8fbdc64132dc376f28cac705df9",
|
||||
"tarballHash": "0x4c620d29f1e16cee04e85e343a16fbca7fc190eb3169c4911dc7ca858b737411",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.21"
|
||||
"version": "5.0.22"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "providers/5.0.21";
|
||||
export const version = "providers/5.0.22";
|
||||
|
2
packages/signing-key/lib.esm/_version.d.ts
vendored
2
packages/signing-key/lib.esm/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "signing-key/5.0.9";
|
||||
export declare const version = "signing-key/5.0.10";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"_version.d.ts","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
|
||||
{"version":3,"file":"_version.d.ts","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,uBAAuB,CAAC"}
|
@ -1,2 +1,2 @@
|
||||
export const version = "signing-key/5.0.9";
|
||||
export const version = "signing-key/5.0.10";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"_version.js","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC"}
|
||||
{"version":3,"file":"_version.js","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,oBAAoB,CAAC"}
|
@ -164,15 +164,15 @@ utils.getNAF = getNAF;
|
||||
function getJSF(k1, k2) {
|
||||
var jsf = [
|
||||
[],
|
||||
[]
|
||||
[],
|
||||
];
|
||||
|
||||
k1 = k1.clone();
|
||||
k2 = k2.clone();
|
||||
var d1 = 0;
|
||||
var d2 = 0;
|
||||
var m8;
|
||||
while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {
|
||||
|
||||
// First phase
|
||||
var m14 = (k1.andln(3) + d1) & 3;
|
||||
var m24 = (k2.andln(3) + d2) & 3;
|
||||
@ -184,7 +184,7 @@ function getJSF(k1, k2) {
|
||||
if ((m14 & 1) === 0) {
|
||||
u1 = 0;
|
||||
} else {
|
||||
var m8 = (k1.andln(7) + d1) & 7;
|
||||
m8 = (k1.andln(7) + d1) & 7;
|
||||
if ((m8 === 3 || m8 === 5) && m24 === 2)
|
||||
u1 = -m14;
|
||||
else
|
||||
@ -196,7 +196,7 @@ function getJSF(k1, k2) {
|
||||
if ((m24 & 1) === 0) {
|
||||
u2 = 0;
|
||||
} else {
|
||||
var m8 = (k2.andln(7) + d2) & 7;
|
||||
m8 = (k2.andln(7) + d2) & 7;
|
||||
if ((m8 === 3 || m8 === 5) && m14 === 2)
|
||||
u2 = -m24;
|
||||
else
|
||||
@ -221,14 +221,14 @@ function cachedProperty(obj, name, computer) {
|
||||
var key = '_' + name;
|
||||
obj.prototype[name] = function cachedProperty() {
|
||||
return this[key] !== undefined ? this[key] :
|
||||
this[key] = computer.call(this);
|
||||
this[key] = computer.call(this);
|
||||
};
|
||||
}
|
||||
utils.cachedProperty = cachedProperty;
|
||||
|
||||
function parseBytes(bytes) {
|
||||
return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :
|
||||
bytes;
|
||||
bytes;
|
||||
}
|
||||
utils.parseBytes = parseBytes;
|
||||
|
||||
@ -299,18 +299,20 @@ BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
|
||||
|
||||
// Translate into more windowed form
|
||||
var repr = [];
|
||||
for (var j = 0; j < naf.length; j += doubles.step) {
|
||||
var nafW = 0;
|
||||
for (var k = j + doubles.step - 1; k >= j; k--)
|
||||
nafW = (nafW << 1) + naf[k];
|
||||
var j;
|
||||
var nafW;
|
||||
for (j = 0; j < naf.length; j += doubles.step) {
|
||||
nafW = 0;
|
||||
for (var l = j + doubles.step - 1; l >= j; l--)
|
||||
nafW = (nafW << 1) + naf[l];
|
||||
repr.push(nafW);
|
||||
}
|
||||
|
||||
var a = this.jpoint(null, null, null);
|
||||
var b = this.jpoint(null, null, null);
|
||||
for (var i = I; i > 0; i--) {
|
||||
for (var j = 0; j < repr.length; j++) {
|
||||
var nafW = repr[j];
|
||||
for (j = 0; j < repr.length; j++) {
|
||||
nafW = repr[j];
|
||||
if (nafW === i)
|
||||
b = b.mixedAdd(doubles.points[j]);
|
||||
else if (nafW === -i)
|
||||
@ -336,11 +338,11 @@ BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
|
||||
var acc = this.jpoint(null, null, null);
|
||||
for (var i = naf.length - 1; i >= 0; i--) {
|
||||
// Count zeroes
|
||||
for (var k = 0; i >= 0 && naf[i] === 0; i--)
|
||||
k++;
|
||||
for (var l = 0; i >= 0 && naf[i] === 0; i--)
|
||||
l++;
|
||||
if (i >= 0)
|
||||
k++;
|
||||
acc = acc.dblp(k);
|
||||
l++;
|
||||
acc = acc.dblp(l);
|
||||
|
||||
if (i < 0)
|
||||
break;
|
||||
@ -364,25 +366,28 @@ BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
|
||||
};
|
||||
|
||||
BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
points,
|
||||
coeffs,
|
||||
len,
|
||||
jacobianResult) {
|
||||
points,
|
||||
coeffs,
|
||||
len,
|
||||
jacobianResult) {
|
||||
var wndWidth = this._wnafT1;
|
||||
var wnd = this._wnafT2;
|
||||
var naf = this._wnafT3;
|
||||
|
||||
// Fill all arrays
|
||||
var max = 0;
|
||||
for (var i = 0; i < len; i++) {
|
||||
var p = points[i];
|
||||
var i;
|
||||
var j;
|
||||
var p;
|
||||
for (i = 0; i < len; i++) {
|
||||
p = points[i];
|
||||
var nafPoints = p._getNAFPoints(defW);
|
||||
wndWidth[i] = nafPoints.wnd;
|
||||
wnd[i] = nafPoints.points;
|
||||
}
|
||||
|
||||
// Comb small window NAFs
|
||||
for (var i = len - 1; i >= 1; i -= 2) {
|
||||
for (i = len - 1; i >= 1; i -= 2) {
|
||||
var a = i - 1;
|
||||
var b = i;
|
||||
if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
|
||||
@ -397,7 +402,7 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
points[a], /* 1 */
|
||||
null, /* 3 */
|
||||
null, /* 5 */
|
||||
points[b] /* 7 */
|
||||
points[b], /* 7 */
|
||||
];
|
||||
|
||||
// Try to avoid Projective points, if possible
|
||||
@ -421,14 +426,14 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
7, /* 0 1 */
|
||||
5, /* 1 -1 */
|
||||
1, /* 1 0 */
|
||||
3 /* 1 1 */
|
||||
3, /* 1 1 */
|
||||
];
|
||||
|
||||
var jsf = getJSF(coeffs[a], coeffs[b]);
|
||||
max = Math.max(jsf[0].length, max);
|
||||
naf[a] = new Array(max);
|
||||
naf[b] = new Array(max);
|
||||
for (var j = 0; j < max; j++) {
|
||||
for (j = 0; j < max; j++) {
|
||||
var ja = jsf[0][j] | 0;
|
||||
var jb = jsf[1][j] | 0;
|
||||
|
||||
@ -440,12 +445,12 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
|
||||
var acc = this.jpoint(null, null, null);
|
||||
var tmp = this._wnafT4;
|
||||
for (var i = max; i >= 0; i--) {
|
||||
for (i = max; i >= 0; i--) {
|
||||
var k = 0;
|
||||
|
||||
while (i >= 0) {
|
||||
var zero = true;
|
||||
for (var j = 0; j < len; j++) {
|
||||
for (j = 0; j < len; j++) {
|
||||
tmp[j] = naf[j][i] | 0;
|
||||
if (tmp[j] !== 0)
|
||||
zero = false;
|
||||
@ -461,9 +466,9 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
if (i < 0)
|
||||
break;
|
||||
|
||||
for (var j = 0; j < len; j++) {
|
||||
for (j = 0; j < len; j++) {
|
||||
var z = tmp[j];
|
||||
var p;
|
||||
p;
|
||||
if (z === 0)
|
||||
continue;
|
||||
else if (z > 0)
|
||||
@ -478,7 +483,7 @@ BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
|
||||
}
|
||||
}
|
||||
// Zeroify references
|
||||
for (var i = 0; i < len; i++)
|
||||
for (i = 0; i < len; i++)
|
||||
wnd[i] = null;
|
||||
|
||||
if (jacobianResult)
|
||||
@ -516,7 +521,7 @@ BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
|
||||
assert$1(bytes[bytes.length - 1] % 2 === 1);
|
||||
|
||||
var res = this.point(bytes.slice(1, 1 + len),
|
||||
bytes.slice(1 + len, 1 + 2 * len));
|
||||
bytes.slice(1 + len, 1 + 2 * len));
|
||||
|
||||
return res;
|
||||
} else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&
|
||||
@ -537,7 +542,7 @@ BasePoint.prototype._encode = function _encode(compact) {
|
||||
if (compact)
|
||||
return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);
|
||||
|
||||
return [ 0x04 ].concat(x, this.getY().toArray('be', len)) ;
|
||||
return [ 0x04 ].concat(x, this.getY().toArray('be', len));
|
||||
};
|
||||
|
||||
BasePoint.prototype.encode = function encode(enc, compact) {
|
||||
@ -551,7 +556,7 @@ BasePoint.prototype.precompute = function precompute(power) {
|
||||
var precomputed = {
|
||||
doubles: null,
|
||||
naf: null,
|
||||
beta: null
|
||||
beta: null,
|
||||
};
|
||||
precomputed.naf = this._getNAFPoints(8);
|
||||
precomputed.doubles = this._getDoubles(4, power);
|
||||
@ -585,7 +590,7 @@ BasePoint.prototype._getDoubles = function _getDoubles(step, power) {
|
||||
}
|
||||
return {
|
||||
step: step,
|
||||
points: doubles
|
||||
points: doubles,
|
||||
};
|
||||
};
|
||||
|
||||
@ -600,7 +605,7 @@ BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {
|
||||
res[i] = res[i - 1].add(dbl);
|
||||
return {
|
||||
wnd: wnd,
|
||||
points: res
|
||||
points: res,
|
||||
};
|
||||
};
|
||||
|
||||
@ -707,7 +712,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
|
||||
basis = conf.basis.map(function(vec) {
|
||||
return {
|
||||
a: new BN(vec.a, 16),
|
||||
b: new BN(vec.b, 16)
|
||||
b: new BN(vec.b, 16),
|
||||
};
|
||||
});
|
||||
} else {
|
||||
@ -717,7 +722,7 @@ ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
|
||||
return {
|
||||
beta: beta,
|
||||
lambda: lambda,
|
||||
basis: basis
|
||||
basis: basis,
|
||||
};
|
||||
};
|
||||
|
||||
@ -808,7 +813,7 @@ ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
|
||||
|
||||
return [
|
||||
{ a: a1, b: b1 },
|
||||
{ a: a2, b: b2 }
|
||||
{ a: a2, b: b2 },
|
||||
];
|
||||
};
|
||||
|
||||
@ -864,36 +869,36 @@ ShortCurve.prototype.validate = function validate(point) {
|
||||
|
||||
ShortCurve.prototype._endoWnafMulAdd =
|
||||
function _endoWnafMulAdd(points, coeffs, jacobianResult) {
|
||||
var npoints = this._endoWnafT1;
|
||||
var ncoeffs = this._endoWnafT2;
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
var split = this._endoSplit(coeffs[i]);
|
||||
var p = points[i];
|
||||
var beta = p._getBeta();
|
||||
var npoints = this._endoWnafT1;
|
||||
var ncoeffs = this._endoWnafT2;
|
||||
for (var i = 0; i < points.length; i++) {
|
||||
var split = this._endoSplit(coeffs[i]);
|
||||
var p = points[i];
|
||||
var beta = p._getBeta();
|
||||
|
||||
if (split.k1.negative) {
|
||||
split.k1.ineg();
|
||||
p = p.neg(true);
|
||||
}
|
||||
if (split.k2.negative) {
|
||||
split.k2.ineg();
|
||||
beta = beta.neg(true);
|
||||
}
|
||||
if (split.k1.negative) {
|
||||
split.k1.ineg();
|
||||
p = p.neg(true);
|
||||
}
|
||||
if (split.k2.negative) {
|
||||
split.k2.ineg();
|
||||
beta = beta.neg(true);
|
||||
}
|
||||
|
||||
npoints[i * 2] = p;
|
||||
npoints[i * 2 + 1] = beta;
|
||||
ncoeffs[i * 2] = split.k1;
|
||||
ncoeffs[i * 2 + 1] = split.k2;
|
||||
}
|
||||
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
||||
npoints[i * 2] = p;
|
||||
npoints[i * 2 + 1] = beta;
|
||||
ncoeffs[i * 2] = split.k1;
|
||||
ncoeffs[i * 2 + 1] = split.k2;
|
||||
}
|
||||
var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
|
||||
|
||||
// Clean-up references to points and coefficients
|
||||
for (var j = 0; j < i * 2; j++) {
|
||||
npoints[j] = null;
|
||||
ncoeffs[j] = null;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
// Clean-up references to points and coefficients
|
||||
for (var j = 0; j < i * 2; j++) {
|
||||
npoints[j] = null;
|
||||
ncoeffs[j] = null;
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
function Point(curve, x, y, isRed) {
|
||||
base.BasePoint.call(this, curve, 'affine');
|
||||
@ -945,12 +950,12 @@ Point.prototype._getBeta = function _getBeta() {
|
||||
beta: null,
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: pre.naf.points.map(endoMul)
|
||||
points: pre.naf.points.map(endoMul),
|
||||
},
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: pre.doubles.points.map(endoMul)
|
||||
}
|
||||
points: pre.doubles.points.map(endoMul),
|
||||
},
|
||||
};
|
||||
}
|
||||
return beta;
|
||||
@ -963,12 +968,12 @@ Point.prototype.toJSON = function toJSON() {
|
||||
return [ this.x, this.y, this.precomputed && {
|
||||
doubles: this.precomputed.doubles && {
|
||||
step: this.precomputed.doubles.step,
|
||||
points: this.precomputed.doubles.points.slice(1)
|
||||
points: this.precomputed.doubles.points.slice(1),
|
||||
},
|
||||
naf: this.precomputed.naf && {
|
||||
wnd: this.precomputed.naf.wnd,
|
||||
points: this.precomputed.naf.points.slice(1)
|
||||
}
|
||||
points: this.precomputed.naf.points.slice(1),
|
||||
},
|
||||
} ];
|
||||
};
|
||||
|
||||
@ -988,12 +993,12 @@ Point.fromJSON = function fromJSON(curve, obj, red) {
|
||||
beta: null,
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: [ res ].concat(pre.doubles.points.map(obj2point))
|
||||
points: [ res ].concat(pre.doubles.points.map(obj2point)),
|
||||
},
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: [ res ].concat(pre.naf.points.map(obj2point))
|
||||
}
|
||||
points: [ res ].concat(pre.naf.points.map(obj2point)),
|
||||
},
|
||||
};
|
||||
return res;
|
||||
};
|
||||
@ -1115,12 +1120,12 @@ Point.prototype.neg = function neg(_precompute) {
|
||||
res.precomputed = {
|
||||
naf: pre.naf && {
|
||||
wnd: pre.naf.wnd,
|
||||
points: pre.naf.points.map(negate)
|
||||
points: pre.naf.points.map(negate),
|
||||
},
|
||||
doubles: pre.doubles && {
|
||||
step: pre.doubles.step,
|
||||
points: pre.doubles.points.map(negate)
|
||||
}
|
||||
points: pre.doubles.points.map(negate),
|
||||
},
|
||||
};
|
||||
}
|
||||
return res;
|
||||
@ -1257,9 +1262,10 @@ JPoint.prototype.dblp = function dblp(pow) {
|
||||
if (!pow)
|
||||
return this.dbl();
|
||||
|
||||
var i;
|
||||
if (this.curve.zeroA || this.curve.threeA) {
|
||||
var r = this;
|
||||
for (var i = 0; i < pow; i++)
|
||||
for (i = 0; i < pow; i++)
|
||||
r = r.dbl();
|
||||
return r;
|
||||
}
|
||||
@ -1276,7 +1282,7 @@ JPoint.prototype.dblp = function dblp(pow) {
|
||||
|
||||
// Reuse results
|
||||
var jyd = jy.redAdd(jy);
|
||||
for (var i = 0; i < pow; i++) {
|
||||
for (i = 0; i < pow; i++) {
|
||||
var jx2 = jx.redSqr();
|
||||
var jyd2 = jyd.redSqr();
|
||||
var jyd4 = jyd2.redSqr();
|
||||
@ -1630,10 +1636,10 @@ function defineCurve(name, options) {
|
||||
Object.defineProperty(curves, name, {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
value: curve
|
||||
value: curve,
|
||||
});
|
||||
return curve;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@ -1648,8 +1654,8 @@ defineCurve('p192', {
|
||||
gRed: false,
|
||||
g: [
|
||||
'188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',
|
||||
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811'
|
||||
]
|
||||
'07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p224', {
|
||||
@ -1663,8 +1669,8 @@ defineCurve('p224', {
|
||||
gRed: false,
|
||||
g: [
|
||||
'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',
|
||||
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34'
|
||||
]
|
||||
'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p256', {
|
||||
@ -1678,8 +1684,8 @@ defineCurve('p256', {
|
||||
gRed: false,
|
||||
g: [
|
||||
'6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',
|
||||
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5'
|
||||
]
|
||||
'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p384', {
|
||||
@ -1699,8 +1705,8 @@ defineCurve('p384', {
|
||||
'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +
|
||||
'5502f25d bf55296c 3a545e38 72760ab7',
|
||||
'3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +
|
||||
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f'
|
||||
]
|
||||
'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('p521', {
|
||||
@ -1726,8 +1732,8 @@ defineCurve('p521', {
|
||||
'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',
|
||||
'00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +
|
||||
'579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +
|
||||
'3fad0761 353c7086 a272c240 88be9476 9fd16650'
|
||||
]
|
||||
'3fad0761 353c7086 a272c240 88be9476 9fd16650',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('curve25519', {
|
||||
@ -1740,8 +1746,8 @@ defineCurve('curve25519', {
|
||||
hash: hash.sha256,
|
||||
gRed: false,
|
||||
g: [
|
||||
'9'
|
||||
]
|
||||
'9',
|
||||
],
|
||||
});
|
||||
|
||||
defineCurve('ed25519', {
|
||||
@ -1759,8 +1765,8 @@ defineCurve('ed25519', {
|
||||
'216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',
|
||||
|
||||
// 4/5
|
||||
'6666666666666666666666666666666666666666666666666666666666666658'
|
||||
]
|
||||
'6666666666666666666666666666666666666666666666666666666666666658',
|
||||
],
|
||||
});
|
||||
|
||||
var pre;
|
||||
@ -1786,20 +1792,20 @@ defineCurve('secp256k1', {
|
||||
basis: [
|
||||
{
|
||||
a: '3086d221a7d46bcde86c90e49284eb15',
|
||||
b: '-e4437ed6010e88286f547fa90abfe4c3'
|
||||
b: '-e4437ed6010e88286f547fa90abfe4c3',
|
||||
},
|
||||
{
|
||||
a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
|
||||
b: '3086d221a7d46bcde86c90e49284eb15'
|
||||
}
|
||||
b: '3086d221a7d46bcde86c90e49284eb15',
|
||||
},
|
||||
],
|
||||
|
||||
gRed: false,
|
||||
g: [
|
||||
'79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
|
||||
'483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
|
||||
pre
|
||||
]
|
||||
pre,
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
@ -1942,7 +1948,7 @@ KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
|
||||
|
||||
return new KeyPair(ec, {
|
||||
pub: pub,
|
||||
pubEnc: enc
|
||||
pubEnc: enc,
|
||||
});
|
||||
};
|
||||
|
||||
@ -1952,7 +1958,7 @@ KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
|
||||
|
||||
return new KeyPair(ec, {
|
||||
priv: priv,
|
||||
privEnc: enc
|
||||
privEnc: enc,
|
||||
});
|
||||
};
|
||||
|
||||
@ -2019,6 +2025,9 @@ KeyPair.prototype._importPublic = function _importPublic(key, enc) {
|
||||
|
||||
// ECDH
|
||||
KeyPair.prototype.derive = function derive(pub) {
|
||||
if(!pub.validate()) {
|
||||
assert$3(pub.validate(), 'public point not validated');
|
||||
}
|
||||
return pub.mul(this.priv).getX();
|
||||
};
|
||||
|
||||
@ -2221,7 +2230,8 @@ function EC(options) {
|
||||
|
||||
// Shortcut `elliptic.ec(curve-name)`
|
||||
if (typeof options === 'string') {
|
||||
assert$5(curves_1.hasOwnProperty(options), 'Unknown curve ' + options);
|
||||
assert$5(Object.prototype.hasOwnProperty.call(curves_1, options),
|
||||
'Unknown curve ' + options);
|
||||
|
||||
options = curves_1[options];
|
||||
}
|
||||
@ -2267,22 +2277,22 @@ EC.prototype.genKeyPair = function genKeyPair(options) {
|
||||
persEnc: options.persEnc || 'utf8',
|
||||
entropy: options.entropy || rand(this.hash.hmacStrength),
|
||||
entropyEnc: options.entropy && options.entropyEnc || 'utf8',
|
||||
nonce: this.n.toArray()
|
||||
nonce: this.n.toArray(),
|
||||
});
|
||||
|
||||
var bytes = this.n.byteLength();
|
||||
var ns2 = this.n.sub(new BN(2));
|
||||
do {
|
||||
for (;;) {
|
||||
var priv = new BN(drbg.generate(bytes));
|
||||
if (priv.cmp(ns2) > 0)
|
||||
continue;
|
||||
|
||||
priv.iaddn(1);
|
||||
return this.keyFromPrivate(priv);
|
||||
} while (true);
|
||||
}
|
||||
};
|
||||
|
||||
EC.prototype._truncateToN = function truncateToN(msg, truncOnly) {
|
||||
EC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {
|
||||
var delta = msg.byteLength() * 8 - this.n.bitLength();
|
||||
if (delta > 0)
|
||||
msg = msg.ushrn(delta);
|
||||
@ -2316,16 +2326,16 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
|
||||
entropy: bkey,
|
||||
nonce: nonce,
|
||||
pers: options.pers,
|
||||
persEnc: options.persEnc || 'utf8'
|
||||
persEnc: options.persEnc || 'utf8',
|
||||
});
|
||||
|
||||
// Number of bytes to generate
|
||||
var ns1 = this.n.sub(new BN(1));
|
||||
|
||||
for (var iter = 0; true; iter++) {
|
||||
for (var iter = 0; ; iter++) {
|
||||
var k = options.k ?
|
||||
options.k(iter) :
|
||||
new BN(drbg.generate(this.n.byteLength()));
|
||||
options.k(iter) :
|
||||
new BN(drbg.generate(this.n.byteLength()));
|
||||
k = this._truncateToN(k, true);
|
||||
if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
|
||||
continue;
|
||||
@ -2374,9 +2384,10 @@ EC.prototype.verify = function verify(msg, signature$1, key, enc) {
|
||||
var sinv = s.invm(this.n);
|
||||
var u1 = sinv.mul(msg).umod(this.n);
|
||||
var u2 = sinv.mul(r).umod(this.n);
|
||||
var p;
|
||||
|
||||
if (!this.curve._maxwellTrick) {
|
||||
var p = this.g.mulAdd(u1, key.getPublic(), u2);
|
||||
p = this.g.mulAdd(u1, key.getPublic(), u2);
|
||||
if (p.isInfinity())
|
||||
return false;
|
||||
|
||||
@ -2386,7 +2397,7 @@ EC.prototype.verify = function verify(msg, signature$1, key, enc) {
|
||||
// NOTE: Greg Maxwell's trick, inspired by:
|
||||
// https://git.io/vad3K
|
||||
|
||||
var p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
||||
p = this.g.jmulAdd(u1, key.getPublic(), u2);
|
||||
if (p.isInfinity())
|
||||
return false;
|
||||
|
||||
@ -2450,7 +2461,7 @@ var elliptic_1 = createCommonjsModule(function (module, exports) {
|
||||
|
||||
var elliptic = exports;
|
||||
|
||||
elliptic.version = /*RicMoo:ethers*/{ version: "6.5.3" }.version;
|
||||
elliptic.version = /*RicMoo:ethers*/{ version: "6.5.4" }.version;
|
||||
elliptic.utils = utils_1$1;
|
||||
elliptic.rand = /*RicMoo:ethers:require(brorand)*/(function() { throw new Error('unsupported'); });
|
||||
elliptic.curve = curve_1;
|
||||
|
File diff suppressed because one or more lines are too long
2
packages/signing-key/lib/_version.d.ts
vendored
2
packages/signing-key/lib/_version.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
export declare const version = "signing-key/5.0.9";
|
||||
export declare const version = "signing-key/5.0.10";
|
||||
//# sourceMappingURL=_version.d.ts.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"_version.d.ts","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,sBAAsB,CAAC"}
|
||||
{"version":3,"file":"_version.d.ts","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,uBAAuB,CAAC"}
|
@ -1,4 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.version = "signing-key/5.0.9";
|
||||
exports.version = "signing-key/5.0.10";
|
||||
//# sourceMappingURL=_version.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"_version.js","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":";;AAAa,QAAA,OAAO,GAAG,mBAAmB,CAAC"}
|
||||
{"version":3,"file":"_version.js","sourceRoot":"","sources":["../src.ts/_version.ts"],"names":[],"mappings":";;AAAa,QAAA,OAAO,GAAG,oBAAoB,CAAC"}
|
@ -41,7 +41,7 @@
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"tarballHash": "0xc50a1e2732336d20b4533be23cd2f4949e512538e5d1bd1766183bb2130dff8d",
|
||||
"tarballHash": "0x0b6630ce1338210e942245ec7cf1c94baf51faee22805c1130e878d607f93204",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.9"
|
||||
"version": "5.0.10"
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
export const version = "signing-key/5.0.9";
|
||||
export const version = "signing-key/5.0.10";
|
||||
|
Loading…
Reference in New Issue
Block a user