-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert secp256k1_xonly_pubkey
to secp256k1_pubkey
#1097
Comments
No. You could prefix the serialized As a proper solution, we should indeed think about #994. Can you say more about your use case? |
Thanks for clarifying @real-or-random . The use case is the "Basic Scheme" mentioned in the article "Silent Payment". For testing purposes, I implemented an example of this scheme based on #994: The result is something like below :
As the recipient needs to previously expose the public key for the sender to calculate the tweaked address, this can only be done with P2TR, where the public key is in x-only format. |
Is there a way to convert a
secp256k1_xonly_pubkey
into asecp256k1_pubkey
?Reason: Extract
secp256k1_xonly_pubkey
from a P2TR address and use it as parameter tosecp256k1_ecdh()
.Edit: Seem related.
#994
#262
The text was updated successfully, but these errors were encountered: