| 126 | } |
| 127 | |
| 128 | std::optional<std::string> ToString(const Key& key, bool& has_priv_key) const |
| 129 | { |
| 130 | has_priv_key = false; |
| 131 | auto it = TEST_DATA.dummy_key_idx_map.find(key); |
| 132 | if (it == TEST_DATA.dummy_key_idx_map.end()) { |
| 133 | return HexStr(key); |
| 134 | } |
| 135 | has_priv_key = true; |
| 136 | uint8_t idx = it->second; |
| 137 | return HexStr(std::span{&idx, 1}); |
| 138 | } |
| 139 | |
| 140 | std::vector<unsigned char> ToPKBytes(const Key& key) const { |
| 141 | if (!miniscript::IsTapscript(script_ctx)) { |
no test coverage detected