pub fn _verify_proof(yaml: &str) -> anyhow::Result<()> {
    let proofs = crev_data::proof::Proof::parse_from(yaml.as_bytes())?;
    let proof = &proofs[0];
    log::info!("signature: {}", proof.signature());
    log::info!("id: {}", proof.author_public_id().id);
    log::info!("body:\n{}", proof.body());
    proof.verify()?;

    log::info!("Proof verified ok.");
    // return
    Ok(())
}
// verify the signature of a proof
verify the signature of a proof
verify the signature of a proof
pub fn _verify_proof(yaml: &str) -> anyhow::Result<()> {
    let proofs = crev_data::proof::Proof::parse_from(yaml.as_bytes())?;
    let proof = &proofs[0];
    log::info!("signature: {}", proof.signature());
    log::info!("id: {}", proof.author_public_id().id);
    log::info!("body:\n{}", proof.body());
    proof.verify()?;
    log::info!("Proof verified ok.");
    // return
    Ok(())
}
pub fn _verify_proof ( yaml : & str ) -> anyhow :: Result < ( ) > { let proofs = crev_data :: proof :: Proof :: parse_from ( yaml . as_bytes ( ) ) ? ; let proof = & proofs [ 0 ] ; log :: info ! ( " " proof signature ( ) ) ; log :: info ! ( " " proof author_public_id ( ) id ) ; log :: info ! ( " \n " proof body ( ) ) ; proof . verify ( ) ? ; log :: info ! ( " " ) ; // return Ok ( ( ) ) }
verify the signature of a proof
verify the signature of a proof
yaml
&str