| 131 | } |
| 132 | |
| 133 | bool |
| 134 | UserInfoVCCredential::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 | |
| 145 | tls::ostream |
| 146 | operator<<(tls::ostream& str, const UserInfoVCCredential& obj) |
no test coverage detected