Skip to content

Commit

Permalink
fix: revert changes with pkijs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Nov 2, 2023
1 parent 23bf54d commit 7444d0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
12 changes: 0 additions & 12 deletions packages/common/src/auth.ts
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 7444d0a

Please sign in to comment.