rebase 0.1.6

Rebase is a library for witnessing cryptographic attestations and issuing verifiable credentials
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{
    content::dns_verification::DnsVerificationContent as Ctnt,
    statement::dns_verification::DnsVerificationStatement as Stmt, types::defs::Proof,
    types::error::ProofError,
};

impl Proof<Ctnt> for Stmt {
    fn to_content(&self, _statement: &str, _signature: &str) -> Result<Ctnt, ProofError> {
        Ok(Ctnt {
            domain: self.domain.clone(),
            subject: self.subject.clone(),
        })
    }
}