add binding for compute_all_signatures

This commit is contained in:
valere 2023-05-02 14:38:32 +02:00
parent 557d27a1a3
commit 79af3912dc
1 changed files with 5 additions and 1 deletions

View File

@ -1361,15 +1361,19 @@ impl OlmMachine {
/// }
/// }
/// ```
///
/// * `compute_all_signatures` - If true will check all signatures, if
/// false will stop as soon as a valid and trusted signature is found
pub fn verify_backup(
&self,
backup_info: String,
compute_all_signatures: bool,
) -> Result<SignatureVerification, CryptoStoreError> {
let backup_info = serde_json::from_str(&backup_info)?;
Ok(self
.runtime
.block_on(self.inner.backup_machine().verify_backup(backup_info, false))?
.block_on(self.inner.backup_machine().verify_backup(backup_info, compute_all_signatures))?
.into())
}
}