diff --git a/src/characters/cbd-recipient.ts b/src/characters/cbd-recipient.ts index 4c32f3b2d..8a97e2eda 100644 --- a/src/characters/cbd-recipient.ts +++ b/src/characters/cbd-recipient.ts @@ -96,12 +96,12 @@ export class CbdTDecDecrypter { encryptedRequests, this.threshold ); - - if (Object.keys(errors).length > 0) { + if (Object.keys(encryptedResponses).length < this.threshold) { throw new Error( `CBD decryption failed with errors: ${JSON.stringify(errors)}` ); } + return this.makeDecryptionShares( encryptedResponses, sharedSecrets,