We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d617b commit 0e05c5cCopy full SHA for 0e05c5c
common/src/utils/passports/genMockIdDoc.ts
@@ -258,9 +258,7 @@ function sign(
258
const msgHash = hash(hashAlgorithm, eContent, 'hex');
259
260
const signature = keyPair.sign(msgHash, 'hex');
261
- // @ts-ignore-error toDer gives number[] what is fine for Buffer.from
262
- const signatureBytes = Array.from(Buffer.from(signature.toDER(), 'hex'));
263
-
+ const signatureBytes = Array.from(signature.toDER() as number[]);
264
return signatureBytes;
265
} else {
266
const privKey = forge.pki.privateKeyFromPem(privateKeyPem);
0 commit comments