Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): remove dependency on query-string and dedupe uint8arrays #5104

Open
wants to merge 12 commits into
base: v2.0
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.organizeImports": false
"source.organizeImports": "never"
},
"editor.formatOnSave": true,
"editor.tabSize": 2,
Expand Down
132 changes: 74 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"@walletconnect/window-getters": "1.0.1",
"@walletconnect/window-metadata": "1.0.1",
"detect-browser": "5.3.0",
"uint8arrays": "5.1.0"
"uint8arrays": "5.1.0",
"elliptic": "^6.5.7"
talentlessguy marked this conversation as resolved.
Show resolved Hide resolved
},
"devDependencies": {
"@types/elliptic": "^6.4.18",
Expand Down
3 changes: 3 additions & 0 deletions packages/utils/src/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { CryptoTypes } from "@walletconnect/types";
import { toString } from "uint8arrays/to-string";
import { concat } from "uint8arrays/concat";
import { fromString } from "uint8arrays/from-string";
import { ec as EC } from "elliptic";
import { decodeJWT } from "@walletconnect/relay-auth";

export const BASE10 = "base10";
export const BASE16 = "base16";
export const BASE64 = "base64pad";
Expand Down