VerificationCredential::VerificationCredential( CredentialSet& parent, const NymParameters& nymParameters) : ot_super(parent, nymParameters) { role_ = proto::CREDROLE_VERIFY; nym_id_ = parent.GetNymID(); master_id_ = parent.GetMasterCredID(); auto verificationSet = nymParameters.VerificationSet(); if (verificationSet) { data_.reset(new proto::VerificationSet(*verificationSet)); } }
VerificationCredential::VerificationCredential( const api::Core& api, CredentialSet& parent, const NymParameters& nymParameters) : ot_super(api, parent, VERIFICATION_CREDENTIAL_VERSION, nymParameters) { mode_ = proto::KEYMODE_NULL; role_ = proto::CREDROLE_VERIFY; nym_id_ = parent.GetNymID(); master_id_ = parent.GetMasterCredID(); auto verificationSet = nymParameters.VerificationSet(); if (verificationSet) { data_.reset(new proto::VerificationSet(*verificationSet)); } }