Skip to content

Commit 2ff8cec

Browse files
committed
updated explanataion for v1 vs v3 content
1 parent a11a4b2 commit 2ff8cec

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/crypto-v3.ts

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

97-
/**
97+
/**
9898
* 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
99+
* Although decryption is supported, verifiedContent encryption is not supported
100+
* in cryptoV3 encrypt.
101+
* This is to keep the encryption of verifiedContent and encryptedContent similar to storage mode - where
102+
* verifiedContent and encryptedContent are defined and encrypted separately.
104103
*/
105104
// decrypt verifiedContent if it exists
106105
if (verifiedContent) {

0 commit comments

Comments
 (0)