@bitgo/sdk-core
Advanced tools
Comparing version 2.0.0-rc.27 to 2.0.0-rc.28
@@ -6,2 +6,14 @@ # Change Log | ||
# [2.0.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-core@2.0.0-rc.27...@bitgo/sdk-core@2.0.0-rc.28) (2022-09-21) | ||
### Bug Fixes | ||
* **account-lib:** fix EDDSA MPC key validation for small number keys ([f9f7407](https://github.com/BitGo/BitGoJS/commit/f9f740721a91f8351df40b3b4d89f2c393acd7cf)) | ||
* **sdk-core:** default wallet to non tss ([26febd4](https://github.com/BitGo/BitGoJS/commit/26febd42bc12fe417fecb1896e8ff5313be9fc18)) | ||
# [2.0.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-core@2.0.0-rc.26...@bitgo/sdk-core@2.0.0-rc.27) (2022-09-20) | ||
@@ -8,0 +20,0 @@ |
@@ -46,3 +46,3 @@ "use strict"; | ||
// Returns the message which was signed if the signature is valid | ||
const result = Buffer.from(sodium.crypto_sign_open(signedMessage, util_1.bigIntToBufferLE(publicKey))); | ||
const result = Buffer.from(sodium.crypto_sign_open(signedMessage, util_1.bigIntToBufferLE(publicKey, 32))); | ||
return Buffer.compare(message, result) === 0; | ||
@@ -58,2 +58,2 @@ } | ||
Ed25519Curve.initialized = false; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWQyNTUxOS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9hY2NvdW50LWxpYi9tcGMvY3VydmVzL2VkMjU1MTkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsTUFBTSxNQUFNLEdBQUcsT0FBTyxDQUFDLHlCQUF5QixDQUFDLENBQUM7QUFDbEQsbUNBQXFDO0FBQ3JDLGtDQUErRDtBQUcvRCxNQUFhLFlBQVk7SUFHdkIsTUFBTSxDQUFDLEtBQUssQ0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ZmZlckxFKHB1YmxpY0tleSwgMzIpKSk7XG4gICAgICByZXR1cm4gQnVmZmVyLmNvbXBhcmUobWVzc2FnZSwgcmVzdWx0KSA9PT0gMDtcbiAgICB9IGNhdGNoIChlcnJvcikge1xuICAgICAgLy8gSW52YWxpZCBzaWduYXR1cmUgY2F1c2VzIGFuIGV4Y2VwdGlvblxuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxufVxuIl19 |
{ | ||
"name": "@bitgo/sdk-core", | ||
"version": "2.0.0-rc.27", | ||
"version": "2.0.0-rc.28", | ||
"description": "core library functions for BitGoJS", | ||
@@ -71,3 +71,3 @@ "main": "./dist/src/index.js", | ||
}, | ||
"gitHead": "39cecbdbe45b5b99c8639d259da820d91dee6812" | ||
"gitHead": "fb2ed263de0025ee9cb393a1aeb78f4f083b8f8d" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2544961