-
Hello, I am trying to test the behavior of my program if an incoming PGP message is not signed with the correct key. The tests, (I'm testing with
I am trying to await all signature promises
but it seems that even in that case, promises are not being handled, and I don't know which ones I am missing. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
A promise is only marked as "handled" once you
which marks the promise as being "handled", even if it's only actually handled later when you But, note that all signature-related promises should already be marked as handled when they're returned by OpenPGP.js. So, it shouldn't be necessary to await all of them, just the ones you care about. |
Beta Was this translation helpful? Give feedback.
-
Hey Twiss, thanks for your patience. I think I've figured it out. My application uploads the stream that the decrypt call returns, to S3 using the AWS S3 SDK. All the following things seem to be necessary to get it to work:
Basically, the code looks like this:
|
Beta Was this translation helpful? Give feedback.
Hey Twiss, thanks for your patience. I think I've figured it out.
My application uploads the stream that the decrypt call returns, to S3 using the AWS S3 SDK. All the following things seem to be necessary to get it to work:
Promise.all
.Basically, the code looks like this: