-
Notifications
You must be signed in to change notification settings - Fork 372
fix(ckdoge): use legacy P2PKH transactions for withdrawals #8187
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
fix(ckdoge): use legacy P2PKH transactions for withdrawals #8187
Conversation
mducroux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @gregorydemay. LGTM!
ninegua
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM. Btw, do you know how much the ckdoge canister size changed due to the new bitcoin-dogecoin dependency?
gregorydemay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to push my previous comments, sorry about that
mducroux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @gregorydemay! Left only a few minor comments
Fix the withdrawal of ckDOGE to DOGE. Transactions created by the ckDOGE minter are quite different to the ones from the ckBTC minter:
Transactions created by the ckDOGE minter are therefore widely different from the ones created by the ckBTC minter, which requires a separate implementation. In particular, the choice here is to use the Rust bitcoin library to create such transactions instead of tweaking the custom implementation used by the ckBTC minter.
Those problems also show the insufficiency of the current integration tests, which only mock the Dogecoin canister and therefore do not ensure the validity of the transactions created by the minter. This part is left for future work. The current PR was tested locally on Regtest and with the ckDOGE staging canister which successfully produced the transaction 32d24dcb.