From 2d181df360cc88bad490e9085c9684422078b6ea Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 24 Feb 2020 22:23:48 +0100 Subject: [PATCH] Bump wasm to 1.1 (#553) * Bump wasm to 1.1 * typo --- CHANGELOG.md | 1 + packages/util-crypto/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fb31cb13..a45e30a5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # 2.6.0-beta.x +- **Breaking change** Following on the 2.0 release, `@polkadot/wasm` was updated to 1.1.1. sr25510 now only verifies 0.8+ signatures, closing the loop on no Substrate-era 1.x support - Add `signatureVerify (message: Uint8Array | string, signature: Uint8Array | string, addressOrPublicKey: Uint8Array | string): VerifyResult` to verify any signature, regardless of type. Returns validity & detected crypto type. - Add `addressCheckChecksum (decoded: Uint8Array)` as an helper to extract and verify the ss58 checksum diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json index 369fb6f31..501f7f7a3 100644 --- a/packages/util-crypto/package.json +++ b/packages/util-crypto/package.json @@ -27,7 +27,7 @@ "dependencies": { "@babel/runtime": "^7.8.4", "@polkadot/util": "2.6.0-beta.0", - "@polkadot/wasm-crypto": "^1.0.1", + "@polkadot/wasm-crypto": "^1.1.1", "base-x": "^3.0.7", "bip39": "^3.0.2", "blakejs": "^1.1.0", diff --git a/yarn.lock b/yarn.lock index a08c2def5..c799abb33 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2046,10 +2046,10 @@ dependencies: "@types/chrome" "^0.0.95" -"@polkadot/wasm-crypto@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-1.0.1.tgz#80a2a6e8d63a7decdd1163cc49b263ccef4ad36d" - integrity sha512-l6izEdPXl4V8SBU9m3ct5PkHcdKZVDJMb10CFPNuNXT5OXMRaDs+Rlt/EHKjh8wbv8s9EOqy42BSHO8Qqrcg/g== +"@polkadot/wasm-crypto@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-1.1.1.tgz#f3bf66ce96f02c674287fe59b059964a0c5804d0" + integrity sha512-LMZA+KDnE2qKD7Un9/OJKuCmsf63vvhjGqM/lcb+2FZu5TpfjP1AMeTurDOt1ip3+qEukd5FkfUHXQIiFJLVBQ== "@sindresorhus/is@^0.14.0": version "0.14.0"