MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / valid_from

Method valid_from

mlspp/src/credential.cpp:133–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool
134UserInfoVCCredential::valid_from(const PublicJWK& pub) const
135{
136 const auto& sig = _vc->signature_algorithm();
137 if (pub.signature_scheme != tls_signature_scheme(sig.id)) {
138 return false;
139 }
140
141 const auto sig_pub = sig.deserialize(pub.public_key.data);
142 return _vc->valid_from(*sig_pub);
143}
144
145tls::ostream
146operator<<(tls::ostream& str, const UserInfoVCCredential& obj)

Callers 1

X509CredentialMethod · 0.45

Calls 3

tls_signature_schemeFunction · 0.85
signature_algorithmMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected