Exemple #1
0
MasterCredential::MasterCredential(CredentialSet& theOwner, const proto::Credential& serializedCred)
: ot_super(theOwner, serializedCred)
{
    role_ = proto::CREDROLE_MASTERKEY;

    std::shared_ptr<NymIDSource> source = std::make_shared<NymIDSource>(
        serializedCred.masterdata().source());

    owner_backlink_->SetSource(source);
    source_proof_.reset(new proto::SourceProof(serializedCred.masterdata().sourceproof()));
}