Skip to content

Commit 9af6530

Browse files
committed
added comment to explain v1 vs v3 decryption differences
1 parent dea74e6 commit 9af6530

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/crypto-v3.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ export default class CryptoV3 extends CryptoBase {
9494
responses: decryptedObject as FormFieldsV3,
9595
}
9696

97+
/**
98+
* Note on verifiedContent decryption for cryptoV3:
99+
* Although decryption is supported, observe that verifiedContent encryption isn't supported
100+
* in cryptoV3 encrypt. Rationale is for a decoupled encryption in the event that ndi data
101+
* is not yet available at the time of encrypting response data. Future improvements of simulataneous
102+
* encryption can be explored at a later date if deemed beneficial, but for current implementation
103+
* encryption of verifiedContent is to use the submissionPublicKey
104+
*/
97105
// decrypt verifiedContent if it exists
98106
if (verifiedContent) {
99107
if (!this.signingPublicKey) {

0 commit comments

Comments
 (0)