| 221 | } |
| 222 | |
| 223 | CPubKey XOnlyPubKey::GetEvenCorrespondingCPubKey() const |
| 224 | { |
| 225 | unsigned char full_key[CPubKey::COMPRESSED_SIZE] = {0x02}; |
| 226 | std::copy(begin(), end(), full_key + 1); |
| 227 | return CPubKey{full_key}; |
| 228 | } |
| 229 | |
| 230 | bool XOnlyPubKey::IsFullyValid() const |
| 231 | { |