Replies: 1 comment 4 replies
-
Hi, please see https://github.com/openpgpjs/openpgpjs#streaming-sign-and-verify-uint8array-data . ...
for await (const chunk of verificationResult.data) {}
// Note: you *have* to read `verificationResult.data` in some way or other,
// even if you don't need it, as that is what triggers the
// verification of the data.
try {
await verificationResult.signatures[0].verified; // throws on invalid signature
... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using code from the project readme to verify a detached signature works if the file (a ZIP file) is <128kb, but crashes/terminates the program with exit code 0 and no output at "await verified" if size is larger than 128kb.
Beta Was this translation helpful? Give feedback.
All reactions