@walletconnect/utils
Advanced tools
Comparing version 2.15.0-canary.2 to 2.15.0-canary.3
import { CryptoTypes } from "@walletconnect/types"; | ||
import { ec as EC } from "elliptic"; | ||
export declare const BASE10 = "base10"; | ||
@@ -9,10 +8,2 @@ export declare const BASE16 = "base16"; | ||
export declare const TYPE_1 = 1; | ||
export declare type P256KeyDataType = { | ||
crv: "P-256"; | ||
ext: true; | ||
key_ops: ["verify"]; | ||
kty: string; | ||
x: string; | ||
y: string; | ||
}; | ||
export declare function generateKeyPair(): CryptoTypes.KeyPair; | ||
@@ -32,6 +23,2 @@ export declare function generateRandomBytes32(): string; | ||
export declare function isTypeOneEnvelope(result: CryptoTypes.EncodingValidation): result is CryptoTypes.TypeOneParams; | ||
export declare function getCryptoKeyFromKeyData(keyData: P256KeyDataType): EC.KeyPair; | ||
export declare function verifyP256Jwt<T>(token: string, keyData: P256KeyDataType): T & { | ||
isVerified: true; | ||
}; | ||
//# sourceMappingURL=crypto.d.ts.map |
@@ -13,2 +13,3 @@ export * from "./caip"; | ||
export * from "./signatures"; | ||
export * from "./verify"; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@walletconnect/utils", | ||
"description": "Utilities for WalletConnect Protocol", | ||
"version": "2.15.0-canary.2", | ||
"version": "2.15.0-canary.3", | ||
"author": "WalletConnect, Inc. <walletconnect.com>", | ||
@@ -31,3 +31,4 @@ "homepage": "https://github.com/walletconnect/walletconnect-monorepo/", | ||
"lint": "eslint -c '../../.eslintrc' --fix './src/**/*.ts'", | ||
"prettier": "prettier --check '{src,test}/**/*.{js,ts,jsx,tsx}'" | ||
"prettier": "prettier --check '{src,test}/**/*.{js,ts,jsx,tsx}'", | ||
"postinstall": "patch-package" | ||
}, | ||
@@ -37,2 +38,3 @@ "dependencies": { | ||
"@stablelib/hkdf": "1.0.1", | ||
"@stablelib/random": "2.0.0", | ||
"@stablelib/sha256": "1.0.1", | ||
@@ -48,2 +50,3 @@ "@stablelib/x25519": "1.0.3", | ||
"elliptic": "^6.5.7", | ||
"patch-package": "^8.0.0", | ||
"query-string": "7.1.3", | ||
@@ -50,0 +53,0 @@ "uint8arrays": "3.1.0" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
38
7
5939958
16
51441
1
+ Added@stablelib/random@2.0.0
+ Addedpatch-package@^8.0.0
+ Added@stablelib/binary@2.0.0(transitive)
+ Added@stablelib/int@2.0.0(transitive)
+ Added@stablelib/random@2.0.0(transitive)
+ Added@stablelib/wipe@2.0.0(transitive)
+ Added@yarnpkg/lockfile@1.1.0(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedat-least-node@1.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedci-info@3.9.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfind-yarn-workspace-root@2.0.0(transitive)
+ Addedfs-extra@9.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedis-docker@2.2.1(transitive)
+ Addedis-wsl@2.2.0(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedklaw-sync@6.0.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedopen@7.4.2(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedpatch-package@8.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedslash@2.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedtmp@0.0.33(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyaml@2.5.1(transitive)