Skip to content

Commit

Permalink
fix: notify missing oobi in verify command
Browse files Browse the repository at this point in the history
  • Loading branch information
edytapawlak committed Nov 29, 2024
1 parent f84274d commit ba18723
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ pub async fn handle_verify(
}
}

// check if identifier oobi is known
let oobis = who_id
.get_end_role(&issuer, keri_core::oobi::Role::Witness)
.unwrap();
if oobis.is_empty() {
return Err(VerifyHandleError::MissingOobi(issuer.clone()));
};

let signer = Arc::new(load_signer(alias).unwrap());
for _i in 0..5 {
query_tel(&said, registry_id.clone(), &issuer, &who_id, signer.clone())
Expand Down

0 comments on commit ba18723

Please sign in to comment.