From 7444d0a38014dce9c792a6b2791a6d1ee5c3f5d9 Mon Sep 17 00:00:00 2001 From: Kacper Michalik Date: Thu, 2 Nov 2023 09:47:52 +0100 Subject: [PATCH] fix: revert changes with pkijs --- packages/common/package.json | 3 +-- packages/common/src/auth.ts | 12 ------------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/common/package.json b/packages/common/package.json index 7192f778b0..16b215423c 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -28,8 +28,7 @@ "@quiet/types": "^1.8.1", "@peculiar/webcrypto": "1.4.3", "cross-env": "^5.2.0", - "debug": "^4.3.1", - "pkijs": "^3.0.8" + "debug": "^4.3.1" }, "jest": { "transform": { diff --git a/packages/common/src/auth.ts b/packages/common/src/auth.ts index 70767e837b..3a55525746 100644 --- a/packages/common/src/auth.ts +++ b/packages/common/src/auth.ts @@ -1,18 +1,6 @@ import { Crypto } from '@peculiar/webcrypto' -import { setEngine, CryptoEngine } from 'pkijs' const webcrypto = new Crypto() -setEngine( - 'newEngine', - webcrypto, - new CryptoEngine({ - name: '', - crypto: webcrypto, - subtle: webcrypto.subtle, - }) -) - -global.crypto = webcrypto const array = new Uint32Array(5)