mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge db283a6b6f into merged_master (Bitcoin PR bitcoin/bitcoin#27255)
This commit is contained in:
commit
d24651b7c4
14 changed files with 1424 additions and 546 deletions
|
|
@ -204,6 +204,13 @@ std::vector<CKeyID> XOnlyPubKey::GetKeyIDs() const
|
|||
return out;
|
||||
}
|
||||
|
||||
CPubKey XOnlyPubKey::GetEvenCorrespondingCPubKey() const
|
||||
{
|
||||
unsigned char full_key[CPubKey::COMPRESSED_SIZE] = {0x02};
|
||||
std::copy(begin(), end(), full_key + 1);
|
||||
return CPubKey{full_key};
|
||||
}
|
||||
|
||||
bool XOnlyPubKey::IsFullyValid() const
|
||||
{
|
||||
secp256k1_xonly_pubkey pubkey;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue