| 2269 | } |
| 2270 | |
| 2271 | std::optional<Key> FromString(std::span<const char>& in) const |
| 2272 | { |
| 2273 | assert(m_out); |
| 2274 | Key key = m_keys.size(); |
| 2275 | auto pk = ParsePubkey(m_expr_index, in, ParseContext(), *m_out, m_key_parsing_error); |
| 2276 | if (pk.empty()) return {}; |
| 2277 | m_keys.emplace_back(std::move(pk)); |
| 2278 | return key; |
| 2279 | } |
| 2280 | |
| 2281 | std::optional<std::string> ToString(const Key& key, bool&) const |
| 2282 | { |
no test coverage detected