Is there a way to convert a secp256k1_xonly_pubkey
into a secp256k1_pubkey
?
Reason: Extract secp256k1_xonly_pubkey
from a P2TR address and use it as parameter to secp256k1_ecdh()
.
Edit: Seem related. #994 https://github.com/bitcoin-core/secp256k1/pull/262