Skip to main content

Timeline for Native P2WSH over P2SH | P2SH-P2WSH

Current License: CC BY-SA 4.0

21 events
when toggle format what by license comment
Sep 12, 2023 at 15:33 vote accept Deepanshu
S Sep 12, 2023 at 7:33 history bounty ended Deepanshu
S Sep 12, 2023 at 7:33 history notice removed Deepanshu
Sep 11, 2023 at 14:15 answer added karask timeline score: 0
S Sep 9, 2023 at 21:30 history bounty started Deepanshu
S Sep 9, 2023 at 21:30 history notice added Deepanshu Authoritative reference needed
Sep 3, 2023 at 7:28 comment added Deepanshu Hello @karask thank you so much for the comment, however changing the sign to sign_segwit_input did not help. Thank you for the help. Whenever you have time, you can fix the issue, this may help the community to have some sort of reference and would help me as well to eventually figure out the issue.
Sep 2, 2023 at 16:31 comment added karask I don't have time to test it right now. Going though the code I noticed that you sign with sign_input but you should use sign_segwit_input. I hope this helps.
Sep 1, 2023 at 14:49 comment added Deepanshu Essentially P2WSH is supposed to be backward compatible with P2SH and that's what I am trying to demonstrate with Python Code. We have the deadline to submit the paper tomorrow and if we could somehow make it work, it would be useful addition in our paper.
Sep 1, 2023 at 14:48 comment added Deepanshu Hello @karask Thank you for the response. I generated two private keys using some libraries and then using the keys to p2wsh witness script followed by p2sh address. This is the address that got generated "2N4vHiXTCCVMt4TYimTGXRCySzNLXkdiPyH". (Cell number 3 in Jupyter notebook) After this, I created a transaction using bitcoin cli. bitcoin-cli -regtest sendtoaddress "2N4vHiXTCCVMt4TYimTGXRCySzNLXkdiPyH" 0.1 Post this starting from cell number 5 in the notebook, I am trying to spend this. The choice of env (regtest/test) doesn't matter in my case. All I am trying to do is P2WSH in P2SH
Sep 1, 2023 at 13:23 comment added karask Hi @Deepanshu I see in ipynb that you work in a regtest environment. So I assume you created this p2sh-p2wsh(multisig) yourself and are trying to spend it. In order for me to take a thorough look I would need the code for the creation of that UTXO first... and then the code for spending it (like the one your provided) but in testnet/signet so that I can test directly. Too many times, esp. in complex scenarios like this, the problem is that the UTXO is not what you thought it was...
Aug 31, 2023 at 11:36 history edited Deepanshu CC BY-SA 4.0
added 124 characters in body
Aug 31, 2023 at 11:35 comment added Deepanshu Hello @karask this is the Jupyter Nootebook attached on Github github.com/Deepanshu2017/bitcoingist/blob/main/P2SH-P2WSH.ipynb I have modified the question to attach the notebook URL
Aug 31, 2023 at 11:32 comment added Deepanshu Hello @karask thank you for the comment. I am trying to spend P2SH (P2WSH (Multi-sig) ). I tried so many things in the last couple of days that I have lost track. I tried only one value in the witness data before adding the signatures and hash however that was not working. I have tried to reach out to you over email as well (with the Jupyter notebook) however if you like (and if helps the community) I can attach Jupyter notebook here.
Aug 31, 2023 at 10:55 comment added karask I noticed that in witness_data you add two values (instead of one for the multisig bug) before the signatures. Why?
Aug 31, 2023 at 10:53 comment added karask It is quite difficult to understand what is going on from the above. Are you certain that the funds are locked in the exact same output type that you are trying to spend? (p2sh(p2wsh(multi-sig) ) ) ? If not, it will never work.
Aug 30, 2023 at 8:33 history edited Vojtěch Strnad CC BY-SA 4.0
added syntax highlighting
Aug 30, 2023 at 8:13 history edited Vojtěch Strnad
edited tags
Aug 30, 2023 at 7:49 history edited Antoine Poinsot CC BY-SA 4.0
edited title; edited title
S Aug 30, 2023 at 7:40 review First questions
Sep 12, 2023 at 15:42
S Aug 30, 2023 at 7:40 history asked Deepanshu CC BY-SA 4.0