You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Please call 'setEngine' before call to 'getEngine'
I didn’t call setEngine() because I pass the crypto engine to each function myself. I instantiated the engine like this:
import { webcrypto } from 'crypto';
const crypto = new CryptoEngine({ name: 'node-webcrypto', crypto: webcrypto as Crypto });
The stack trace told me the error originated in AuthenticatedSafe.makeInternalValues(), so I looked there if maybe the crypto param wasn’t passed down, and I think I found the culprit here:
While developing for nodejs, I got an:
I didn’t call
setEngine()
because I pass the crypto engine to each function myself. I instantiated the engine like this:The stack trace told me the error originated in
AuthenticatedSafe.makeInternalValues()
, so I looked there if maybe thecrypto
param wasn’t passed down, and I think I found the culprit here:PKI.js/src/AuthenticatedSafe.ts
Line 304 in 469c403
My node version:
v18.14.2
The text was updated successfully, but these errors were encountered: