Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Clarify logging in state proof verification.
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Minaev <sergey.minaev@dsr-corporation.com>
  • Loading branch information
jovfer committed Nov 21, 2018
1 parent d51d1dd commit aadc406
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libindy/src/services/pool/request_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,15 +695,18 @@ fn _get_msg_result_without_state_proof(msg: &str) -> Result<(SJsonValue, SJsonVa
}

fn _check_state_proof(msg_result: &SJsonValue, f: usize, gen: &Generator, bls_keys: &HashMap<String, Option<VerKey>>, raw_msg: &str) -> bool {
debug!("TransactionHandler::process_reply: Try to verify proof and signature");
debug!("TransactionHandler::process_reply: Try to verify proof and signature >>");

match state_proof::parse_generic_reply_for_proof_checking(&msg_result, raw_msg) {
let res = match state_proof::parse_generic_reply_for_proof_checking(&msg_result, raw_msg) {
Some(parsed_sps) => {
debug!("TransactionHandler::process_reply: Proof and signature are present");
state_proof::verify_parsed_sp(parsed_sps, bls_keys, f, gen)
}
None => false
}
};

debug!("TransactionHandler::process_reply: Try to verify proof and signature << {}", res);
res
}

#[cfg(test)]
Expand Down

0 comments on commit aadc406

Please sign in to comment.