Skip to content

Conversation

@sanket1729
Copy link
Member

@sanket1729 sanket1729 commented Nov 4, 2020

Although the diff is large, most of it just compiler guiding me on how to fix the errors. As can be seen from the diff the change is pretty invasive.

On the other hand, we can have the user use the translate functions to get a Miniscript<bitcoin::PublicKey, _> and then use the API operations on those. Considering the API changes required here, I am leaning toward the other option of not implementing ToPublicKey to DescriptorKey at all. Even for tweaked keys where we need cryptographic operations, we should use the translate functions.

I am starting to think that having additional parameters for address, max_satisfaction_wieght, etc might not be worth it.
Does not currently build/test for compiler feature. I can fix that depending on what we decide.

w.r.t #163, I think the best way to not implement ToPublicKey at all and have users use the translate function to get a Miniscript<bitcoin::PublicKey, _>. We can even provide a simple utility function that does it incase the user finds it hard to use the traslate_pk function.

@apoelstra What do you think?

@sanket1729 sanket1729 force-pushed the topubkey_update branch 3 times, most recently from 45272df to eab073e Compare November 11, 2020 21:12
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants